Hello everyone, I am trying Marmotta and I have some questions regarding the
following creation request
LDP-RS creation via HTTP POST
=========================================
I am creating a LDP-RS with the following details of the HTTP Request:
Headers:
Content-Type: text/turtle
Link: <http://www.w3.org/ns/ldp#Resource>; rel='type'
Link: <http://www.w3.org/ns/ldp#RDFSource>; rel='type'
body:
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix ex: <http://example.com/> .
<> dcterms:title "Photos of Alice";
ex:show ex:Alice .
ex:Sam ex:isShownIn <> .
Questions
==========
Though the resource is created, I notice some issues:
1. The resource has type ldp:RDFSource, ldp:Resource, ldp:Container and
ldp:BasicContainer. ldp:RDFSource and ldp:Resource is ok but why also
ldp:Container and ldp:BasicContainer. I did not specify this in the request. Am
I missing anything specified in the LDP Standard ?
2. When downloading the resource from the link provided in the HTML
view, only triples where the resources is a subject is returned. So in my case,
I am not getting the triple "ex:Sam ex:isShownIn <>"
3. When doing content negotiation, I get all the triples when the
turtle is not valid. For the resource created above, the get the following
turtle :
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix parent: <http://localhost:8080/marmotta/ldp/> .
@prefix child:
<http://localhost:8080/marmotta/ldp/newresource10/> .
@prefix this:
<http://localhost:8080/marmotta/ldp/newresource10#> .
parent:newresource10 a ldp:Resource , ldp:RDFSource ,
ldp:Container , ldp:BasicContainer ;
ldp:interactionModel ldp:Container ;
dcterms:created
"2017-06-18T04:46:36.000+02:00"^^xsd:dateTime ;
dcterms:modified
"2017-06-18T04:46:36.000+02:00"^^xsd:dateTime ;
dcterms:title "Photos of Alice" ;
<http://example.com/show> <http://example.com/Alice>; .
<http://example.com/Sam> <http://example.com/isShownIn>;
parent:newresource10 .