I am trying to install the development version of owlready2; I take the following step;
- Extracted the development version downloaded from https://bitbucket.org/jibalamy/owlready2/downloads/
- uninstalled previously installed owlready versions
- went to the extracted directory and did python setup.py develop
but it is giving me the error that No module named owlready2
The code I am trying to run is below;
from owlready2 import *
onto = get_ontology("http://myplatform.com/test_sensor_onto")
onto.imported_ontologies = []
sosa = get_ontology("file://sosa.owl").load()
ssn = get_ontology("file://ssn.owl").load()
onto.imported_ontologies.append(sosa)
onto.imported_ontologies.append(ssn)
sensor = sosa.Sensor("mySensor", namespace = onto)
onto.save("test_sensor_onto2.owl")
I have also tried to use python setup.py install, but then it gives an error that
sensor =sosa.Sensor("mySensor", namespace = onto) TypeError: 'NoneType' object is not callable
This error is same as for non-development versions of owlready2. I am wondering if I am doing anything wrong while installing the development version or I have to change some settings somewhere?