Skip to main content

Module bag

Module bag 

Source
Expand description

Validates a dataset against a crate::shapes table.

It replaced generated per-check validators that read typed struct fields. Here every value is the string the XML carried, so the checks those treated as tautologies — sh:datatype, sh:nodeKind — are real, and sh:closed becomes answerable at all.

Which elements a run reads is a Source: each family’s shapes read that family’s elements. Every element holds every field the XML carried, which is what lets one interpreter serve both.

Enums§

Source
Which elements a shape table reads: its own family’s.

Functions§

validate_profile
Validate one profile’s shapes against a dataset.
validate_profile_in
validate_profile on one file of a set: the class checks find a referenced object’s type in the set’s other files (see validate_shapes_in).
validate_shapes
Validate a dataset against shapes the caller has already selected.
validate_shapes_in
validate_shapes on ds, one file of the files set validated together. Only NC’s class checks (sh:class, sh:in on a type, sh:not) read the set, for the type of a referenced object ds does not hold; every other check sees ds alone, as a per-file rule must.