biolink / biolink-model-toolkit

A collection of useful python functions for looking up information and working with the Biolink Model
https://biolink.github.io/biolink-model-toolkit/
BSD 3-Clause "New" or "Revised" License
20 stars 11 forks source link

Camel-case names with acronyms are not parsed well #49

Closed patrickkwang closed 3 years ago

patrickkwang commented 3 years ago

Classes like "RNA product", etc. behave in strange ways.

>>> print(tk.get_element("RNA product").class_uri)
biolink:RNAProduct
>>> print(tk.get_element("biolink:RNAProduct"))
None

I suspect that we are failing to convert "RNAProduct" to the expected sentence-case representation.