use of org.apache.jena.sparql.syntax.ElementService in project jena by apache.
the class TestService method makeElt.
/*package*/
static ElementService makeElt(EnvTest env) {
Node serviceNode = NodeFactory.createURI(env.datasetURL());
ElementGroup elt = new ElementGroup();
Element elt1 = new ElementTriplesBlock(bgp);
elt.addElement(elt1);
ElementService eltService = new ElementService(SERVICE, elt);
return eltService;
}
use of org.apache.jena.sparql.syntax.ElementService in project jena by apache.
the class TestService method makeOpElt.
/*package*/
static OpService makeOpElt(EnvTest env) {
Node serviceNode = NodeFactory.createURI(env.datasetURL());
ElementGroup elt = new ElementGroup();
Element elt1 = new ElementTriplesBlock(bgp);
elt.addElement(elt1);
Op subOp = Algebra.compile(elt1);
ElementService eltService = new ElementService(SERVICE, elt);
OpService opService = new OpService(serviceNode, subOp, eltService, false);
return opService;
}
use of org.apache.jena.sparql.syntax.ElementService in project jena by apache.
the class ElementRewriter method visit.
@Override
public void visit(ElementService el) {
el.getElement().visit(this);
push(new ElementService(changeNode(el.getServiceNode()), getResult(), el.getSilent()));
}
Aggregations