Search in sources :

Example 1 with Procedure

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);
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator) Procedure(org.apache.jena.sparql.procedure.Procedure)

Example 2 with Procedure

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);
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator) Procedure(org.apache.jena.sparql.procedure.Procedure)

Example 3 with Procedure

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);
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator) Procedure(org.apache.jena.sparql.procedure.Procedure)

Example 4 with Procedure

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);
}
Also used : QueryIterator(org.apache.jena.sparql.engine.QueryIterator) Procedure(org.apache.jena.sparql.procedure.Procedure)

Aggregations

QueryIterator (org.apache.jena.sparql.engine.QueryIterator)4 Procedure (org.apache.jena.sparql.procedure.Procedure)4