Created
February 21, 2009 21:51
-
-
Save egonw/68201 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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