...
(Optional) MIME type of the uploaded datastream or RDF content. Status subtle true title Content-Type
CONTENT-LOCATION (Optional) A URI to a resource to use instead of the request body
Note |
---|
If the MIME type corresponds to a supported RDF format or SPARQL-Update, the uploaded content will be parsed as RDF and used to populate the child node properties. RDF will be interpreted using the current resource as the base URI (e.g. <> will be expanded to the current URI). Namespaces must be declared in full. For other MIME types, the uploaded content will be used to create a datastream. |
...
(Optional) a Lock-Token for any locks previously created on resources updated by this operation Status subtle true title lock-token
CONTENT-LOCATION (Optional) A URI to a resource to use instead of the request body
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
...
(Optional) a Lock-Token for any locks previously created on resources updated by this operation Status subtle true title Lock-token
CONTENT-LOCATION (Optional) A URI to a resource to use instead of the request body
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 { } |
...