Class ElementTransformCleanGroupsOfOne

  • All Implemented Interfaces:
    ElementTransform

    public class ElementTransformCleanGroupsOfOne
    extends ElementTransformCopyBase
    Clean a SPARQL and ARQ syntax. This applies after using OpAsQuery.
    • Unwrap groups of one where they do not matter.
    • Merge adjacent ElementPathBlock
    Groups of one do matter for OPTIONAL { { ?s ?p ?o FILTER(?foo) } }.