Hi Hugh,

Weirder yet, the following SPARQL works (using Virtuoso Jena provider with either Jena 2.10.0 or 2.11.0:

SELECT * WHERE { GRAPH ?graph { ?s ?p ?o } . values ?graph {<http://ips.ebremer.com>} . filter not exists {graph ?gg {?s ?j ?q} . values ?gg {<http://connect.ebremer.com>}} }

whereas the below query does not:

SELECT * WHERE { GRAPH <http://ips.ebremer.com> { ?s ?p ?o } . filter not exists {graph <http://connect.ebremer.com> {?s ?j ?q} } }

but both work in the SPARQL endpoint.

        - Erich

Erich Bremer
http://www.ebremer.com

On 10/7/2013 5:41 PM, Erich Bremer wrote:
Hi Hugh,

A similar case:
Using either 2.10.0 or 2.11.0 with the following code:

VirtGraph set = new VirtGraph ("jdbc:virtuoso://localhost:1111", "dba", "dba"); Query sparql = QueryFactory.create("SELECT * WHERE { GRAPH ?graph { ?s ?p ?o } . values ?graph {<http://ips.ebremer.com>} . filter not exists {graph <http://connect.ebremer.com> {?s ?j ?q}}}"); VirtuosoQueryExecution vqe = VirtuosoQueryExecutionFactory.create (sparql, set);
ResultSet results = vqe.execSelect();

results.hasNext() after, evaluates false, but, if I execute the above sparql at the endpoint for the same server, it works fine and returns results.

        - Erich

Erich Bremer
http://www.ebremer.com


On 10/7/2013 2:14 AM, Erich Bremer wrote:
Hi Hugh,

I had not tested it against 2.10.0, only 2.11.0. I tried running the code again to get the bug to show, but now it won't, but, I had restarted V7.0.0 since the issue/bug first occurred. I'll see if I can get the error to show again. - Erich

On 10/6/2013 8:29 PM, Hugh Williams wrote:
Hi Erich,

Are you saying if the same query is run against Jena 2.10.x of Jena 2.6.x the result set is correctly returned ? We are about to test this new Jena 2.11 release to see whats new and if there are issues with the current provider (particularly the 2.10.x provider) to determine compatibility or if a new provider needs to be created ...

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 7 Oct 2013, at 00:35, Erich Bremer <er...@ebremer.com <mailto:er...@ebremer.com>> wrote:

Using Jena 2.11.0 and the jena providers off the Virtuoso web site, I've
executed the following query:

VirtGraph set = new VirtGraph ("jdbc:virtuoso://localhost:1111", "dba",
"dba");
Query sparql = QueryFactory.create("SELECT * WHERE { GRAPH ?graph { ?s
?p ?o } . values ?graph {<http://ips.ebremer.com>}} limit 1");
VirtuosoQueryExecution vqe = VirtuosoQueryExecutionFactory.create
(sparql, set);
ResultSet results = vqe.execSelect();

results.hasNext() at the end of this code results in false. However,
there are numerous solutions.  If I set limit to 2, I will get one
result.  If I set it to 11, I will get 10 results, etc... The same
query, directly against the sparql endpoint works fine. The solutions
are all off by one.

        - Erich

Erich Bremer
http://www.ebremer.com

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users




------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk


_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users



------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk


_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&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