-
Method Summary
org.apache.jena.sparql.expr.Expr
org.apache.jena.sparql.core.Var
default boolean
Whether the expression is of the form ?x = ?x
(Unary expressions must always have a variable so 'true' itself cannot be used)
default Optional<org.apache.jena.sparql.expr.NodeValue>
Retuns the constant if the expression is of form
anyVar = const or const = ?anyVar
-
Method Details
-
getVar
org.apache.jena.sparql.core.Var getVar()
-
getExpr
org.apache.jena.sparql.expr.Expr getExpr()
- Specified by:
getExpr in interface XExpr
-
isAlwaysTrue
default boolean isAlwaysTrue()
Whether the expression is of the form ?x = ?x
(Unary expressions must always have a variable so 'true' itself cannot be used)
-
tryGetConstant
default Optional<org.apache.jena.sparql.expr.NodeValue> tryGetConstant()
Retuns the constant if the expression is of form
anyVar = const or const = ?anyVar