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
public class PropertyShape extends Shape
-
-
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
Fields Modifier and Type Field Description (package private) java.lang.Object
defaultValue
(package private) java.util.List<java.lang.String>
description
(package private) java.lang.Object
group
private static org.slf4j.Logger
logger
(package private) java.util.List<java.lang.String>
name
(package private) Path
path
-
Fields inherited from class org.eclipse.rdf4j.sail.shacl.ast.Shape
constraintComponents, contexts, deactivated, message, produceValidationReports, severity, target, targetChain
-
-
Constructor Summary
Constructors Constructor Description PropertyShape()
PropertyShape(PropertyShape propertyShape)
-
Method Summary
-
Methods inherited from class org.eclipse.rdf4j.sail.shacl.ast.Shape
generatePlans, getConstraintComponents, getContexts, getDefaultMessage, getId, getMessage, getOptimalBulkValidationApproach, getSeverity, getTargetChain, isDeactivated, toModel, toString
-
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
name
java.util.List<java.lang.String> name
-
description
java.util.List<java.lang.String> description
-
defaultValue
java.lang.Object defaultValue
-
group
java.lang.Object group
-
path
Path path
-
-
Constructor Detail
-
PropertyShape
public PropertyShape()
-
PropertyShape
public PropertyShape(PropertyShape propertyShape)
-
-
Method Detail
-
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
protected Shape shallowClone()
- Specified by:
shallowClone
in classShape
-
toModel
public void toModel(Resource subject, IRI predicate, Model model, java.util.Set<Resource> cycleDetection)
- Specified by:
toModel
in interfaceExportable
- Overrides:
toModel
in classShape
-
setTargetChain
public void setTargetChain(TargetChain targetChain)
- 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
public ValidationApproach getPreferredValidationApproach(ConnectionsGroup connectionsGroup)
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
public Path getPath()
-
requiresEvaluation
public boolean requiresEvaluation(ConnectionsGroup connectionsGroup, ConstraintComponent.Scope scope, Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)
- Specified by:
requiresEvaluation
in interfaceConstraintComponent
- Overrides:
requiresEvaluation
in classShape
- Returns:
- true if the constraint component should be evaluated, eg. if validation is needed.
-
deepClone
public ConstraintComponent 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
public SourceConstraintComponent getConstraintComponent()
- Specified by:
getConstraintComponent
in interfaceConstraintComponent
- Overrides:
getConstraintComponent
in classShape
-
-