Unable to programmatically query for ontology terms (started 1/28/2025) #834
Labels
bug
High priority
Widespread issue that reduces usability substantially or an ontology that is completely unusable
Describe the bug
To do an ontology lookup we compose a compound URL that is composed of a URL to to target the terms endpoint for a particular ontology followed by a double url-encoded ontology term IRI.
Example: 'https://www.ebi.ac.uk/ols/api/ontologies/ncbitaxon/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FNCBITaxon_9606'
To get the base URI, we would query for information about the ontology and obtain the non-encoded URI from $.config.fileLocation in the response object. Today, the fileLocation property is not populated and this breaks our ability to programmatically generate queries.
To Reproduce
Example query output where fileLocation is null:
Expected behavior
$.config.fileLocation for MONDO ontology should yield:
https://purl.obolibrary.org/obo
If this change is intended, please recommended a more robust method to obtain the base URI for a given ontology.
Screenshots
FYI, probably related but thought I'd include.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: