ontocast.tool.ontology_validation.catalog_terms¶
The catalog's terms as the ontology prompts list them.
Shared by the document plan, consolidation and catalog curation: CURIE prefixes for every held ontology, and each ontology's own classes and properties with their kind and label.
Attributes¶
__all__ = ['CatalogTerm', 'catalog_coverage', 'catalog_prefixes', 'catalog_terms', 'format_term_sheet']
module-attribute
¶
Classes¶
CatalogTerm
¶
One catalog term as the plan and consolidation prompts list it.
Source code in ontocast/tool/ontology_validation/catalog_terms.py
Functions:¶
catalog_coverage(heads, text)
¶
Each head with the number of its terms the text names, most first.
A term counts once when its label or its split local name occurs in the
text as a whole-word phrase, case-insensitive, also with a plural s or
es.
Source code in ontocast/tool/ontology_validation/catalog_terms.py
catalog_prefixes(heads, home, table=None)
¶
CURIE prefixes for the catalog's ontologies, well-known ones and home.
Each namespace gets the prefix table shows for it (the catalog's own
table when none is given), so this lane names terms as the facts lane
does. A home ontology not in the catalog yet takes the prefix the table
would claim for it.
Source code in ontocast/tool/ontology_validation/catalog_terms.py
catalog_terms(heads, *, first_iri=None)
¶
Classes and properties each head declares, first_iri's head first.
Source code in ontocast/tool/ontology_validation/catalog_terms.py
format_term_sheet(terms, prefixes, max_terms)
¶
CURIE | kind | label lines, at most max_terms of them.