Package org.eclipse.rdf4j.sail.shacl.ast
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 org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.ConstraintComponent
ConstraintComponent.Scope
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) List
<ConstraintComponent> (package private) Resource[]
(package private) boolean
private Resource
private static final org.slf4j.Logger
protected boolean
(package private) Severity
(package private) TargetChain
-
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:targetShapeboolean
generatePlans
(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings) (package private) List
<ConstraintComponent> getConstraintComponents
(ShaclProperties properties, ShapeSource shapeSource, Shape.ParseSettings parseSettings, Cache cache) Resource[]
getId()
Should return the fastest validation approach for bulk validation.int
hashCode()
boolean
void
populate
(ShaclProperties properties, ShapeSource shapeSource, Shape.ParseSettings parseSettings, Cache cache) boolean
requiresEvaluation
(ConnectionsGroup connectionsGroup, ConstraintComponent.Scope scope, Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) void
setTargetChain
(TargetChain targetChain) protected abstract Shape
void
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.ConstraintComponent
deepClone, generateSparqlValidationQuery, generateTransactionalValidationPlan, getAllTargetsPlan, getPreferredValidationApproach
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
produceValidationReports
protected boolean produceValidationReports -
id
-
targetChain
TargetChain targetChain -
target
-
deactivated
boolean deactivated -
message
-
severity
Severity severity -
constraintComponents
List<ConstraintComponent> constraintComponents -
contexts
Resource[] contexts
-
-
Constructor Details
-
Shape
public Shape() -
Shape
-
-
Method Details
-
populate
public void populate(ShaclProperties properties, ShapeSource shapeSource, Shape.ParseSettings parseSettings, Cache cache) -
getId
- Specified by:
getId
in interfaceIdentifiable
-
getContexts
-
shallowClone
-
toModel
- Parameters:
model
- the model to export the shapes into- Returns:
- the provided model
-
toModel
- Specified by:
toModel
in interfaceExportable
-
getConstraintComponents
List<ConstraintComponent> getConstraintComponents(ShaclProperties properties, ShapeSource shapeSource, Shape.ParseSettings parseSettings, Cache cache) -
getTargetChain
- Specified by:
getTargetChain
in interfaceTargetChainInterface
-
setTargetChain
- Specified by:
setTargetChain
in interfaceTargetChainInterface
-
generatePlans
public PlanNode generatePlans(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings) -
getConstraintComponent
- Specified by:
getConstraintComponent
in interfaceConstraintComponent
-
getSeverity
-
isDeactivated
public boolean isDeactivated() -
requiresEvaluation
public boolean requiresEvaluation(ConnectionsGroup connectionsGroup, ConstraintComponent.Scope scope, Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) - Specified by:
requiresEvaluation
in 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_targetShape
in interfaceConstraintComponent
-
getOptimalBulkValidationApproach
Description copied from interface:ConstraintComponent
Should return the fastest validation approach for bulk validation. When aggregating multiple constraint components the most compatible should be chosen.- Specified by:
getOptimalBulkValidationApproach
in interfaceConstraintComponent
-
getMessage
-
getDefaultMessage
- Specified by:
getDefaultMessage
in interfaceConstraintComponent
-
equals
-
hashCode
public int hashCode() -
toString
-