EBISPOT / ols4

Version 4 of the EMBL-EBI Ontology Lookup Service (OLS)
http://www.ebi.ac.uk/ols4/
Apache License 2.0
47 stars 22 forks source link

Additional field for search by `iri` or `class` on Suggestion Controller #743

Open MateuszDev96 opened 2 months ago

MateuszDev96 commented 2 months ago

I use the endpoint /api/suggest in my input autocomplete so that the user can enter the key accurately but currently there is no way to specify anything more than antology and q to the query. I would like to be able to specify iri or class.

http://purl.obolibrary.org/obo/CLO_0000019 or CLO_0000019.

image

currently endpoint returns data to me that does not belong to a specific class within which it needs to look for

msinclair2 commented 1 month ago

I would also like to be able to specify a class or term in an ontology so that the autosuggest results only give me descendants of that class and not from the entire ontology.