Hi Paolo,

Looking at the version of your JDBC driver it seems quite old, as the latest 
version is:

$ java -jar virtjdbc3.jar
OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 3.x [Build 3.62]
$

available for download from:

        
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VOSDownload#Jena%20Provider

Can you please update to this version and try again ...

Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc.      //              http://www.openlinksw.com/
Weblog   -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter  -- http://twitter.com/OpenLink
Google+  -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers

On 31 Jan 2014, at 00:21, Paolo Ciccarese <paolo.ciccar...@gmail.com> wrote:

> Hi Hugh,
> I am running basically the code of that example, trimmed down to the ASK (the 
> full example run fine though).
> The ASK in my case is simply to verify the existence of a graph
> 
> I am using
> Virtuoso Open Source Edition (Row Store) (multi-threaded)
> Version 6.1.8.3127-pthreads as of Jan 22 2014
> Compiled for Darwin (i386-apple-darwin10.8.0)
> 
> JDBC
> OpenLink Virtuoso(TM) Driver for JDBC(TM) Version 4.x [Build 3.55]
> 
> Jena provider
> OpenLink Virtuoso(TM) Provider for Jena(TM) Version 2.10.1 [Build 1.10]
> Jena API
> v. 2.11.0
> 
> 
> Thank you for your help,
> Paolo
> 
> 
> 
> 
> On Wed, Jan 29, 2014 at 8:41 PM, Hugh Williams <hwilli...@openlinksw.com> 
> wrote:
> Hi Paolo,
> 
> Have you tried the Example9 program which demonstrates the use of ASK queries 
> in the Jena Provider documentation at:
> 
>       
> http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtJenaProvider
> 
> Also, please confirm the version of the Virtuoso server, Jena Provider , Jena 
> Framework and JDBC Driver being used:
> 
>       virtuoso-t -?
>       java -jar virt_jena.jar
>       java -jar virtjdbc3.jar
> 
> Best Regards
> Hugh Williams
> Professional Services
> OpenLink Software, Inc.      //              http://www.openlinksw.com/
> Weblog   -- http://www.openlinksw.com/blogs/
> LinkedIn -- http://www.linkedin.com/company/openlink-software/
> Twitter  -- http://twitter.com/OpenLink
> Google+  -- http://plus.google.com/100570109519069333827/
> Facebook -- http://www.facebook.com/OpenLinkSoftware
> Universal Data Access, Integration, and Management Technology Providers
> 
> On 29 Jan 2014, at 20:07, Paolo Ciccarese <paolo.ciccar...@gmail.com> wrote:
> 
>> I am trying to check for the existence of a graph and if I execute this 
>> query in the Conductor
>> ASK { GRAPH <http://example.org/tests/graph/001> { ?s ?p ?o . } }
>> returns 'false' when the graph is not there.
>> 
>> However, if I run the same query with Jena and the Virtuoso Jena Provider I 
>> always get back 'true':
>> 
>> VirtGraph set = new VirtGraph ("jdbc:virtuoso://localhost:1111", "dba", 
>> "dba");
>> String query = "ASK { GRAPH <http://example.org/tests/graph/001> { ?s ?p ?o 
>> . } }";
>> Query sparql = QueryFactory.create(query);
>> VirtuosoQueryExecution vqe = VirtuosoQueryExecutionFactory.create (sparql, 
>> set);
>> boolean result =  vqe.execAsk();
>> 
>> Any advice that can help me out?
>> 
>> Thank you in advance,
>> Paolo
>> 
>> 
>> ------------------------------------------------------------------------------
>> WatchGuard Dimension instantly turns raw network data into actionable 
>> security intelligence. It gives you real-time visual feedback on key
>> security issues and trends.  Skip the complicated setup - simply import
>> a virtual appliance and go from zero to informed in seconds.
>> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk_______________________________________________
>> Virtuoso-users mailing list
>> Virtuoso-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
> 
> 
> 
> 
> -- 
> Dr. Paolo Ciccarese
> http://www.paolociccarese.info/
> Biomedical Informatics Research & Development
> Instructor of Neurology at Harvard Medical School
> Assistant in Neuroscience at Mass General Hospital
> Member of the MGH Biomedical Informatics Core
> +1-857-366-1524 (mobile)   +1-617-768-8744 (office)
> 
> CONFIDENTIALITY NOTICE: This message is intended only for the addressee(s), 
> may contain information that is considered
> to be sensitive or confidential and may not be forwarded or disclosed to any 
> other party without the permission of the sender. 
> If you have received this message in error, please notify the sender 
> immediately.
> ------------------------------------------------------------------------------
> WatchGuard Dimension instantly turns raw network data into actionable 
> security intelligence. It gives you real-time visual feedback on key
> security issues and trends.  Skip the complicated setup - simply import
> a virtual appliance and go from zero to informed in seconds.
> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk_______________________________________________
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users

------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to