It's common to create a validator with a schema and test many instances against it, e.g. an ingestion validator for a web service.
- interface ShExProcessor {
- Promise validate((USVString or RDFGraph) schema,
- (USVString or RDFGraph) graph,
- ShapeMap shapeMap,
- optional ShExOptions? options);
- };
+ interface ShExProcessor {
+ Validator validate((USVString or RDFGraph) schema,
+ optional ValidatorOptions? options);
+ };
+ interface Validator {
+ Promise validate((USVString or RDFGraph) graph,
+ ShapeMap shapeMap,
+ optional ValidationOptions? options);
+ };
It's common to create a validator with a schema and test many instances against it, e.g. an ingestion validator for a web service.