use of org.eclipse.rdf4j.query.algebra.Exists in project rdf4j by eclipse.
the class TupleExprBuilder method visit.
@Override
public Exists visit(ASTExistsFunc node, Object data) throws VisitorException {
GraphPattern parentGP = graphPattern;
graphPattern = new GraphPattern(parentGP);
Exists e = new Exists();
node.jjtGetChild(0).jjtAccept(this, e);
TupleExpr te = graphPattern.buildTupleExpr();
e.setSubQuery(te);
graphPattern = parentGP;
return e;
}
use of org.eclipse.rdf4j.query.algebra.Exists in project rdf4j by eclipse.
the class TupleExprBuilder method visit.
@Override
public Not visit(ASTNotExistsFunc node, Object data) throws VisitorException {
GraphPattern parentGP = graphPattern;
graphPattern = new GraphPattern(parentGP);
Exists e = new Exists();
node.jjtGetChild(0).jjtAccept(this, e);
TupleExpr te = graphPattern.buildTupleExpr();
e.setSubQuery(te);
graphPattern = parentGP;
return new Not(e);
}