use of org.apache.jena.sparql.algebra.Transform in project jena by apache.
the class TestTransformTopN method testQuery.
// ---- From query to transfomed algebra.
private void testQuery(String input, String output) {
Transform transform = new TransformTopN();
testQuery(input, transform, output);
}
use of org.apache.jena.sparql.algebra.Transform in project jena by apache.
the class NodeTransformLib method transform.
/** Do a node->node conversion of an Op - return original BGP for "no change" */
public static Op transform(NodeTransform nodeTransform, Op op) {
Transform opTransform = new NodeTransformOp(nodeTransform);
ExprTransform exprTransform = new NodeTransformExpr(nodeTransform);
return Transformer.transform(opTransform, exprTransform, op);
}
use of org.apache.jena.sparql.algebra.Transform in project jena by apache.
the class MyQueryEngine method eval.
@Override
public QueryIterator eval(Op op, DatasetGraph dsg, Binding initial, Context context) {
// Extension point: access possible to all the parameters for execution.
// Be careful to deal with initial bindings.
Transform transform = new MyTransform();
op = Transformer.transform(transform, op);
return super.eval(op, dsg, initial, context);
}
Aggregations