Skip to content

Instantly share code, notes, and snippets.

@dajobe
Created October 18, 2010 06:26
Show Gist options
  • Save dajobe/631814 to your computer and use it in GitHub Desktop.
Save dajobe/631814 to your computer and use it in GitHub Desktop.
sparql protocol
$ utils/roqet -r table -p http://triplr.org/sparql 'PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?nick, ?name FROM <http://www.dajobe.org/foaf.rdf> WHERE { ?x a foaf:Person . ?x foaf:nick ?nick . ?x foaf:name ?name } ' 2>/dev/null
----------------------------------------------------
| nick | name |
====================================================
| string("danbri") | string("Dan Brickley") |
| string("libby") | string("Libby Miller") |
| string("sbp") | string("Sean B. Palmer") |
| string("ndw") | string("Norm Walsh") |
| string("mortenf") | string("Morten Frederiksen") |
| string("zool") | string("Jo Walsh") |
| string("shellac") | string("Damian Steer") |
| string("DanC") | string("Dan Connolly") |
| string("jang") | string("Jan Grant") |
| string("em") | string("Eric Miller") |
| string("emiller") | string("Eric Miller") |
----------------------------------------------------
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment