Typedef

Frame

TypedefFrame

class fastobo.typedef.TypedefFrame(AbstractEntityFrame)
__add__(value, /)

Return self+value.

__delitem__(key, /)

Delete self[key].

__getitem__(key, /)

Return self[key].

__len__()

Return len(self).

__new__(**kwargs)
__repr__()

Return repr(self).

__setitem__(key, value, /)

Set self[key] to value.

__str__()

Return str(self).

append(object)

Append object to the end of the list.

Raises:

TypeError – when the object is not of the right type for this container (see type-level documentation for the required type).

clear()

Remove all items from list.

copy()

Return a shallow copy of the list.

count(value)

Return number of occurrences of value.

Raises:

TypeError – when the object is not of the right type for this container (see type-level documentation for the required type).

insert(index, object)

Insert object before index.

If index is greater than the number of elements in the list, object will be added at the end of the list.

pop(index=-1)

Remove and return item at index (default last).

Raises:

IndexError – when list is empty or index is out of range.

reverse()

Reverse IN PLACE.

Clauses

BaseTypedefClause

class fastobo.typedef.BaseTypedefClause(AbstractEntityClause)
__new__(**kwargs)

AltIdClause

class fastobo.typedef.AltIdClause(BaseTypedefClause)

AltIdClause(alt_id) –

A clause defines an alternate id for this relationship.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

BuiltinClause

class fastobo.typedef.BuiltinClause(BaseTypedefClause)

BuiltinClause(builtin) –

A clause declaring whether this relation is built-in to the OBO format.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

builtin

True if the relationship is built in the OBO format.

Type:

bool

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

CommentClause

class fastobo.typedef.CommentClause(BaseTypedefClause)

CommentClause(comment) –

A clause storing a comment for this relationship.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

comment

a comment relevant to this term.

Type:

str

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

ConsiderClause

class fastobo.typedef.ConsiderClause(BaseTypedefClause)

ConsiderClause(typedef) –

A clause giving a potential substitute for an obsolete typedef.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

CreatedByClause

class fastobo.typedef.CreatedByClause(BaseTypedefClause)

CreatedByClause(creator) –

A term clause stating the name of the creator of this relationship.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

CreationDateClause

class fastobo.typedef.CreationDateClause(BaseTypedefClause)

CreationDateClause(date) –

A clause declaring the date (and optionally time) a typedef was created.

Parameters:

date (datetime.date) – The date this typedef was created. If a datetime.datime object is given, then the serialized value will also include the serialized time.

Warning

The timezone of the datetime will only be extracted down to the minutes, seconds and smaller durations will be ignored. It is advised to use datetime.timezone.utc whenever possible to preserve the date and time properly.

Example

>>> d1 = datetime.date(2021, 1, 23)
>>> print(fastobo.typedef.CreationDateClause(d1))
creation_date: 2021-01-23
>>> d2 = datetime.datetime(2021, 1, 23, tzinfo=datetime.timezone.utc)
>>> print(fastobo.typedef.CreationDateClause(d2))
creation_date: 2021-01-23T00:00:00Z
__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

date

the date and time this typedef was created.

Type:

datetime.datetime

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

DefClause

class fastobo.typedef.DefClause(BaseTypedefClause)

DefClause(definition, xrefs=None) –

A clause giving a human-readable definition of the relationship.

Parameters:
  • definition (str) – The human-readable textual definition of the current relationship.

  • xrefs (Iterable[Xref], optional) – An iterable of database cross-references describing the origin of the definition, or None.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

definition

a textual definition for this term.

Type:

str

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'
xrefs

a list of xrefs supporting the definition.

Type:

XrefList

DisjointFromClause

class fastobo.typedef.DisjointFromClause(BaseTypedefClause)

DisjointFromClause(typedef) –

A clause stating is disjoint from another relationship.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

DisjointOverClause

class fastobo.typedef.DisjointOverClause(BaseTypedefClause)

DisjointOverClause(typedef) –

A clause declaring a relationship this relationship is disjoint over.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

DomainClause

class fastobo.typedef.DomainClause(BaseTypedefClause)

DomainClause(domain) –

A clause declaring the domain of the relationship, if any.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

EquivalentToClause

class fastobo.typedef.EquivalentToChainClause(BaseTypedefClause)

EquivalentToChainClause(first, last) –

A clause declaring a property chain this relationship is equivalent to.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

EquivalentToClause

class fastobo.typedef.EquivalentToClause(BaseTypedefClause)

EquivalentToClause(typedef) –

A clause indicating the relation is exactly equivalent to another relation.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

ExpandAssertionToClause

class fastobo.typedef.ExpandAssertionToClause(BaseTypedefClause)

ExpandAssertionToClause(definition, xrefs) –

An OWL macro that adds an IAO:0000425 annotation to this relation.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

definition

a textual definition of the assertion.

Type:

str

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'
xrefs

a list of xrefs supporting the assertion.

Type:

XrefList

ExpandExpressionToClause

class fastobo.typedef.ExpandExpressionToClause(BaseTypedefClause)

ExpandExpressionToClause(definition, xrefs) –

An OWL macro that adds an IAO:0000424 annotation to this relation.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

definition

a textual definition of the expression.

Type:

str

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'
xrefs

a list of xrefs supporting the expression.

Type:

XrefList

HoldsOverChainClause

class fastobo.typedef.HoldsOverChainClause(BaseTypedefClause)

HoldsOverChainClause(first, last) –

An extension of the transitive_over tag for property chains.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IntersectionOfClause

class fastobo.typedef.IntersectionOfClause(BaseTypedefClause)

IntersectionOfClause(typedef) –

Declares this relation is equivalent to the intersection of other relations.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

InverseOfClause

