Annotation

class Annotation(predicate, value)[source]

Bases: NamedTuple

A tuple representing a predicate-object pair.

Create new instance of Annotation(predicate, value)

Attributes Summary

predicate

Alias for field number 0

value

Alias for field number 1

Methods Summary

float(predicate, value)

Return a literal property for a float.

string(predicate, value, *[, language])

Return a literal property for a float.

uri(predicate, uri)

Return a literal property for a URI.

Attributes Documentation

Parameters:
  • predicate (NormalizedNamableReference)

  • value (NormalizedNamableReference | OBOLiteral)

predicate: NormalizedNamableReference

Alias for field number 0

value: NormalizedNamableReference | OBOLiteral

Alias for field number 1

Methods Documentation

classmethod float(predicate, value)[source]

Return a literal property for a float.

Parameters:
Return type:

Self

classmethod string(predicate, value, *, language=None)[source]

Return a literal property for a float.

Parameters:
  • predicate (Reference | TypeDef)

  • value (str)

  • language (str | None)

Return type:

Self

classmethod uri(predicate, uri)[source]

Return a literal property for a URI.

Parameters:
Return type:

Self