Skip to main content

Module vocab

Module vocab 

Source
Expand description

Vocab chunks: bounded N3/Turtle slices with a content hash (P17.1).

Ontology extends Vibe by compiling referenced terms, not by shipping SNOMED (or any whole ontology) in the binary. Canonical IRIs stay so SPARQL/N3/SHACL need no rename layer. Versioning (hash-lock vs latest) is a principal decision (P17.5); this module stores the hash and can verify a lock, but never fetches “latest”.

Structs§

VocabChunk
VocabTerm

Enums§

VocabError

Constants§

MAX_CHUNK_BYTES
MAX_TERMS

Functions§

parse_chunk
Parses chunk.
project_referenced_iris
Canonical IRIs used by prefix:local names in the program that this chunk owns.
tree_shake
Keep referenced terms plus rdfs:subClassOf parents. Canonical IRIs unchanged.
unknown_prefixed
Prefixed names whose prefix is in a chunk but whose local name is not.