Re: [Specifications] Adding already existing resources as collection members

Looking at [Solid HTTPS REST API Spec : Creating content : Alternative: Using SPARQL](https://github.com/solid/solid-spec/blob/master/api-rest.md#alternative-using-sparql-1)

It seems that using HTTP PATCH

```http
PATCH /events/1/attendees HTTP/1.1
Host: events.example
Content-Type: application/sparql-update
```
to add a member one could just use

```sparql
PREFIX hydra: <http://www.w3.org/ns/hydra/core#>
INSERT DATA { </events/1/attendees> hydra:member </people/1> }
```
and to remove

```sparql
PREFIX hydra: <http://www.w3.org/ns/hydra/core#>
DELETE DATA { </events/1/attendees> hydra:member </people/1> }
```

I've also noticed that @RubenVerborgh did some work on N3 Patch for Solid but I didn't get chance to read any of the documentation about it...


-- 
GitHub Notification of comment by elf-pavlik
Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/134#issuecomment-330267172 using your GitHub account

Received on Monday, 18 September 2017 15:52:13 UTC