SynBioDex / tyto

Use ontology terms in your Python application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Case flexibility?

jakebeal opened this issue · comments

Is there any way to make term lookup case-flexible?

For example, it would be nice if looking up "Promoter" or "PROMOTER" in SO will get you the URI for "promoter" and "cds" will get you the URI "CDS" rather than lookup errors.

This is tricky to implement, because SO does not use any consistent rule for case. For example, if a user writes mrna, how would tyto know that it should convert that to mRNA in order to match the term's definition in the OWL.

For any cached ontology, we can keep a dictionary in lower-case, which we consult if a case-sensitive looking misses the cache.