Package org.eclipse.rdf4j.sail.shacl.ast
Class ValidationQuery
java.lang.Object
org.eclipse.rdf4j.sail.shacl.ast.ValidationQuery
- Direct Known Subclasses:
ValidationQuery.Deactivated
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionValidationQuery(Collection<Namespace> namespaces, String query, List<StatementMatcher.Variable<Value>> targets, StatementMatcher.Variable<Value> value, ConstraintComponent.Scope scope, ConstraintComponent constraintComponent, Severity severity, Shape shape) ValidationQuery(Set<Namespace> namespaces, String query, ConstraintComponent.Scope scope, List<StatementMatcher.Variable<Value>> variables, int targetIndex, int valueIndex) -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()getValidationPlan(SailConnection baseConnection, Resource[] dataGraph, Resource[] shapesGraphs) voidvoidvoidvoidstatic ValidationQueryunion(ValidationQuery a, ValidationQuery b, boolean skipValueCheck) Creates the SPARQL UNION of two ValidationQuery objects.withConstraintComponent(ConstraintComponent constraintComponent) withSeverity(Severity severity)
-
Constructor Details
-
ValidationQuery
public ValidationQuery(Collection<Namespace> namespaces, String query, List<StatementMatcher.Variable<Value>> targets, StatementMatcher.Variable<Value> value, ConstraintComponent.Scope scope, ConstraintComponent constraintComponent, Severity severity, Shape shape) -
ValidationQuery
public ValidationQuery(Set<Namespace> namespaces, String query, ConstraintComponent.Scope scope, List<StatementMatcher.Variable<Value>> variables, int targetIndex, int valueIndex)
-
-
Method Details
-
union
Creates the SPARQL UNION of two ValidationQuery objects.- Parameters:
a- The first ValidationQuery.b- The second ValidationQuery.skipValueCheck- Skips checks that the two ValidationQuery object are using the same value. This is useful if the ValidationQuery is guaranteed to not use the current value becauseshiftToNodeShape()orpopTargetChain()will always called on the returned ValidationQuery- Returns:
-
getQuery
-
getValidationPlan
public PlanNode getValidationPlan(SailConnection baseConnection, Resource[] dataGraph, Resource[] shapesGraphs) -
withSeverity
-
withShape
-
popTargetChain
public void popTargetChain() -
shiftToNodeShape
public void shiftToNodeShape() -
shiftToPropertyShape
public void shiftToPropertyShape() -
withConstraintComponent
-
makeCurrentStateValidationReport
public void makeCurrentStateValidationReport()
-