Class VarUtils
java.lang.Object
org.eclipse.rdf4j.queryrender.sparql.util.VarUtils
Shared helpers for RDF4J Var comparison and path-var recognition.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanTrue when the anonymous path var explicitly encodes inverse orientation under the same safety check.static booleanisAnonPathVar(Var v) True iff the var looks like a parser-generated anonymous path bridge variable: has the reserved prefix *and* is marked anonymous or as a variable-scope change.static booleantrue if both are unbound vars with equal names.static booleansameVarOrValue(Var a, Var b) True when both variables denote the same term: compares names if both are variables without value, or compares values if both are constants.
-
Field Details
-
ANON_PATH_PREFIX
- See Also:
-
ANON_PATH_INVERSE_PREFIX
- See Also:
-
-
Method Details
-
sameVar
-
sameVarOrValue
-
isAnonPathVar
True iff the var looks like a parser-generated anonymous path bridge variable: has the reserved prefix *and* is marked anonymous or as a variable-scope change. This guards against user-supplied vars that merely reuse the prefix. -
isAnonPathInverseVar
True when the anonymous path var explicitly encodes inverse orientation under the same safety check.
-