Module org.apache.jena.arq
Class ElementTransformCleanGroupsOfOne
java.lang.Object
org.apache.jena.sparql.syntax.syntaxtransform.ElementTransformCopyBase
org.apache.jena.sparql.syntax.syntaxtransform.ElementTransformCleanGroupsOfOne
- All Implemented Interfaces:
ElementTransform
Clean a SPARQL and ARQ syntax. This applies after using OpAsQuery.
- Unwrap groups of one where they do not matter.
- Merge adjacent ElementPathBlock
OPTIONAL { { ?s ?p ?o FILTER(?foo) } }
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontransform
(ElementGroup eltGroup, List<Element> elts) transform
(ElementOptional eltOptional, Element transformedElt) transform
(ElementUnion eltUnion, List<Element> elts)
-
Constructor Details
-
ElementTransformCleanGroupsOfOne
public ElementTransformCleanGroupsOfOne()
-
-
Method Details
-
transform
- Specified by:
transform
in interfaceElementTransform
- Overrides:
transform
in classElementTransformCopyBase
-
transform
- Specified by:
transform
in interfaceElementTransform
- Overrides:
transform
in classElementTransformCopyBase
-
transform
- Specified by:
transform
in interfaceElementTransform
- Overrides:
transform
in classElementTransformCopyBase
-