Skip to content

Commit

Permalink
Fix inferring category for NCBITaxon prefix in ObographJsonTransformer
Browse files Browse the repository at this point in the history
Change OrganismalEntity to OrganismTaxon for NCBITaxon prefix
  • Loading branch information
deepakunni3 authored Jan 19, 2021
1 parent 660070a commit 954be1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kgx/transformers/json_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def get_category(self, curie: str, node: dict) -> Optional[str]:
elif prefix == 'PR':
category = "biolink:Protein"
elif prefix == 'NCBITaxon':
category = "biolink:OrganismalEntity"
category = "biolink:OrganismTaxon"
else:
log.debug(f"{curie} Could not find a category mapping for '{category}'; Defaulting to 'biolink:OntologyClass'")
return category
Expand Down

0 comments on commit 954be1d

Please sign in to comment.