mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
docs: Add N3 Patch to example requests
This commit is contained in:
parent
821bc8a5c4
commit
085d0accad
@ -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: <http://www.w3.org/ns/solid/terms#>. _:rename a solid:InsertDeletePatch; solid:inserts { <ex:s2> <ex:p2> <ex:o2>. }." \
|
||||
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" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user