731732733734735736737738739740741
* * And(Not(Bound(?acl_attr1)), Not(Bound(?acl_attr_1), ...) */ And and = new And(); for (Var attributeVar : attributeVars) { and.addArg(new Not(new Bound(attributeVar))); } if (and.getArgs().size() == 1) { filterConditions.addArg(and.getArg(0)); }
571572573574575576577578579580581
Var var2 = nodeVars.get(j); // At least one of the variables should be non-constant // for the unequality to make any sense: if (!var1.hasValue() || !var2.hasValue()) { graphPattern.addConstraint(new Not(new SameTerm(var1, var2))); } } } return nodeVars;
664665666667668669670
@Override public Not visit(ASTNot node, Object data) throws VisitorException { return new Not((ValueExpr)super.visit(node, data)); }
690691692693694695696
@Override public Not visit(ASTNot node, Object data) throws VisitorException { ValueExpr arg = (ValueExpr)super.visit(node, null); return new Not(arg); }
572573574575576577578579580581582
669670671672673674675
692693694695696697698