I'm trying to load
http://www.ontobee.org/ontology/EFO (available as OWL in
http://www.ebi.ac.uk/efo/efo.owl)
Using:
onto_path.append('~/ontologies/efo.owl')
ontology = get_ontology('
http://www.ebi.ac.uk/efo/efo.owl').load()
Then I try to iterate over the ontology classes using:
for ontology_class in ontology.classes():
But I'm getting this error:
for ontology_class in ontology.classes():
../.venv/lib/python3.6/site-packages/owlready2/namespace.py:143: in classes
if not s.startswith("_"): yield self.world._get_by_storid(s)
../.venv/lib/python3.6/site-packages/owlready2/namespace.py:338: in _get_by_storid
return self._get_by_storid2(storid, full_iri, main_type, main_onto, default_to_none, ())
../.venv/lib/python3.6/site-packages/owlready2/namespace.py:375: in _get_by_storid2
obj = self._get_by_storid2(obj, None, main_type, main_onto, trace)
../.venv/lib/python3.6/site-packages/owlready2/namespace.py:375: in _get_by_storid2
obj = self._get_by_storid2(obj, None, main_type, main_onto, trace)
../.venv/lib/python3.6/site-packages/owlready2/namespace.py:375: in _get_by_storid2
obj = self._get_by_storid2(obj, None, main_type, main_onto, trace)
../.venv/lib/python3.6/site-packages/owlready2/namespace.py:375: in _get_by_storid2
obj = self._get_by_storid2(obj, None, main_type, main_onto, trace)
E RecursionError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
Any ideas of why is this happening?
Cheers!
Federico