java.lang.Object
org.apache.jena.sparql.core.Substitute
Substitution in SPARQL algebra.
See also QueryTransformOps
and UpdateTransformOps
which operate on SPARQL syntax.
inject(org.apache.jena.sparql.algebra.Op, org.apache.jena.sparql.engine.binding.Binding)
provides the substitution, while leaving a variable present, used by LATERAL.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Op
Inject takes anOp
to transform using a {Binding binding}.static org.apache.jena.graph.Node
substitute
(org.apache.jena.graph.Node n, Binding binding) static org.apache.jena.graph.Triple
substitute
(org.apache.jena.graph.Triple triple, Binding binding) static Op
substitute
(Op op, Var var, org.apache.jena.graph.Node node) static Op
substitute
(Op op, Binding binding) static BasicPattern
substitute
(BasicPattern bgp, Binding binding) static Quad
substitute
(Quad quad, Binding binding) static TriplePath
substitute
(TriplePath triplePath, Binding binding) static ExprList
substitute
(ExprList exprList, Binding binding) static Expr
substitute
(Expr expr, Binding binding) static PropFuncArg
substitute
(PropFuncArg propFuncArg, Binding binding)
-
Constructor Details
-
Substitute
public Substitute()
-
-
Method Details
-
inject
Inject takes anOp
to transform using a {Binding binding}. The transformation assumes the Ope structure is legal for the operation. The transformation is to wrap each place a variable is used (BGP, GRAPH, Path and some equivalent operations) with aBIND
to restrict the vartibale to a specific value while still retaining the variable (e.g for FILETERs).(bgp (?s :p 123) (?s :q ?a) )
with binding?s = :x
becomes(assign (?s :x) (bgp (:x :p 123) (:x :q ?a) ))
-
substitute
-
substitute
-
substitute
-
substitute
public static org.apache.jena.graph.Triple substitute(org.apache.jena.graph.Triple triple, Binding binding) -
substitute
-
substitute
-
substitute
-
substitute
-
substitute
-
substitute
-