Expand description
OWL → SHACL conversion for QualiaDB ontology alignment.
RadLex and DICOM healthcare vocabularies arrive as OWL (RDF/XML or Turtle/N3).
The Webizen Sentinel consumes SHACL, not OWL classifiers directly. This module
lowers OWL axioms into sh:NodeShape graphs while preserving the agency invariant:
q42:Principal may have q42:Thing possessions but is not itself a Thing.
Structs§
Enums§
Constants§
- SHAPE_
PREFIXES - Prefixes emitted on every generated shapes file.
Functions§
- healthcare_
owl_ to_ shacl_ ttl - Emit SHACL node shapes for healthcare IE.* classes and DICOM-tag properties.
- parse_
healthcare_ owl - Parse healthcare OWL from
.n3or.ttl. - parse_
healthcare_ owl_ lines - Line-oriented parser for healthcare vocab exports (handles truncated tails and
unionOfdomains). - parse_
healthcare_ owl_ n3 - Parse
.n3healthcare excerpt (OWL in Notation3/Turtle syntax; tolerates truncated exports). - parse_
healthcare_ owl_ turtle - Parse Turtle healthcare vocabulary.
- parse_
radlex_ relations_ xml - Stream-parse RadLex Pun OWL (RDF/XML) relation axioms (
RID:Part_Of,RID:Has_Part, …). - radlex_
relations_ to_ shacl_ ttl - Group RadLex relations by subject RID and emit SHACL node shapes.
- write_
anatomy_ shape_ bundle - Write agency baseline + converted ontologies to an output directory.