reading CL onto from sqlite3

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

reading CL onto from sqlite3

gp
Hello,

After running
import owlready2 as owl

#%% load cl
clIRI = "http://purl.obolibrary.org/obo/cl.owl"
clSQL = r'C:\temp\cl2.sqlite3'

#%%
# load from web
cl = owl.get_ontology(clIRI).load()
#%%
owl.default_world.set_backend(filename = clSQL)
owl.default_world.save()

The following results in an error:
import owlready2 as owl

#%% load cl
clIRI = "http://purl.obolibrary.org/obo/cl.owl"
clSQL = r'C:\temp\cl2.sqlite3'

#%%  load from local sql copy
my_world = owl.World(filename = clSQL)
cl2 = my_world.get_ontology(clIRI).load()

Am I doing somthing wrong here? Since
http://www.lesfleursdunormal.fr/static/_downloads/pizza_onto.owl
does not result in any issue I am more afraid that the CL onto is the problem though...

Cheers,
GP

 
Reply | Threaded
Open this post in threaded view
|

Re: reading CL onto from sqlite3

Jiba
Administrator
Hello,

You're right, there is a bug, caused by the fact that a property in CL refers to another property defined in another ontology, not yet loaded.

I've just fixed the bug in the development version.

Best regards,
Jiba
gp
Reply | Threaded
Open this post in threaded view
|

Re: reading CL onto from sqlite3

gp
Sounds good, thanks a lot!