Skip to content

Commit

Permalink
Use converter instead of hardcode
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Nov 28, 2023
1 parent 007ebe2 commit 48100d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sssom/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 48100d5

Please sign in to comment.