Skip to content

Commit

Permalink
removing biolink prefix from other constraints ids as well
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDietzMorris committed Aug 6, 2024
1 parent d4014f4 commit f877fc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reasoner_transpiler/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def convert_constraints(constraints):
props = {}
for constraint in constraints:
try:
constraint["id"] = constraint["id"].removeprefix("biolink:")
operator = constraint.get("operator", "===")
if operator == "===":
props[constraint["id"]] = constraint["value"]
Expand Down

0 comments on commit f877fc9

Please sign in to comment.