From f877fc97218498d6178aedf7d7163028f370815a Mon Sep 17 00:00:00 2001 From: Evan Morris Date: Tue, 6 Aug 2024 14:16:33 -0400 Subject: [PATCH] removing biolink prefix from other constraints ids as well --- reasoner_transpiler/matching.py | 1 + 1 file changed, 1 insertion(+) diff --git a/reasoner_transpiler/matching.py b/reasoner_transpiler/matching.py index 7198d61..03c69a7 100644 --- a/reasoner_transpiler/matching.py +++ b/reasoner_transpiler/matching.py @@ -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"]