class fastobo.typedef.InverseOfClause(BaseTypedefClause)

InverseOfClause(typedef) –

A clause declaring the inverse of this relationship type.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsAClause

class fastobo.typedef.IsAClause(BaseTypedefClause)

IsAClause(typedef) –

A clause declaring this relation is a subproperty of another relation.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsAnonymousClause

class fastobo.typedef.IsAnonymousClause(BaseTypedefClause)

IsAnonymousClause(anonymous) –

A clause declaring whether or not the relationship has an anonymous id.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsAntiSymmetricClause

class fastobo.typedef.IsAntiSymmetricClause(BaseTypedefClause)

IsAntiSymmetricClause(anti_symmetric) –

A clause declaring whether the relationship if anti-symmetric or not.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsAsymmetricClause

class fastobo.typedef.IsAsymmetricClause(BaseTypedefClause)

IsAsymmetricClause(asymmetric) –

A clause declaring whether the relationship is asymmetric or not.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsClassLevelClause

class fastobo.typedef.IsClassLevelClause(BaseTypedefClause)

IsClassLevelClause(class_level) –

A clause declaring wether this relationship is class level or not.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsCyclicClause

class fastobo.typedef.IsCyclicClause(BaseTypedefClause)

IsCyclicClause(cyclic) –

A clause declaring whether the relationship if cyclic or not.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsFunctionalClause

class fastobo.typedef.IsFunctionalClause(BaseTypedefClause)

IsFunctionalClause(functional) –

A clause declaring whether the relationship if functional or not.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsInverseFunctionalClause

class fastobo.typedef.IsInverseFunctionalClause(BaseTypedefClause)

IsInverseFunctionalClause(functional) –

A clause declaring whether the relationship if inverse-functional or not.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsMetadataTagClause

class fastobo.typedef.IsMetadataTagClause(BaseTypedefClause)

IsMetadataTagClause(metadata_tag) –

A clause declaring whether this relationship is a metadata tag or not.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsObsoleteClause

class fastobo.typedef.IsObsoleteClause(BaseTypedefClause)

IsObsoleteClause(obsolete) –

A clause indicating whether or not this relationship is obsolete.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsReflexiveClause

class fastobo.typedef.IsReflexiveClause(BaseTypedefClause)

IsReflexiveClause(reflexive) –

A clause declaring whether the relationship if reflexive or not.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsSymmetricClause

class fastobo.typedef.IsSymmetricClause(BaseTypedefClause)

IsSymmetricClause(symmetric) –

A clause declaring whether the relationship if symmetric or not.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

IsTransitiveClause

class fastobo.typedef.IsTransitiveClause(BaseTypedefClause)

IsTransitiveClause(transitive) –

A clause declaring whether the relationship if transitive or not.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

NameClause

class fastobo.typedef.NameClause(BaseTypedefClause)

NameClause(name) –

A clause declaring the human-readable name of this relationship.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

name

the name of the current term.

Type:

str

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

NamespaceClause

class fastobo.typedef.NamespaceClause(BaseTypedefClause)

NamespaceClause(namespace) –

A term clause declaring the namespace of this relationship.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

PropertyValueClause

class fastobo.typedef.PropertyValueClause(BaseTypedefClause)

PropertyValueClause(property_value) –

A clause that binds a property to a value in the relationship.

Parameters:

property_value (AbstractPropertyValue) – the property value to annotate the current relationship.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

property_value

an annotation of the relation.

Type:

AbstractPropertyValue

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

RangeClause

class fastobo.typedef.RangeClause(BaseTypedefClause)

RangeClause(range) –

A clause declaring the range of the relationship, if any.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

RelationshipClause

class fastobo.typedef.RelationshipClause(BaseTypedefClause)

RelationshipClause(typedef, target) –

A clause declaring a relationship this relation has to another relation.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

ReplacedByClause

class fastobo.typedef.ReplacedByClause(BaseTypedefClause)

ReplacedByClause(typedef) –

A clause giving a relation which replaces this obsolete relation.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

SubsetClause

class fastobo.typedef.SubsetClause(BaseTypedefClause)

SubsetClause(subset) –

A clause declaring a subset to which this relationship belongs.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

SynonymClause

class fastobo.typedef.SynonymClause(BaseTypedefClause)

SynonymClause(synonym) –

A clause giving a synonym for this relation, with some cross-references.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'
synonym

a possible synonym for this term.

Type:

Synonym

TransitiveOverClause

class fastobo.typedef.TransitiveOverClause(BaseTypedefClause)

TransitiveOverClause(typedef) –

A clause declaring another relation that this relation is transitive over.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

UnionOfClause

class fastobo.typedef.UnionOfClause(BaseTypedefClause)

UnionOfClause(typedef) –

Declares the relation represents the union of several other relations.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'

XrefClause

class fastobo.typedef.XrefClause(BaseTypedefClause)

XrefClause(xref) –

A cross-reference describing an analogous relation in another vocabulary.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__ = None
__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__repr__()

Return repr(self).

__str__()

Return str(self).

raw_tag()

Get the raw tag of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> clause = fastobo.header.OntologyClause("test")
>>> clause.raw_tag()
'ontology'
>>> str(clause)
'ontology: test'
raw_value()

Get the raw value of the header clause.

Returns:

str – the header clause value as it was extracted from the OBO header, stripped from trailing qualifiers and comment.

Example

>>> dt = datetime.datetime(2019, 4, 29, 21, 52)
>>> clause = fastobo.header.DateClause(dt)
>>> clause.date
datetime.datetime(2019, 4, 29, 21, 52)
>>> clause.raw_value()
'29:04:2019 21:52'
xref

a cross-reference relevant to this typedef.

Type:

Xref