- From: Sergio Fernández <sergio.fernandez@salzburgresearch.at>
- Date: Mon, 05 May 2014 20:15:50 +0200
- To: Nandana Mihindukulasooriya <nmihindu@fi.upm.es>, "public-ldp-wg@w3.org" <public-ldp-wg@w3.org>
Hi, On 05/05/14 12:45, Nandana Mihindukulasooriya wrote: > This is regarding how to handle containment triples when creating binary > resources. > > As per the current spec (5.2.3.12), upon creating an LDP-NR the servers may > create an LDP-RS to maintain metadata about the newly created LDP-NR and > advertise that using a Link Header. E.g. > > HTTP/1.1 201 Created > Location: /image.jpeg > Link: <http://www.w3.org/ns/ldp/Resource>; rel="type" > Link: <http://example.org/metadata>; rel="describedby" > > The question is after the creation, which triples should be added to the > container. > > (1) Is it only the newly created LDP-NR ? > > <ldpc> ldp:contains <image.jpeg> > > or > > (2) or both LDP-NR and LDP-RS ? > > <ldpc> ldp:contains <image.jpeg> > <ldpc> ldp:contains <metadata> I'd say (1) too. In addition, our (free) interpretation in Marmotta about the metadata creates the following: <ldpc> ldp:contains <image.jpeg> . <image.jpeg> a ldp:NonRDFSource ; dct:format "image/jpeg" ; dct:isFormatOf <image> . <image> a ldp:RDFSource ; dct:hasFormat <image.png> . This, accompanied with the rest infrastructure (Vary header and so on) allows the implementation of common content negotiation concepts, handling multiple representation if necessary. > This relevant text in the spec about the containment triple. > > [[ 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. ]] Maybe we should be more explicit than "other triples". Do we want to force any metatada schema there? Maybe something for the BP document. Cheers, -- Sergio Fernández Senior Researcher Knowledge and Media Technologies Salzburg Research Forschungsgesellschaft mbH Jakob-Haringer-Straße 5/3 | 5020 Salzburg, Austria T: +43 662 2288 318 | M: +43 660 2747 925 sergio.fernandez@salzburgresearch.at http://www.salzburgresearch.at
Received on Monday, 5 May 2014 18:16:18 UTC