minor changes to examples to fix some Turtle validation issues
authorNandana Mihindukulasooriya <nandana.cse@gmail.com>
Mon, 07 Jul 2014 12:40:29 +0200
changeset 684 6f6a0bfef978
parent 683 5a74fe04c187
child 685 ada8b2079c6c
minor changes to examples to fix some Turtle validation issues
ldp-primer/examples/bug_create_s1.txt
ldp-primer/examples/ic_bug_create_req.txt
ldp-primer/examples/ic_bug_create_s1.txt
ldp-primer/examples/ic_product_lookup_resp.txt
ldp-primer/examples/product_lookup_resp.txt
--- a/ldp-primer/examples/bug_create_s1.txt	Mon Jul 07 12:17:27 2014 +0200
+++ b/ldp-primer/examples/bug_create_s1.txt	Mon Jul 07 12:40:29 2014 +0200
@@ -2,7 +2,7 @@
 @prefix dcterms: <http://purl.org/dc/terms/> .
 @prefix bt: <http://example.org/vocab/bugtracker#> .
 
-</tracker/ldp-demo/> ldp:DirectContainer;
+</tracker/ldp-demo/> a ldp:DirectContainer;
   ldp:membershipResource </tracker/ldp-demo/#it>;
   ldp:hasMemberRelation bt:hasBug;
   dcterms:title "Product description of LDP Demo product which is also an LDP-DC";
--- a/ldp-primer/examples/ic_bug_create_req.txt	Mon Jul 07 12:17:27 2014 +0200
+++ b/ldp-primer/examples/ic_bug_create_req.txt	Mon Jul 07 12:40:29 2014 +0200
@@ -4,6 +4,7 @@
 
 @prefix dcterms: <http://purl.org/dc/terms/> .
 @prefix bt: <http://example.org/vocab/bugtracker#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
  
 <> a bt:BugReport;
    foaf:primaryTopic <#it>;
--- a/ldp-primer/examples/ic_bug_create_s1.txt	Mon Jul 07 12:17:27 2014 +0200
+++ b/ldp-primer/examples/ic_bug_create_s1.txt	Mon Jul 07 12:40:29 2014 +0200
@@ -1,11 +1,13 @@
 @prefix ldp: <http://www.w3.org/ns/ldp#> .
 @prefix dcterms: <http://purl.org/dc/terms/> .
 @prefix bt: <http://example.org/vocab/bugtracker#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
 
-</tracker/ldp-demo/> ldp:IndirectContainer;
+</tracker/ldp-demo/> a ldp:IndirectContainer;
   ldp:membershipResource </tracker/ldp-demo/#it>;
   ldp:hasMemberRelation bt:hasBug;
-  dcterms:title "Product description of LDP Demo product which is also an LDP-IC";
+  ldp:insertedContentRelation foaf:primaryTopic;
+  dcterms:title "Product description of the LDP Demo product which is also an LDP-IC";
   ldp:contains <bug3>, <bug4> , <bug67> .
   
 <#it> a bt:Product;
@@ -17,10 +19,11 @@
   "@id": "/tracker/ldp-demo/",
   "@type": [ "ldp:IndirectContainer", "bt:Product"],
   "@context": "https://dvcs.w3.org/hg/ldpwg/raw-file/default/ldp-primer/context.json",
-  "dc:title": "Product description of LDP Demo product which is also an LDP-IC",
+  "dc:title": "Product description of the LDP Demo product which is also an LDP-IC",
   "ldp:contains": [{ "@id": "/tracker/ldp-demo/bug3"}, { "@id": "/tracker/ldp-demo/bug3"}, { "@id": "/tracker/ldp-demo/bug67"}],
-  "ldp:hasMemberRelation": "bt:hasBug",
-  "ldp:membershipResource": "#it"
+  "ldp:hasMemberRelation": { "@id": "bt:hasBug" },
+  "ldp:membershipResource": { "@id": "/tracker/ldp-demo/#it" }, 
+  "ldp:insertedContentRelation": { "@id": "foaf:primaryTopic" }
 }
 {
     "@id": "/tracker/ldp-demo/#it",
--- a/ldp-primer/examples/ic_product_lookup_resp.txt	Mon Jul 07 12:17:27 2014 +0200
+++ b/ldp-primer/examples/ic_product_lookup_resp.txt	Mon Jul 07 12:40:29 2014 +0200
@@ -8,6 +8,7 @@
 @prefix ldp: <http://www.w3.org/ns/ldp#> .
 @prefix dcterms: <http://purl.org/dc/terms/> .
 @prefix bt: <http://example.org/vocab/bugtracker#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
 
 </tracker/ldp-demo/> a ldp:IndirectContainer;
   ldp:membershipResource <#it>;
--- a/ldp-primer/examples/product_lookup_resp.txt	Mon Jul 07 12:17:27 2014 +0200
+++ b/ldp-primer/examples/product_lookup_resp.txt	Mon Jul 07 12:40:29 2014 +0200
@@ -9,10 +9,10 @@
 @prefix dcterms: <http://purl.org/dc/terms/> .
 @prefix bt: <http://example.org/vocab/bugtracker#> .
 
-< > ldp:DirectContainer;
+<> a ldp:DirectContainer;
   ldp:membershipResource <#it>;
   ldp:hasMemberRelation bt:hasBug;
-  dcterms:title "Product description of LDP Demo product which is also an LDP-DC";
+  dcterms:title "Product description of the LDP Demo product which is also an LDP-DC";
   ldp:contains <bug3>, <bug4> .
   
 <#it> a bt:Product;
@@ -31,7 +31,7 @@
   "@id": "",
   "@type": [ "ldp:DirectContainer", "bt:Product"],
   "@context": "https://dvcs.w3.org/hg/ldpwg/raw-file/default/ldp-primer/context.json",
-  "dc:title": "Product description of LDP Demo product which is also an LDP-DC",
+  "dc:title": "Product description of the LDP Demo product which is also an LDP-DC",
   "ldp:contains": [{ "@id": "bug3"}, { "@id": "bug4"}],
   "ldp:hasMemberRelation": "bt:hasBug",
   "ldp:membershipResource": { "@id": "#it"}