...
Status | ||||||
---|---|---|---|---|---|---|
|
Request Headers:
Lock-Token (Optional) a Lock-Token for any locks previously created on resources updated by this operation
Example (1):
Code Block |
---|
curl -X POST "http://localhost:8080/rest/some/path/to/a/new/resource" |
...
Status | ||||||
---|---|---|---|---|---|---|
|
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Create a new node as a child of the given node Status colour Blue title POST
...
Status | ||||
---|---|---|---|---|
|
Lock-Token (Optional) a Lock-Token for any locks previously created on resources updated by this operation
Note |
---|
The slug you provide does not guarantee the location of the created node. Clients must check the Location header for the path to the created resource. For full control over the generated path, see POST Create a new node at the given path. |
...
Status | ||||||
---|---|---|---|---|---|---|
|
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Create a new node and populate some properties Status colour Blue title POST
...
Status | ||||||
---|---|---|---|---|---|---|
|
Lock-Token (Optional) a Lock-Token for any locks previously created on resources updated by this operation
Query Parameters:
Status subtle true title checksum
...
Status | ||||||
---|---|---|---|---|---|---|
|
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Create a new node and execute a SPARQL-Update query Status colour Blue title POST
...
Status | ||||||
---|---|---|---|---|---|---|
|
Lock-Token (Optional) a Lock-Token for any locks previously created on resources updated by this operation
Query Parameters:
Status subtle true title checksum
...
Status | ||||||
---|---|---|---|---|---|---|
|
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Create a new resource with binary content Status colour Blue title POST
...
The filename provided in the content disposition header will be stored in a premis:hasOriginalName property.. Status subtle true title Content-DISPOSITION
Lock-Token (Optional) a Lock-Token for any locks previously created on resources updated by this operation
Example (1):
Code Block |
---|
curl -X POST --upload-file picture.jpg "http://localhost:8080/rest/binary/resource/to/create" |
...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Modify the triples associated with the resource Status colour Yellow title PUT
...
Status subtle true title IF-Match Status subtle true title If-UNModified-Since
Lock-Token (Optional) a Lock-Token for any locks previously created on resources updated by this operation
Query Parameters:
Checksum of the binary content (in the form urn:sha1:<sha-hash>). If the checksum doesn't match, an error will be returned. Status subtle true title checksum
...
Example:
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 |
Status:
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Status subtle true title IF-Match Status subtle true title If-UNModified-Since
Lock-Token (Optional) a Lock-Token for any locks previously created on resources updated by this operation
Example (1):
Code Block |
---|
curl -X PATCH -H "Content-Type: application/sparql-update" --data-binary "@body.rdf" "http://localhost:8080/rest/node/to/update" Request Body: PREFIX dc: <http://purl.org/dc/elements/1.1/> INSERT { <> dc:title "some-resource-title" . } WHERE { } |
...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Delete a resourcea resource Status colour Red title DELETE
Request Headers:
Lock-Token (Optional) a Lock-Token for any locks previously created on resources updated by this operation
Example:
Code Block |
---|
curl -X DELETE "http://localhost:8080/rest/node/to/delete" |
...
Move a resource (and its subtree) to a new location Status subtle true colour Red title MOVE
Request Headers:
Lock-Token (Optional) a Lock-Token for any locks previously created on resources updated by this operation
Example (1):
Code Block |
---|
curl -X MOVE -H "Destination: http://localhost:8080/rest/new/path/to/node" "http://localhost:8080/rest/path/to/node" |
...
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Status | ||||||
---|---|---|---|---|---|---|
|
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
...