Hi all

I would like to create a container associated to a user in Marmotta. I
created a user from the UI so I have http://localhost:8080/user/alice
<http://localhost:8080/user/bob> then I tried to create a "docs" container
for it using the command

curl -i -X POST -H "Content-Type: text/turtle" -H "Link: <
http://www.w3.org/ns/ldp/BasicContainer>; rel='type'" -H "Slug: docs" -T
alice-container.ttl  http://localhost:8080/user/alice

with the turtle data containing information about the container

<> a ldp:Container, ldp:BasicContainer ;
   dcterms:title "Alice's Container" ;
   dcterms:description "This container will contain Alice's documents" .

Marmotta replies with

HTTP/1.1 405 Method Not Allowed
Server: Apache Marmotta/3.2.1 (build 0)
Allow: GET, OPTIONS, HEAD
Content-Length: 0
Date: Wed, 17 Sep 2014 09:10:39 GMT

that means I can't create a container attached to the user or I did
something wrong. In both cases my question is: how can I create a container
associated to a user in Marmotta with curl ?

Best

Luigi

Reply via email to