Hello everyone, 

how is it possible to build a query like: 
SELECT DISTINCT  * WHERE
  { 
    ?s  skos:broader  ?o
  } 

ORDER BY ?s

with the Jena ARQ API (org.apache.jena.sparql.syntax.*)


The first part would be achieved by: 


final ElementTriplesBlock baseCriteria = new ElementTriplesBlock();
        baseCriteria.addTriple(
                    new Triple(
         Var.alloc("s"),
                                NodeFactory.createURI("skos:broader"),
         Var.alloc("o")

     )
        );

I can add this to an ElementGroup, but which Java Type shall be used to
gernerate ORDER BY ?s ?

Thanks & Best Regards
Andreas 



Reply via email to