From 48100d5c2d7b8afca2a9a7522761b044695ab741 Mon Sep 17 00:00:00 2001 From: Harshad Hegde Date: Tue, 28 Nov 2023 10:36:57 -0600 Subject: [PATCH] Use converter instead of hardcode --- src/sssom/parsers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sssom/parsers.py b/src/sssom/parsers.py index 87ad603d..91f1aa7e 100644 --- a/src/sssom/parsers.py +++ b/src/sssom/parsers.py @@ -607,7 +607,9 @@ def from_obographs( mdict[SUBJECT_ID] = safe_compress(nid, converter) mdict[OBJECT_ID] = safe_compress(xref_id, converter) mdict[SUBJECT_LABEL] = label - mdict[PREDICATE_ID] = "oboInOwl:hasDbXref" + mdict[PREDICATE_ID] = converter.compress( + "http://www.geneontology.org/formats/oboInOwl#hasDbXref" + ) mdict[MAPPING_JUSTIFICATION] = MAPPING_JUSTIFICATION_UNSPECIFIED _add_valid_mapping_to_list(mdict, mlist) except ValueError as e: