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.LongqualifiedMaxCount(package private) ShapequalifiedValueShape(package private) booleanqualifiedValueShapesDisjoint-
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:
setTargetChainin interfaceTargetChainInterface- Overrides:
setTargetChainin classAbstractConstraintComponent
-
getConstraintComponent
public SourceConstraintComponent getConstraintComponent()
-
generateSparqlValidationQuery
public ValidationQuery generateSparqlValidationQuery(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, boolean negatePlan, boolean negateChildren, ConstraintComponent.Scope scope)
- Specified by:
generateSparqlValidationQueryin interfaceConstraintComponent- Overrides:
generateSparqlValidationQueryin classAbstractConstraintComponent
-
generateTransactionalValidationPlan
public PlanNode generateTransactionalValidationPlan(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, PlanNodeProvider overrideTargetNode, ConstraintComponent.Scope scope)
- Specified by:
generateTransactionalValidationPlanin interfaceConstraintComponent- Overrides:
generateTransactionalValidationPlanin 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:
getAllTargetsPlanin interfaceConstraintComponent- Overrides:
getAllTargetsPlanin classAbstractConstraintComponent
-
deepClone
public ConstraintComponent deepClone()
-
requiresEvaluation
public boolean requiresEvaluation(ConnectionsGroup connectionsGroup, ConstraintComponent.Scope scope, Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)
- Specified by:
requiresEvaluationin interfaceConstraintComponent- Overrides:
requiresEvaluationin 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-