java.lang.Object
org.apache.jena.sparql.modify.TemplateLib
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSubstitute into quad patternscalcTriples
(List<Triple> triples, Iterator<Binding> bindings) Substitute into triple patternsremapDefaultGraph
(List<Quad> quads, Node dftGraph) Map quads to a different graph if they are in the default graph.static Triple
Substitute into a triple, with rewriting of bNodesstatic Quad
Substitute into a quad, with rewriting of bNodesTake a template, as a list of quad patterns, a default graph, and an iterator of bindings, and produce an iterator of quads that results from applying the template to the bindings.
-
Constructor Details
-
TemplateLib
public TemplateLib()
-
-
Method Details
-
template
Take a template, as a list of quad patterns, a default graph, and an iterator of bindings, and produce an iterator of quads that results from applying the template to the bindings. -
remapDefaultGraph
Map quads to a different graph if they are in the default graph. -
calcTriples
Substitute into triple patterns -
calcQuads
Substitute into quad patterns -
subst
Substitute into a quad, with rewriting of bNodes -
subst
Substitute into a triple, with rewriting of bNodes
-