shacl_validation::shacl_processor

Trait ShaclProcessor

Source
pub trait ShaclProcessor<S: SRDFBasic + Debug> {
    // Required methods
    fn store(&self) -> &S;
    fn runner(&self) -> &dyn Engine<S>;

    // Provided method
    fn validate(
        &self,
        shapes_graph: &CompiledSchema<S>,
    ) -> Result<ValidationReport, ValidateError> { ... }
}
Expand description

The basic operations of the SHACL Processor.

The ShaclProcessor trait is the one in charge of applying the SHACL Validation algorithm. For this, first, the validation report is initiliazed to empty, and, for each shape in the schema, the target nodes are selected, and then, each validator for each constraint is applied.

Required Methods§

Source

fn store(&self) -> &S

Source

fn runner(&self) -> &dyn Engine<S>

Provided Methods§

Source

fn validate( &self, shapes_graph: &CompiledSchema<S>, ) -> Result<ValidationReport, ValidateError>

Executes the Validation of the provided Graph, in any of the supported formats, against the shapes graph passed as an argument. As a result, the Validation Report generated from the validation process is returned.

§Arguments
  • shapes_graph - A compiled SHACL shapes graph

Implementors§