Skip to content

Instantly share code, notes, and snippets.

@egonw
Created February 21, 2009 21:51
Show Gist options
  • Select an option

  • Save egonw/68201 to your computer and use it in GitHub Desktop.

Select an option

Save egonw/68201 to your computer and use it in GitHub Desktop.
// download and process the ONS Solubility RDF data
ons = rdf.createStore()
rdf.importURL(ons,"http://github.com/egonw/onssolubility/raw/master/ons.solubility.rdf/ons.rdf")
rdf.sparql(ons,"SELECT DISTINCT ?type WHERE { ?s a ?type }")
// or, list all solutes:
rdf.sparql(ons,"SELECT ?s WHERE { ?s a <http://spreadsheet.google.com/plwwufp30hfq0udnEmRD1aQ/onto#Solute> }")
// or, just dump the whole database to the console
rdf.dump(ons)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment