Ontospy icon indicating copy to clipboard operation
Ontospy copied to clipboard

get_rdf(path) retrieve an empty model

Open corinabioinformatic opened this issue 7 years ago • 1 comments

This script: path = "~\go.owl.rdf" o = ontospy.Ontospy() model = o.load_rdf(path) Takes time to load the file, but once it is loaded retrieve an empty model. But when I download it from the website: url = "http://purl.obolibrary.org/obo/go.owl" model = ontospy.Ontospy(url) It takes longer but at least it retrieve a non empty model. I will check again along the day. But I cannot figurate out the error.

corinabioinformatic avatar Nov 06 '17 09:11 corinabioinformatic

The go.owl ontology loads fine from the command line (after ~ 1HR!). It's a 150M ontology though and ontospy is not optimized for that kind of sizes. Best option you have is probably to load it into a triplestore first, then point ontospy to its sparql endpoint.

I'll be looking at improving loading speed in the context of #44

lambdamusic avatar Dec 07 '18 17:12 lambdamusic