MappingMacro
- class MappingMacro(subject: URIRef | Reference | Referenced | str | IdentifierBox, predicate: Literal['EXACT', 'NARROW', 'BROAD', 'CLOSE', 'RELATED'] | URIRef | Reference | Referenced | str | IdentifierBox, target: URIRef | Reference | Referenced | str | IdentifierBox, *, annotations: list[Annotation] | None = None, mapping_justification: URIRef | Reference | Referenced | str | IdentifierBox | None = None)[source]
Bases:
Macro
A macro for mapping assertion.
>>> MappingMacro( ... "agrovoc:0619dd9e", ... "EXACT", ... "agro:00000137", ... mapping_justification="semapv:ManualMappingCuration", ... ).to_funowl() 'AnnotationAssertion(Annotation(sssom:has_mapping_justification semapv:ManualMappingCuration) skos:exactMatch agrovoc:0619dd9e agro:00000137)'
Instatitate the mapping annotation assertion macro.