RelationshipMacro

class RelationshipMacro(s: URIRef | Reference | Referenced | str | IdentifierBox, p: URIRef | Reference | Referenced | str | IdentifierBox, o: URIRef | Reference | Referenced | str | IdentifierBox, *, annotations: list[Annotation] | None = None)[source]

Bases: Macro

A macro for an object-to-object relationship.

Assert that the RAET1E gene from HGNC (16793) is only in the human taxon (9606)

>>> RelationshipMacro("hgnc:16793", "RO:0002160", "NCBITaxon:9606").to_funowl()
'SubClassOf(hgnc:16793 ObjectSomeValuesFrom(RO:0002160 NCBITaxon:9606))'

Instantiate the object-to-object SubClassOf macro.