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