org.apache.jena.sparql.expr.ExprVars Java Examples
The following examples show how to use
org.apache.jena.sparql.expr.ExprVars.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SPARQLExtSyntaxVarScope.java From sparql-generate with Apache License 2.0 | 5 votes |
private static void checkVarsInExpr(Expr expr, List<Var> signature, String message) { Set<Var> vars = ExprVars.getVarsMentioned(expr); vars.removeAll(signature); if (!vars.isEmpty()) { throw new QueryParseException(message, -1, -1); } }
Example #2
Source File: FindAllVariables.java From quetzal with Eclipse Public License 2.0 | 4 votes |
@Override public void visit(ElementAssign e) { addVar(e.getVar()); ExprVars.varsMentioned(vars, e.getExpr()); }
Example #3
Source File: FindAllVariables.java From quetzal with Eclipse Public License 2.0 | 4 votes |
@Override public void visit(ElementBind e) { addVar(e.getVar()); ExprVars.varsMentioned(vars, e.getExpr()); }
Example #4
Source File: FindAllVariables.java From quetzal with Eclipse Public License 2.0 | 4 votes |
@Override public void visit(ElementFilter e) { ExprVars.varsMentioned(vars, e.getExpr()); }