json-ld @context
authorRoger Menday <roger.menday@uk.fujitsu.com>
Thu, 08 Aug 2013 17:47:54 +0100
changeset 263 b2dc30dc6fb1
parent 261 cd7061ab2325
child 264 83b08e78a69e
json-ld @context
ldp-primer/context.json
ldp-primer/product_lookup_resp.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/context.json	Thu Aug 08 17:47:54 2013 +0100
@@ -0,0 +1,4 @@
+
+
+the json-ld @context ...:
+
--- a/ldp-primer/product_lookup_resp.txt	Thu Aug 08 13:51:22 2013 +0200
+++ b/ldp-primer/product_lookup_resp.txt	Thu Aug 08 17:47:54 2013 +0100
@@ -4,13 +4,27 @@
 ETag: W/"123456789"
 
 </app/product1> a bt:Product, ldp:Container;
-    ldp:membershipSubject <>;
-    ldp:membershipPredicate bt:hasbug;
-    ldp:membershipObject ldp:MemberSubject;	
-    dcterms:title "Product 1";
-    bt:hasbug </app/product1/bug3>;
-    bt:hasbug </app/product1/bug4> .
+  ldp:membershipSubject <>;
+  ldp:membershipPredicate bt:hasbug;
+  ldp:membershipObject ldp:MemberSubject;	
+  dcterms:title "Product 1";
+  bt:hasbug </app/product1/bug3>;
+  bt:hasbug </app/product1/bug4> .
 
 ---
 
-{ 'needto': 'fill out' }
\ No newline at end of file
+HTTP/1.1 200 OK 
+Content-Type: text/turtle; charset=UTF-8
+Link: <http://www.w3.org/ns/ldp/Resource>; rel="type"
+ETag: W/"123456789"
+
+{
+  "@id": "/app/product1",
+  "@type": [ "ldp:Container", "bt#Product"],
+  "@context": "...?...."
+  "dc:title": "Product 1",
+  "bt:hasbug": [ "/app/product1/bug3", "/app/product1/bug4" ],
+  "ldp:membershipObject": "ldp#MemberSubject",
+  "ldp:membershipPredicate": "bt:hasbug",
+  "ldp:membershipSubject": ""
+}
\ No newline at end of file