We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a4d446 commit d048dc6Copy full SHA for d048dc6
cmat/trait_mapping/ols.py
@@ -165,7 +165,8 @@ def get_uri_from_exact_match(text, ontology='EFO'):
165
:param ontology: ID of target ontology to query (default EFO)
166
:return: URI of matching term or None if not found
167
"""
168
- search_url = os.path.join(OLS_BASE_URL, f'search?ontology={ontology}&q={text}&queryFields=label&exact=true')
+ # V2 of the OLS API does not support search currently, so for now use V1
169
+ search_url = f'https://www.ebi.ac.uk/ols4/api/search?ontology={ontology}&q={text}&queryFields=label&exact=true'
170
response = requests.get(search_url)
171
response.raise_for_status()
172
data = response.json()
0 commit comments