Author: wikier
Date: Thu Apr 10 10:19:31 2014
New Revision: 1586257
URL: http://svn.apache.org/r1586257
Log:
MARMOTTA-487: added some ldp documentation
Added:
marmotta/site/trunk/content/markdown/platform/ldp-module.md
Added: marmotta/site/trunk/content/markdown/platform/ldp-module.md
URL:
http://svn.apache.org/viewvc/marmotta/site/trunk/content/markdown/platform/ldp-module.md?rev=1586257&view=auto
==============================================================================
--- marmotta/site/trunk/content/markdown/platform/ldp-module.md (added)
+++ marmotta/site/trunk/content/markdown/platform/ldp-module.md Thu Apr 10
10:19:31 2014
@@ -0,0 +1,40 @@
+<head><title>Platform - LDP</title></head> <!-- awaiting for
https://jira.codehaus.org/browse/DOXIA-472 -->
+
+# Apache Marmotta Platform: LDP
+
+Since 3.2.0 Marmotta [provides experimental
support](http://wiki.apache.org/marmotta/LDPImplementationReport)
+for the [current working draft](http://www.w3.org/TR/2014/WD-ldp-20140311/) of
the
+[Linked Data Platform 1.0](http://www.w3.org/TR/ldp/) specification.
+
+The ASF activelly participares in the [W3C Working
Group](http://www.w3.org/2012/ldp) helping to define the
+standard, and also providing an early implementation.
+
+## Implementation Restrictions
+
+The current LDP support should be *compliant* with the [current working
draft](http://www.w3.org/TR/2014/WD-ldp-20140311/),
+but *not complete* yet. For now there few [implementation
restrictions](http://wiki.apache.org/marmotta/LDPImplementationReport#Implementation_Restrictions),
+which will be addressed in upcoming releases.
+
+In addition, as soon as the test suite evolves, we'll provide formal
implementation reports.
+
+## Usage
+
+Temporally available under `/ldp` namespace, until we clarify how the current
raw Linked Data resource management
+would live together with LDP, here some examples how to use it:
+
+### Add a source resource to a container
+
+ curl -i -X POST -d @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
+
+where `test.ttl` contains the <abbr title="LDP RDF Source">LDP-RS</abbr> you
want to add to the `/container1` container.
+
+### Add a binary resource to a container
+
+ curl -i -X POST --data-binary @test.png -H "Content-Type: image/png" -H
"Slug: test" http://localhost:8080/ldp/container2
+ curl -i http://localhost:8080/ldp/container2/test
+ curl -i -H "Accept: text/turtle"
http://localhost:8080/ldp/container2/test.png
+ curl -i -H "Accept: image/png"
http://localhost:8080/ldp/container2/test.png
+
+where `test.png` is the <abbr title="LDP Non-RDF Source">LDP-NR</abbr> you
want to add to the `/container2` container.
+