From 085d0accad8e3cf64aa6d9db0597cd5aa8783a1b Mon Sep 17 00:00:00 2001 From: Joachim Van Herwegen Date: Wed, 13 Jul 2022 12:14:50 +0200 Subject: [PATCH] docs: Add N3 Patch to example requests --- documentation/markdown/example-requests.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/documentation/markdown/example-requests.md b/documentation/markdown/example-requests.md index 9c94d5a6b..619f928cd 100644 --- a/documentation/markdown/example-requests.md +++ b/documentation/markdown/example-requests.md @@ -62,8 +62,15 @@ curl -X DELETE http://localhost:3000/myfile.txt ### `PATCH`: Modifying resources -Currently, only patches over RDF resources are supported using [SPARQL Update](https://www.w3.org/TR/sparql11-update/) -queries without `WHERE` clause. +Modify a resource using [N3 Patch](https://solidproject.org/TR/protocol#n3-patch): + +```shell +curl -X PATCH -H "Content-Type: text/n3" \ + --data-raw "@prefix solid: . _:rename a solid:InsertDeletePatch; solid:inserts { . }." \ + http://localhost:3000/myfile.ttl +``` + +Modify a resource using [SPARQL Update](https://www.w3.org/TR/sparql11-update/): ```shell curl -X PATCH -H "Content-Type: application/sparql-update" \