minor improvements
authorNandana Mihindukulasooriya <nandana.cse@gmail.com>
Wed, 16 Apr 2014 15:02:03 +0200
changeset 557 fc47cc77db0c
parent 556 8120ddd361fd
child 560 dcc78fa4ea34
minor improvements
ldp-primer/ldp-primer.html
--- 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: &lt;http://purl.org/dc/terms/&gt; .
+@prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt; .
+
+&lt;&gt; a foaf:PersonalProfileDocument;
+    foaf:primaryTopic &lt;#me&gt; ;
+    dc:title &quot;Alice’s FOAF file&quot; .
+
+&lt;#me&gt; a foaf:Person;
+    foaf:name &quot;Alice Smith&quot;  .    
+   </pre>  
+   
+   <pre  title="The response for creating a RDF resource" class="example"> 
+HTTP/1.1 201 Created
+Location: /alice/foaf
+Link: &lt;http://www.w3.org/ns/ldp/Resource&gt;; rel=&quot;type&quot;
+Content-Length: 0   
+   </pre>
+   
+   
    </section>