trying to add json-ld examples
authorRoger Menday <roger.menday@uk.fujitsu.com>
Mon, 05 Aug 2013 22:30:00 +0100
changeset 250 6278282623ce
parent 249 ae8b9466b9c2
child 251 2e8c2fcfd7a7
trying to add json-ld examples
ldp-primer/attachments_post_req.txt
ldp-primer/attachments_post_res.txt
ldp-primer/attachments_s1.txt
ldp-primer/attachments_s2.txt
ldp-primer/bug_create_req.txt
ldp-primer/bug_create_res.txt
ldp-primer/bug_create_s1.txt
ldp-primer/bug_create_s2.txt
ldp-primer/bug_look_up_resp.txt
ldp-primer/bug_update_req.txt
ldp-primer/ldpc_ex.txt
ldp-primer/ldpc_ex_m.txt
ldp-primer/ldpc_ex_non_ldpr.txt
ldp-primer/ldpr_ex.txt
ldp-primer/product_create_req.txt
ldp-primer/product_create_res.txt
ldp-primer/product_create_s1.txt
ldp-primer/product_create_s2.txt
ldp-primer/product_create_s3.txt
ldp-primer/product_lookup.txt
ldp-primer/product_lookup_resp.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/attachments_post_req.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,13 @@
+POST /Bug1/attachments/ HTTP/1.1
+Host: example.org
+Content-Type: image/png
+Slug: login-page.png
+Content-Length: 1254
+
+#### binary data #####
+
+
+
+---
+
+{ 'needto': 'fill out' }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/attachments_post_res.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,8 @@
+HTTP/1.1 201 Created
+Location: /Bug1/attachments/login-page.png
+Link: </Bug1/attachments/attachment1>; rel="meta"
+Content-Length: 0
+
+---
+
+{ 'needto': 'fill out' }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/attachments_s1.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,5 @@
+</app/product1/bug3/attachments/> a ldp:Container;
+    dcterms:title "A container that tracks bugs of Product A" ;
+    ldp:membershipSubject <>;
+    ldp:membershipPredicate bt:hasAttachment;
+    ldp:membershipObject ldp:MemberSubject .
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/attachments_s2.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,6 @@
+</app/product1/bug3/attachments/> a ldp:Container;
+    dcterms:title "A container that tracks bugs of Product A" ;
+    ldp:membershipSubject <>;
+    ldp:membershipPredicate bt:hasAttachment;
+    ldp:membershipObject ldp:MemberSubject;
+    bt:hasAttachment <login-page.png> . 
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/bug_create_req.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,7 @@
+POST /app/product1 HTTP/1.1
+Host: example.org
+Content-Type: text/turtle
+ 
+<> a bt:Bug;
+     dcterms:title "Product A crashes when shutting down.";
+     dcterms:creator </app/users/johndoe> . 
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/bug_create_res.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,3 @@
+HTTP/1.1 201 Created
+Location: /app/BugTracker/ProductA/Bug1
+Content-Length: 0 
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/bug_create_s1.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,5 @@
+<http://example.org/app/BugTracker/ProductA> a ldp:Container, bt:Product;
+    dcterms:title "A container that tracks bugs of Product A" ;
+    bt:hasbug </app/product1/bug3> ;
+    bt:hasbug </app/product1/bug4> ;
+	bt:hasbug </app/product1/bug67> .
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/bug_create_s2.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,5 @@
+</app/product1/bug67> a bt:Bug;
+     dcterms:title "Product A crashes when shutting down.";
+     dcterms:creator </app/users/johndoe>;
+     dcterms:created "2013-05-05T10:00"^^xsd:dateTime;
+     bt:isInState "New" .
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/bug_look_up_resp.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,10 @@
+HTTP/1.1 200 OK 
+Content-Type: text/turtle
+Link: <http://www.w3.org/ns/ldp/Resource>; rel="type"
+ETag: W/"123456789"
+
+ </app/product1/bug3> a bt:Bug;
+      dcterms:title "Product A crashes when shutting down.";
+      dcterms:creator </app/users/johndoe>;
+      dcterms:created "2013-05-05T10:00"^^xsd:dateTime
+      bt:isInState "New" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/bug_update_req.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,11 @@
+PUT /app/product1/bug3 HTTP/1.1
+Host: example.org
+Content-Type: text/turtle
+If-Match: W/"123456789"
+
+ </app/product1/bug3> a bt:Bug;
+      dcterms:title "Product 1 crashes when shutting down.";
+      dcterms:creator </app/users/johndoe>;
+      dcterms:created "2013-05-05T10:00"^^xsd:dateTime;
+      bt:isInState "InProgress";
+      bt:relatedBug </app/product1/bug4> . 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/ldpc_ex.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,14 @@
+@prefix dc:   <http://purl.org/dc/terms/> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ldp:  <http://www.w3.org/ns/ldp#> .
+
+<http://id.nandana.org/friends/> a foaf:Group, ldp:Container;
+	dc:title "Friends of Nandana";
+	ldp:membershipSubject <>;
+	ldp:membershipPredicate foaf:member ;
+	ldp:membershipObject ldp:MemberSubject;	
+	foaf:member <roger>, <raul>, <bob>, <alice>, <joe> .
+
+---
+
+{ 'edwedew': 'edwde' }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/ldpc_ex_m.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,7 @@
+@prefix dc:   <http://purl.org/dc/terms/> .
+@prefix owl: <http://www.w3.org/2002/07/owl#> .
+
+<http://id.nandana.org/friends/roger> a foaf:Person;
+    owl:sameAs <http://www.linkedin.com/in/yadnem> ;
+    foaf:name "Roger Menday" ;
+    foaf:workplaceHomepage <http://www.fujitsu.com/uk/> .
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/ldpc_ex_non_ldpr.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,10 @@
+@prefix dc:   <http://purl.org/dc/terms/> .
+@prefix ldp:  <http://www.w3.org/ns/ldp#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
+
+<http://id.nandana.org/photos/> a ldp:Container;
+	dc:title "Photos of Nandana";
+	ldp:membershipSubject <>;
+	ldp:membershipPredicate rdf:member ;
+	ldp:membershipObject ldp:MemberSubject;	
+	rdf:member <sunset.png>, <beach.png>, <park.jpeg> .
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/ldpr_ex.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,15 @@
+@prefix dc: <http://purl.org/dc/terms/> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+
+<http://id.nandana.org/card> a foaf:PersonalProfileDocument;
+    foaf:primaryTopic <http://id.nandana.org/card#me> ;
+    dc:title "Nandana's FOAF file" .
+    
+<http://id.nandana.org/card#me> a foaf:Person;
+    foaf:name "Nandana Mihindukulasooriya" ;
+    foaf:workplaceHomepage <http://www.oeg-upm.net/> ;
+    foaf:based_near <http://dbpedia.org/resource/Madrid> . 
+
+---
+
+{ 'needto': 'fill out' }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/product_create_req.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,8 @@
+POST /app/BugTracker HTTP/1.1
+Host: example.org
+Content-Type: text/turtle
+Slug: ProductA
+ 
+<> a ldp:Container, bt:Product;
+   dcterms:title "Product A" ; 
+   dcterms:description "A container that tracks bugs of Product A" .  
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/product_create_res.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,3 @@
+HTTP/1.1 201 Created
+Location: http://example.org/app/BugTracker/ProductA
+Content-Length: 0 
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/product_create_s1.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,3 @@
+</app/> a ldp:Container, bt:BugTracker ;
+    ldp:membershipPredicate bt:tracksProject .
+    bt:tracksProject </app/product1> .
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/product_create_s2.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,3 @@
+ </app/> a ldp:Container, bt:BugTracker;
+    bt:tracksProject </app/Product1/> ;
+    bt:tracksProject </app/Product2/> .
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/product_create_s3.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,3 @@
+ </app/Product2> a ldp:Container, bt:Product;
+   dcterms:title "Product A" ; 
+   dcterms:description "A container that tracks bugs of Product A" .  
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/product_lookup.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,11 @@
+HTTP/1.1 200 OK 
+Content-Type: text/turtlecharset=UTF-8
+Link: <http://www.w3.org/ns/ldp/Resource>; rel="type"
+Link: <?nonMemberProperties>;rel="http://www.w3.org/ns/ldp#nonMemberResource"
+ETag: W/"123456789"
+
+</app/product1> a bt:Product, ldp:Container;
+      ldp:membershipPredicate bt:hasbug ;
+      dcterms:title "Product 1" ;
+      bt:hasbug </app/product1/bug3> ;
+      bt:hasbug </app/product1/bug4> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ldp-primer/product_lookup_resp.txt	Mon Aug 05 22:30:00 2013 +0100
@@ -0,0 +1,12 @@
+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"
+
+</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> .