Class Shape
java.lang.Object
org.eclipse.rdf4j.sail.shacl.ast.Shape
- All Implemented Interfaces:
ConstraintComponent, Exportable, Identifiable, TargetChainInterface
- Direct Known Subclasses:
NodeShape, PropertyShape
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface ConstraintComponent
ConstraintComponent.Scope -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildSparqlValidNodes_rsx_targetShape(StatementMatcher.Variable<Value> subject, StatementMatcher.Variable<Value> object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) For rsx:targetShapebooleangeneratePlans(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings) Resource[]getId()Should return the fastest validation approach for bulk validation.inthashCode()booleanvoidpopulate(ShaclProperties properties, ShapeSource shapeSource, Shape.ParseSettings parseSettings, Cache cache) booleanrequiresEvaluation(ConnectionsGroup connectionsGroup, ConstraintComponent.Scope scope, Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) voidsetTargetChain(TargetChain targetChain) protected abstract ShapevoidtoString()Methods inherited from interface ConstraintComponent
deepClone, generateSparqlValidationQuery, generateTransactionalValidationPlan, getAllTargetsPlan, getPreferredValidationApproach
-
Field Details
-
produceValidationReports
protected boolean produceValidationReports
-
-
Constructor Details
-
Shape
public Shape() -
Shape
-
-
Method Details
-
populate
public void populate(ShaclProperties properties, ShapeSource shapeSource, Shape.ParseSettings parseSettings, Cache cache) -
getId
- Specified by:
getIdin interfaceIdentifiable
-
getContexts
-
shallowClone
-
toModel
-
toModel
-
getTargetChain
- Specified by:
getTargetChainin interfaceTargetChainInterface
-
setTargetChain
- Specified by:
setTargetChainin interfaceTargetChainInterface
-
generatePlans
public PlanNode generatePlans(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings) -
getConstraintComponent
- Specified by:
getConstraintComponentin interfaceConstraintComponent
-
getSeverity
-
isDeactivated
public boolean isDeactivated() -
requiresEvaluation
public boolean requiresEvaluation(ConnectionsGroup connectionsGroup, ConstraintComponent.Scope scope, Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) - Specified by:
requiresEvaluationin interfaceConstraintComponent- Parameters:
connectionsGroup-scope-dataGraph-stableRandomVariableProvider-- Returns:
- true if the constraint component should be evaluated, eg. if validation is needed.
-
buildSparqlValidNodes_rsx_targetShape
public SparqlFragment buildSparqlValidNodes_rsx_targetShape(StatementMatcher.Variable<Value> subject, StatementMatcher.Variable<Value> object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) For rsx:targetShape- Specified by:
buildSparqlValidNodes_rsx_targetShapein interfaceConstraintComponent
-
getOptimalBulkValidationApproach
Description copied from interface:ConstraintComponentShould return the fastest validation approach for bulk validation. When aggregating multiple constraint components the most compatible should be chosen.- Specified by:
getOptimalBulkValidationApproachin interfaceConstraintComponent
-
getMessage
-
getDefaultMessage
- Specified by:
getDefaultMessagein interfaceConstraintComponent
-
equals
-
hashCode
-
toString
-