metadatacenter / cedar-project

Build project for all CEDAR Java repositories
https://github.com/metadatacenter/cedar-docs/wiki
Other
12 stars 1 forks source link

Retrieve classes in alphabetical order #1089

Open marcosmro opened 4 years ago

marcosmro commented 4 years ago

Returning classes in alphabetical order required some BioPortal enhancements (see https://docs.google.com/document/d/1rdU65dAubkRytCpXxTFZXsbqaAgLIgZoTTuaNZT4WDk and https://github.com/ncbo/bioportal-project/issues/165).

The BioPortal team has already implemented those features. The BioPortal API now accepts a 'sort' parameter that can be used to sort results by preferred label as follows:

http://data.bioontology.org/search?ontologies=NCIT&sort=prefLabel

http://data.bioontology.org/search?subtree_ontology=NCIT&subtree_root_id=http%3A%2F%2Fncicb.nci.nih.gov%2Fxml%2Fowl%2FEVS%2FThesaurus.owl%23C16275&sort=prefLabel

This task is about updating Terminology Server's integrated-search endpoint to take advantage of them.

marcosmro commented 4 years ago

After experimenting a bit with the new BioPortal 'sort' feature, we found out that there are some discrepancies between the number of indexed classes vs the number of classes in the DB. Therefore, we are postponing the integration of these BioPortal capabilities until the BioPortal search index is consistent with the content of the triple store. For more details, see the discussion at https://github.com/ncbo/bioportal-project/issues/165