Class QualifiedMaxCountConstraintComponent
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.AbstractConstraintComponent
-
- org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.QualifiedMaxCountConstraintComponent
-
- All Implemented Interfaces:
ConstraintComponent
,Exportable
,TargetChainInterface
public class QualifiedMaxCountConstraintComponent extends AbstractConstraintComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.ConstraintComponent
ConstraintComponent.Scope
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Long
qualifiedMaxCount
(package private) Shape
qualifiedValueShape
(package private) boolean
qualifiedValueShapesDisjoint
-
Fields inherited from class org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.AbstractConstraintComponent
VALUES_INJECTION_POINT
-
-
Constructor Summary
Constructors Constructor Description QualifiedMaxCountConstraintComponent(Resource id, ShapeSource shapeSource, Shape.ParseSettings parseSettings, Cache cache, java.lang.Boolean qualifiedValueShapesDisjoint, java.lang.Long qualifiedMaxCount)
QualifiedMaxCountConstraintComponent(QualifiedMaxCountConstraintComponent constraintComponent)
-
Method Summary
-
Methods inherited from class org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.AbstractConstraintComponent
buildSparqlValidNodes_rsx_targetShape, getId, getOptimalBulkValidationApproach, getPreferredValidationApproach, getTargetChain, stringRepresentationOfValue, trim
-
-
-
-
Field Detail
-
qualifiedValueShape
Shape qualifiedValueShape
-
qualifiedValueShapesDisjoint
boolean qualifiedValueShapesDisjoint
-
qualifiedMaxCount
java.lang.Long qualifiedMaxCount
-
-
Constructor Detail
-
QualifiedMaxCountConstraintComponent
public QualifiedMaxCountConstraintComponent(Resource id, ShapeSource shapeSource, Shape.ParseSettings parseSettings, Cache cache, java.lang.Boolean qualifiedValueShapesDisjoint, java.lang.Long qualifiedMaxCount)
-
QualifiedMaxCountConstraintComponent
public QualifiedMaxCountConstraintComponent(QualifiedMaxCountConstraintComponent constraintComponent)
-
-
Method Detail
-
toModel
public void toModel(Resource subject, IRI predicate, Model model, java.util.Set<Resource> cycleDetection)
-
setTargetChain
public void setTargetChain(TargetChain targetChain)
- Specified by:
setTargetChain
in interfaceTargetChainInterface
- Overrides:
setTargetChain
in classAbstractConstraintComponent
-
getConstraintComponent
public SourceConstraintComponent getConstraintComponent()
-
generateSparqlValidationQuery
public ValidationQuery generateSparqlValidationQuery(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, boolean negatePlan, boolean negateChildren, ConstraintComponent.Scope scope)
- Specified by:
generateSparqlValidationQuery
in interfaceConstraintComponent
- Overrides:
generateSparqlValidationQuery
in classAbstractConstraintComponent
-
generateTransactionalValidationPlan
public PlanNode generateTransactionalValidationPlan(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, PlanNodeProvider overrideTargetNode, ConstraintComponent.Scope scope)
- Specified by:
generateTransactionalValidationPlan
in interfaceConstraintComponent
- Overrides:
generateTransactionalValidationPlan
in classAbstractConstraintComponent
-
negated
public PlanNode negated(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, PlanNodeProvider overrideTargetNode, ConstraintComponent.Scope scope)
-
getAllTargetsPlan
public PlanNode getAllTargetsPlan(ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)
- Specified by:
getAllTargetsPlan
in interfaceConstraintComponent
- Overrides:
getAllTargetsPlan
in classAbstractConstraintComponent
-
deepClone
public ConstraintComponent deepClone()
-
requiresEvaluation
public boolean requiresEvaluation(ConnectionsGroup connectionsGroup, ConstraintComponent.Scope scope, Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)
- Specified by:
requiresEvaluation
in interfaceConstraintComponent
- Overrides:
requiresEvaluation
in classAbstractConstraintComponent
- Returns:
- true if the constraint component should be evaluated, eg. if validation is needed.
-
getDefaultMessage
public java.util.List<Literal> getDefaultMessage()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-