Hello all.
I need to use direct query evaluation using the
SailRepositoryConnection.evaluate method, but it seams that there is an
error in BigOWLIM ver. 3.1.0, for example:
ParsedQuery query = new
SPARQLParserFactory().getParser().parseQuery("SELECT ?s ?p ?o WHERE {?s ?p
?o . }", "http://test");
TupleExpr expr = query.getTupleExpr();
Dataset dataset = query.getDataset();
QueryBindingSet bindings = new QueryBindingSet();
bindings.addBinding("s", new URIImpl("http://some/uri"));
CloseableIteration<? extends BindingSet, QueryEvaluationException> itr =
((SailRepositoryConnection) conn).getSailConnection().evaluate(expr,
dataset, bindings, true);
will return ALL statements in the store, but it should return just
statements with http://some/uri as subject
Interesting is that when the query is "SELECT ?p ?o WHERE { ?s ?p ?o . }"
(i.e. ?s is not included in the result), then it is working fine.
On MemoryStore (of Sesame 2.3-pr1) both queries were working ok.
so.. did I miss something or there is a bug in BigOWLIM?
best regards
Peter Bednar
_______________________________________________
OWLIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/owlim-discussion