Skip to content

Instantly share code, notes, and snippets.

@awead
Created October 29, 2014 17:22
Show Gist options
  • Save awead/960301e1b0e39742fd6b to your computer and use it in GitHub Desktop.
Save awead/960301e1b0e39742fd6b to your computer and use it in GitHub Desktop.
Curl example to make something versionable
curl -X PATCH -H "Content-type: application/sparql-update" --data-binary "insert data { <http://localhost:8983/fedora/rest/test/81/e3/aa/db/81e3aadb-e54e-423f-9ac3-85d96c726aa3/descMetadata/fcr:versions> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.jcp.org/jcr/mix/1.0versionable> . }" http://localhost:8983/fedora/rest/test/81/e3/aa/db/81e3aadb-e54e-423f-9ac3-85d96c726aa3/descMetadata/fcr:versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment