Class LogicalOperatorConstraintComponent

java.lang.Object
org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.AbstractConstraintComponent
org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.LogicalOperatorConstraintComponent
All Implemented Interfaces:
ConstraintComponent, Exportable, TargetChainInterface
Direct Known Subclasses:
AndConstraintComponent, OrConstraintComponent

public abstract class LogicalOperatorConstraintComponent extends AbstractConstraintComponent
  • Constructor Details

    • LogicalOperatorConstraintComponent

      public LogicalOperatorConstraintComponent(Resource id)
  • Method Details

    • buildSparqlValidNodes_rsx_targetShape_inner

      static SparqlFragment buildSparqlValidNodes_rsx_targetShape_inner(StatementMatcher.Variable subject, StatementMatcher.Variable object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider, List<Shape> shapes, TargetChain targetChain, Function<List<SparqlFragment>,SparqlFragment> bgpCombiner, Function<List<SparqlFragment>,SparqlFragment> filterCombiner)
      Parameters:
      subject - the subject from buildSparqlValidNodes_rsx_targetShape
      object - the object from buildSparqlValidNodes_rsx_targetShape
      rdfsSubClassOfReasoner - the rdfsSubClassOfReasoner from buildSparqlValidNodes_rsx_targetShape
      scope - the scope from buildSparqlValidNodes_rsx_targetShape
      stableRandomVariableProvider -
      shapes - the shapes from from the logical constraint (eg. and, or)
      targetChain - the current targetChain
      bgpCombiner - the SparqlFragment combiner for bgp or union fragments (eg. SparqlFragment::join for AND; SparqlFragment::union for OR)
      filterCombiner - the SparqlFragment combiner for filter condition fragments (eg. SparqlFragment::and for AND; SparqlFragment::or for OR)
      Returns:
      the new SparqlFragment that handles sh:and or sh:or for the shapes provided