Class CanonicalizeGroupedTailStepTransform

java.lang.Object
org.eclipse.rdf4j.queryrender.sparql.ir.util.transform.BaseTransform
org.eclipse.rdf4j.queryrender.sparql.ir.util.transform.CanonicalizeGroupedTailStepTransform

public final class CanonicalizeGroupedTailStepTransform extends BaseTransform
Normalize grouping of a final tail step like "/foaf:name" so that it appears outside the top-level grouped PT/PT fusion instead of inside the right-hand side group. This rewrites patterns of the form: (?LEFT)/((?RIGHT/tail)) -> ((?LEFT)/(?RIGHT))/tail It is a best-effort string-level fix applied late in the pipeline to match expected canonical output.