LiteralPropertyValue#

class pronto.LiteralPropertyValue[source]#

Bases: PropertyValue

A property-value which adds a literal annotation to an entity.

__init__(property: str, literal: str, datatype: str = 'xsd:string')[source]#

Create a new LiteralPropertyValue instance.

Parameters:
  • property (str) – The annotation property, as an OBO identifier.

  • literal (str) – The serialized value of the annotation.

  • datatype (str) – The datatype of the annotation property value. Defaults to xsd:string.

__eq__(other: object) bool[source]#

Return self==value.

__lt__(other: object) bool[source]#

Return self<value.

__hash__() int[source]#

Return hash(self).

__ge__(other)#

Return a >= b. Computed by @total_ordering from (not a < b).

__gt__(other)#

Return a > b. Computed by @total_ordering from (not a < b) and (a != b).

__le__(other)#

Return a <= b. Computed by @total_ordering from (a < b) or (a == b).

__repr__()#

Return a repr string that roundtrips. Computed by @roundrepr.