Package org.topbraid.shacl.validation
Class ValidationEngineConfiguration
- java.lang.Object
-
- org.topbraid.shacl.validation.ValidationEngineConfiguration
-
public class ValidationEngineConfiguration extends Object
Configures the behavior of the validation engine.
-
-
Constructor Summary
Constructors Constructor Description ValidationEngineConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSkippedConstraintComponent(org.apache.jena.rdf.model.Resource component)ValidationEngineConfigurationclone()Creates a clone of this, with exactly the same values.booleangetReportDetails()Checks whether the report shall include sh:detail triples (for sh:node etc).booleangetValidateShapes()Should the engine validates shapesintgetValidationErrorBatch()Maximum 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.ValidationEngineConfigurationsetReportDetails(boolean reportDetails)Specifies whether the report shall include sh:detail triples where supported.ValidationEngineConfigurationsetValidateShapes(boolean validateShapes)Sets an option for the engine to validate shapesValidationEngineConfigurationsetValidationErrorBatch(int validationErrorBatch)Set the maximum number of validations before returning the report.
-
-
-
Method Detail
-
clone
public ValidationEngineConfiguration 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
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)
-
-