Added XML example to prov-dictionary
authorTom De Nies <tom.denies@ugent.be>
Mon, 15 Apr 2013 16:13:26 +0200
changeset 6167 0da2fdd57e32
parent 6166 2ed108315f93
child 6168 d59cd0dc6291
Added XML example to prov-dictionary
dictionary/Overview.html
dictionary/example/example.ttl
--- a/dictionary/Overview.html	Mon Apr 15 15:23:17 2013 +0200
+++ b/dictionary/Overview.html	Mon Apr 15 16:13:26 2013 +0200
@@ -2524,16 +2524,16 @@
   <b>&lt;prov:hadDictionaryMember&gt;
     &lt;prov:dictionary prov:ref="d"/&gt;
     &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;k0&lt;/prov:key&gt;
       &lt;prov:entity prov:ref="e0"/&gt;
-      &lt;prov:key&gt;k0&lt;/prov:key&gt;
     &lt;/prov:keyEntityPair&gt;
     &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;k1&lt;/prov:key&gt;
       &lt;prov:entity prov:ref="e1"/&gt;
-      &lt;prov:key&gt;k1&lt;/prov:key&gt;
     &lt;/prov:keyEntityPair&gt;
     &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;k2&lt;/prov:key&gt;
       &lt;prov:entity prov:ref="e2"/&gt;
-      &lt;prov:key&gt;k2&lt;/prov:key&gt;
     &lt;/prov:keyEntityPair&gt;
   &lt;/prov:hadDictionaryMember></b>
 
@@ -2578,8 +2578,8 @@
   &lt;prov:hadDictionaryMember&gt;
     &lt;prov:dictionary prov:ref="d1"/&gt;
     &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;k0&lt;/prov:key&gt;
       &lt;prov:entity prov:ref="e0"/&gt;
-      &lt;prov:key&gt;k0&lt;/prov:key&gt;
     &lt;/prov:keyEntityPair&gt;
   &lt;/prov:hadDictionaryMember>
   
@@ -2587,12 +2587,12 @@
     &lt;prov:newDictionary prov:ref="d2"/&gt;
     &lt;prov:oldDictionary prov:ref="d1"/&gt;
     &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;k1&lt;/prov:key&gt;
       &lt;prov:entity prov:ref="e1"/&gt;
-      &lt;prov:key&gt;k1&lt;/prov:key&gt;
     &lt;/prov:keyEntityPair&gt;
     &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;k2&lt;/prov:key&gt;
       &lt;prov:entity prov:ref="e2"/&gt;
-      &lt;prov:key&gt;k2&lt;/prov:key&gt;
     &lt;/prov:keyEntityPair&gt;
   &lt;/prov:derivedByInsertionFrom></b>
   
@@ -2636,16 +2636,16 @@
   &lt;prov:hadDictionaryMember&gt;
     &lt;prov:dictionary prov:ref="d1"/&gt;
     &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;k0&lt;/prov:key&gt;
       &lt;prov:entity prov:ref="e0"/&gt;
-      &lt;prov:key&gt;k0&lt;/prov:key&gt;
     &lt;/prov:keyEntityPair&gt;
     &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;k1&lt;/prov:key&gt;
       &lt;prov:entity prov:ref="e1"/&gt;
-      &lt;prov:key&gt;k1&lt;/prov:key&gt;
     &lt;/prov:keyEntityPair&gt;
     &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;k2&lt;/prov:key&gt;
       &lt;prov:entity prov:ref="e2"/&gt;
-      &lt;prov:key&gt;k2&lt;/prov:key&gt;
     &lt;/prov:keyEntityPair&gt;
   &lt;/prov:hadDictionaryMember>
   
@@ -3108,17 +3108,17 @@
     ("SS", dbpedia:Mike_Aviles"),
   })
   
-  endDocument
+endDocument
   </pre>
   </section>
   <section id="example-prov-o">
   <h4>PROV-O</h4>
   <p>The following is an excerpt of the complete provenance, not listing all the player entities to avoid overloading this document. The complete provenance is available for download as a <a href="example/example.ttl">separate file</a>.</p>
   <pre>
-@prefix xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt; .
+@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
 @prefix prov: &lt;http://www.w3.org/ns/prov#&gt; .
 @prefix dbpedia: &lt;http://dbpedia.org/resource/&gt; .
-@prefix ex:     &lt;http://example.com/&gt; .
+@prefix ex: &lt;http://example.com/&gt; .
 
 #All Player Entities, see complete provenance file.
 ...
@@ -3129,6 +3129,51 @@
   ... #For all dictionary members, see complete provenance file.
   .
   
+#2011 Opening Day lineup
+ex:2011_opening_day_lineup 
+  a prov:Entity, prov:Dictionary;
+  prov:hadDictionaryMember [
+    a prov:KeyEntityPair;
+    prov:pairKey "CF"^^xsd:string;
+    prov:pairEntity dbpedia:Jacoby_Ellsbury;
+  ],  [ 
+    a prov:KeyEntityPair;
+    prov:pairKey "2B"^^xsd:string;
+    prov:pairEntity dbpedia:Dustin_Pedroia;
+  ],  [ 
+    a prov:KeyEntityPair;
+    prov:pairKey "1B"^^xsd:string;
+    prov:pairEntity dbpedia:Adrian_Gonzalez;
+  ],  [ 
+    a prov:KeyEntityPair;
+    prov:pairKey "DH"^^xsd:string;
+    prov:pairEntity dbpedia:David_Ortiz;
+  ],  [ 
+    a prov:KeyEntityPair;
+    prov:pairKey "3B"^^xsd:string;
+    prov:pairEntity dbpedia:Kevin_Youkilis;
+  ],  [ 
+    a prov:KeyEntityPair;
+    prov:pairKey "RF"^^xsd:string;
+    prov:pairEntity dbpedia:Mike_Cameron;
+  ],  [ 
+    a prov:KeyEntityPair;
+    prov:pairKey "LF"^^xsd:string;
+    prov:pairEntity dbpedia:Carl_Crawford;
+  ],  [ 
+    a prov:KeyEntityPair;
+    prov:pairKey "C"^^xsd:string;
+    prov:pairEntity dbpedia:Jarrod_Saltalamacchia;
+  ],  [ 
+    a prov:KeyEntityPair;
+    prov:pairKey "SS"^^xsd:string;
+    prov:pairEntity dbpedia:Marco_Scutaro;
+  ],  [ 
+    a prov:KeyEntityPair;
+    prov:pairKey "SP"^^xsd:string;
+    prov:pairEntity dbpedia:Jon_Lester;
+  ] .
+  
 #2011 roster without players that left the team after the 2011 season or changed uniform number
 ex:2011_roster_after_removals
   a prov:Entity, prov:Dictionary;
@@ -3267,6 +3312,248 @@
   </section>
   <section id="example-prov-xml">
   <h4>PROV-XML</h4>
+  <p>The following is an excerpt of the complete provenance, not listing all the player entities to avoid overloading this document. The complete provenance is available for download as a <a href="example/example.xml">separate file</a>.</p>
+  
+  <pre>
+&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+&lt;prov:document
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:dbpedia="http://dbpedia.org/resource/"
+    xmlns:ex="http://example.com/"
+    xsi:schemaLocation="http://www.w3.org/ns/prov#
+http://www.w3.org/TR/2013/WD-prov-xml-20130312/schema/prov.xsd "&gt;
+  &lt;!-- All Player Entities --&gt;
+  ... &lt;!-- See complete provenance file --&gt;
+  &lt;!-- 2011 Roster --&gt;
+  &lt;prov:dictionary prov:id="ex:2011_roster" /&gt;
+  &lt;prov:hadDictionaryMember&gt;
+  ... &lt;!-- See complete provenance file --&gt;
+  &lt;/prov:hadDictionaryMember&gt;
+  
+  &lt;!-- 2011 Opening Day lineup --&gt;
+  &lt;prov:dictionary prov:id="ex:2011_opening_day_lineup" /&gt;
+  &lt;prov:hadDictionaryMember&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;CF&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Jacoby_Ellsbury"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt; 
+      &lt;prov:key&gt;2B&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Dustin_Pedroia"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt; 
+      &lt;prov:key&gt;1B&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Adrian_Gonzalez"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt; 
+      &lt;prov:key&gt;DH&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:David_Ortiz"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt; 
+      &lt;prov:key&gt;3B&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Kevin_Youkilis"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt; 
+      &lt;prov:key&gt;RF&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Mike_Cameron"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt; 
+      &lt;prov:key&gt;LF&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Carl_Crawford"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt; 
+      &lt;prov:key&gt;C&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Jarrod_Saltalamacchia"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt; 
+      &lt;prov:key&gt;SS&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Marco_Scutaro"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt; 
+      &lt;prov:key&gt;SP&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Jon_Lester"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+  &lt;/prov:hadDictionaryMember&gt;
+  
+  &lt;!-- 2011 roster without players that left the team after the 2011 season or changed uniform number --&gt;
+  &lt;prov:dictionary prov:id="ex:2011_roster_after_removals" /&gt;
+  &lt;prov:derivedByRemovalFrom&gt;
+    &lt;prov:newDictionary prov:ref="ex:2011_roster_after_removals"/&gt;
+    &lt;prov:oldDictionary prov:ref="ex:2011_roster"/&gt;
+    &lt;prov:key&gt;10&lt;/prov:key&gt;
+    &lt;prov:key&gt;12&lt;/prov:key&gt;
+    &lt;prov:key&gt;16&lt;/prov:key&gt;
+    &lt;prov:key&gt;23&lt;/prov:key&gt;
+    &lt;prov:key&gt;23&lt;/prov:key&gt;
+    &lt;prov:key&gt;33&lt;/prov:key&gt;
+    &lt;prov:key&gt;35&lt;/prov:key&gt;
+    &lt;prov:key&gt;36&lt;/prov:key&gt;
+    &lt;prov:key&gt;37&lt;/prov:key&gt;
+    &lt;prov:key&gt;41&lt;/prov:key&gt;
+    &lt;prov:key&gt;43&lt;/prov:key&gt;
+    &lt;prov:key&gt;44&lt;/prov:key&gt;
+    &lt;prov:key&gt;49&lt;/prov:key&gt;
+    &lt;prov:key&gt;52&lt;/prov:key&gt;
+    &lt;prov:key&gt;55&lt;/prov:key&gt;
+    &lt;prov:key&gt;56&lt;/prov:key&gt;
+    &lt;prov:key&gt;58&lt;/prov:key&gt;
+    &lt;prov:key&gt;59&lt;/prov:key&gt;
+    &lt;prov:key&gt;60&lt;/prov:key&gt;
+    &lt;prov:key&gt;68&lt;/prov:key&gt;
+    &lt;prov:key&gt;7&lt;/prov:key&gt;
+    &lt;prov:key&gt;70&lt;/prov:key&gt;
+    &lt;prov:key&gt;76&lt;/prov:key&gt;
+  &lt;/prov:derivedByRemovalFrom&gt;
+  
+  &lt;!-- 2012 Roster --&gt;
+  &lt;prov:dictionary prov:id="ex:2012_roster" /&gt;
+  &lt;prov:derivedByInsertionFrom&gt;
+    &lt;prov:newDictionary prov:ref="ex:2012_roster"/&gt;
+    &lt;prov:oldDictionary prov:ref="ex:2011_roster_after_removals"/&gt;
+    &lt;prov:keyEntityPair&gt; 
+      &lt;prov:key&gt;10&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Kelly_Shoppach"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;12&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Ryan_Sweeney"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;16&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Jason_Repko"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;22&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="http://dbpedia.org/resource/James_Loney_(baseball)"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;23&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Brent_Lillibridge"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;23&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Danny_Valencia"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;23&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Marlon_Byrd"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;26&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Scott_Podsednik"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;32&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Craig_Breslow"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;35&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="http://dbpedia.org/resource/Aaron_Cook_(baseball)"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;37&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Mark_Melancon"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;40&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="http://dbpedia.org/resource/Andrew_Bailey_(baseball)"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;44&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Vicente_Padilla"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;47&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Justin_Germano"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;47&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Zach_Stewart"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;5&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Nick_Punto"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;50&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Mauro_Gomez"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;52&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Chris_Carpenter"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;54&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Pedro_Beato"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;56&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="http://dbpedia.org/resource/Ivan_DeJesus,_Jr."/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;58&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="http://dbpedia.org/resource/Jose_Iglesias_(baseball)"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;59&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Clayton_Mortensen"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;62&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Guillermo_Quiroz"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;64&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Will_Middlebrooks"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;66&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Daniel_Nava"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;7&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Cody_Ross"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;70&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Ryan_Kalish"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;77&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Pedro_Ciriaco"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;78&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Justin_Thomas"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;85&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Che-Hsuan_Lin"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+  &lt;/prov:derivedByInsertionFrom&gt;
+  
+  &lt;!-- 2012 Opening Day lineup (update of 2011 dictionary) --&gt;
+  &lt;prov:dictionary prov:id="ex:2012_roster" /&gt;
+  &lt;prov:derivedByInsertionFrom&gt;
+    &lt;prov:newDictionary prov:ref="ex:2012_opening_day_lineup"/&gt;
+    &lt;prov:oldDictionary prov:ref="ex:2011_opening_day_lineup"/&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;RF&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Ryan_Sweeney"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;RF&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Cody_Ross"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+    &lt;prov:keyEntityPair&gt;
+      &lt;prov:key&gt;RF&lt;/prov:key&gt;
+      &lt;prov:entity prov:ref="dbpedia:Mike_Aviles"/&gt;
+    &lt;/prov:keyEntityPair&gt;
+  &lt;/prov:derivedByInsertionFrom&gt;
+&lt;/prov:document&gt;
+  </pre>
   </section>
   </section>
 </section>
--- a/dictionary/example/example.ttl	Mon Apr 15 15:23:17 2013 +0200
+++ b/dictionary/example/example.ttl	Mon Apr 15 16:13:26 2013 +0200
@@ -1,7 +1,7 @@
-@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix dbpedia: <http://dbpedia.org/resource/> .
-@prefix ex:     <http://example.com/> .
+@prefix ex: <http://example.com/> .
 
 #All Player Entities 
 dbpedia:Marco_Scutaro