Package org.topbraid.shacl.validation
Class ValidationEngineConfiguration
java.lang.Object
org.topbraid.shacl.validation.ValidationEngineConfiguration
Configures the behavior of the validation engine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSkippedConstraintComponent(org.apache.jena.rdf.model.Resource component) clone()Creates a clone of this, with exactly the same values.booleanChecks whether the report shall include sh:detail triples (for sh:node etc).booleanShould the engine validates shapesintMaximum number of validations before returning the report.booleanisSkippedConstraintComponent(org.apache.jena.rdf.model.Resource component) Checks whether the engine should skip constraints of a given constraint component.setReportDetails(boolean reportDetails) Specifies whether the report shall include sh:detail triples where supported.setValidateShapes(boolean validateShapes) Sets an option for the engine to validate shapessetValidationErrorBatch(int validationErrorBatch) Set the maximum number of validations before returning the report.
-
Constructor Details
-
ValidationEngineConfiguration
public ValidationEngineConfiguration()
-
-
Method Details
-
clone
Creates a clone of this, with exactly the same values. -
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
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
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
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)
-