Class GroupFilterExistsWithPrecedingTriplesTransform

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

public final class GroupFilterExistsWithPrecedingTriplesTransform extends BaseTransform
When a FILTER EXISTS is immediately preceded by a single triple, and the EXISTS body itself contains an explicit grouped block (i.e., its where has a single IrBGP line), wrap the preceding triple and the FILTER together in a group. This mirrors the original grouped shape often produced by path alternation rewrites and preserves textual stability for tests that expect braces.
  • Method Details