Class VarNameNormalizer

java.lang.Object
org.eclipse.rdf4j.queryrender.VarNameNormalizer

public final class VarNameNormalizer extends Object
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 Details