ncbo / ontologies_api

Hypermedia API for NCBO's ontology-related projects
http://data.bioontology.org
Other
25 stars 10 forks source link

Mappings REST service fails to maintain the ordering of ontologies #63

Open mdorf opened 4 years ago

mdorf commented 4 years ago

User report:

On the mappings page for NCI_Thesaurus http://bioportal.bioontology.org/ontologies/NCIT/?p=mappings you have a mapping to World Health Organization (WHO) Adverse Reaction Terminology. Within the mapping at:

http://bioportal.bioontology.org/mappings/show/NCIT?target=http%3A%2F%2Fdata.bioontology.org%2Fontologies%2FWHO-ART

the column names are reversed. The NCIt concepts are in the WHO column and vice versa.

I found additional cases of this behavior. For example:

http://bioportal.bioontology.org/mappings/show/SNOMEDCT?target=http%3A%2F%2Fdata.bioontology.org%2Fontologies%2FBRO

It appears that the mappings REST service does not always respect the ordering of ontologies, as passed in the arguments. For example, in the following call:

http://data.bioontology.org/mappings/?ontologies=NCIT,WHO-ART

...one would expect the NCIT classes to be the first in each mapping result, but this isn't the case. Same with the second case:

http://data.bioontology.org/mappings/?ontologies=SNOMEDCT,BRO

Reversing the parameters does not change the output:

http://data.bioontology.org/mappings/?ontologies=BRO,SNOMEDCT