Skip to main content

Crate oxilite_validate

Crate oxilite_validate 

Source
Expand description

SHACL and ShEx validation of oxilite data with rudof.

rudof’s engines run unchanged: StoreGraph implements rudof’s Rdf, NeighsRDF and QueryRDF traits over a blocking Store, so neighbourhood lookups become SQL pattern scans and rudof’s SPARQL runs through the oxilite compiler. For stores that cannot block (Cloudflare D1), prefetch loads the relevant subgraph into rudof’s in-memory graph with a bounded number of requests, then validates it natively. rudof’s validators do not build for wasm32, so D1 validation runs in native code (a CLI, a server, CI) over the D1 HTTP API.

Modules§

prefetch
Bounded prefetch for stores that cannot block (Cloudflare D1).

Structs§

ResultShapeMap
Contains a map of the results obtained after applying ShEx validation
StoreGraph
An oxilite store seen as a rudof graph: its default graph, or every graph merged.
ValidationReport

Enums§

Error
Validation errors (shapes that do not parse, rudof failures, store errors, limits).
ShaclValidationMode
Backend used for the validation.

Functions§

shacl_schema
Parses a SHACL shapes graph (Turtle, N-Triples, RDF/XML…) and compiles it.
shacl_schema_from_store
Compiles the SHACL shapes held in the store itself.
shex_schema
Parses and compiles a ShEx schema (ShExC).
validate_shacl
Validates the default graph of a store (or, with union, all graphs merged) against a SHACL shapes graph given as Turtle.
validate_shacl_graph
Validates any rudof graph against compiled SHACL shapes.
validate_shacl_stored
Validates a store against the shapes it holds (see shacl_schema_from_store).
validate_shex
Validates the default graph of a store against a ShEx schema and a shape map.
validate_shex_graph
Validates the nodes of a ShEx shape map (compact syntax, e.g. <http://ex/a>@<http://ex/S>) on any rudof graph.

Type Aliases§

Result