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