pyunitwizard.dialects.vocabulary.validate_annotation#
- pyunitwizard.dialects.vocabulary.validate_annotation(record, annotation, *, unit_iri, kind_iri)[source]#
Check a complete annotation against its record, catalogue and reader intent.
- Parameters:
record (QuantityRecord) – Independently verified source snapshot.
annotation (mapping) – Complete sidecar previously produced by
annotate.unit_iri (str) – Required identifiers expected by the receiving consumer.
kind_iri (str) – Required identifiers expected by the receiving consumer.
- Return type:
None
- Raises:
RecordError – For disagreement, corruption, unsupported format/catalogue or changed record identity. The digest establishes integrity, not authentication.
Examples
>>> validate_annotation(record, note, unit_iri=note['unit_iri'], ... kind_iri='http://qudt.org/vocab/quantitykind/Frequency')