Package org.topbraid.shacl.validation
Interface ConstraintExecutor
-
- All Known Implementing Classes:
AbstractNativeConstraintExecutor,AbstractSPARQLExecutor,DatatypeConstraintExecutor,ExpressionConstraintExecutor,SPARQLComponentExecutor,SPARQLConstraintExecutor
public interface ConstraintExecutorInterface for objects that can execute a given constraint. Implementations of this include those using SPARQL or JavaScript constraint components but also natively implemented handlers for sh:property, sh:class and the other SHACL core constraint types.- Author:
- Holger Knublauch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecuteConstraint(Constraint constraint, ValidationEngine engine, Collection<org.apache.jena.rdf.model.RDFNode> focusNodes)Validates a collection of focus nodes against a constraint.
-
-
-
Method Detail
-
executeConstraint
void executeConstraint(Constraint constraint, ValidationEngine engine, Collection<org.apache.jena.rdf.model.RDFNode> focusNodes)
Validates a collection of focus nodes against a constraint. Implementations are typically calling engine.createValidationResult() to record results such as violations.- Parameters:
constraint- the Constraint (instance) to validate (e.g. a specific sh:datatype constraint)engine- the ValidationEnginefocusNodes- the collection of focus nodes - should not contain duplicates
-
-