Added a note about non-lean pathological graphs. Added Cut example. Fixed the URIs in examples. ldpatch
authorAndrei Sambra <andrei@w3.org>
Wed, 19 Nov 2014 10:40:22 -0500
branchldpatch
changeset 885 91b421e26b16
parent 884 7a8d123386ee
child 886 53e7f5b2f6f5
Added a note about non-lean pathological graphs. Added Cut example. Fixed the URIs in examples.
ldpatch.html
--- a/ldpatch.html	Tue Nov 18 23:57:10 2014 -0500
+++ b/ldpatch.html	Wed Nov 19 10:40:22 2014 -0500
@@ -361,7 +361,8 @@
           <p>
               The <a>Cut</a> operation is used to remove one or more triples from the existing graph, having a matching <a class="internalDFN" href="#grammar-production-subject">subject</a> that corresponds to either an IRI or a previously bound varible.
           <pre class='example'>
-  @@TODO use UpdateList example .
+Bind ?workLocation &lt;#&gt; /schema:workLocation .
+Cut ?workLocation.
           </pre>
           </p>
         </section>
@@ -468,7 +469,7 @@
         </p>
 
         <p>
-          Therefore, ambiguous blank nodes are considered a pathological case in the context of Linked Data, and so the fact that they cannot be coped with in LD Patch is deemed acceptable. Furthermore, their presence in a graph does not prevent the other nodes of that graph to be handled by LD Patch.
+          Therefore, ambiguous blank nodes are considered a pathological case in the context of Linked Data, and so the fact that they cannot be coped with in LD Patch is deemed acceptable. Furthermore, their presence in a graph does not prevent the other nodes of that graph to be handled by LD Patch. In fact, all <a href="http://www.w3.org/TR/rdf11-mt/#dfn-lean">non-lean graphs</a> [[!rdf11-mt]] can be considered to be pathological.
         </p>
 
         </section>
@@ -487,7 +488,7 @@
 @prefix profile: &lt;http://ogp.me/ns/profile#&gt; .
 @prefix ex: &lt;http://example.org/vocab#&gt; .
 @prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
-&lt;http://example.com/timbl#&gt; a schema:Person ;
+&lt;#&gt; a schema:Person ;
   schema:alternateName "TimBL" ;
   profile:first_name "Tim" ;
   profile:last_name "Berners-Lee" ;
@@ -513,26 +514,26 @@
 Content-Type: text/ldpatch
 If-Match: "abc123"
 
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-@prefix schema: <http://schema.org/> .
-@prefix profile: <http://ogp.me/ns/profile#> .
-@prefix ex: <http://example.org/vocab#> .
+@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
+@prefix schema: &lt;http://schema.org/&gt; .
+@prefix profile: &lt;http://ogp.me/ns/profile#&gt; .
+@prefix ex: &lt;http://example.org/vocab#&gt; .
 
-Delete { <#> profile:first_name "Tim" } .
+Delete { &lt;#&gt; profile:first_name "Tim" } .
 Add {
-  <#> profile:first_name "Timothy" ;
-    profile:image <https://example.org/timbl.jpg> .
+  &lt;#&gt; profile:first_name "Timothy" ;
+    profile:image &lt;https://example.org/timbl.jpg&gt; .
 } .
 
-Bind ?workLocation <#> /schema:workLocation .
+Bind ?workLocation &lt;#&gt; /schema:workLocation .
 Cut ?workLocation.
 
-UpdateList <#> ex:preferredLanguages 1..2 ( "fr-CH" ) .
+UpdateList &lt;#&gt; ex:preferredLanguages 1..2 ( "fr-CH" ) .
 
-Bind ?event <#> /schema:attendee[/schema:url = <https://www.w3.org/2012/ldp/wiki/F2F5>]  .
+Bind ?event &lt;#&gt; /schema:attendee[/schema:url = &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt;]  .
 Add { ?event rdf:type schema:Event } .
 
-Bind ?ted <http://conferences.ted.com/TED2009/> /^schema:url! .
+Bind ?ted &lt;http://conferences.ted.com/TED2009/&gt; /^schema:url! .
 Delete { ?ted schema:startDate "2009-02-04" } .
 Add {
   ?ted schema:location [
@@ -551,25 +552,25 @@
 The following is the resulting (patched) document.
       </p>
       <pre class='example'>
-@prefix schema: <http://schema.org/> .
-@prefix profile: <http://ogp.me/ns/profile#> .
-@prefix ex: <http://example.org/vocab#> .
-@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-<http://example.com/timbl#> a schema:Person ;
+@prefix schema: &lt;http://schema.org/&gt; .
+@prefix profile: &lt;http://ogp.me/ns/profile#&gt; .
+@prefix ex: &lt;http://example.org/vocab#&gt; .
+@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
+&lt;#&gt; a schema:Person ;
   schema:alternateName "TimBL" ;
   profile:first_name "Timothy" ;
   profile:last_name "Berners-Lee" ;
-  profile:image <https://example.org/timbl.jpg> ;
+  profile:image &lt;https://example.org/timbl.jpg&gt; ;
   schema:attendee _:b1, _:b2 ;
   ex:preferredLanguages ( "en" "fr-CH" ).
 
 _:b1 a schema:Event ;
   schema:name "F2F5 - Linked Data Platform" ;
-  schema:url <https://www.w3.org/2012/ldp/wiki/F2F5> .
+  schema:url &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt; .
 
 _:b2 a schema:Event ;
   schema:name "TED 2009" ;
-  schema:url <http://conferences.ted.com/TED2009/> ;
+  schema:url &lt;http://conferences.ted.com/TED2009/&gt; ;
   schema:location [
     schema:name "Long Beach, California";
     schema:geo [ schema:latitude "33.7817" ; schema:longitude "-118.2054" ]