Interface ConstraintExecutor

All Known Implementing Classes:
AbstractNativeConstraintExecutor, AbstractSPARQLExecutor, DatatypeConstraintExecutor, ExpressionConstraintExecutor, SPARQLComponentExecutor, SPARQLConstraintExecutor

public interface ConstraintExecutor
Interface 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

    Modifier and Type
    Method
    Description
    void
    executeConstraint(Constraint constraint, ValidationEngine engine, Collection<org.apache.jena.rdf.model.RDFNode> focusNodes)
    Validates a collection of focus nodes against a constraint.
  • Method Details

    • 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 ValidationEngine
      focusNodes - the collection of focus nodes - should not contain duplicates