mowl.catalog

Catalogue of ontology embedding methods.

Every method known to mOWL, whether it is implemented or only documented, has a MethodCard that records its classification, the logic it covers, its proven theoretical guarantees and limitations, and where its implementation lives.

from mowl.catalog import list_methods, get_method

for card in list_methods(family="geometric", implemented=True):
    print(card.name, card.region, card.logic)

card = get_method("elem")
for g in card.guarantees:
    print(g.kind, g.statement, g.source)

A publication usually bundles a representation with a way to train it and a way to evaluate it. mOWL catalogues the three separately: methods (MethodCard), training regimes and evaluation regimes (RegimeCard, see list_regimes()), so that any regime can be combined with any compatible method.

The catalogue does not need the JVM. Only MethodCard.load() (and load_method()) import model code.

Functions

get_method(key)

Return the card registered under key.

list_methods([family, status, logic, ...])

Return catalogued methods, optionally filtered, sorted by family and key.

load_method(key)

Import and return the class implementing the method key (needs the JVM).

card_for(cls)

Return the card of the method implemented by the class cls (or by the class of an instance), looking along its base classes; None if it has no card.

get_regime(key)

Return the regime card registered under key.

list_regimes([kind, implemented, method])

Return catalogued regimes, optionally filtered, sorted by kind and key.

regimes_of(method[, kind])

Return the keys of the regimes linked to the method method.

catalogue_to_rst()

Return the full catalogue page.

card_to_rst(card)

Return the reStructuredText section describing one card.

overview_table_rst([cards])

Return a list-table with one row per method.

regime_to_rst(card)

Return the reStructuredText section describing one regime card.

regimes_to_rst()

Return the full page of training and evaluation regimes.

rst_escape(text)

Collapse whitespace and escape the characters that reStructuredText would read as markup in plain text: | (substitution), * (emphasis) and a _ at the end of a word (hyperlink reference).

Classes

Family(*values)

Top-level classification of ontology embedding methods.

Status(*values)

What mOWL provides for a method.

Origin(*values)

How the mOWL implementation relates to the publication.

GuaranteeKind(*values)

Kinds of theoretical statements recorded on a card.

Reference(key, citation[, url])

A bibliographic reference.

Guarantee(kind, statement, source[, ...])

A theoretical statement about a method, with its source.

MethodCard(key, name, family, region, ...[, ...])

Catalogue entry for one ontology embedding method.

RegimeKind(*values)

Kinds of regimes.

RegimeCard(key, name, kind, summary, ...[, ...])

Catalogue entry for a training or evaluation regime.

Class Inheritance Diagram

Inheritance diagram of mowl.catalog.card.Family, mowl.catalog.card.Status, mowl.catalog.card.Origin, mowl.catalog.card.GuaranteeKind, mowl.catalog.card.Reference, mowl.catalog.card.Guarantee, mowl.catalog.card.MethodCard, mowl.catalog.card.RegimeKind, mowl.catalog.card.RegimeCard