updated examples involving path expressions ldpatch
authorAlexandre Bertails <alexandre@bertails.org>
Mon, 24 Nov 2014 14:05:57 -0500
branchldpatch
changeset 915 a61e98c879f0
parent 914 88bfaff0ca03
child 916 12d2fb2fa378
updated examples involving path expressions
ldpatch.html
--- a/ldpatch.html	Mon Nov 24 13:55:17 2014 -0500
+++ b/ldpatch.html	Mon Nov 24 14:05:57 2014 -0500
@@ -292,15 +292,15 @@
     profile:image &lt;https://example.org/timbl.jpg&gt; .
 } .
 
-Bind ?workLocation &lt;#&gt;/schema:workLocation .
+Bind ?workLocation &lt;#&gt; / schema:workLocation .
 Cut ?workLocation .
 
 UpdateList &lt;#&gt; ex:preferredLanguages 1..2 ( "fr-CH" ) .
 
-Bind ?event &lt;#&gt;/schema:attendee[/schema:url=&lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt;]  .
+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 &lt;http://conferences.ted.com/TED2009/&gt;/^schema:url! .
+Bind ?ted &lt;http://conferences.ted.com/TED2009/&gt; / ^schema:url ! .
 Delete { ?ted schema:startDate "2009-02-04" } .
 Add {
   ?ted schema:location [
@@ -471,7 +471,7 @@
         <p>
 The following path expression (taken from the <a href="#examples">Examples section</a>) will look for all events matching the predicate <code>schema:performerIn</code>, keeping only the one matching the IRI <code>&lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt;</code>.
         <pre class='example'>
-/schema:performerIn[/schema:url = &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt;]
+/ schema:performerIn [ / schema:url = &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt; ]
         </pre>
         </p>
 
@@ -501,9 +501,9 @@
           </p>
 
           <p>
-              Following the example above, the <a>Bind</a> operation creates a new variable called <code>event</code>, starting from the RDF Term <code>&lt;#&gt;</code> and following the path expression <code>/schema:performerIn[/schema:url = &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt;]</code> in order to identify the RDF Term to which this variable will be bound to – i.e. <code>_:b2</code> in the <a>target graph</a>.
+              Following the example above, the <a>Bind</a> operation creates a new variable called <code>event</code>, starting from the RDF Term <code>&lt;#&gt;</code> and following the path expression <code>/ schema:performerIn [ / schema:url = &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt; ]</code> in order to identify the RDF Term to which this variable will be bound to – i.e. <code>_:b2</code> in the <a>target graph</a>.
           <pre class='example'>
-Bind ?event &lt;#&gt;/schema:performerIn[/schema:url=&lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt;] .
+Bind ?event &lt;#&gt; / schema:performerIn [ / schema:url = &lt;https://www.w3.org/2012/ldp/wiki/F2F5&gt; ] .
           </pre>
           </p>