Metadata

class pronto.Metadata[source]

A mapping containing metadata about the current ontology.

format_version

The OBO format version of the referenced ontology. 1.4 is the default since pronto can only parse and write OBO documents of that format version.

Type

str

data_version

The OBO data version of the ontology, which is then expanded to the versionIRI if translated to OWL.

Type

str or None

ontology

The identifier of the ontology, either as a short OBO identifier or as a full IRI.

Type

str or None

date

The date the ontology was last modified, if any.

Type

datetime or None

default_namespace

The default namespace to use for entity frames lacking a namespace clause.

Type

str or None

namespace_id_rule

The production rule for identifiers in the current ontology document. soft-deprecated, used mostly by OBO-Edit or other outdated tools.

Type

str or None

owl_axioms

A list of OWL axioms that cannot be expressed in OBO language, serialized in OWL2 Functional syntax.

Type

list of str

saved_by

The name of the person that last saved the ontology file.

Type

str or None

auto_generated_by

The name of the software that was used to generate the file.

Type

str or None

__eq__()

Return self==value.

__ge__()

Return self>=value.

__gt__()

Return self>value.

__hash__()

Return hash(self).

__le__()

Return self<=value.

__lt__()

Return self<value.

__repr__()

Return repr(self).

__bool__() → bool[source]

Return False if the instance does not contain any metadata.