Skip to content

Instantly share code, notes, and snippets.

@der
Created March 7, 2018 14:01
Show Gist options
  • Save der/d47602ffbd294b2ed572cbccb02c7778 to your computer and use it in GitHub Desktop.
Save der/d47602ffbd294b2ed572cbccb02c7778 to your computer and use it in GitHub Desktop.
fuseki mem test - passing script
#!/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
echo "----"
curl --header 'Accept: application/trig' http://localhost:3030/ds
echo "----"
echo "== Step 3a"
rsparql --service http://localhost:3030/ds/query 'SELECT * WHERE {Graph ?G {?s ?p ?o}} ORDER BY ?G'
echo "----"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment