Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search functionality fails to find classes with multilingual labeling #175

Open
jvendetti opened this issue Oct 17, 2023 · 2 comments
Open
Labels

Comments

@jvendetti
Copy link
Member

jvendetti commented Oct 17, 2023

Originally reported by Martin on the Musen Lab Slack workspace: https://musenlab.slack.com/archives/C010EAWS60J/p1697495995716159.

The ENVTHES SKOS-format ontology has a class with an English lexical label of "amphibians". Accessible via this REST call:

https://data.bioontology.org/ontologies/ENVTHES/classes/http%3A%2F%2Fvocabs.lter-europe.net%2FEnvThes%2F20624

When using the classes endpoint, the prefLabel is listed using the English lexical label:

Screen Shot 2023-10-17 at 11 39 20 AM

However, a REST call using the search endpoint returns no matches:

https://data.bioontology.org/search?q=amphibians&ontologies=ENVTHES

Screen Shot 2023-10-17 at 1 31 36 PM

The class in question uses multilingual labeling with 3 labels for English, Japanese, and Chinese:

skos:prefLabel "amphibians"@en, "両棲綱"@ja, "两栖动物"@zh;

If you issue a REST call where also_search_properties is set to true, the class is located, presumably because all of the property values are examined:

https://data.bioontology.org/search?q=amphibians&ontologies=ENVTHES&also_search_properties=true

Screen Shot 2023-10-17 at 1 38 11 PM

In this case, the result set displays a Japanese lexical label.

@jvendetti jvendetti added the bug label Oct 17, 2023
@jvendetti
Copy link
Member Author

There are other issues that cover problems with multilingual labeling, e.g., #91. However, it doesn't appear that any of them describe this particular use case where search is failing.

@syphax-bouazzouni
Copy link

fixed in Agroportal with this ontoportal-lirmm#94 (I will do PR for Ontoportal once it is released, ontoportal-lirmm/bioportal_web_ui#337)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants