diff --git a/isatools/net/ols.py b/isatools/net/ols.py index 9602508e..955edf6a 100644 --- a/isatools/net/ols.py +++ b/isatools/net/ols.py @@ -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 @@ -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 diff --git a/tests/utils/test_isatools_utils.py b/tests/utils/test_isatools_utils.py index b7f1a8b2..a36369cc 100644 --- a/tests/utils/test_isatools_utils.py +++ b/tests/utils/test_isatools_utils.py @@ -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')