Skip to main content

Module bodyparts3d_ontology

Module bodyparts3d_ontology 

Source
Expand description

The BodyParts3D anatomy ONTOLOGY emitter → .q42 (OBO FMA IRIs + house aliases, is-a + part-of + system + geometry). The addressable semantic backbone the .10d mesh library is cited by. Define the BodyParts3D anatomy as an addressable ontology and serialise it to a .q42 graph — the semantic backbone the .10d mesh library is addressed by (Timothy 2026-07-12: “define an ontology … store the info in a q42 file, with a library of d10 files produced via converting the files”).

Each FMA concept is keyed by its canonical OBO IRI (http://purl.obolibrary.org/obo/FMA_<id>), so it joins directly to Monarch / UBERON / MONDO disease linked-data — which is what makes reasoning over the implications of comorbidities a graph walk rather than a lookup table. Alongside the canonical OBO triples it emits house q42:/geo: aliases for native reading (Timothy’s “both” choice). Per concept: rdfs:label, rdfs:subClassOf (is-a), obo:BFO_0000050 (part-of), geo:bodySystem (membership), geo:compiledDigest (the .10d it hasMesh), and a link to a dataset node carrying the CC-BY-SA provenance + citation once.

Pure (graph construction + .q42 serialisation); unit-tested. The producer supplies the concepts + their compiled digests + the parsed is-a / part-of tables.

Structs§

OntologyConcept
A meshed anatomical concept to place in the ontology: its BodyParts3D id, the whole-file digest of its compiled .10d (the geometry it hasMesh), and its resolved body-system membership(s).

Functions§

emit_ontology
Emit the ontology graph (quins + object-lexicon) for a set of meshed concepts. The concepts’ is-a (isa) and part-of (hier) come from the BodyParts3D tables; each concept’s OBO IRI is the canonical identity, with q42:/geo: aliases emitted alongside.
ontology_q42_bytes
Serialise the ontology of concepts into unified v3 .q42 bytes (object-sorted blocks). Returns the bytes and the number of quins in the graph.