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

Select query in README doesn't trigger execute() #21

Closed
moustaki opened this issue Feb 20, 2012 · 0 comments
Closed

Select query in README doesn't trigger execute() #21

moustaki opened this issue Feb 20, 2012 · 0 comments
Assignees

Comments

@moustaki
Copy link
Contributor

Going through the SELECT example in the README, I noticed execute() wasn't being triggered. The example in the README therefore returns an empty array.

require 'sparql/client'
sparql = SPARQL::Client.new("http://dbpedia.org/sparql")
query = sparql.select.where([:s, :p, :o]).offset(100).limit(10)
query.each_solution do |solution|
  puts solution.inspect
end
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

2 participants