Search in sources :

Example 1 with QueryIterDistinguishedVars

use of org.apache.jena.sparql.engine.iterator.QueryIterDistinguishedVars in project jena by apache.

the class Eval method executeBGP.

private static QueryIterator executeBGP(BasicPattern pattern, QueryIterator input, ExecutionContext execCxt) {
    if (pattern.isEmpty())
        return input;
    boolean hideBNodeVars = execCxt.getContext().isTrue(ARQ.hideNonDistiguishedVariables);
    StageGenerator gen = StageBuilder.executeInline;
    QueryIterator qIter = gen.execute(pattern, input, execCxt);
    // Project out only named variables.
    if (hideBNodeVars)
        qIter = new QueryIterDistinguishedVars(qIter, execCxt);
    return qIter;
}
Also used : QueryIterDistinguishedVars(org.apache.jena.sparql.engine.iterator.QueryIterDistinguishedVars) StageGenerator(org.apache.jena.sparql.engine.main.StageGenerator) QueryIterator(org.apache.jena.sparql.engine.QueryIterator)

Aggregations

QueryIterator (org.apache.jena.sparql.engine.QueryIterator)1 QueryIterDistinguishedVars (org.apache.jena.sparql.engine.iterator.QueryIterDistinguishedVars)1 StageGenerator (org.apache.jena.sparql.engine.main.StageGenerator)1