Skip to content

Instantly share code, notes, and snippets.

@escowles
Created May 21, 2020 17:01
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 escowles/20475662fb704798f2a95fe6113122ee to your computer and use it in GitHub Desktop.
Save escowles/20475662fb704798f2a95fe6113122ee to your computer and use it in GitHub Desktop.
#!/bin/sh
N=$RANDOM
curl -X PUT http://localhost:8080/rest/$N
echo
curl -X PATCH \
-d "INSERT { <> <http://example.org/foo> \"test updated value\" } WHERE {}" \
-H "If-Unmodified-Since: Wed, 21 Oct 1955 07:28:00 GMT" \
-H "Content-Type: application/sparql-update" \
http://localhost:8080/rest/$N
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment