Ontospy
Ontospy copied to clipboard
get_rdf(path) retrieve an empty model
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.
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