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 inherited from class org.eclipse.rdf4j.sail.shacl.ast.Shape
produceValidationReports
-
-
Constructor Summary
Constructors Constructor Description PropertyShape()PropertyShape(PropertyShape propertyShape)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SparqlFragmentbuildSparqlValidNodes_rsx_targetShape(StatementMatcher.Variable<org.eclipse.rdf4j.model.Value> subject, StatementMatcher.Variable<org.eclipse.rdf4j.model.Value> object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)For rsx:targetShapeConstraintComponentdeepClone()booleanequals(Object o)ValidationQuerygenerateSparqlValidationQuery(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, boolean negatePlan, boolean negateChildren, ConstraintComponent.Scope scope)PlanNodegenerateTransactionalValidationPlan(ConnectionsGroup connectionsGroup, ValidationSettings validationSettings, PlanNodeProvider overrideTargetNode, ConstraintComponent.Scope scope)PlanNodegetAllTargetsPlan(ConnectionsGroup connectionsGroup, org.eclipse.rdf4j.model.Resource[] dataGraph, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider, ValidationSettings validationSettings)SourceConstraintComponentgetConstraintComponent()static PropertyShapegetInstance(ShaclProperties properties, ShapeSource shapeSource, Shape.ParseSettings parseSettings, Cache cache)PathgetPath()ValidationApproachgetPreferredValidationApproach(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.inthashCode()voidpopulate(ShaclProperties properties, ShapeSource connection, Shape.ParseSettings parseSettings, Cache cache)booleanrequiresEvaluation(ConnectionsGroup connectionsGroup, ConstraintComponent.Scope scope, org.eclipse.rdf4j.model.Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)voidsetTargetChain(TargetChain targetChain)protected ShapeshallowClone()voidtoModel(org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI predicate, org.eclipse.rdf4j.model.Model model, Set<org.eclipse.rdf4j.model.Resource> cycleDetection)-
Methods inherited from class org.eclipse.rdf4j.sail.shacl.ast.Shape
generatePlans, getContexts, getDefaultMessage, getId, getMessage, getOptimalBulkValidationApproach, getSeverity, getTargetChain, isDeactivated, toModel, toString
-
-
-
-
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:
shallowClonein classShape
-
toModel
public void toModel(org.eclipse.rdf4j.model.Resource subject, org.eclipse.rdf4j.model.IRI predicate, org.eclipse.rdf4j.model.Model model, Set<org.eclipse.rdf4j.model.Resource> cycleDetection)- Specified by:
toModelin interfaceExportable- Overrides:
toModelin classShape
-
setTargetChain
public void setTargetChain(TargetChain targetChain)
- Specified by:
setTargetChainin interfaceTargetChainInterface- Overrides:
setTargetChainin 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, org.eclipse.rdf4j.model.Resource[] dataGraph, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider, ValidationSettings validationSettings)
-
getPreferredValidationApproach
public ValidationApproach getPreferredValidationApproach(ConnectionsGroup connectionsGroup)
Description copied from interface:ConstraintComponentA 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, org.eclipse.rdf4j.model.Resource[] dataGraph, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)
- Specified by:
requiresEvaluationin interfaceConstraintComponent- Overrides:
requiresEvaluationin 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<org.eclipse.rdf4j.model.Value> subject, StatementMatcher.Variable<org.eclipse.rdf4j.model.Value> object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)
Description copied from class:ShapeFor rsx:targetShape- Specified by:
buildSparqlValidNodes_rsx_targetShapein interfaceConstraintComponent- Overrides:
buildSparqlValidNodes_rsx_targetShapein classShape
-
getConstraintComponent
public SourceConstraintComponent getConstraintComponent()
- Specified by:
getConstraintComponentin interfaceConstraintComponent- Overrides:
getConstraintComponentin classShape
-
-