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)¶ Create and return a new object. See help(type) for accurate signature.
-
__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
beforeindex
.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
¶
AltIdClause
¶
-
class
fastobo.typedef.
AltIdClause
(BaseTypedefClause)¶ A clause defines an alternate id for this relationship.
-
__eq__
(value, /)¶ Return self==value.
-
__ge__
(value, /)¶ Return self>=value.
-
__gt__
(value, /)¶ Return self>value.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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'
-
CommentClause
¶
-
class
fastobo.typedef.
CommentClause
(BaseTypedefClause)¶ A clause storing a comment for this relationship.
-
__eq__
(value, /)¶ Return self==value.
-
__ge__
(value, /)¶ Return self>=value.
-
__gt__
(value, /)¶ Return self>value.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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'
-
ConsiderClause
¶
-
class
fastobo.typedef.
ConsiderClause
(BaseTypedefClause)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ A clause declaring the date (and optionally time) a typedef was created.
- Parameters
date (
datetime.date
) – The date this typedef was created. If adatetime.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 usedatetime.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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__repr__
()¶ Return repr(self).
-
__str__
()¶ Return str(self).
-
date
¶ the date and time this typedef was created.
- Type
-
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)¶ A clause giving a human-readable definition of the relationship.
- Parameters
-
__eq__
(value, /)¶ Return self==value.
-
__ge__
(value, /)¶ Return self>=value.
-
__gt__
(value, /)¶ Return self>value.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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'
-
xrefs
¶ a list of xrefs supporting the definition.
- Type
XrefList
DisjointFromClause
¶
-
class
fastobo.typedef.
DisjointFromClause
(BaseTypedefClause)¶ A clause stating is disjoint from another relationship.
-
__eq__
(value, /)¶ Return self==value.
-
__ge__
(value, /)¶ Return self>=value.
-
__gt__
(value, /)¶ Return self>value.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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'
-
xrefs
¶ a list of xrefs supporting the assertion.
- Type
XrefList
-
ExpandExpressionToClause
¶
-
class
fastobo.typedef.
ExpandExpressionToClause
(BaseTypedefClause)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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'
-
xrefs
¶ a list of xrefs supporting the expression.
- Type
XrefList
-
HoldsOverChainClause
¶
-
class
fastobo.typedef.
HoldsOverChainClause
(BaseTypedefClause)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ A clause declaring the inverse of this relationship type.
-
__eq__
(value, /)¶ Return self==value.
-
__ge__
(value, /)¶ Return self>=value.
-
__gt__
(value, /)¶ Return self>value.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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'
-
NamespaceClause
¶
-
class
fastobo.typedef.
NamespaceClause
(BaseTypedefClause)¶ A term clause declaring the namespace of this relationship.
-
__eq__
(value, /)¶ Return self==value.
-
__ge__
(value, /)¶ Return self>=value.
-
__gt__
(value, /)¶ Return self>value.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__repr__
()¶ Return repr(self).
-
__str__
()¶ Return str(self).
-
property_value
¶ an annotation of the relation.
-
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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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'
-
TransitiveOverClause
¶
-
class
fastobo.typedef.
TransitiveOverClause
(BaseTypedefClause)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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)¶ 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.
-
__le__
(value, /)¶ Return self<=value.
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__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'
-