Skip to content

Commit

Permalink
Remove biolink:Entity from nodes created by NodeNorm.
Browse files Browse the repository at this point in the history
Closes #173.
  • Loading branch information
gaurav committed Dec 3, 2023
1 parent 68096b2 commit 8a22494
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node_normalizer/normalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,12 @@ async def create_node(canonical_id, equivalent_ids, types, info_contents, includ
if include_descriptions and "d" in eqid and len(eqid["d"]):
eq_item["description"] = eqid["d"][0]
node["equivalent_identifiers"].append(eq_item)

# We need to remove `biolink:Entity` from the types returned.
# (See explanation at https://github.com/TranslatorSRI/NodeNormalization/issues/173)
if 'biolink:Entity' in types[canonical_id]:
types[canonical_id].remove('biolink:Entity')

node['type'] = types[canonical_id]

# add the info content to the node if we got one
Expand Down

0 comments on commit 8a22494

Please sign in to comment.