Package org.eclipse.rdf4j.sail.shacl.ast
Class PropertyShape
java.lang.Object
org.eclipse.rdf4j.sail.shacl.ast.Shape
org.eclipse.rdf4j.sail.shacl.ast.PropertyShape
- All Implemented Interfaces:
ConstraintComponent
,Exportable
,Identifiable
,TargetChainInterface
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.rdf4j.sail.shacl.ast.Shape
Shape.Factory, Shape.ParseSettings
Nested classes/interfaces inherited from interface org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.ConstraintComponent
ConstraintComponent.Scope
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Object
(package private) Object
private static final org.slf4j.Logger
(package private) Path
Fields inherited from class org.eclipse.rdf4j.sail.shacl.ast.Shape
constraintComponents, contexts, deactivated, message, produceValidationReports, severity, target, 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
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) static PropertyShape
getInstance
(ShaclProperties properties, ShapeSource shapeSource, Shape.ParseSettings parseSettings, Cache cache) getPath()
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.int
hashCode()
void
populate
(ShaclProperties properties, ShapeSource connection, Shape.ParseSettings parseSettings, Cache cache) boolean
requiresEvaluation
(ConnectionsGroup connectionsGroup, ConstraintComponent.Scope scope, Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) void
setTargetChain
(TargetChain targetChain) protected Shape
void
Methods inherited from class org.eclipse.rdf4j.sail.shacl.ast.Shape
generatePlans, getConstraintComponents, getContexts, getDefaultMessage, getId, getMessage, getOptimalBulkValidationApproach, getSeverity, getTargetChain, isDeactivated, toModel, toString
-
Field Details
-
Constructor Details
-
PropertyShape
public PropertyShape() -
PropertyShape
-
-
Method Details
-
getInstance
public static PropertyShape getInstance(ShaclProperties properties, ShapeSource shapeSource, Shape.ParseSettings parseSettings, Cache cache) -
populate
public void populate(ShaclProperties properties, ShapeSource connection, Shape.ParseSettings parseSettings, Cache cache) -
shallowClone
- Specified by:
shallowClone
in classShape
-
toModel
- Specified by:
toModel
in interfaceExportable
- Overrides:
toModel
in classShape
-
setTargetChain
- Specified by:
setTargetChain
in interfaceTargetChainInterface
- Overrides:
setTargetChain
in classShape
-
generateSparqlValidationQuery
public ValidationQuery generateSparqlValidationQuery(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, boolean negatePlan, boolean negateChildren, ConstraintComponent.Scope scope) -
generateTransactionalValidationPlan
public PlanNode generateTransactionalValidationPlan(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, PlanNodeProvider overrideTargetNode, ConstraintComponent.Scope scope) -
getAllTargetsPlan
public PlanNode getAllTargetsPlan(ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) -
getPreferredValidationApproach
Description copied from interface:ConstraintComponent
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. -
getPath
-
requiresEvaluation
public boolean requiresEvaluation(ConnectionsGroup connectionsGroup, ConstraintComponent.Scope scope, Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) - Specified by:
requiresEvaluation
in interfaceConstraintComponent
- Overrides:
requiresEvaluation
in classShape
- Parameters:
connectionsGroup
-scope
-dataGraph
-stableRandomVariableProvider
-- Returns:
- true if the constraint component should be evaluated, eg. if validation is needed.
-
deepClone
-
buildSparqlValidNodes_rsx_targetShape
public SparqlFragment buildSparqlValidNodes_rsx_targetShape(StatementMatcher.Variable<Value> subject, StatementMatcher.Variable<Value> object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider) Description copied from class:Shape
For rsx:targetShape- Specified by:
buildSparqlValidNodes_rsx_targetShape
in interfaceConstraintComponent
- Overrides:
buildSparqlValidNodes_rsx_targetShape
in classShape
-
getConstraintComponent
- Specified by:
getConstraintComponent
in interfaceConstraintComponent
- Overrides:
getConstraintComponent
in classShape
-
equals
-
hashCode
public int hashCode()
-