shacl 0.2.18

A SHACL validator for RDF data, implemented in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use rudof_rdf::rdf_core::Rdf;
use shacl::ast::ASTSchema;
use shacl::validator::report::ValidationReport;

pub(crate) struct TestInstance<RDF: Rdf> {
    pub data: RDF,
    pub shapes: ASTSchema,
    pub report: ValidationReport,
}

impl<RDF: Rdf> TestInstance<RDF> {
    pub fn new(data: RDF, shapes: ASTSchema, report: ValidationReport) -> Self {
        Self { data, shapes, report }
    }
}