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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.ConstraintComponent
ConstraintComponent.Scope
-
-
Field Summary
-
Fields inherited from class org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.AbstractConstraintComponent
VALUES_INJECTION_POINT
-
-
Constructor Summary
Constructors Constructor Description LogicalOperatorConstraintComponent(Resource id)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static SparqlFragment
buildSparqlValidNodes_rsx_targetShape_inner(StatementMatcher.Variable subject, StatementMatcher.Variable object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider, java.util.List<Shape> shapes, TargetChain targetChain, java.util.function.Function<java.util.List<SparqlFragment>,SparqlFragment> bgpCombiner, java.util.function.Function<java.util.List<SparqlFragment>,SparqlFragment> filterCombiner)
-
Methods inherited from class org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.AbstractConstraintComponent
buildSparqlValidNodes_rsx_targetShape, generateSparqlValidationQuery, generateTransactionalValidationPlan, getAllTargetsPlan, getId, getOptimalBulkValidationApproach, getPreferredValidationApproach, getTargetChain, requiresEvaluation, setTargetChain, stringRepresentationOfValue, trim
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.ConstraintComponent
deepClone, getConstraintComponent, getDefaultMessage
-
Methods inherited from interface org.eclipse.rdf4j.sail.shacl.ast.Exportable
toModel
-
-
-
-
Constructor Detail
-
LogicalOperatorConstraintComponent
public LogicalOperatorConstraintComponent(Resource id)
-
-
Method Detail
-
buildSparqlValidNodes_rsx_targetShape_inner
static SparqlFragment buildSparqlValidNodes_rsx_targetShape_inner(StatementMatcher.Variable subject, StatementMatcher.Variable object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider, java.util.List<Shape> shapes, TargetChain targetChain, java.util.function.Function<java.util.List<SparqlFragment>,SparqlFragment> bgpCombiner, java.util.function.Function<java.util.List<SparqlFragment>,SparqlFragment> filterCombiner)
- Parameters:
subject
- the subject from buildSparqlValidNodes_rsx_targetShapeobject
- the object from buildSparqlValidNodes_rsx_targetShaperdfsSubClassOfReasoner
- the rdfsSubClassOfReasoner from buildSparqlValidNodes_rsx_targetShapescope
- the scope from buildSparqlValidNodes_rsx_targetShapestableRandomVariableProvider
-shapes
- the shapes from from the logical constraint (eg. and, or)targetChain
- the current targetChainbgpCombiner
- 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
-
-