Interface ConstraintComponent
- All Superinterfaces:
Exportable
,TargetChainInterface
- All Known Implementing Classes:
AbstractConstraintComponent
,AndConstraintComponent
,ClassConstraintComponent
,ClosedConstraintComponent
,DashHasValueInConstraintComponent
,DatatypeConstraintComponent
,DisjointConstraintComponent
,EqualsConstraintComponent
,HasValueConstraintComponent
,InConstraintComponent
,LanguageInConstraintComponent
,LessThanConstraintComponent
,LessThanOrEqualsConstraintComponent
,LogicalOperatorConstraintComponent
,MaxCountConstraintComponent
,MaxExclusiveConstraintComponent
,MaxInclusiveConstraintComponent
,MaxLengthConstraintComponent
,MinCountConstraintComponent
,MinExclusiveConstraintComponent
,MinInclusiveConstraintComponent
,MinLengthConstraintComponent
,NodeKindConstraintComponent
,NodeShape
,NotConstraintComponent
,OrConstraintComponent
,PatternConstraintComponent
,PropertyShape
,QualifiedMaxCountConstraintComponent
,QualifiedMinCountConstraintComponent
,Shape
,SimpleAbstractConstraintComponent
,SparqlConstraintComponent
,UniqueLangConstraintComponent
,XoneConstraintComponent
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuildSparqlValidNodes_rsx_targetShape
(StatementMatcher.Variable<Value> subject, StatementMatcher.Variable<Value> object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) generateSparqlValidationQuery
(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, boolean negatePlan, boolean negateChildren, ConstraintComponent.Scope scope) generateTransactionalValidationPlan
(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, PlanNodeProvider overrideTargetNode, ConstraintComponent.Scope scope) getAllTargetsPlan
(ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) Should return the fastest validation approach for bulk validation.getPreferredValidationApproach
(ConnectionsGroup connectionsGroup) A constraint component should decide which validation approach is going to be the optimal performance wise based on the state of the transaction and base sail.boolean
requiresEvaluation
(ConnectionsGroup connectionsGroup, ConstraintComponent.Scope scope, Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) Methods inherited from interface org.eclipse.rdf4j.sail.shacl.ast.Exportable
toModel
Methods inherited from interface org.eclipse.rdf4j.sail.shacl.ast.TargetChainInterface
getTargetChain, setTargetChain
-
Method Details
-
generateSparqlValidationQuery
ValidationQuery generateSparqlValidationQuery(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, boolean negatePlan, boolean negateChildren, ConstraintComponent.Scope scope) -
generateTransactionalValidationPlan
PlanNode generateTransactionalValidationPlan(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, PlanNodeProvider overrideTargetNode, ConstraintComponent.Scope scope) -
getPreferredValidationApproach
A constraint component should decide which validation approach is going to be the optimal performance wise based on the state of the transaction and base sail. -
getOptimalBulkValidationApproach
ValidationApproach getOptimalBulkValidationApproach()Should return the fastest validation approach for bulk validation. When aggregating multiple constraint components the most compatible should be chosen. -
requiresEvaluation
boolean requiresEvaluation(ConnectionsGroup connectionsGroup, ConstraintComponent.Scope scope, Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) - Parameters:
connectionsGroup
-scope
-dataGraph
-stableRandomVariableProvider
-- Returns:
- true if the constraint component should be evaluated, eg. if validation is needed.
-
getConstraintComponent
SourceConstraintComponent getConstraintComponent() -
getAllTargetsPlan
PlanNode getAllTargetsPlan(ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) -
buildSparqlValidNodes_rsx_targetShape
SparqlFragment buildSparqlValidNodes_rsx_targetShape(StatementMatcher.Variable<Value> subject, StatementMatcher.Variable<Value> object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) -
deepClone
ConstraintComponent deepClone() -
getDefaultMessage
-