biothings / mygene.info

MyGene.info: A BioThings API for gene annotations
http://mygene.info
Other
115 stars 20 forks source link

more consistent handling of CURIE searches #106

Open andrewsu opened 3 years ago

andrewsu commented 3 years ago

Per #103, we can do a fielded search for MGI IDs by simply escaping the colon in the CURIE. This strategy also works for GO IDs, but not MONDO IDs:

If I execute these three examples using non-fielded queries, I also get inconsistent behavior:

If I escape the colon in a non-fielded query, that fixes the MONDO query but not the MGI query:

If possible, I think we should make this consistent behavior across all CURIE types. If that's not possible, then I think we should be more clear in the documentation.