org.ragna.comet.validation
Type members
Classlikes
Validator object capable of extracting data from a Stream and produce a stream of ValidationResults
Validator object capable of extracting data from a Stream and produce a stream of ValidationResults
The whole validation pipeline is done through FS2 streams, and flows as follows:
-
A => RDF data: a Stream of data is received as instances of A that are parsed for RDF data (this functionality is delegated to StreamExtractors)
-
RDF data => Validation Report => The parsed data is validated and the ValidationReports included on a new Stream
-
Validation Report => Validation Result: The validated data is formatted and wrapped into instances of ValidationResult
- Type parameters:
- A
Type of the items being received via Stream and thus feeding the validator
- Value parameters:
- configuration
Configuration of this validator instance
- extractor
Extractor providing access to the incoming RDF items
- Throws:
- StreamValidationException
When invalid or erroring items are found and the stream is configured to stop in such cases
- Companion:
- object
- Source:
- Validator.scala
Helper utilities for all Validators
Helper utilities for all Validators
- Companion:
- class
- Source:
- Validator.scala