Hi Allan, On Tue, Oct 13, 2015 at 2:50 AM, Robson, Alan <alan.rob...@viasat.com> wrote: > > When I DELETE a resource using the LDP interface it seems final – I can > never use the same resource ID again (ie the Slug). Is there some way to > restore a deleted resource ? > > > > For example, If I DELETE http://192.168.0.11:8080/marmotta/ldp/Test > > > > I can no longer PUT to http://192.168.0.11:8080/marmotta/ldp/Test to > bring it back to life (410 – Gone) > > > > And If I try to create another http://192.168.0.11:8080/marmotta/ldp/Test > The system creates http://192.168.0.11:8080/marmotta/ldp/Test-1 or some > such thing. >
That's right. The Marmotta LDP implementation internally keeps track of the deleted LDPR to be conformance with sec. 5.2.3.11 [1]: "LDP servers that allow member creation via POST should not re-use URIs". In the end the new resource name that you are getting is a combination of that with what sec. 5.2.3.10 says about the choice of resource URI [2]. Also – once I have created a BNode, how can I delete it using the LDP > interface please ? > > LDPRs always have a URI. BNodes can only be part of the LDPR description, so it will be removed/updated with the resource. Please, notice that the LDP uses the same RDF storage that the whole Marmotta, so you could use other methods (e.g., SPARQL) to access the data in a non-normative LDP way if necessary. But you must do that under your own risk, because you can break the LDP hierarchy! Hope that helps. Cheers, [1] http://www.w3.org/TR/ldp/#h-ldpc-post-dontreuseuris [2] http://www.w3.org/TR/ldp/#h-ldpc-post-slug -- Sergio Fernández Partner Technology Manager Redlink GmbH m: +43 6602747925 e: sergio.fernan...@redlink.co w: http://redlink.co