ontocast.config.section_labels¶
Load versioned section-label schemas from YAML in this package.
SectionLabelDef
¶
Bases: BaseModel
One canonical section label and heading regex patterns.
Source code in ontocast/config/section_labels/__init__.py
SectionLabelSchema
¶
Bases: BaseModel
Domain-specific section label vocabulary.
Source code in ontocast/config/section_labels/__init__.py
clear_section_label_caches()
¶
normalise_user_section_label(raw, *, schema_id=None)
¶
Map user-supplied section name to a canonical label.
Source code in ontocast/config/section_labels/__init__.py
resolve_section_schema_id(*, section_schema_id=None, document_type_hint=None)
¶
Pick schema: explicit id, then hint substring match, then manifest default.