Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Status
subtletrue
titleContent-Type
(Optional) MIME type of the uploaded datastream or RDF content.

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.

...

Status
subtletrue
titlelock-token
 (Optional) a Lock-Token for any locks previously created on resources updated by this operation

CONTENT-LOCATION (Optional) A URI to a resource to use instead of the request body

Query Parameters:

Status
subtletrue
titlechecksum
 Checksum of the binary content (in the form urn:sha1:<sha-hash>). If the checksum doesn't match, an error will be returned.

...

 

Status
subtletrue
titleLock-token
(Optional) a Lock-Token for any locks previously created on resources updated by this operation

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 { }
 

...