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;
}
Aggregations