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_profileon one file of a set: the class checks find a referenced object’s type in the set’s other files (seevalidate_shapes_in).- validate_
shapes - Validate a dataset against shapes the caller has already selected.
- validate_
shapes_ in validate_shapesonds, one file of the filessetvalidated together. Only NC’s class checks (sh:class,sh:inon a type,sh:not) read the set, for the type of a referenced objectdsdoes not hold; every other check seesdsalone, as a per-file rule must.