From b8fbe757c9b6c08963ab73fa05199d464bcc5c58 Mon Sep 17 00:00:00 2001 From: Harshad Hegde Date: Thu, 15 Aug 2024 14:30:56 -0500 Subject: [PATCH] Implementing NodeDeletion which was earlier a comment. --- .../implementations/simpleobo/simple_obo_implementation.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/oaklib/implementations/simpleobo/simple_obo_implementation.py b/src/oaklib/implementations/simpleobo/simple_obo_implementation.py index f645ace3e..952227a66 100644 --- a/src/oaklib/implementations/simpleobo/simple_obo_implementation.py +++ b/src/oaklib/implementations/simpleobo/simple_obo_implementation.py @@ -912,9 +912,8 @@ def _tv_dict(stanza: Stanza) -> Dict[str, List[str]]: id=_id(), about_node=t1id, new_value=vals2list[0], old_value=None ) else: - #! KGCL may have NameDeletion in the future. - yield kgcl.NodeRename( - id=_id(), about_node=t2id, old_value=vals2list[0], new_value=None + yield kgcl.NodeDeletion( + id=_id(), about_node=t1id, old_value=vals1list[0], new_value=None ) elif tag == TAG_DEFINITION: if node_is_deleted: