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, 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
constraintComponents, contexts, deactivated, message, produceValidationReports, severity, target, targetChain
-
-
Method Summary
-
Methods inherited from class org.eclipse.rdf4j.sail.shacl.ast.Shape
equals, generatePlans, getConstraintComponents, getContexts, getDefaultMessage, getId, getMessage, getOptimalBulkValidationApproach, getSeverity, getTargetChain, hashCode, 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, Shape.ParseSettings parseSettings, Cache cache)
-
populate
public void populate(ShaclProperties properties, ShapeSource connection, Shape.ParseSettings parseSettings, Cache cache)
-
shallowClone
protected NodeShape 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
-
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: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.
-
getConstraintComponent
public SourceConstraintComponent getConstraintComponent()
- Specified by:
getConstraintComponent
in interfaceConstraintComponent
- Overrides:
getConstraintComponent
in classShape
-
getAllTargetsPlan
public PlanNode getAllTargetsPlan(ConnectionsGroup connectionsGroup, Resource[] dataGraph, ConstraintComponent.Scope scope, StatementMatcher.StableRandomVariableProvider stableRandomVariableProvider)
-
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
-
-