On 29/12/16 23:32, Martynas Jusevičius wrote:
Hey,

I am parsing some input from which I want to build a VALUES block, and
I need some data structure for it.

Internally, it is a "org.apache.jena.sparql.algebra.Table" in teh algebra and "ElementData" in syntax.


From SPARQL 1.1: "VALUES provides inline data as a solution sequence"
and "a solution sequence is a list of solutions, possibly unordered".

So given that Jena uses QuerySolution for solutions, would
Set<QuerySolution> following be correct for VALUES?

List<QuerySolution>

a set may reorder - which may or may not matter to you - and suppresses duplicates, which does make a difference.

        Andy


Thanks.


Martynas
atomgraph.com

Reply via email to