@@ -43,6 +43,7 @@ def _r(p: str, i: str, n: str) -> NamedReference:
4343has_creator = _r ("dcterms" , "creator" , "creator" )
4444has_source = _r ("dcterms" , "source" , "source" )
4545has_date = _r ("dcterms" , "date" , "date" )
46+ conforms_to = _r ("dcterms" , "conformsTo" , "conforms to" )
4647
4748# OBO in OWL
4849
@@ -81,7 +82,8 @@ def _r(p: str, i: str, n: str) -> NamedReference:
8182
8283has_ontology_root_term = _r ("IAO" , "0000700" , "has ontology root term" )
8384has_term_editor = _r ("IAO" , "0000117" , "term editor" )
84-
85+ has_obsolescence_reason = _r ("IAO" , "0000231" , "has obsolescence reason" )
86+ term_tracker_item = _r ("IAO" , "0000233" , "term tracker item" )
8587
8688# Document parts
8789title_section = _r ("IAO" , "0000651" , "title section" )
@@ -214,19 +216,6 @@ def _r(p: str, i: str, n: str) -> NamedReference:
214216 "RELATED" : related_match ,
215217}
216218
217-
218- #: A mapping of inverse relationships that can be applied when inverting mappings
219- semantic_mapping_inversions = {
220- broad_match : narrow_match ,
221- narrow_match : broad_match ,
222- exact_match : exact_match ,
223- close_match : close_match ,
224- has_dbxref : has_dbxref ,
225- equivalent_class : equivalent_class ,
226- equivalent_property : equivalent_property ,
227- same_as : same_as ,
228- }
229-
230219## Matching Process Types
231220
232221#: The parent class for matching processes, see :data:`matching_processes`
@@ -336,3 +325,27 @@ def _r(p: str, i: str, n: str) -> NamedReference:
336325is_marker_for = _r ("RO" , "0002607" , "is marker for" )
337326
338327orthologous_to = _r ("RO" , "HOM0000017" , "in orthology relationship with" )
328+
329+ deprotonated_form_of = _r ("RO" , "0018033" , "is deprotonated form of" )
330+ protonated_form_of = _r ("RO" , "0018034" , "is protonated form of" )
331+
332+ #: A mapping of inverse relationships that can be applied when inverting mappings
333+ inversions = {
334+ broad_match : narrow_match ,
335+ narrow_match : broad_match ,
336+ exact_match : exact_match ,
337+ close_match : close_match ,
338+ has_dbxref : has_dbxref ,
339+ equivalent_class : equivalent_class ,
340+ equivalent_property : equivalent_property ,
341+ same_as : same_as ,
342+ # not semantic, but maybe useful?
343+ deprotonated_form_of : protonated_form_of ,
344+ protonated_form_of : deprotonated_form_of ,
345+ orthologous_to : orthologous_to ,
346+ part_of : has_part ,
347+ has_part : part_of ,
348+ }
349+
350+
351+ semantic_mapping_inversions = inversions
0 commit comments