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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ConstraintComponent
private ConstraintComponent
private boolean
private boolean
private String
private ConstraintComponent.Scope
private ConstraintComponent.Scope
private Severity
private Shape
private int
private int
private int
private int
private final List
<StatementMatcher.Variable<Value>> -
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 TypeMethodDescriptionprivate String
getQuery()
private String
getTargetVariable
(boolean forValidationReport) getValidationPlan
(SailConnection baseConnection, Resource[] dataGraph, Resource[] shapesGraphs) private String
getValueVariable
(boolean forValidationReport) void
void
void
void
static ValidationQuery
union
(ValidationQuery a, ValidationQuery b, boolean skipValueCheck) Creates the SPARQL UNION of two ValidationQuery objects.withConstraintComponent
(ConstraintComponent constraintComponent) withSeverity
(Severity severity)
-
Field Details
-
namespaces
-
query
-
scope
-
scope_validationReport
-
variables
-
targetIndex
private int targetIndex -
valueIndex
private int valueIndex -
propertyShapeWithValue
private boolean propertyShapeWithValue -
propertyShapeWithValue_validationReport
private boolean propertyShapeWithValue_validationReport -
targetIndex_validationReport
private int targetIndex_validationReport -
valueIndex_validationReport
private int valueIndex_validationReport -
constraintComponent
-
constraintComponent_validationReport
-
severity
-
shape
-
-
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) -
getFullQueryString
-
getValueVariable
-
getTargetVariable
-
withSeverity
-
withShape
-
popTargetChain
public void popTargetChain() -
shiftToNodeShape
public void shiftToNodeShape() -
shiftToPropertyShape
public void shiftToPropertyShape() -
withConstraintComponent
-
makeCurrentStateValidationReport
public void makeCurrentStateValidationReport()
-