Reply – How to work with owlready correctly?
Your Name
or Cancel
In Reply To
How to work with owlready correctly?
— by Diego Diego
Hello! I try to understand how to work with owlready using
The next text is given by that link:

Load an ontology from a local repository, or from Internet:
>>> from owlready import *
>>> onto_path.append("/path/to/your/local/ontology/repository")
>>> onto = get_ontology("")
>>> onto.load()

Ok. In "Python 2.7.14 Shell"  i'm typing:
>>> from owlready import *
and then i get error message:

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    from owlready import *
  File "C:\Python27\lib\site-packages\owlready\", line 154
    def __init__(self, *Entities, ontology = None):
SyntaxError: invalid syntax

Help me, please! What should I do for correct working with owlready?