Class ValidationQuery
java.lang.Object
org.eclipse.rdf4j.sail.shacl.ast.ValidationQuery
- Direct Known Subclasses:
ValidationQuery.Deactivated
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
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()getShape()getValidationPlan(SailConnection baseConnection, Resource[] dataGraph, Resource[] shapesGraphs) voidvoidvoidsetValidationResultGenerator(List<StatementMatcher.Variable<?>> extraVariables, ValidationQuery.ValidationResultGenerator validationResultGenerator) voidvoidstatic 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) -
setValidationResultGenerator
public void setValidationResultGenerator(List<StatementMatcher.Variable<?>> extraVariables, ValidationQuery.ValidationResultGenerator validationResultGenerator) -
withSeverity
-
withShape
-
popTargetChain
public void popTargetChain() -
shiftToNodeShape
public void shiftToNodeShape() -
shiftToPropertyShape
public void shiftToPropertyShape() -
withConstraintComponent
-
makeCurrentStateValidationReport
public void makeCurrentStateValidationReport() -
getShape
-
getSeverity
-
getConstraintComponent_validationReport
-