LabelMacro

class LabelMacro(subject: URIRef | Reference | Referenced | str | IdentifierBox, value: str | Literal, *, language: str | None = None, annotations: list[Annotation] | None = None)[source]

Bases: StringMacro

A macro for label string assertion.

>>> LabelMacro("hgnc:16793", "RAET1E").to_funowl()
'AnnotationAssertion(rdfs:label hgnc:16793 "RAET1E")'

Assert the language:

>>> LabelMacro("hgnc:16793", "RAET1E", language="en").to_funowl()
'AnnotationAssertion(rdfs:label hgnc:16793 "RAET1E"@en)'

Instatitate the string assertion macro.

Attributes Summary

annotation_property

Attributes Documentation

annotation_property: ClassVar[URIRef | Reference] = NormalizedNamableReference(prefix='rdfs', identifier='label', name='has label')