Package org.eclipse.rdf4j.sail.shacl.ast
Class ValidationQuery
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.ast.ValidationQuery
-
- Direct Known Subclasses:
ValidationQuery.Deactivated
public class ValidationQuery extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidationQuery.Deactivated
-
Constructor Summary
Constructors Constructor Description ValidationQuery(Collection<org.eclipse.rdf4j.model.Namespace> namespaces, String query, List<StatementMatcher.Variable<org.eclipse.rdf4j.model.Value>> targets, StatementMatcher.Variable<org.eclipse.rdf4j.model.Value> value, ConstraintComponent.Scope scope, ConstraintComponent constraintComponent, Severity severity, Shape shape)ValidationQuery(Set<org.eclipse.rdf4j.model.Namespace> namespaces, String query, ConstraintComponent.Scope scope, List<StatementMatcher.Variable<org.eclipse.rdf4j.model.Value>> variables, int targetIndex, int valueIndex)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetQuery()PlanNodegetValidationPlan(SailConnection baseConnection, org.eclipse.rdf4j.model.Resource[] dataGraph, org.eclipse.rdf4j.model.Resource[] shapesGraphs)voidmakeCurrentStateValidationReport()voidpopTargetChain()voidshiftToNodeShape()voidshiftToPropertyShape()static ValidationQueryunion(ValidationQuery a, ValidationQuery b, boolean skipValueCheck)Creates the SPARQL UNION of two ValidationQuery objects.ValidationQuerywithConstraintComponent(ConstraintComponent constraintComponent)ValidationQuerywithSeverity(Severity severity)ValidationQuerywithShape(Shape shape)
-
-
-
Constructor Detail
-
ValidationQuery
public ValidationQuery(Collection<org.eclipse.rdf4j.model.Namespace> namespaces, String query, List<StatementMatcher.Variable<org.eclipse.rdf4j.model.Value>> targets, StatementMatcher.Variable<org.eclipse.rdf4j.model.Value> value, ConstraintComponent.Scope scope, ConstraintComponent constraintComponent, Severity severity, Shape shape)
-
ValidationQuery
public ValidationQuery(Set<org.eclipse.rdf4j.model.Namespace> namespaces, String query, ConstraintComponent.Scope scope, List<StatementMatcher.Variable<org.eclipse.rdf4j.model.Value>> variables, int targetIndex, int valueIndex)
-
-
Method Detail
-
union
public static ValidationQuery union(ValidationQuery a, ValidationQuery b, boolean skipValueCheck)
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
public String getQuery()
-
getValidationPlan
public PlanNode getValidationPlan(SailConnection baseConnection, org.eclipse.rdf4j.model.Resource[] dataGraph, org.eclipse.rdf4j.model.Resource[] shapesGraphs)
-
withSeverity
public ValidationQuery withSeverity(Severity severity)
-
withShape
public ValidationQuery withShape(Shape shape)
-
popTargetChain
public void popTargetChain()
-
shiftToNodeShape
public void shiftToNodeShape()
-
shiftToPropertyShape
public void shiftToPropertyShape()
-
withConstraintComponent
public ValidationQuery withConstraintComponent(ConstraintComponent constraintComponent)
-
makeCurrentStateValidationReport
public void makeCurrentStateValidationReport()
-
-