class pronto.Metadata[source]

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
ontology

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

Type
date

Type
default_namespace

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

Type
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
owl_axioms

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

Type
saved_by

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

Type
auto_generated_by

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

Type
subsetdefs

A set of ontology subsets declared in the ontology files.

Type
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
synonymtypedefs

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

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