API reference¶
The per-module pages in this section are generated at build time from the docstrings in the
source tree: docs/_build/gen_pages.py walks ontometer_corpus/**/*.py and renders one page
per module. To document a module, write its docstrings.
This page documents the top-level package:
The OntoMeter Corpus: the pipeline that derives it, loaders for its tables, and the analysis of the resource paper that describes it.
The base install is light: the namespace rules (:mod:ontometer_corpus.namespaces) and
path resolution (:mod:ontometer_corpus.paths). Everything else sits behind an extra
and says which one when it is missing:
tables
read the tables and the dependency network (pandas, pyarrow, networkx);
build
derive the tables from the raw files: fetch, parse, dedup, networks, dates;
store
exchange and publish the object store (Hugging Face, zstd bundles);
validation
the abstractness validation step;
paper
the figures, tables and numbers of the resource paper.
Base install¶
namespaces: which namespace an IRI belongs to, and which no ontology can own.paths: the corpus directory and the object store, and every path derived from them.cli: theontometer-corpuscommand.
Tables (tables)¶
network: the dependency network (construction), term ownership and edge authority (entities), redeclared labels (redeclarations) and the Poincaré layout (hyperbolic).ontology_metrics: the per-ontology metric table and the network views it is measured on.growth_network: G(t) rebuilt from the tracked tables, and the explorer's payload.dating: first-evidence dates and bounded births.metrics: term and ontology abstractness (abstractness) and the growth statistics (growth).
Derivation (build)¶
fetchers: one module per registry family (ontoportal,obo,ontohub,okg,lov).pipeline: the corpus database (db), parsing (parse) and deduplication (dedup).metadata,registries,versions: registry metadata projected to an allowlist, home registries, release families.rolesandusage: the roles a term plays in a file, and how a vocabulary is used.supervisor: one process per task under a wall-clock budget.steps: one command per derivation step;rebuildruns them in order.store: the object store's index, remotes and published copies (store).
The paper (paper)¶
paper: the figures and numbers (figures), the shared style (figstyle), small statistics (stats), the deduplication audit (dedup_audit), the comparator networks (comparators) and the GitHub sample (github_ontologies).