Class VarNameNormalizer
java.lang.Object
org.eclipse.rdf4j.queryrender.VarNameNormalizer
Normalizes anonymous variable tokens so structurally identical trees compare equal even if hashed suffixes differ.
Standalone identifiers only (left boundary must be a non-word char). Word chars = [A-Za-z0-9_].
Families are prefixes (including trailing underscore), e.g. "_anon_path_". Pre-numbered tails (digits-only) are
preserved and reserve their numbers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringnormalizeVars(String input) static StringnormalizeVars(String input, List<String> families)
-
Method Details
-
normalizeVars
-
normalizeVars
-