...
Example (1): Updating properties with RDF content
Code Block |
---|
curl -X PUT -H "Content-Type: text/turtle" --data-binary "@new-triples.rdf" "http://localhost:8080/rest/node/to/update" Request Body: PREFIX dc: <http://purl.org/dc/elements/1.1/> <> dc:title "some-resource-title" . |
Response:
Code Block |
---|
Status: 204 No Content |
Example (2): Creating a new resource at a specified path
Code Block |
---|
curl -X PUT "http://localhost:8080/rest/node/to/create" |
Response:
Code Block |
---|
Status: 201 Created Response Headers: ETag: "ef214795c3b9109389ffa542a6c081976e1e9587" Last-Modified: Mon, 19 May 2014 20:52:57 GMT Location: http://localhost:8080/rest/node/to/create |
Example (3): Creating new datastream content at a specified path
Code Block |
---|
curl -X PUT --upload-file image.jpg "http://localhost:8080/rest/new/datastream/fcr:content" |
Response:
Code Block |
---|
Status: 201 Created Response Headers: ETag: "urn:sha1:ea3d29b28522724a82de042a7b7a4e79a1653435" Last-Modified: Mon, 19 May 2014 20:55:31 GMT Location: http://localhost:8080/rest/new/datastream/fcr:content |
Status:
Status | ||||||
---|---|---|---|---|---|---|
|
Status | ||||||
---|---|---|---|---|---|---|
|
Status | ||||||
---|---|---|---|---|---|---|
|
...
Anchor | ||||
---|---|---|---|---|
|
Modify the triples associated with a resource with SPARQL-Update Status colour Green title PATCH
...