Versions Compared

Key

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

...

Status
subtletrue
colourGreen
title201
  Created

...

 

Status
colourBlue
titlePOST
 Create a new node as a child of the given node

...

Status
subtletrue
colourGreen
title201
  Created

 

...

 

Status
colourBlue
titlePOST
  Create a new node and populate some properties

...

Status
subtletrue
colourGreen
title201
  Created

 

...

 

Status
colourBlue
titlePOST
 Create a new node and execute a SPARQL-Update query

...

Status
subtletrue
colourGreen
title201
  Created

 

...

Status
colourBlue
titlePOST
  Create a new resource with binary content

...

Status
subtletrue
colourGreen
title201
  Created

Status
subtletrue
colourRed
title409
 Conflict

 

...

 

Status
colourYellow
titlePUT
 Modify the triples associated with the resource

...

Status
subtletrue
titleContent-Type
  text/turtle, text/rdf+n3, application/n3, text/n3, application/rdf+xml, application/json+rdf, application/n-triples, text/html

Status
subtletrue
titleIF-Match
Status
subtletrue
titleIf-UNModified-Since

 

Example:

Code Block
curl -X POST -H "Content-Type: text/turtle" "http://localhost:8080/rest/node/to/update" -d "@new-triples.rdf"
 
Request Body:
 
<> dc:title "some-resource-title" .
 

Response:

Code Block
Status: 204 No Content

 

Status:

Status
subtletrue
colourGreen
title204
 
 No Content

Status
subtletrue
colourRed
title412
 Precondition Failed

 

...

 

Status
colourGreen
titlePATCH
 with SPARQL-Update

Request Headers:

Status
subtletrue
titleIF-Match
Status
subtletrue
titleIf-UNModified-Since

Example:

Code Block
curl -X PATCH -H "Content-Type: application/sparql-update" "http://localhost:8080/rest/node/to/update" -d "@body.rdf"
 
Request Body:
 
INSERT {   
  <> dc:title "some-resource-title" .
}
WHERE { }
 

...

Status
subtletrue
colourGreen
title204
  No Content

Status
subtletrue
colourRed
title412
 Precondition Failed

 

...

 

Status
colourRed
titleDELETE
Delete a resource

...

Status
subtletrue
colourGreen
title204
  No Content

 

...

 

Status
subtletrue
colourRed
titleMOVE
 Move a resource (and its subtree) to a new location

...

Status
subtletrue
colourGreen
title201
  Created

Status
subtletrue
colourRed
title409
 Source path doesn't exists

...

Status
subtletrue
colourGreen
title201
  Created

Status
subtletrue
colourRed
title409
 Source path doesn't exists

...

Status
titleGET
 Retrieve binary content

 

Request Headers:

Status
subtletrue
titleIf-None-Match
Status
subtletrue
titleIf-Modified-Since
Status
subtletrue
titleRange

Example:

Code Block
curl "http://localhost:8080/rest/path/to/some/resource/fcr:content"

...

Status
subtletrue
colourGreen
title206
 Partial Content

Status
subtletrue
colourYellow
title304

...