Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created March 30, 2016 14:07
Show Gist options
  • Save ableasdale/2a6ac0b8145683f88881dc51992855b7 to your computer and use it in GitHub Desktop.
Save ableasdale/2a6ac0b8145683f88881dc51992855b7 to your computer and use it in GitHub Desktop.
Using cURL to run a simple query against a database containing triples
curl --anyauth --user user:pass "http://hostname:8000/v1/graphs/sparql?database=Documents" -H "Content-type:application/x-www-form-urlencoded" -H "Accept:text/csv" -X POST --data-binary 'query=SELECT+*+WHERE+{+%3fs+%3fp+%3fo+}+LIMIT+10'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment