added example for alternate
authorLuc Moreau <l.moreau@ecs.soton.ac.uk>
Wed, 15 Feb 2012 22:29:10 +0000
changeset 1590 831e7f91eed8
parent 1589 e13f52cc5c09
child 1591 7bebdf09a11d
added example for alternate
model/working-copy/towards-wd4.html
--- a/model/working-copy/towards-wd4.html	Wed Feb 15 22:18:47 2012 +0000
+++ b/model/working-copy/towards-wd4.html	Wed Feb 15 22:29:10 2012 +0000
@@ -1458,6 +1458,16 @@
 <li><em>attributes</em>: an OPTIONAL set of attribute-value pairs to further describe this relation.</li>
 </ul>
 
+<div class="anexample">
+<p>The following expressions describe two persons, respectively holder of a Facebook account and a Twitter account, and their relation as alternate. </p>
+<pre class="codeexample">
+entity(facebook:ABC, [ prov:type="person with Facebook account " ])
+entity(twitter:XYZ, [ prov:type="person with Twitter account" ])
+alternateOf(facebook:ABC, twitter:XYZ)
+</pre>
+</div>
+
+
 
 <p>A <dfn title="dfn-Specialization">specialization relation</dfn><span class="withAsn">, written <span class="name">specializationOf(id, sub, super, attrs)</span> in PROV-ASN,</span> addresses case  (2). It  has the following constituents:</p>
 
@@ -1468,6 +1478,14 @@
 <li><em>attributes</em>: an OPTIONAL set of attribute-value pairs to further describe this relation.</li>
 </ul>
 
+<div class="anexample">
+<p>The following expressions describe two persons, the second of which is holder of a Twitter account. The second entity is a specialization of the first. </p>
+<pre class="codeexample">
+entity(ex:Bob, [ prov:type="person", ex:name="Bob" ])
+entity(twitter:XYZ, [ prov:type="person with Twitter account" ])
+specializationOf(twitter:XYZ, ex:Bob)
+</pre>
+</div>
 
 <!--
 <p>To promote take up of these relations, it is not specified whether they are transitive or symmetric.  We anticipate that applications will specialize these relations according to their needs. </p>