use of org.apache.jena.sparql.engine.iterator.QueryIterExtendByVar in project jena by apache.
the class SpatialOperationPFBase method variableSubject.
private QueryIterator variableSubject(Binding binding, Node s, SpatialMatch match, ExecutionContext execCxt) {
Var v = Var.alloc(s);
List<Node> r = query(match);
// Make distinct. Note interaction with limit is imperfect
r = Iter.iter(r).distinct().toList();
QueryIterator qIter = new QueryIterExtendByVar(binding, v, r.iterator(), execCxt);
return qIter;
}
use of org.apache.jena.sparql.engine.iterator.QueryIterExtendByVar in project jena by apache.
the class listMember method execObjectBound.
@Override
protected QueryIterator execObjectBound(Binding binding, Var listVar, Node predicate, Node object, ExecutionContext execCxt) {
// Given a concrete node, find lists it's in
GNode gnode = new GNode(execCxt.getActiveGraph(), object);
List<Node> lists = GraphList.listFromMember(gnode);
return new QueryIterExtendByVar(binding, listVar, lists.iterator(), execCxt);
}
Aggregations