Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option: EMMObased = False in ontology.load() #262

Merged
merged 12 commits into from
Oct 22, 2021
5 changes: 3 additions & 2 deletions ontopy/ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def remove_label_annotation(self, iri):
def load(self, only_local=False, filename=None, format=None,
reload=None, reload_if_newer=False, url_from_catalog=None,
catalog_file='catalog-v001.xml', tmpdir=None,
**kwargs):
EMMObased=True,**kwargs):
francescalb marked this conversation as resolved.
Show resolved Hide resolved
"""Load the ontology.

Parameters
Expand Down Expand Up @@ -329,7 +329,7 @@ def load(self, only_local=False, filename=None, format=None,
tmpdir=tmpdir, **kwargs)

# Enable optimised search by get_by_label()
if self._special_labels is None:
if self._special_labels is None and EMMObased == True:
for iri in DEFAULT_LABEL_ANNOTATIONS:
self.add_label_annotation(iri)
t = self.world['http://www.w3.org/2002/07/owl#topObjectProperty']
Expand All @@ -347,6 +347,7 @@ def load(self, only_local=False, filename=None, format=None,
def _load(self, only_local=False, filename=None, format=None,
reload=None, reload_if_newer=False, url_from_catalog=None,
catalog_file='catalog-v001.xml', tmpdir=None,
EMMObased=True,
CasperWA marked this conversation as resolved.
Show resolved Hide resolved
**kwargs):
"""Help function for _load()."""
web_protocol = 'http://', 'https://', 'ftp://'
Expand Down