Reply – How to work with owlready correctly?
Your Name
Subject
Message
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 https://pypi.python.org/pypi/Owlready
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("http://www.lesfleursdunormal.fr/static/_downloads/pizza_onto.owl")
>>> 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\__init__.py", line 154
    def __init__(self, *Entities, ontology = None):
                                         ^
SyntaxError: invalid syntax

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