SynBioDex / tyto

Use ontology terms in your Python application
Apache License 2.0
18 stars 3 forks source link

Case flexibility? #22

Open jakebeal opened 3 years ago

jakebeal commented 3 years ago

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.

bbartley commented 3 years ago

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.

jakebeal commented 3 years ago

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