Hi Luigi, currently marmotta exposes the LDP root-container at http://localhost:8080/ldp - so if you want to use LDP you neet to use this root.
The services under /user are specialized webservices for user management and authentication and do not comply with LDP. The screnario you are reporting would be a use-case for LDP Indirect Containers, which are currently not supported in marmotta and also a "feature at risk" in the LDP specification. To create a container associated with a user, I'd suggest to create these containers under the /ldp subtree: # create user data container curl -X POST -H "Slug: user data" -H "Content-Type: text/turtle" --data "..." http://localhost:8080/ldp # create the data-container for alice curl -X POST -H "Slug: alice" -H "Content-Type: text/turtle" --data @alice-container.ttl http://localhost:8080/ldp/user-data alice-container.ttl: <> a ldp:Container, ldp:BasicContainer ; dcterms:creator <http://localhost:8080/user/alice> ; dcterms:title "Alice's Container" ; dcterms:description "This container will contain Alice's documents" . Instead of dcterms:creator maybe sioc:has_owner is the better choice - depending on the other vocabularies you are using. Best, Jakob On 17 September 2014 11:23, Luigi Selmi <[email protected]> wrote: > 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
