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

Infinite loop when accessing statements or graphs of a Sesame repository. #13

Open
kbogtob opened this issue Dec 7, 2016 · 0 comments

Comments

@kbogtob
Copy link
Contributor

kbogtob commented Dec 7, 2016

I can't get the contexts used inside a Sesame repository anymore. It loops infinitely until the stack level is too deep and it raises an error. It does the same when I try to list the statements using '#each_statement".

The code to trigger this behavior is pretty simple:

server = RDF::Sesame::Server.new(db_url)
repository = server.repository(repository_name')

# either this
repository.each_statement do |s| # <= each starts the infinite loop 
  puts s.inspect
end

# or this
puts repository.graph_names.inspect

I'm pushing a PR in a few minutes, I'll reference this issue.

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

No branches or pull requests

1 participant