Package org.eclipse.rdf4j.sail.shacl.ast
Class NodeShape
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.ast.Shape
-
- org.eclipse.rdf4j.sail.shacl.ast.NodeShape
-
- All Implemented Interfaces:
ConstraintComponent,Exportable,Identifiable,TargetChainInterface
public class NodeShape extends Shape
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.rdf4j.sail.shacl.ast.Shape
Shape.Factory
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SparqlFragmentbuildSparqlValidNodes_rsx_targetShape(StatementMatcher.Variable subject, StatementMatcher.Variable object, RdfsSubClassOfReasoner rdfsSubClassOfReasoner, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)For rsx:targetShapeConstraintComponentdeepClone()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)SourceConstraintComponentgetConstraintComponent()static NodeShapegetInstance(ShaclProperties properties, ShapeSource shapeSource, Cache cache, ShaclSail shaclSail)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.voidpopulate(ShaclProperties properties, ShapeSource connection, Cache cache, ShaclSail shaclSail)protected NodeShapeshallowClone()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, getId, getOptimalBulkValidationApproach, getSeverity, getTargetChain, isDeactivated, requiresEvaluation, setTargetChain, toModel, toString
-
-
-
-
Constructor Detail
-
NodeShape
public NodeShape()
-
NodeShape
public NodeShape(NodeShape nodeShape)
-
-
Method Detail
-
getInstance
public static NodeShape getInstance(ShaclProperties properties, ShapeSource shapeSource, Cache cache, ShaclSail shaclSail)
-
populate
public void populate(ShaclProperties properties, ShapeSource connection, Cache cache, ShaclSail shaclSail)
-
shallowClone
protected NodeShape 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
-
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)
-
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.
-
getConstraintComponent
public SourceConstraintComponent getConstraintComponent()
- Specified by:
getConstraintComponentin interfaceConstraintComponent- Overrides:
getConstraintComponentin classShape
-
getAllTargetsPlan
public PlanNode getAllTargetsPlan(ConnectionsGroup connectionsGroup, org.eclipse.rdf4j.model.Resource[] dataGraph, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)
-
deepClone
public ConstraintComponent deepClone()
-
buildSparqlValidNodes_rsx_targetShape
public SparqlFragment buildSparqlValidNodes_rsx_targetShape(StatementMatcher.Variable subject, StatementMatcher.Variable 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
-
-