use of org.apache.jena.sparql.procedure.Procedure in project jena by apache.
the class OpExecutor method execute.
protected QueryIterator execute(OpPropFunc opPropFunc, QueryIterator input) {
Procedure procedure = ProcEval.build(opPropFunc.getProperty(), opPropFunc.getSubjectArgs(), opPropFunc.getObjectArgs(), execCxt);
QueryIterator qIter = exec(opPropFunc.getSubOp(), input);
return new QueryIterProcedure(qIter, procedure, execCxt);
}
use of org.apache.jena.sparql.procedure.Procedure in project jena by apache.
the class OpExecutor method execute.
protected QueryIterator execute(OpProcedure opProc, QueryIterator input) {
Procedure procedure = ProcEval.build(opProc, execCxt);
QueryIterator qIter = exec(opProc.getSubOp(), input);
// Delay until query starts executing.
return new QueryIterProcedure(qIter, procedure, execCxt);
}
use of org.apache.jena.sparql.procedure.Procedure in project jena by apache.
the class EvaluatorSimple method procedure.
@Override
public Table procedure(Table table, Node procId, ExprList args) {
Procedure proc = ProcEval.build(procId, args, execCxt);
QueryIterator qIter = ProcEval.eval(table.iterator(execCxt), proc, execCxt);
return TableFactory.create(qIter);
}
use of org.apache.jena.sparql.procedure.Procedure in project jena by apache.
the class EvaluatorSimple method propertyFunction.
@Override
public Table propertyFunction(Table table, Node procId, PropFuncArg subjArgs, PropFuncArg objArgs) {
Procedure proc = ProcEval.build(procId, subjArgs, objArgs, execCxt);
QueryIterator qIter = ProcEval.eval(table.iterator(execCxt), proc, execCxt);
return TableFactory.create(qIter);
}
Aggregations