Skip to content

Instantly share code, notes, and snippets.

@afs
Created March 6, 2018 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afs/cd6953b06985dde37a9581134ec13165 to your computer and use it in GitHub Desktop.
Save afs/cd6953b06985dde37a9581134ec13165 to your computer and use it in GitHub Desktop.
DER example (2108-03-06)
#!/bin/bash
echo "== Step 1a"
curl --header 'Accept: application/trig' http://localhost:3030/ds
echo "----"
s-put http://localhost:3030/ds/data http://localhost:3030/graph5 update.ttl
echo "== Step 1b"
curl --header 'Accept: application/trig' http://localhost:3030/ds
echo "----"
echo "== Step 2a"
rupdate --service=http://localhost:3030/ds/update --file U1.ru
curl --header 'Accept: application/trig' http://localhost:3030/ds
echo "== Step 2b"
echo "----"
echo "== Step 3a"
rsparql --service http://localhost:3030/ds/query 'SELECT * WHERE {Graph ?G {?s ?p ?o}} ORDER BY ?G'
echo "== Step 3b"
echo "== Step 4a"
s-query --service http://localhost:3030/ds/query --output text 'SELECT * WHERE {Graph ?G {?s ?p ?o}} ORDER BY ?G'
echo "== Step 4b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment