Marmotta LDP Implementation Report

Relevant Documents

Meetings

Implementation Report Revisions

Test Suite

Implementation Restrictions

We agree on some restrictions:

The compliance report for this version is available in the Implementation Conformance Report.

Instructions

For accessing this experimental feature you'd need to follow these instructions:

First install all artifacts:

mvn install

And launch the webapp (at launchers/marmotta-webapp/ ) with the experimental features enabled:

mvn clean tomcat7:run -Pexperimental,kiwi,cleanall

Usage

Although not strictly required, it would be good to have some background what's happening under the hood with these commands. For that, please refer to the relevant documents listed above.

Add a source resource to a container

curl -i -X POST -d @src/test/resources/test.ttl -H "Content-Type: text/turtle" -H "Slug: test" http://localhost:8080/ldp/container1
curl -i -H "Accept: text/turtle" http://localhost:8080/ldp/container1/test

Add a binary resource to a container

curl -i -X POST --data-binary @src/test/resources/test.png -H "Content-Type: image/png" -H "Slug: test2" http://localhost:8080/ldp/container2
curl -i http://localhost:8080/ldp/container2/test2
curl -i -H "Accept: text/turtle" http://localhost:8080/ldp/container2/test2.png
curl -i -H "Accept:  image/png" http://localhost:8080/ldp/container2/test2.png