Reply – Re: How to work with owlready correctly?
Your Name
Subject
Message
or Cancel
In Reply To
Re: How to work with owlready correctly?
— by Diego Diego
Ok. I have question. For example.
I am typing:

onto = get_ontology("C:\Python33\Railway.owl").load()

and I receive:

* Owlready * Creating new ontology C:\Python33\Railway <C:\Python33\Railway.owl>.
Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    onto = get_ontology("C:\Python33\Railway.owl").load()
  File "C:\Python33\lib\site-packages\owlready\__init__.py", line 275, in load
    f = fileobj or _open_onto_file(self.base_iri, self.name, "r", only_local)
  File "C:\Python33\lib\site-packages\owlready\__init__.py", line 200, in _open_onto_file
    if (mode == "r") and not only_local: return urllib.request.urlopen(base_iri)
  File "C:\Python33\lib\urllib\request.py", line 156, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Python33\lib\urllib\request.py", line 469, in open
    response = self._open(req, data)
  File "C:\Python33\lib\urllib\request.py", line 492, in _open
    'unknown_open', req)
  File "C:\Python33\lib\urllib\request.py", line 447, in _call_chain
    result = func(*args)
  File "C:\Python33\lib\urllib\request.py", line 1310, in unknown_open
    raise URLError('unknown url type: %s' % type)
urllib.error.URLError: <urlopen error unknown url type: c>

What am I doing wrong?