--- a/ldp-primer/ldp-primer.html Wed Apr 16 14:52:25 2014 +0200
+++ b/ldp-primer/ldp-primer.html Wed Apr 16 15:02:03 2014 +0200
@@ -35,7 +35,7 @@
<p>First, Alice registers in the system and she is given a space that she can store her documents (She could use LDP protocol to register herself by POSTing to a container of users
but that is out of scope of this example). When she registers she is informed that her document space is http://data.example.org/alice/. </p>
- <section id="filelookup">
<h2>Looking up the document space (GET on an LDP-BC) </h2>
+ <section id="filelookup">
<h2>Looking up a basic container (GET on an LDP-BC) </h2>
<p> First Alice looks up her storage by retrieving the LDP Basic Container assigned to her. As it was just created, it is an empty container.</p>
@@ -82,6 +82,33 @@
<section>
<h2> Creating a RDF resource (POST an RDF resource to an LDP-BC) </h2>
+ <p>Alice decides to create a FOAF profile for her using the LDP-BC by POSTing her FOAF personal profile document. </p>
+
+ <pre title="A request for creating a RDF resource" class="example">
+POST /alice/ HTTP/1.1
+Host: data.example.org
+Slug: foaf
+Content-Type: text/turtle
+
+@prefix dc: <http://purl.org/dc/terms/> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+
+<> a foaf:PersonalProfileDocument;
+ foaf:primaryTopic <#me> ;
+ dc:title "Alice’s FOAF file" .
+
+<#me> a foaf:Person;
+ foaf:name "Alice Smith" .
+ </pre>
+
+ <pre title="The response for creating a RDF resource" class="example">
+HTTP/1.1 201 Created
+Location: /alice/foaf
+Link: <http://www.w3.org/ns/ldp/Resource>; rel="type"
+Content-Length: 0
+ </pre>
+
+
</section>