use of org.apache.jena.sparql.algebra.op.OpService in project jena by apache.
the class TestService method service_exec_2.
@Test
public void service_exec_2() {
OpService op = makeOpElt(env);
QueryIterator qIter = Service.exec(op, new Context());
assertNotNull(qIter);
}
use of org.apache.jena.sparql.algebra.op.OpService in project jena by apache.
the class TestService method service_exec_3.
@Test
public void service_exec_3() {
DatasetGraph dsg = env.dsg();
dsg.executeWrite(() -> dsg.add(SSE.parseQuad("(_ :s :p :o)")));
OpService op = makeOpElt(env);
QueryIterator qIter = Service.exec(op, new Context());
assertNotNull(qIter);
assertTrue(qIter.hasNext());
qIter.next();
assertFalse(qIter.hasNext());
}
use of org.apache.jena.sparql.algebra.op.OpService in project jena by apache.
the class TestService method service_exec_1.
// Forms of the OpService elements.
@Test
public void service_exec_1() {
OpService op = makeOp(env);
QueryIterator qIter = Service.exec(op, new Context());
assertNotNull(qIter);
}
use of org.apache.jena.sparql.algebra.op.OpService in project jena by apache.
the class TestService method makeOp.
/*package*/
static OpService makeOp(EnvTest env, Node serviceNode) {
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, false);
return opService;
}
use of org.apache.jena.sparql.algebra.op.OpService 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;
}
Aggregations