Class LazyValidationReport
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.results.ValidationReport
-
- org.eclipse.rdf4j.sail.shacl.results.lazy.LazyValidationReport
-
@InternalUseOnly public class LazyValidationReport extends ValidationReport
A ValidationReport that will defer calculating any ValidationResults until the user asks for them
-
-
Field Summary
-
Fields inherited from class org.eclipse.rdf4j.sail.shacl.results.ValidationReport
conforms, id, truncated, validationResult
-
-
Constructor Summary
Constructors Constructor Description LazyValidationReport(List<ValidationResultIterator> validationResultIterators, long limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Model
asModel()
Model
asModel(Model model)
boolean
conforms()
List<ValidationResult>
getValidationResult()
boolean
isTruncated()
Users can enable a limit for the number of validation results they want to accept.String
toString()
-
Methods inherited from class org.eclipse.rdf4j.sail.shacl.results.ValidationReport
addValidationResult, getId
-
-
-
-
Constructor Detail
-
LazyValidationReport
public LazyValidationReport(List<ValidationResultIterator> validationResultIterators, long limit)
-
-
Method Detail
-
asModel
public Model asModel(Model model)
- Overrides:
asModel
in classValidationReport
-
asModel
public Model asModel()
- Overrides:
asModel
in classValidationReport
-
conforms
public boolean conforms()
- Overrides:
conforms
in classValidationReport
- Returns:
- false if the changes violated a SHACL Shape
-
getValidationResult
public List<ValidationResult> getValidationResult()
- Overrides:
getValidationResult
in classValidationReport
- Returns:
- list of ValidationResult with more information about each violation
-
toString
public String toString()
- Overrides:
toString
in classValidationReport
-
isTruncated
public boolean isTruncated()
Description copied from class:ValidationReport
Users can enable a limit for the number of validation results they want to accept. If the limit is reached the report will be marked as truncated.- Overrides:
isTruncated
in classValidationReport
- Returns:
- true if this SHACL validation report has been truncated.
-
-