Error while loading Ontology in linux but not in windows

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error while loading Ontology in linux but not in windows

rami_dhouib
This post was updated on .
Hi I have error:
Traceback (most recent call last):
 File "/home/dhouib/Desktop/Konclude-v0.7.0-1138-Linux-Docker-Compiled-x64-GCC4.8.4-Static-Qt5.12.10/gbocheck.py", line 3, in <module>
    onto = get_ontology("test.owl").load()
 File "/home/dhouib/lib/python3.7/site-packages/owlready2/namespace.py", line 1121, in load
    if self.world.graph.indexed: self._load_properties()
 File "/home/dhouib/lib/python3.7/site-packages/owlready2/namespace.py", line 1146,in_load_properties
    if prop._check_update(self) and _LOG_LEVEL:
 File "/home/dhouib/lib/python3.7/site-packages/owlready2/prop.py", line 126, in _check_update
    if issubclass(Prop, ObjectProperty) and onto._has_obj_triple_spo(None, owl_inverse_property, Prop.storid):
 File "/home/dhouib/lib/python3.7/site-packages/owlready2/entity.py", line 419, in issubclass_owlready
    Class_parents = set(Class.namespace.world._get_obj_triples_transitive_sp(Class.storid, Class._rdfs_is_a))
  File "/home/dhouib/lib/python3.7/site-packages/owlready2/triplelite.py", line 815, in _get_obj_triples_transitive_sp
    SELECT x FROM transit""", (s, p, p)).fetchall(): yield x
sqlite3.OperationalError: near "WITH": syntax error

Here you can find the Ontology : https://github.com/RAMIDhouib1998/ontology/blob/main/test.owl .
While trying to load an ontology(test) in linux , its same version of python 3.7.9 and same version of owlready 4.0 but it works fine in windows and not in linux.
Any idea why?? and how to fix this?
Greetings.
Reply | Threaded
Open this post in threaded view
|

Re: Error while loading Ontology in linux but not in windows

rami_dhouib
This post was updated on .
So the error is due to sqlite3 being outdated . Im now searching how to update it in a cluster.