ontometer_corpus.versions¶
Version families: which corpus rows are releases of the same ontology.
Deduplication by ontology IRI cannot link releases that never declare an
owl:Ontology IRI, and content hashing separates every release that changed
at all. OntoPortal-family registries (BioPortal, AgroPortal, …) number their
submissions, and LOV labels vocabulary versions, in the fetch identifier
itself — bp:PTO::355, lov:http://schema.org/::v0.95 — so the identifier
before the last :: names the family and what follows orders it.
Registries without versioned identifiers (Ontohub, OKG, OBO) give each row its own family.
Functions:¶
family_key(source_id)
¶
release_label(source_id)
¶
The part after the last ::, or None when the identifier has none.
release_date(metadata)
¶
ISO date (YYYY-MM-DD) the registry records for this release, if any.
OntoPortal registries record released per submission; LOV records
issued per version. creationDate is the fallback.
Source code in ontometer_corpus/versions.py
release_order(source_id, date)
¶
Sort key placing releases of one family in publication order.
The registry date leads; a numeric submission number breaks ties and orders undated releases; a textual label is the last resort.