Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Last active August 29, 2015 14:16
Show Gist options
  • Save jcoyne/773ac4d67f5b7f1945e3 to your computer and use it in GitHub Desktop.
Save jcoyne/773ac4d67f5b7f1945e3 to your computer and use it in GitHub Desktop.
query = sparql.select.where([:s, RDF::SKOS.prefLabel, "aerial photographs"]).limit(10)
=> #<SPARQL::Client::Query:0x3feaf0152244(SELECT * WHERE { ?s <http://www.w3.org/2004/02/skos/core#prefLabel> "aerial photographs" . } 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