Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_rdf(path) retrieve an empty model #35

Open
corinabioinformatic opened this issue Nov 6, 2017 · 1 comment
Open

get_rdf(path) retrieve an empty model #35

corinabioinformatic opened this issue Nov 6, 2017 · 1 comment
Labels

Comments

@corinabioinformatic
Copy link

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.

@lambdamusic
Copy link
Owner

lambdamusic commented Dec 7, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants