Class ValidationEngineConfiguration

java.lang.Object
org.topbraid.shacl.validation.ValidationEngineConfiguration

public class ValidationEngineConfiguration extends Object
Configures the behavior of the validation engine.
  • Constructor Details

    • ValidationEngineConfiguration

      public ValidationEngineConfiguration()
  • Method Details

    • clone

      Creates a clone of this, with exactly the same values.
      Overrides:
      clone in class Object
    • getReportDetails

      public boolean getReportDetails()
      Checks whether the report shall include sh:detail triples (for sh:node etc).
      Returns:
      true to report details (false is default)
    • setReportDetails

      public ValidationEngineConfiguration setReportDetails(boolean reportDetails)
      Specifies whether the report shall include sh:detail triples where supported.
      Parameters:
      reportDetails - true to produce sh:details, false for the default
      Returns:
      current configuration after modification
    • getValidationErrorBatch

      public int getValidationErrorBatch()
      Maximum number of validations before returning the report.
      Returns:
      number of validations or -1 to mean all validations
    • setValidationErrorBatch

      public ValidationEngineConfiguration setValidationErrorBatch(int validationErrorBatch)
      Set the maximum number of validations before returning the report.
      Parameters:
      validationErrorBatch - maximum number of validations or -1 for all validations
      Returns:
      current configuration after modification
    • getValidateShapes

      public boolean getValidateShapes()
      Should the engine validates shapes
      Returns:
      boolean flag for shapes validation
    • setValidateShapes

      public ValidationEngineConfiguration setValidateShapes(boolean validateShapes)
      Sets an option for the engine to validate shapes
      Parameters:
      validateShapes - boolean flat indicating if shapes must be validated
      Returns:
      current configuration after modification
    • isSkippedConstraintComponent

      public boolean isSkippedConstraintComponent(org.apache.jena.rdf.model.Resource component)
      Checks whether the engine should skip constraints of a given constraint component.
      Parameters:
      component - the constraint component
      Returns:
      true if component shall be skipped
    • addSkippedConstraintComponent

      public void addSkippedConstraintComponent(org.apache.jena.rdf.model.Resource component)