On 22/01/11 21:21, Timo Westkämper wrote:
Hi.
Is there some way to have the same effect like supplying the initial
bindings of a QuerySolution to QueryExecution with the Node type of the
SPI level?
I tried to use Query.setBindings(List<Var> variables, List<Binding>
values), but it didn't work.
Br,
Timo Westkämper
Query.setBindings is for the SPARQL 1.1 BINDINGS feature.
Initial bindings are a feature of query execution, not the query itself.
Too many concepts, not enough different words.
To get at query execution at the graph/node level, (not properly
exposed) you can use the oddly named:
QueryExecutionFactory.createPlan(Query, DatasetGraph, Binding).
and get the iterator of results. Binding is the initial binding.
QueryExecution's are a concept at the Model/Statement level
QuerySolutionMap has .add(name, Node).
Andy