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

subsetdefs

A set of ontology subsets declared in the ontology files.

Type

set of str

imports

A set of references to other ontologies that are imported by the current ontology. OBO requires all entities referenced in the file to be reachable through imports (excluding databases cross-references).

Type

set of str

synonymtypedefs

A set of user-defined synonym types including a description and an optional scope.

Type

set of SynonymType

idspaces

A mapping between a local ID space and a global ID space, with an optional description of the mapping.

Type

dict of str to couple of str

remarks

A set of general comments for this file, which will be preserved by a parser/serializer as opposed to inline comments using !.

Type

set of str

annotations

A set of annotations relevant to the whole file. OBO property-values are semantically equivalent to owl:AnnotationProperty in OWL2.

Type

set of PropertyValue

unreserved

A mapping of unreserved tags to values found in the ontology header.

Type

dict of str to set of str

__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.