Re: [Specifications] Should spec mandate on server removing membership triple for deleted resources

LDP also mandates for `ldp:container` to add *containment triple* on POST

https://www.w3.org/TR/ldp/#h-ldpc-http_post
> 5.2.3.2 When a successful HTTP POST request to a LDPC results in the creation of a LDPR, a containment triple MUST be added to the state of the LDPC whose subject is the LDPC URI, whose predicate is ldp:contains and whose object is the URI for the newly created document (LDPR). Other triples may be added as well. The newly created LDPR appears as a contained resource of the LDPC until the newly created document is deleted or removed by other methods. 

IMO we need to handle those two cases POST & DELETE together in `hydra:Collection` which acts like `ldp:Container` (supports creating new resources which it will contain). `hydra:Collection which just references, but not *contains*, other resources seems to work more like regular `ldp:Resource` and creating & deleting resources happens independent from linking/unlinking them to the collection.

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

Received on Tuesday, 5 September 2017 20:06:29 UTC