org.apache.jena.sparql.syntax.ElementAssign Java Examples
The following examples show how to use
org.apache.jena.sparql.syntax.ElementAssign.
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: QueryPatternNormalizer.java From sparql-generate with Apache License 2.0 | 5 votes |
@Override public void visit(ElementAssign el) { final ExprNormalizer enzer = new ExprNormalizer(); final Var var = el.getVar(); final Expr nzed = enzer.normalize(el.getExpr()); result = new ElementAssign(var, nzed); }
Example #2
Source File: SPARQLExtFormatterElement.java From sparql-generate with Apache License 2.0 | 5 votes |
@Override public void visit(ElementAssign el) { out.print("LET ("); out.print("?" + el.getVar().getVarName()); out.print(" := "); SPARQLExtFmtExprSPARQL v = new SPARQLExtFmtExprSPARQL(out, context); v.format(el.getExpr()); out.print(")"); }
Example #3
Source File: OutputClauseNormalizer.java From sparql-generate with Apache License 2.0 | 4 votes |
@Override public void visit(ElementAssign el) { LOG.warn("Should not reach this point"); }
Example #4
Source File: OutputClauseNormalizer.java From sparql-generate with Apache License 2.0 | 4 votes |
@Override public void visit(ElementAssign el) { LOG.warn("Should not reach this point"); }
Example #5
Source File: SPARQLExtElementVisitorBase.java From sparql-generate with Apache License 2.0 | 4 votes |
@Override public void visit(ElementAssign el) { }
Example #6
Source File: RuleSystemToUnionQuery.java From quetzal with Eclipse Public License 2.0 | 4 votes |
@Override public void visit(ElementAssign assign) { org.apache.jena.sparql.expr.Expr expr = assign.getExpr().copySubstitute(this); Var v = assign.getVar(); result = new ElementAssign(v, expr); }
Example #7
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 #8
Source File: QueryPatternSimplification.java From quetzal with Eclipse Public License 2.0 | 2 votes |
@Override public void visit(ElementAssign e) { result = e; }