Skip to content

Instantly share code, notes, and snippets.

@amoeba
Created April 17, 2016 18:30
Show Gist options
  • Select an option

  • Save amoeba/652cb9cc07ce57d72776fa54edaf12c7 to your computer and use it in GitHub Desktop.

Select an option

Save amoeba/652cb9cc07ce57d72776fa54edaf12c7 to your computer and use it in GitHub Desktop.
# Query for the list of named graphs available
curl -H "Accept: application/json" "http://harvest.geolink.org:8080/openrdf-sesame/repositories/glharvest?queryLn=SPARQL&infer=false&query=SELECT%20DISTINCT%20%3Fg%20WHERE%20%7B%20%20GRAPH%20%3Fg%20%7B%3Fs%20%3Fp%20%3Fo%7D%7D"
# Query a particular named graph:
curl -H "Accept: application/json" "http://harvest.geolink.org:8080/openrdf-workbench/repositories/glharvest/query?action=exec&queryLn=SPARQL&query=SELECT%20*%20FROM%20%3Chttp%3A%2F%2Flocalhost%3A8080%2Fopenrdf-sesame%2Frepositories%2Fglharvest%2Frdf-graphs%2Fsesar%3E%20WHERE%20%7B%20%3Fs%20%3Fp%20%3Fo%20%7D%20LIMIT%205&limit=100&infer=true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment