Interface PartitionedQuery
- All Superinterfaces:
HasElement
- All Known Subinterfaces:
PartitionedQuery1
- All Known Implementing Classes:
PartitionedQuery1Impl,PartitionedQueryN
A query where a subset of the mentioned vars are used to partition
its result set. The partitioned result set can then serve as the
basis for accumulating objects from it - i.e. each partition is the base for an object
(which may be a set of objects).
TODO Add a feature that allows specification of mappings of blank nodes in construct templates
to expressions that remap them to local IDs; i.e. Map<Node, Expr> nodeToIdExpr
Conceptually this substitutes bnodes with variables that are bound to an expression
CONSTRUCT { ?bnode1 a Foo } { ... ?x . BIND(fn(?x) AS ?bnode1 }
This way bnode substitution can be done explicitly in the client
Actually this is again the Sponate concept where objects are accumulated using aggregation based
on a JSON template (rather than CONSTRUCT/triples template). Back then we had even support to assemble lists from sparql results.
- Author:
- raven
-
Method Summary
Methods inherited from interface org.aksw.jenax.sparql.fragment.api.HasElement
extractQuery, extractTable, holdsQuery, holdsTable, toOp
-
Method Details
-
getQuery
org.apache.jena.query.Query getQuery() -
getPartitionVars
List<org.apache.jena.sparql.core.Var> getPartitionVars() -
getTemplate
default org.apache.jena.sparql.syntax.Template getTemplate() -
getElement
default org.apache.jena.sparql.syntax.Element getElement()Description copied from interface:HasElementReturn the element held by the implementation of this interface- Specified by:
getElementin interfaceHasElement- Returns:
-