EBISPOT / OLS

Ontology Lookup Service from SPOT at EBI
http://www.ebi.ac.uk/ols
Apache License 2.0
97 stars 40 forks source link

Flag deprecated terms in results list #91

Open jmcmurry opened 8 years ago

jmcmurry commented 8 years ago

Just a little tiny thing I came across... The results of my search for Orphanet:93564 were a bit confusing. For starters, Orphanet:93564 wasn't the first hit. Orphanet was the first hit.

Secondly, I got to a deprecated term and thought hmm, it would be great if there could be some way of flagging that in the results list.

Thirdaly, out of curiosity, I clicked "obsolete terms" and Orphanet:93564 didn't appear in the list, nor were the results seemingly related to Orphanet:93564.

I'm sure there's a good explanation for this, it just wasn't what I expected. Feel free to take this with a grain of salt...The UI is looking really nice overall.

screen shot 2016-06-08 at 1 00 46 pm
simonjupp commented 8 years ago

It seems ORDO is using a non-standard URI for obsolete classes ( http://www.orpha.net/ORDO/ObsoleteClass) so OLS wasn't detecting it. I've updated the config for ORDO now. Default behaviour is to exclude obsolete classes from search results.

The search result is interesting, the first isn't actually orphanet, but in fact a term called orphanet in the MI ontology. The default search is tuned to boost heavily on exact term labels and I think by default SOLR is tokenising query strings with a : in them. In some cases I think this is useful, but there's probably some more fine tuning we can do to improve this.