Skip to content

Commit

Permalink
fixes issue #506 - updating to ols4
Browse files Browse the repository at this point in the history
  • Loading branch information
proccaserra committed Nov 15, 2023
1 parent 818332d commit 324bcd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions isatools/net/ols.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This module connects to the European Bioinformatics Institute's OLS.
If you have problems with it, check that it's working at
http://www.ebi.ac.uk/ols/
https://www.ebi.ac.uk/ols4/
"""
from __future__ import absolute_import
import json
Expand All @@ -13,7 +13,7 @@
from isatools.model import OntologyAnnotation, OntologySource


OLS_API_BASE_URI = "http://www.ebi.ac.uk/ols/api"
OLS_API_BASE_URI = "https://www.ebi.ac.uk/ols4/api"
OLS_PAGINATION_SIZE = 500


Expand Down
4 changes: 2 additions & 2 deletions tests/utils/test_isatools_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ def test_get_ontology(self):
self.assertEqual(ontology_source.name, 'efo')
self.assertEqual(
ontology_source.file,
'https://www.ebi.ac.uk/ols/api/ontologies/efo')
'https://www.ebi.ac.uk/ols4/api/ontologies/efo?lang=en')
self.assertIsInstance(ontology_source.version, str)
self.assertEqual(
ontology_source.description, '')
ontology_source.description, 'Experimental Factor Ontology')

def test_search_for_term(self):
ontology_source = ols.get_ols_ontology('efo')
Expand Down

0 comments on commit 324bcd4

Please sign in to comment.