Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created March 3, 2015 17:11
Show Gist options
  • Save jcoyne/0be0a211e2e3bbdda8ce to your computer and use it in GitHub Desktop.
Save jcoyne/0be0a211e2e3bbdda8ce to your computer and use it in GitHub Desktop.
sparql = SPARQL::Client.new('http://localhost:8888/marmotta/sparql')
query = sparql.select.where([:s, :p, :o]).offset(100).limit(10)
query.each_statement do |statement|
puts statement.inspect
end
SPARQL::Client::ClientError: impossible to determine which type of operation (query/update) the request contains Processing query SELECT * WHERE { ?s ?p ?o . } OFFSET 100 LIMIT 10
from /Users/justin/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/sparql-client-1.1.3.1/lib/sparql/client.rb:342:in `block in response'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment