Fixed examples to validate with schema updates
authorCurt Tilmes <Curt.Tilmes@nasa.gov>
Tue, 18 Sep 2012 10:02:20 -0400
changeset 4473 e9b0cfa5d835
parent 4472 b88f0f02344f
child 4474 86855bdb25e0
Fixed examples to validate with schema updates
records -> document,
bundle renaming,
other minor fixes,
also made spacing/indenting/other white space more consistent
across examples,
made example links into PROV-DM refer to the public URL
examples/eg-40-xml-examples-by-term/xml/Activity.xml
examples/eg-40-xml-examples-by-term/xml/Agent.xml
examples/eg-40-xml-examples-by-term/xml/Alternate_43.xml
examples/eg-40-xml-examples-by-term/xml/Alternate_44.xml
examples/eg-40-xml-examples-by-term/xml/Association.xml
examples/eg-40-xml-examples-by-term/xml/Attribution.xml
examples/eg-40-xml-examples-by-term/xml/Bundle.xml
examples/eg-40-xml-examples-by-term/xml/Collection.xml
examples/eg-40-xml-examples-by-term/xml/Communication.xml
examples/eg-40-xml-examples-by-term/xml/Delegation.xml
examples/eg-40-xml-examples-by-term/xml/Derivation1.xml
examples/eg-40-xml-examples-by-term/xml/Derivation2.xml
examples/eg-40-xml-examples-by-term/xml/End.xml
examples/eg-40-xml-examples-by-term/xml/Entity.xml
examples/eg-40-xml-examples-by-term/xml/Extensibility.xml
examples/eg-40-xml-examples-by-term/xml/Generation.xml
examples/eg-40-xml-examples-by-term/xml/Influence.xml
examples/eg-40-xml-examples-by-term/xml/Invalidation.xml
examples/eg-40-xml-examples-by-term/xml/Label.xml
examples/eg-40-xml-examples-by-term/xml/Location.xml
examples/eg-40-xml-examples-by-term/xml/Membership.xml
examples/eg-40-xml-examples-by-term/xml/Mention_45.xml
examples/eg-40-xml-examples-by-term/xml/Mention_46.xml
examples/eg-40-xml-examples-by-term/xml/Organization.xml
examples/eg-40-xml-examples-by-term/xml/Person.xml
examples/eg-40-xml-examples-by-term/xml/Plan.xml
examples/eg-40-xml-examples-by-term/xml/PrimarySource.xml
examples/eg-40-xml-examples-by-term/xml/Quotation.xml
examples/eg-40-xml-examples-by-term/xml/Revision.xml
examples/eg-40-xml-examples-by-term/xml/Role.xml
examples/eg-40-xml-examples-by-term/xml/SoftwareAgent.xml
examples/eg-40-xml-examples-by-term/xml/Specialization.xml
examples/eg-40-xml-examples-by-term/xml/Start.xml
examples/eg-40-xml-examples-by-term/xml/Time.xml
examples/eg-40-xml-examples-by-term/xml/Usage.xml
examples/eg-40-xml-examples-by-term/xml/Value.xml
--- a/examples/eg-40-xml-examples-by-term/xml/Activity.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Activity.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,15 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on PROV-DM's Example 17 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#term-Activity
-     see also http://dvcs.w3.org/hg/prov/raw-file/default/xml/prov.xsd.html#type_Activity -->
+<!-- based on PROV-DM's Example 17 from http://www.w3.org/TR/prov-dm/#anexample-activity
+     see also http://www.w3.org/TR/prov-dm/#type_Activity -->
 
-<prov:records
+<prov:document
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#">
+
     <prov:activity prov:id="a1">
         <prov:startTime>2011-11-16T16:05:00</prov:startTime>
         <prov:endTime>2011-11-16T16:06:00</prov:endTime>
         <prov:type>ex:edit</prov:type>
         <ex:host>server.example.org</ex:host>
     </prov:activity>
-</prov:records>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Agent.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Agent.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,10 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-	<prov:agent prov:id="e1">
-		<prov:type>prov:Person</prov:type>
-		<!-- TODO Add ex namespace, example.xsd
-		<ex:name>Alice</ex:name>
-		<ex:employee>1234</ex:employee>
-		-->
-	</prov:agent>
-</prov:records>
+
+<!-- based on Example 33 from http://www.w3.org/TR/prov-dm/#example_33 -->
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#">
+
+  <prov:agent prov:id="e1">
+    <prov:type>prov:Person</prov:type>
+    <ex:name>Alice</ex:name>
+    <ex:employee>1234</ex:employee>
+  </prov:agent>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Alternate_43.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Alternate_43.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,21 +1,23 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on Example 43 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-alternate  -->
+<!-- based on Example 43 from http://www.w3.org/TR/prov-dm/#anexample-alternate  -->
 
-<prov:records 
+<prov:document
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:bbc="http://www.bbc.co.uk/news"
     xmlns:bbcmobile="http://www.bbc.co.uk/news/mobile">
-    <prov:entity prov:id="bbc:science-environment-17526723">
-        <prov:type>a news item for desktop</prov:type>
-    </prov:entity>
-    <prov:entity prov:id="bbcmobile:science-environment-17526723">
-        <prov:type>a news item for mobile devices</prov:type>
-    </prov:entity>
-    <prov:dependencies>
-        <prov:alternateOf>
-            <prov:alternate1 prov:ref="bbcmobile:science-environment-17526723"/>
-            <prov:alternate2 prov:ref="bbc:science-environment-17526723"/>
-        </prov:alternateOf>
-    </prov:dependencies>
-</prov:records>
+
+  <prov:entity prov:id="bbc:science-environment-17526723">
+    <prov:type>a news item for desktop</prov:type>
+  </prov:entity>
+
+  <prov:entity prov:id="bbcmobile:science-environment-17526723">
+    <prov:type>a news item for mobile devices</prov:type>
+  </prov:entity>
+
+  <prov:alternateOf>
+    <prov:alternate1 prov:ref="bbcmobile:science-environment-17526723"/>
+    <prov:alternate2 prov:ref="bbc:science-environment-17526723"/>
+  </prov:alternateOf>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Alternate_44.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Alternate_44.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,16 +1,18 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on Example 44 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-alternate2  -->
+<!-- based on Example 44 from http://www.w3.org/TR/prov-dm/#anexample-alternate2  -->
 
-<prov:records 
+<prov:document
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:tr="http://example.com/ns/tr#">
-    <prov:entity prov:id="tr:WD-prov-dm-20111018"/>
-    <prov:entity prov:id="tr:WD-prov-dm-20111215"/>
-    <prov:dependencies>
-        <prov:alternateOf>
-            <prov:alternate1 prov:ref="tr:WD-prov-dm-20111018"/>
-            <prov:alternate2 prov:ref="tr:WD-prov-dm-20111215"/>
-        </prov:alternateOf>
-    </prov:dependencies>
-</prov:records>
+
+  <prov:entity prov:id="tr:WD-prov-dm-20111018"/>
+
+  <prov:entity prov:id="tr:WD-prov-dm-20111215"/>
+
+  <prov:alternateOf>
+    <prov:alternate1 prov:ref="tr:WD-prov-dm-20111018"/>
+    <prov:alternate2 prov:ref="tr:WD-prov-dm-20111215"/>
+  </prov:alternateOf>
+
+</prov:document>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Association.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 35 from http://www.w3.org/TR/prov-dm/#anexample-wasAssociatedWith -->
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:ex="http://example.com/ns/ex#">
+
+  <prov:activity prov:id="a">
+    <prov:type>workflow execution</prov:type>
+  </prov:activity>
+
+  <prov:agent prov:id="ag1">
+    <prov:type>operator</prov:type>
+  </prov:agent>
+
+  <prov:agent prov:id="ag2">
+    <prov:type>designator</prov:type>
+  </prov:agent>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="a"/>
+    <prov:agent prov:ref="ag1"/>
+    <prov:role>loggedInUser</prov:role>
+    <ex:how>webapp</ex:how>
+  </prov:wasAssociatedWith>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="a"/>
+    <prov:agent prov:ref="ag2"/>
+    <prov:plan prov:ref="ex:wf"/>
+    <prov:role>designer</prov:role>
+    <ex:content>project1</ex:content>
+  </prov:wasAssociatedWith>
+
+  <prov:entity prov:id="ex:wf">
+    <prov:type>prov:Plan</prov:type>
+    <ex:label>Workflow 1</ex:label>
+    <prov:location>http://example.org/workflow1.bpel</prov:location>
+  </prov:entity>
+
+  <!-- based on Example 36 from http://www.w3.org/TR/prov-dm/#anexample-wasAssociatedWith-2 -->
+  
+  <prov:activity prov:id="ex:a">
+    <prov:type>workflow execution</prov:type>
+  </prov:activity>
+
+  <prov:entity prov:id="ex:wf"/>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="ex:a"/>
+    <prov:plan prov:ref="ex:wf"/>
+  </prov:wasAssociatedWith>
+
+  <prov:entity prov:id="ex:wf">
+    <prov:type>prov:Plan</prov:type>
+    <ex:label>Workflow 1</ex:label>
+    <prov:location>http://example.org/workflow1.bpel</prov:location>
+  </prov:entity>
+
+</prov:document>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Attribution.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 34 from http://www.w3.org/TR/prov-dm/#anexample-attribution -->
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#"
+    xmlns:tr="http://example.com/ns/tr#"
+    xmlns:rec54="http://example.com/ns/rec54#">
+
+  <prov:agent prov:id="ex:Paolo">
+    <prov:type>prov:Person</prov:type>
+  </prov:agent>
+  
+  <prov:agent prov:id="ex:Simon">
+    <prov:type>prov:Person</prov:type>
+  </prov:agent>
+
+  <prov:entity prov:id="tr:WD-prov-dm-20111215">
+    <prov:type>rec54:WD</prov:type>
+  </prov:entity>
+
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="rec54:WD"/>
+    <prov:agent prov:ref="ex:Paolo"/>
+    <prov:type>editorship</prov:type>
+  </prov:wasAttributedTo>
+
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="rec54:WD"/>
+    <prov:agent prov:ref="ex:Simon"/>
+    <prov:type>authorship</prov:type>
+  </prov:wasAttributedTo>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Bundle.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Bundle.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,106 +1,173 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on PROV-DM's Example 39 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#component4 
-     see also http://dvcs.w3.org/hg/prov/raw-file/default/xml/prov.xsd.html#element_bundle -->
+<!-- based on PROV-DM's Example 39 from http://www.w3.org/TR/prov-dm/#anexample-provenance-of-provenance 
+     see also http://www.w3.org/TR/prov-dm/#element_bundle -->
 
-<prov:bundle
+<prov:document
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"
     xmlns:bob="http://example.com/ns/bob#"
-    xmlns:alice="http://example.com/ns/alice#">
+    xmlns:alice="http://example.com/ns/alice#"
+    xmlns:agg="http://example.com/ns/agg#">
 
-    <!--
-    Let us consider two entities ex:report1 and ex:report2.
-    The first bundle contains the descriptions corresponding to Bob observing the creation of ex:report1. Its provenance can be described as follows.
-    In contrast, the second bundle is attributed to Alice who observed the derivation of ex:report2 from ex:report1.
-    -->
-    <prov:records>
-        <prov:entity prov:id="ex:report1">
-            <prov:type>report</prov:type>
-            <ex:version>1</ex:version>
-        </prov:entity>
-        <prov:entity prov:id="ex:report2">
-            <prov:type>report</prov:type>
-            <ex:version>2</ex:version>
-        </prov:entity>
-        <prov:entity prov:id="bob:bundle1">
-            <prov:type>prov:Bundle</prov:type>
-        </prov:entity>
-        <prov:entity prov:id="alice:bundle2">
-            <prov:type>prov:Bundle</prov:type>
-        </prov:entity>
-        <prov:entity prov:id="ex:Bob" />
-        <prov:entity prov:id="ex:Alice" />
-        <prov:dependencies>
-            <prov:wasGeneratedBy>
-                <prov:time>2012-05-24T10:00:01</prov:time>
-                <prov:entity prov:ref="ex:report1" />
-            </prov:wasGeneratedBy>
-            <prov:wasGeneratedBy>
-                <prov:time>2012-05-25T11:00:01</prov:time>
-                <prov:entity prov:ref="ex:report2" />
-            </prov:wasGeneratedBy>
-            <prov:wasGeneratedBy>
-                <prov:time>2012-05-24T10:30:00</prov:time>
-                <prov:entity prov:ref="bob:bundle1" />
-            </prov:wasGeneratedBy>
-            <prov:wasGeneratedBy>
-                <prov:time>2012-05-25T11:15:00)</prov:time>
-                <prov:entity prov:ref="alice:bundle2" />
-            </prov:wasGeneratedBy>
-            <prov:wasDerivedFrom>
-                <prov:generatedEntity prov:ref="ex:report2" />
-                <prov:usedEntity prov:ref="ex:report1" />
-            </prov:wasDerivedFrom>
-            <prov:wasAttributedTo>
-                <prov:entity prov:ref="bob:bundle1" />
-                <prov:agent prov:ref="ex:Bob" />
-            </prov:wasAttributedTo>
-            <prov:wasAttributedTo>
-                <prov:entity prov:ref="alice:bundle2" />
-                <prov:agent prov:ref="ex:Alice" />
-            </prov:wasAttributedTo>
-        </prov:dependencies>
-    </prov:records>
+  <!-- Let us consider two entities ex:report1 and ex:report2. -->
 
-    <!-- Let us assume that Bob observed the creation of ex:report1. A first 
-        bundle can be expressed. -->
-    <prov:bundle prov:id="bob:bundle1">
-        <prov:records>
-            <prov:entity prov:id="ex:report1">
-                <prov:type>report</prov:type>
-                <ex:version>1</ex:version>
-            </prov:entity>
-            <prov:dependencies>
-                <prov:wasGeneratedBy>
-                    <prov:time>2012-05-24T10:00:01</prov:time>
-                    <prov:entity prov:ref="ex:report1" />
-                </prov:wasGeneratedBy>
-            </prov:dependencies>
-        </prov:records>
-    </prov:bundle>
+  <prov:entity prov:id="ex:report1">
+    <prov:type>report</prov:type>
+    <ex:version>1</ex:version>
+  </prov:entity>
 
-    <!-- In contrast, Alice observed the creation of ex:report2 and its derivation 
-        from ex:report1. A separate bundle can also be expressed. -->
-    <prov:bundle prov:id="alice:bundle2">
-        <prov:records>
-            <prov:entity prov:id="ex:report1" />
-            <prov:entity prov:id="ex:report2">
-                <prov:type>report</prov:type>
-                <ex:version>2</ex:version>
-            </prov:entity>
-            <prov:dependencies>
-                <prov:wasGeneratedBy>
-                    <prov:time>2012-05-25T11:00:01</prov:time>
-                    <prov:entity prov:ref="ex:report2" />
-                </prov:wasGeneratedBy>
-                <prov:wasDerivedFrom>
-                    <prov:generatedEntity prov:ref="ex:report2" />
-                    <prov:usedEntity prov:ref="ex:report1" />
-                </prov:wasDerivedFrom>
-            </prov:dependencies>
-        </prov:records>
-    </prov:bundle>
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="ex:report1" />
+    <prov:time>2012-05-24T10:00:01</prov:time>
+  </prov:wasGeneratedBy>
 
-</prov:bundle>
+  <prov:entity prov:id="ex:report2">
+    <prov:type>report</prov:type>
+    <ex:version>2</ex:version>
+  </prov:entity>
 
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="ex:report2" />
+    <prov:time>2012-05-25T11:00:01</prov:time>
+  </prov:wasGeneratedBy>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="ex:report2" />
+    <prov:usedEntity prov:ref="ex:report1" />
+  </prov:wasDerivedFrom>
+
+  <!-- Let us assume that Bob observed the creation of ex:report1. A
+       first bundle can be expressed. -->
+
+  <prov:bundle prov:id="bob:bundle1">
+    <prov:entity prov:id="ex:report1">
+      <prov:type>report</prov:type>
+      <ex:version>1</ex:version>
+    </prov:entity>
+    
+    <prov:wasGeneratedBy>
+      <prov:entity prov:ref="ex:report1"/>
+      <prov:time>2012-05-24T10:00:01</prov:time>
+    </prov:wasGeneratedBy>
+  </prov:bundle>
+
+  <!-- In contrast, Alice observed the creation of ex:report2 and
+       its derivation from ex:report1. A separate bundle can also be
+       expressed. -->
+  
+  <prov:bundle prov:id="alice:bundle2">
+    <prov:entity prov:id="ex:report1"/>
+    
+    <prov:entity prov:id="ex:report2">
+      <prov:type>report</prov:type>
+      <ex:version>2</ex:version>
+    </prov:entity>
+    
+    <prov:wasGeneratedBy>
+      <prov:entity prov:ref="ex:report2"/>
+      <prov:time>2012-05-25T11:00:01</prov:time>
+    </prov:wasGeneratedBy>
+    
+    <prov:wasDerivedFrom>
+      <prov:generatedEntity prov:ref="ex:report2"/>
+      <prov:usedEntity prov:ref="ex:report1"/>
+    </prov:wasDerivedFrom>
+  </prov:bundle>
+  
+  <!-- The first
+       bundle contains the descriptions corresponding to Bob observing
+       the creation of ex:report1. Its provenance can be described as
+       follows. -->
+
+  <prov:entity prov:id="bob:bundle1">
+    <prov:type>prov:Bundle</prov:type>
+  </prov:entity>
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="bob:bundle1"/>
+    <prov:time>2012-05-24T10:30:00</prov:time>
+  </prov:wasGeneratedBy>
+
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="bob:bundle1"/>
+    <prov:agent prov:ref="ex:Bob"/>
+  </prov:wasAttributedTo>
+
+  <!-- In contrast, the second bundle is attributed to Alice
+       who observed the derivation of ex:report2 from ex:report1. -->
+
+  <prov:entity prov:id="alice:bundle2">
+    <prov:type>prov:Bundle</prov:type>
+  </prov:entity>
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="alice:bundle2"/>
+    <prov:time>2012-05-25T11:15:00</prov:time>
+  </prov:wasGeneratedBy>
+    
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="alice:bundle2"/>
+    <prov:agent prov:ref="ex:Alice"/>
+  </prov:wasAttributedTo>
+
+  <!-- Example 40 from http://www.w3.org/TR/prov-dm/#anexample-provenance-aggregation -->
+
+  <!-- A provenance aggregator could merge two bundles, resulting in a
+       novel bundle, whose provenance is described as follows. -->
+
+  <prov:bundle prov:id="agg:bundle3">
+    <prov:entity prov:id="ex:report1">
+      <prov:type>report</prov:type>
+      <ex:version>1</ex:version>
+    </prov:entity>
+      
+    <prov:wasGeneratedBy>
+      <prov:entity prov:ref="ex:report1"/>
+      <prov:time>2012-05-24T10:00:01</prov:time>
+    </prov:wasGeneratedBy>
+
+    <prov:entity prov:id="ex:report2">
+      <prov:type>report</prov:type>
+      <ex:version>2</ex:version>
+    </prov:entity>
+
+    <prov:wasGeneratedBy>
+      <prov:entity prov:ref="ex:report2"/>
+      <prov:time>2012-05-25T11:00:01</prov:time>
+    </prov:wasGeneratedBy>
+
+    <prov:wasDerivedFrom>
+      <prov:generatedEntity prov:ref="ex:report2"/>
+      <prov:usedEntity prov:ref="ex:report1"/>
+    </prov:wasDerivedFrom>
+  </prov:bundle>
+
+  <prov:entity prov:id="agg:bundle3">
+    <prov:type>prov:Bundle</prov:type>
+  </prov:entity>
+
+  <prov:agent prov:id="ex:aggregator01">
+    <prov:type>ex:Aggregator</prov:type>
+  </prov:agent>
+
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="agg:bundle3"/>
+    <prov:agent prov:ref="ex:aggregator01"/>
+  </prov:wasAttributedTo>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="agg:bundle3"/>
+    <prov:usedEntity prov:ref="bob:bundle1"/>
+  </prov:wasDerivedFrom>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="agg:bundle3"/>
+    <prov:usedEntity prov:ref="alice:bundle2"/>
+  </prov:wasDerivedFrom>
+
+  <!-- The new bundle is given a new identifier agg:bundle3 and is
+       attributed to the ex:aggregator01 agent. -->
+
+</prov:document>
+
--- a/examples/eg-40-xml-examples-by-term/xml/Collection.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Collection.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,20 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on PROV-DM's Example 47 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#component6 -->
-
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#"
-    xmlns:ex="http://example.com/ns/ex#">
+<!-- based on PROV-DM's Example 47 from http://www.w3.org/TR/prov-dm/#example_47 -->
 
-    <!-- c0 is an empty collection -->
-    <prov:entity prov:id="c0">
-        <!-- prov:EmptyCollection denotes an empty collection. -->
-        <prov:type>prov:EmptyCollection</prov:type>
-    </prov:entity>
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#">
+  
+  <!-- c0 is an empty collection -->
+  <prov:entity prov:id="c0">
+    <!-- prov:EmptyCollection denotes an empty collection. -->
+    <prov:type>prov:EmptyCollection</prov:type>
+  </prov:entity>
 
-    <!-- c1 is a collection, with unknown content -->
-    <prov:entity prov:id="c1">
-        <!-- prov:Collection denotes an entity of type Collection, i.e. an entity that can participate in relations amongst collections -->
-        <prov:type>prov:Collection</prov:type>
-    </prov:entity>
+  <!-- c1 is a collection, with unknown content -->
+  <prov:entity prov:id="c1">
+    <!-- prov:Collection denotes an entity of type Collection, i.e. an entity that can participate in relations amongst collections -->
+    <prov:type>prov:Collection</prov:type>
+  </prov:entity>
 
-</prov:records>
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Communication.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Communication.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,18 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on Example 21 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-communication -->
+<!-- based on Example 21 from http://www.w3.org/TR/prov-dm/#anexample-communication -->
 
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#">
-    <prov:activity prov:id="a1">
-        <prov:type>traffic regulations enforcing</prov:type>
-    </prov:activity>
-    <prov:activity prov:id="a2">
-        <prov:type>fine paying, check writing, and mailing</prov:type>
-    </prov:activity>
-    <prov:dependencies>
-        <prov:wasInformedBy>
-            <prov:informed prov:ref="a2"/>
-            <prov:informant prov:ref="a1"/>
-        </prov:wasInformedBy>
-    </prov:dependencies>
-</prov:records>
+<prov:document xmlns:prov="http://www.w3.org/ns/prov#">
+
+  <prov:activity prov:id="a1">
+    <prov:type>traffic regulations enforcing</prov:type>
+  </prov:activity>
+
+  <prov:activity prov:id="a2">
+    <prov:type>fine paying, check writing, and mailing</prov:type>
+  </prov:activity>
+
+  <prov:wasInformedBy>
+    <prov:informed prov:ref="a2"/>
+    <prov:informant prov:ref="a1"/>
+  </prov:wasInformedBy>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Delegation.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Delegation.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,45 +1,53 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on Example 37 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-wasAssociatedWith -->
+<!-- based on Example 37 from http://www.w3.org/TR/prov-dm/#anexample-wasAssociatedWith -->
 
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#">
-    <prov:activity prov:id="a">
-        <prov:type>workflow</prov:type>
-    </prov:activity>
-    <prov:agent prov:id="ag1">
-        <prov:type>programmer</prov:type>
-    </prov:agent>
-    <prov:agent prov:id="ag2">
-        <prov:type>researcher</prov:type>
-    </prov:agent>
-    <prov:agent prov:id="ag3">
-        <prov:type>funder</prov:type>
-    </prov:agent>
-    <prov:dependencies>
-        <prov:wasAssociatedWith>
-            <prov:activity prov:ref="a"/>
-            <prov:agent prov:ref="ag1"/>
-            <prov:role>loggedInUser</prov:role>
-        </prov:wasAssociatedWith>
-        <prov:wasAssociatedWith>
-            <prov:activity prov:ref="a"/>
-            <prov:agent prov:ref="ag2"/>
-        </prov:wasAssociatedWith>
-        <prov:wasAssociatedWith>
-            <prov:activity prov:ref="a"/>
-            <prov:agent prov:ref="ag3"/>
-        </prov:wasAssociatedWith>
-        <prov:actedOnBehalfOf>
-            <prov:delegate prov:ref="ag1"/>
-            <prov:responsible prov:ref="ag2"/>
-            <prov:activity prov:ref="a"/>
-            <prov:type>line-management</prov:type>
-        </prov:actedOnBehalfOf>
-        <prov:actedOnBehalfOf>
-            <prov:delegate prov:ref="ag2"/>
-            <prov:responsible prov:ref="ag3"/>
-            <prov:activity prov:ref="a"/>
-            <prov:type>contract</prov:type>
-        </prov:actedOnBehalfOf>
-    </prov:dependencies>
-</prov:records>
+<prov:document xmlns:prov="http://www.w3.org/ns/prov#">
+
+  <prov:activity prov:id="a">
+    <prov:type>workflow</prov:type>
+  </prov:activity>
+
+  <prov:agent prov:id="ag1">
+    <prov:type>programmer</prov:type>
+  </prov:agent>
+
+  <prov:agent prov:id="ag2">
+    <prov:type>researcher</prov:type>
+  </prov:agent>
+
+  <prov:agent prov:id="ag3">
+    <prov:type>funder</prov:type>
+  </prov:agent>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="a"/>
+    <prov:agent prov:ref="ag1"/>
+    <prov:role>loggedInUser</prov:role>
+  </prov:wasAssociatedWith>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="a"/>
+    <prov:agent prov:ref="ag2"/>
+  </prov:wasAssociatedWith>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="a"/>
+    <prov:agent prov:ref="ag3"/>
+  </prov:wasAssociatedWith>
+
+  <prov:actedOnBehalfOf>
+    <prov:delegate prov:ref="ag1"/>
+    <prov:responsible prov:ref="ag2"/>
+    <prov:activity prov:ref="a"/>
+    <prov:type>line-management</prov:type>
+  </prov:actedOnBehalfOf>
+
+  <prov:actedOnBehalfOf>
+    <prov:delegate prov:ref="ag2"/>
+    <prov:responsible prov:ref="ag3"/>
+    <prov:activity prov:ref="a"/>
+    <prov:type>contract</prov:type>
+  </prov:actedOnBehalfOf>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Derivation1.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Derivation1.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,19 +1,22 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on Example 29 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-derivation -->
+<!-- based on Example 29 from http://www.w3.org/TR/prov-dm/#anexample-derivation -->
 
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#">
-    <prov:entity prov:id="e1"/>
-    <prov:entity prov:id="e2"/>
-    <prov:dependencies>
-        <prov:wasDerivedFrom>
-            <prov:generatedEntity prov:ref="e2"/>
-            <prov:usedEntity prov:ref="e1"/>
-        </prov:wasDerivedFrom>
-        <prov:wasDerivedFrom>
-            <prov:generatedEntity prov:ref="e2"/>
-            <prov:usedEntity prov:ref="e1"/>
-            <prov:type>physical transform</prov:type>
-        </prov:wasDerivedFrom>
-    </prov:dependencies>
-</prov:records>
+<prov:document xmlns:prov="http://www.w3.org/ns/prov#">
+
+  <prov:entity prov:id="e1"/>
+
+  <prov:entity prov:id="e2"/>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="e2"/>
+    <prov:usedEntity prov:ref="e1"/>
+  </prov:wasDerivedFrom>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="e2"/>
+    <prov:usedEntity prov:ref="e1"/>
+    <prov:type>physical transform</prov:type>
+  </prov:wasDerivedFrom>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Derivation2.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Derivation2.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,25 +1,31 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on Example 29 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-derivation -->
+<!-- based on Example 29 from http://www.w3.org/TR/prov-dm/#anexample-derivation -->
 
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#">
-    <prov:activity prov:id="a"/>
-    <prov:entity prov:id="e1"/>
-    <prov:entity prov:id="e2"/>
-    <prov:dependencies>
-        <prov:wasGeneratedBy prov:id="g2">
-            <prov:entity prov:ref="e2"/>
-        </prov:wasGeneratedBy>
-        <prov:used prov:id="u">
-            <prov:activity prov:ref="a"/>
-            <prov:entity prov:ref="e1"/>
-        </prov:used>
-        <prov:wasDerivedFrom>
-            <prov:generation prov:ref="g2"/>
-            <prov:usage prov:ref="u"/>
-            <prov:activity prov:ref="a"/>
-            <prov:generatedEntity prov:ref="e2"/>
-            <prov:usedEntity prov:ref="e1"/>
-        </prov:wasDerivedFrom>
-    </prov:dependencies>
-</prov:records>
+<prov:document xmlns:prov="http://www.w3.org/ns/prov#">
+
+  <prov:activity prov:id="a"/>
+
+  <prov:entity prov:id="e1"/>
+
+  <prov:entity prov:id="e2"/>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="e2"/>
+    <prov:usedEntity prov:ref="e1"/>
+    <prov:activity prov:ref="a"/>
+    <prov:generation prov:ref="g2"/>
+    <prov:usage prov:ref="u"/>
+  </prov:wasDerivedFrom>
+  
+  <prov:wasGeneratedBy prov:id="g2">
+    <prov:entity prov:ref="e2"/>
+    <prov:activity prov:ref="a"/>
+  </prov:wasGeneratedBy>
+  
+  <prov:used prov:id="u">
+    <prov:activity prov:ref="a"/>
+    <prov:entity prov:ref="e1"/>
+  </prov:used>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/End.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/End.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,25 +1,23 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on PROV-DM's Example 25 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#term-End 
-     see also http://dvcs.w3.org/hg/prov/raw-file/default/xml/prov.xsd.html#type_WasEndedBy -->
+<!-- based on PROV-DM's Example 25 from http://www.w3.org/TR/prov-dm/#term-End 
+     see also http://www.w3.org/TR/prov-dm/#type_WasEndedBy -->
 
-<prov:records
+<prov:document
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#">
 
-    <prov:activity prov:id="a1">
-        <prov:type>Editing</prov:type>
-    </prov:activity>
-
-    <prov:entity prov:id="e1">
-        <prov:type>approval document</prov:type>
-    </prov:entity>
+  <prov:entity prov:id="e1">
+    <prov:type>approval document</prov:type>
+  </prov:entity>
 
-    <prov:dependencies>
-        <prov:wasEndedBy>
-            <prov:activity prov:ref="a1"/>
-            <prov:trigger prov:ref="e1"/>
-        </prov:wasEndedBy>
-    </prov:dependencies>
+  <prov:activity prov:id="a1">
+    <prov:type>Editing</prov:type>
+  </prov:activity>
 
-</prov:records>
+  <prov:wasEndedBy>
+    <prov:activity prov:ref="a1"/>
+    <prov:trigger prov:ref="e1"/>
+  </prov:wasEndedBy>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Entity.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Entity.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,10 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- based on Example 16 from http://www.w3.org/TR/prov-dm/#term-entity -->
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ex="http://example.com/ns/ex#" xmlns:tr="http://example.com/ns/tr#">
-	<prov:entity prov:id="tr:WD-prov-dm-20111215">
-		<prov:type>document</prov:type>
-		<!-- TODO: use inline schema for ex?
-		<ex:version>2</ex:version>
-		-->
-	</prov:entity>
-</prov:records>
+
+<!-- based on Example 16 from http://www.w3.org/TR/prov-dm/#anexample-entity -->
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#"
+    xmlns:tr="http://example.com/ns/tr#">
+  
+  <prov:entity prov:id="tr:WD-prov-dm-20111215">
+    <prov:type>document</prov:type>
+    <ex:version>2</ex:version>
+  </prov:entity>
+
+</prov:document>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Extensibility.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#">
+
+  <!-- based on Example 56 from
+       http://www.w3.org/TR/prov-dm/#anexample-sub-relation -->
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="e2"/>
+    <prov:usedEntity prov:ref="e1"/>
+    <prov:type>ex:Translation</prov:type>
+  </prov:wasDerivedFrom>
+
+  <!-- based on Example 57 from
+       http://www.w3.org/TR/prov-dm/#anexample-sub-type -->
+
+  <prov:entity prov:id="e">
+    <prov:type>ex:Car</prov:type>
+  </prov:entity>
+
+  <!-- based on Example 58 from
+       http://www.w3.org/TR/prov-dm/#anexample-usage-with-role -->
+
+  <prov:activity prov:id="ex:work"/>
+
+  <prov:entity prov:id="ex:laptop4"/>
+
+  <prov:entity prov:id="ex:desktop9"/>
+
+  <prov:used>
+    <prov:activity prov:ref="ex:work"/>
+    <prov:entity prov:ref="ex:laptop4"/>
+    <prov:role>day-to-day machine</prov:role>
+  </prov:used>
+
+  <prov:used>
+    <prov:activity prov:ref="ex:work"/>
+    <prov:entity prov:ref="ex:desktop9"/>
+    <prov:role>backup machine</prov:role>
+  </prov:used>
+  
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Generation.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Generation.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,21 +1,38 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- based on Example 18 from http://www.w3.org/TR/prov-dm/#anexample-generation1 -->
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-	<prov:activity prov:id="a1"/>
-	<prov:entity prov:id="e1"/>
-	<prov:entity prov:id="e2"/>
-	<prov:dependencies>
-		<prov:wasGeneratedBy>
-			<prov:time>2001-10-26T21:32:52</prov:time>
-			<prov:entity prov:ref="e1"/>
-			<prov:activity prov:ref="a1"/>
-			<!--<ex:port>p1</ex:port>-->
-		</prov:wasGeneratedBy>
-		<prov:wasGeneratedBy>
-			<prov:time>2001-10-26T10:00:00</prov:time>
-			<prov:entity prov:ref="e2"/>
-			<prov:activity prov:ref="a1"/>
-			<!--<ex:port>p2</ex:port>-->
-		</prov:wasGeneratedBy>
-	</prov:dependencies>
-</prov:records>
+
+<!-- Example 18 from http://www.w3.org/TR/prov-dm/#anexample-generation1 -->
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#">
+
+  <prov:entity prov:id="e1"/>
+
+  <prov:activity prov:id="a1"/>
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="e1"/>
+    <prov:activity prov:ref="a1"/>
+    <prov:time>2001-10-26T21:32:52</prov:time>
+    <ex:port>p1</ex:port>
+  </prov:wasGeneratedBy>
+
+  <prov:entity prov:id="e2"/>
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="e2"/>
+    <prov:activity prov:ref="a1"/>
+    <prov:time>2001-10-26T10:00:00</prov:time>
+    <ex:port>p2</ex:port>
+  </prov:wasGeneratedBy>
+
+  <!-- Example 19, http://www.w3.org/TR/prov-dm/#anexample-generation2 -->
+
+  <prov:entity prov:id="e"/>
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="e"/>
+    <prov:time>2001-10-26T21:32:52</prov:time>
+  </prov:wasGeneratedBy>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Influence.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Influence.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,17 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on Example 38 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#example_38  -->
+<!-- based on Example 38 from http://www.w3.org/TR/prov-dm/#example_38  -->
 
-<prov:records 
+<prov:document
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:tr="http://example.com/ns/tr#"
     xmlns:w3="http://w3.org/">
-    <prov:entity prov:id="tr:WD-prov-dm-20111215"/>
-    <prov:agent prov:id="w3:Consortium"/>
-    <prov:dependencies>
-        <prov:wasInfluencedBy>
-            <prov:influencee prov:ref="tr:WD-prov-dm-20111215"/>
-            <prov:influencer prov:ref="w3:Consortium"/>
-        </prov:wasInfluencedBy>
-    </prov:dependencies>
-</prov:records>
+
+  <prov:entity prov:id="tr:WD-prov-dm-20111215"/>
+
+  <prov:agent prov:id="w3:Consortium"/>
+
+  <prov:wasInfluencedBy>
+    <prov:influencee prov:ref="tr:WD-prov-dm-20111215"/>
+    <prov:influencer prov:ref="w3:Consortium"/>
+  </prov:wasInfluencedBy>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Invalidation.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Invalidation.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,27 +1,106 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on PROV-DM's Example 26 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#term-Invalidation 
-     see also http://dvcs.w3.org/hg/prov/raw-file/default/xml/prov.xsd.html#type_WasInvalidatedBy -->
-
-<prov:records
-    xmlns:prov="http://www.w3.org/ns/prov#"
-    xmlns:ex="http://example.com/ns/ex#">
-
-    <prov:entity prov:id="ex:The-Painter" />
-    <prov:agent prov:id="ex:Picasso" />
-    <prov:activity prov:id="ex:crash" />
+<!-- based on PROV-DM's Example 26 from http://www.w3.org/TR/prov-dm/#anexample-invalidation1
+     see also http://www.w3.org/TR/prov-dm/#type_WasInvalidatedBy -->
 
-    <prov:dependencies>
-        <prov:wasAttributedTo>
-            <prov:entity prov:ref="ex:The-Painter" />
-            <prov:agent prov:ref="ex:Picasso" />
-        </prov:wasAttributedTo>
-        <prov:wasInvalidatedBy>
-            <prov:time>1998-09-03T01:31:00</prov:time>
-            <prov:entity>ex:The-Painter</prov:entity>
-            <prov:activity>ex:crash</prov:activity>
-            <ex:circumstances>plane accident</ex:circumstances>
-        </prov:wasInvalidatedBy>
-    </prov:dependencies>
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#"
+    xmlns:bbc="http://www.bbc.co.uk/news/">
 
-</prov:records>
+  <prov:entity prov:id="ex:The-Painter"/>
+
+  <prov:agent prov:id="ex:Picasso"/>
+
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="ex:The-Painter" />
+    <prov:agent prov:ref="ex:Picasso" />
+  </prov:wasAttributedTo>
+
+  <prov:activity prov:id="ex:crash"/>
+
+  <prov:wasInvalidatedBy>
+    <prov:entity prov:ref="ex:The-Painter"/>
+    <prov:activity prov:ref="ex:crash"/>
+    <prov:time>1998-09-03T01:31:00</prov:time>
+    <ex:circumstances>plane accident</ex:circumstances>
+  </prov:wasInvalidatedBy>
+
+  <!-- Example 27, http://www.w3.org/TR/prov-dm/#anexample-invalidation2 -->
+
+  <prov:entity prov:id="ex:bbcNews2012-04-03"/>
+  
+  <prov:entity prov:id="bbc:uk-17595024"/>
+
+
+  <prov:collectionMemberOf>
+    <prov:collection prov:ref="bbc:uk-17595024"/>
+    <prov:member prov:ref="ex:bbcNews2012-04-03"/>
+  </prov:collectionMemberOf>
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="ex:bbcNews2012-04-03"/>
+    <prov:time>2012-04-03T00:00:01</prov:time>
+  </prov:wasGeneratedBy>
+
+  <prov:wasInvalidatedBy>
+    <prov:entity prov:ref="ex:bbcNews2012-04-03"/>
+    <prov:time>2012-04-03T23:59:59</prov:time>
+  </prov:wasInvalidatedBy>
+
+  <!-- Example 28, http://www.w3.org/TR/prov-dm/#anexample-invalidation3 -->
+
+  <prov:entity prov:id="buy_one_beer_get_one_free_offer_during_happy_hour"/>
+
+  <prov:agent prov:id="proprietor"/>
+
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="buy_one_beer_get_one_free_offer_during_happy_hour"/>
+    <prov:agent prov:ref="proprietor"/>
+  </prov:wasAttributedTo>
+
+  <prov:wasInvalidatedBy>
+    <prov:entity prov:ref="buy_one_beer_get_one_free_offer_during_happy_hour"/>
+    <prov:time>2012-03-10T18:00:00</prov:time>
+  </prov:wasInvalidatedBy>
+
+  <!-- In contrast... -->
+
+  <prov:entity prov:id="buy_one_beer_get_one_free_offer_during_happy_hour"/>
+
+  <prov:agent prov:id="proprietor"/>
+
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="buy_one_beer_get_one_free_offer_during_happy_hour"/>
+    <prov:agent prov:ref="proprietor"/>
+  </prov:wasAttributedTo>
+
+  <prov:activity prov:id="redeemOffer"/>
+
+  <prov:entity prov:id="twoBeers"/>
+
+  <prov:agent prov:id="bob"/>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="redeemOffer"/>
+    <prov:agent prov:ref="bob"/>
+  </prov:wasAssociatedWith>
+
+  <prov:used>
+    <prov:activity prov:ref="redeemOfffer"/>
+    <prov:entity prov:ref="buy_one_beer_get_one_free_offer_during_happy_hour"/>
+    <prov:time>2012-03-10T17:15:00</prov:time>
+  </prov:used>
+
+  <prov:wasInvalidatedBy>
+    <prov:entity prov:ref="buy_one_beer_get_one_free_offer_during_happy_hour"/>
+    <prov:activity prov:ref="redeemOffer"/>
+    <prov:time>2012-03-10T17:15:00</prov:time>
+  </prov:wasInvalidatedBy>
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="twoBeers"/>
+    <prov:activity prov:ref="redeemOffer"/>
+  </prov:wasGeneratedBy>
+  
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Label.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Label.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,15 +1,18 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on Example 49 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#example_49 -->
+<!-- based on Example 49 from http://www.w3.org/TR/prov-dm/#example_49 -->
 
-<prov:records
+<prov:document
     xmlns:prov="http://www.w3.org/ns/prov#" 
     xmlns:ex="http://example.com/ns/ex#">
-    <prov:entity prov:id="ex:e1">
-        <prov:label>This is a human-readable label</prov:label>
-    </prov:entity>
-    <prov:entity prov:id="ex:car01">
-        <prov:label xml:lang="fr">Voiture 01</prov:label>
-        <prov:label xml:lang="en">Car 01</prov:label>
-    </prov:entity>
-</prov:records>
+
+  <prov:entity prov:id="ex:e1">
+    <prov:label>This is a human-readable label</prov:label>
+  </prov:entity>
+
+  <prov:entity prov:id="ex:car01">
+    <prov:label xml:lang="fr">Voiture 01</prov:label>
+    <prov:label xml:lang="en">Car 01</prov:label>
+  </prov:entity>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Location.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Location.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,12 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!-- based on Example 50 from http://www.w3.org/TR/prov-dm/#example-location -->
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ex="http://example.com/ns/ex#">
-	<prov:entity prov:id="ex:MonaLisa">
-		<prov:type>StillImage</prov:type>
-		<prov:location>Le Louvre, Paris</prov:location>
-	</prov:entity>
-	<prov:entity prov:id="ex:cell">
-		<prov:location>(5,5)</prov:location>
-		<prov:value>10</prov:value>
-	</prov:entity>
-</prov:records>
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#">
+
+  <prov:entity prov:id="ex:MonaLisa">
+    <prov:type>StillImage</prov:type>
+    <prov:location>Le Louvre, Paris</prov:location>
+  </prov:entity>
+
+  <prov:entity prov:id="ex:cell">
+    <prov:location>(5,5)</prov:location>
+    <prov:value>10</prov:value>
+  </prov:entity>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Membership.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Membership.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,18 +1,23 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!-- based on Example 48 from http://www.w3.org/TR/prov-dm/#example_48 -->
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-	<prov:entity prov:id="e0"/>
-	<prov:entity prov:id="e1"/>
-	<prov:entity prov:id="e2"/>
-	<prov:entity prov:id="c">
-		<prov:type>prov:Collection</prov:type>
-	</prov:entity>
-	<prov:dependencies>
-		<prov:collectionMemberOf>
-			<prov:collection prov:ref="c"/>
-			<prov:member prov:ref="e0"/>
-			<prov:member prov:ref="e1"/>
-			<prov:member prov:ref="e2"/>
-		</prov:collectionMemberOf>
-	</prov:dependencies>
-</prov:records>
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#">
+
+  <prov:entity prov:id="e0"/>
+  <prov:entity prov:id="e1"/>
+  <prov:entity prov:id="e2"/>
+
+  <prov:entity prov:id="c">
+    <prov:type>prov:Collection</prov:type>
+  </prov:entity>
+
+  <prov:collectionMemberOf>
+    <prov:collection prov:ref="c"/>
+    <prov:member prov:ref="e0"/>
+    <prov:member prov:ref="e1"/>
+    <prov:member prov:ref="e2"/>
+  </prov:collectionMemberOf>
+
+</prov:document>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Mention_45.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 45 from http://www.w3.org/TR/prov-dm/#anexample-mention-rating -->
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#"
+    xmlns:perf="http://example.com/ns/perf#"
+    xmlns:tool="http://example.com/ns/tool#">
+  
+  <prov:bundle prov:id="ex:run1">
+    <prov:activity prov:id="ex:a1">
+      <prov:startTime>2011-11-16T16:00:00</prov:startTime>
+      <prov:endTime>2011-11-16T17:00:00</prov:endTime>
+    </prov:activity>
+
+    <prov:wasAssociatedWith>
+      <prov:activity prov:ref="ex:a1" />
+      <prov:agent prov:ref="ex:Bob" />
+      <prov:role>controller</prov:role>
+    </prov:wasAssociatedWith>
+  </prov:bundle>
+
+  <prov:bundle prov:id="ex:run2">
+    <prov:activity prov:id="ex:a2">
+      <prov:startTime>2011-11-17T10:00:00</prov:startTime>
+      <prov:endTime>2011-11-17T17:00:00</prov:endTime>
+    </prov:activity>
+
+    <prov:wasAssociatedWith>
+      <prov:activity prov:ref="ex:a2" />
+      <prov:agent prov:ref="ex:Bob" />
+      <prov:role>controller</prov:role>
+    </prov:wasAssociatedWith>
+  </prov:bundle>
+
+  <prov:bundle prov:id="tool:analysis01">
+    <prov:agent prov:id="tool:Bob-2011-11-16">
+      <ex:perfrating>good</ex:perfrating>
+    </prov:agent>
+
+    <prov:mentionOf>
+      <prov:specificEntity prov:ref="tool:Bob-2011-11-16" />
+      <prov:generalEntity prov:ref="ex:Bob" />
+      <prov:bundle prov:ref="ex:run1" />
+    </prov:mentionOf>
+
+    <prov:agent prov:id="tool:Bob-2011-11-17">
+      <ex:perfrating>bad</ex:perfrating>
+    </prov:agent>
+
+    <prov:mentionOf>
+      <prov:specificEntity prov:ref="tool:Bob-2011-11-17" />
+      <prov:generalEntity prov:ref="ex:Bob" />
+      <prov:bundle prov:ref="ex:run2" />
+    </prov:mentionOf>
+  </prov:bundle>
+
+</prov:document>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Mention_46.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 46 from http://www.w3.org/TR/prov-dm/#anexample-mention-viz -->
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#"
+    xmlns:tool="http://example.com/ns/tool#"
+    xmlns:viz="http://example.com/ns/viz#"
+    xmlns:obs="http://example.com/ns/obs#">
+
+  <prov:bundle prov:id="obs:bundle1">
+    <prov:entity prov:id="ex:report1">
+      <prov:type>report</prov:type>
+      <ex:version>1</ex:version>
+    </prov:entity>
+
+    <prov:wasGeneratedBy prov:id="ex:g1">
+      <prov:entity prov:ref="ex:report1"/>
+      <prov:time>2012-05-24T10:00:01</prov:time>
+    </prov:wasGeneratedBy>
+
+    <prov:entity prov:id="ex:report2">
+      <prov:type>report</prov:type>
+      <ex:version>2</ex:version>
+    </prov:entity>
+
+    <prov:wasGeneratedBy prov:id="ex:g2">
+      <prov:entity prov:ref="ex:report2"/>
+      <prov:time>2012-05-25T11:00:01</prov:time>
+    </prov:wasGeneratedBy>
+
+    <prov:wasDerivedFrom>
+      <prov:generatedEntity prov:ref="ex:report2"/>
+      <prov:usedEntity prov:ref="ex:report1"/>
+    </prov:wasDerivedFrom>
+  </prov:bundle>
+
+  <prov:entity prov:id="obs:bundle1">
+    <prov:type>prov:Bundle</prov:type>
+  </prov:entity>
+
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="obs:bundle1"/>
+    <prov:agent prov:ref="ex:observer01"/>
+  </prov:wasAttributedTo>
+  
+  <prov:bundle prov:id="tool:bundle2">
+    <prov:entity prov:id="tool:bundle2">
+      <prov:type>viz:Configuration</prov:type>
+      <prov:type>prov:Bundle</prov:type>
+    </prov:entity>
+
+    <prov:wasAttributedTo>
+      <prov:entity prov:ref="tool:bundle2"/>
+      <prov:agent prov:ref="viz:Visualizer"/>
+    </prov:wasAttributedTo>
+
+    <prov:entity prov:id="tool:report1">
+      <ex:vizcolor>orange</ex:vizcolor>
+    </prov:entity>
+    
+    <prov:mentionOf>
+      <prov:specificEntity prov:ref="tool:report1"/>
+      <prov:generalEntity prov:ref="ex:report1"/>
+      <prov:bundle prov:ref="obs:bundle1"/>
+    </prov:mentionOf>
+
+    <prov:entity prov:id="tool:report2">
+      <ex:vizcolor>blue</ex:vizcolor>
+    </prov:entity>
+
+    <prov:mentionOf>
+      <prov:specificEntity prov:ref="tool:report2"/>
+      <prov:generalEntity prov:ref="ex:report2"/>
+      <prov:bundle prov:ref="obs:bundle1"/>
+    </prov:mentionOf>
+
+  </prov:bundle>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Organization.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Organization.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,7 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!-- based on Organization example from http://www.w3.org/TR/prov-dm/#section-example-c -->
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:w3="http://w3.org/">
-	<prov:agent prov:id="w3:Consortium">
-		<prov:type>prov:Organization</prov:type>
-	</prov:agent>
-</prov:records>
\ No newline at end of file
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:w3="http://w3.org/">
+
+  <prov:agent prov:id="w3:Consortium">
+    <prov:type>prov:Organization</prov:type>
+  </prov:agent>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Person.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Person.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,25 +1,35 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!-- based on Example 34 from http://www.w3.org/TR/prov-dm/#term-agent -->
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ex="http://example.com/ns/ex#" xmlns:tr="http://example.com/ns/tr#" xmlns:rec54="http://example.com/ns/rec54#">
-	<prov:entity prov:id="tr:WD-prov-dm-20111215">
-		<prov:type>rec54:WD</prov:type>
-	</prov:entity>
-	<prov:agent prov:id="ex:Paolo">
-		<prov:type>prov:Person</prov:type>
-	</prov:agent>
-	<prov:agent prov:id="ex:Simon">
-		<prov:type>prov:Person</prov:type>
-	</prov:agent>
-	<prov:dependencies>
-		<prov:wasAttributedTo>
-			<prov:entity prov:ref="rec54:WD"/>
-			<prov:agent prov:ref="ex:Paolo"/>
-			<prov:type>editorship</prov:type>
-		</prov:wasAttributedTo>
-		<prov:wasAttributedTo>
-			<prov:entity prov:ref="rec54:WD"/>
-			<prov:agent prov:ref="ex:Simon"/>
-			<prov:type>authorship</prov:type>
-		</prov:wasAttributedTo>
-	</prov:dependencies>
-</prov:records>
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#"
+    xmlns:tr="http://example.com/ns/tr#"
+    xmlns:rec54="http://example.com/ns/rec54#">
+
+  <prov:agent prov:id="ex:Paolo">
+    <prov:type>prov:Person</prov:type>
+  </prov:agent>
+
+  <prov:agent prov:id="ex:Simon">
+    <prov:type>prov:Person</prov:type>
+  </prov:agent>
+
+  <prov:entity prov:id="tr:WD-prov-dm-20111215">
+    <prov:type>rec54:WD</prov:type>
+  </prov:entity>
+
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="rec54:WD"/>
+    <prov:agent prov:ref="ex:Paolo"/>
+    <prov:type>editorship</prov:type>
+  </prov:wasAttributedTo>
+
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="rec54:WD"/>
+    <prov:agent prov:ref="ex:Simon"/>
+    <prov:type>authorship</prov:type>
+  </prov:wasAttributedTo>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Plan.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Plan.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,33 +1,62 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!-- based on Example 35 from http://www.w3.org/TR/prov-dm/#anexample-wasAssociatedWith -->
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ex="http://example.com/ns/ex#">
-	<prov:activity prov:id="a">
-		<prov:type>workflow execution</prov:type>
-	</prov:activity>
-	<prov:entity prov:id="ex:wf">
-		<prov:label>Workflow 1</prov:label>
-		<prov:type>prov:Plan</prov:type>
-		<prov:location>http://example.org/workflow1.bpel</prov:location>
-	</prov:entity>
-	<prov:agent prov:id="ag1">
-		<prov:type>operator</prov:type>
-	</prov:agent>
-	<prov:agent prov:id="ag2">
-		<prov:type>designator</prov:type>
-	</prov:agent>
-	<prov:dependencies>
-		<prov:wasAssociatedWith>
-			<prov:activity prov:ref="a"/>
-			<prov:agent prov:ref="ag1"/>
-			<prov:role>loggedInUser</prov:role>
-			<ex:how>webapp</ex:how>
-		</prov:wasAssociatedWith>
-		<prov:wasAssociatedWith>
-			<prov:activity prov:ref="a"/>
-			<prov:agent prov:ref="ag2"/>
-			<prov:plan prov:ref="ex:wf"/>
-			<prov:role>designer</prov:role>
-			<ex:content>project1</ex:content>
-		</prov:wasAssociatedWith>
-	</prov:dependencies>
-</prov:records>
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:ex="http://example.com/ns/ex#">
+
+  <prov:activity prov:id="a">
+    <prov:type>workflow execution</prov:type>
+  </prov:activity>
+
+  <prov:agent prov:id="ag1">
+    <prov:type>operator</prov:type>
+  </prov:agent>
+
+  <prov:agent prov:id="ag2">
+    <prov:type>designator</prov:type>
+  </prov:agent>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="a"/>
+    <prov:agent prov:ref="ag1"/>
+    <prov:role>loggedInUser</prov:role>
+    <ex:how>webapp</ex:how>
+  </prov:wasAssociatedWith>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="a"/>
+    <prov:agent prov:ref="ag2"/>
+    <prov:plan prov:ref="ex:wf"/>
+    <prov:role>designer</prov:role>
+    <ex:content>project1</ex:content>
+  </prov:wasAssociatedWith>
+
+  <prov:entity prov:id="ex:wf">
+    <prov:type>prov:Plan</prov:type>
+    <ex:label>Workflow 1</ex:label>
+    <prov:location>http://example.org/workflow1.bpel</prov:location>
+  </prov:entity>
+
+  <!-- based on Example 36 from http://www.w3.org/TR/prov-dm/#anexample-wasAssociatedWith-2 -->
+  
+  <prov:activity prov:id="ex:a">
+    <prov:type>workflow execution</prov:type>
+  </prov:activity>
+
+  <prov:entity prov:id="ex:wf"/>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="ex:a"/>
+    <prov:plan prov:ref="ex:wf"/>
+  </prov:wasAssociatedWith>
+
+  <prov:entity prov:id="ex:wf">
+    <prov:type>prov:Plan</prov:type>
+    <ex:label>Workflow 1</ex:label>
+    <prov:location>http://example.org/workflow1.bpel</prov:location>
+  </prov:entity>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/PrimarySource.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/PrimarySource.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,16 +1,23 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!-- based on Example 32 from http://www.w3.org/TR/prov-dm/#anexample-primary-source1 -->
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ex="http://example.com/ns/ex#">
-	<prov:entity prov:id="ex:la-campagne-de-Russie-1812-1813">
-		<prov:type>map</prov:type>
-	</prov:entity>
-	<prov:entity prov:id="ex:revue-d-Histoire-de-la-Pharmacie-t-XVIII">
-		<prov:type>journal</prov:type>
-	</prov:entity>
-	<prov:dependencies>
-		<prov:hadPrimarySource>
-			<prov:derived prov:ref="ex:la-campagne-de-Russie-1812-1813"/>
-			<prov:source prov:ref="ex:revue-d-Histoire-de-la-Pharmacie-t-XVIII"/>
-		</prov:hadPrimarySource>
-	</prov:dependencies>
-</prov:records>
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#">
+
+  <prov:entity prov:id="ex:la-campagne-de-Russie-1812-1813">
+    <prov:type>map</prov:type>
+  </prov:entity>
+
+  <prov:entity prov:id="ex:revue-d-Histoire-de-la-Pharmacie-t-XVIII">
+    <prov:type>journal</prov:type>
+  </prov:entity>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="ex:la-campagne-de-Russie-1812-1813"/>
+    <prov:usedEntity prov:ref="ex:revue-d-Histoire-de-la-Pharmacie-t-XVIII"/>
+  </prov:wasDerivedFrom>
+
+</prov:document>
+
--- a/examples/eg-40-xml-examples-by-term/xml/Quotation.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Quotation.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,29 +1,35 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on Example 31 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-quotation -->
+<!-- based on Example 31 from http://www.w3.org/TR/prov-dm/#anexample-quotation -->
 
-<prov:records 
+<prov:document
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:wp="http://thinklinks.wordpress.com/2012/03/07/"
     xmlns:ex="http://example.com/ns/ex#"
     xmlns:dm="http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#">
-    <prov:entity prov:id="wp:thoughts-from-the-dagstuhl-principles-of-provenance-workshop"/>
-    <prov:entity prov:id="dm:bl-dagstuhl"/>
-    <prov:agent prov:id="ex:Luc"/>
-    <prov:agent prov:id="ex:Paul"/>
-    <prov:dependencies>
-        <prov:wasDerivedFrom>
-            <prov:generatedEntity prov:ref="dm:gl-dagstuhl"/>
-            <prov:usedEntity prov:ref="wp:thoughts-from-the-dagstuhl-principles-of-provenance-workshop"/>
-            <prov:type>prov:Quotation</prov:type>
-        </prov:wasDerivedFrom>
-        <prov:wasAttributedTo>
-            <prov:entity prov:ref="dm:bl-dagstuhl"/>
-            <prov:agent prov:ref="ex:Luc"/>
-        </prov:wasAttributedTo>
-        <prov:wasAttributedTo>
-            <prov:entity prov:ref="wp:thoughts-from-the-dagstuhl-principles-of-provenance-workshop"/>
-            <prov:agent prov:ref="ex:Paul"/>
-        </prov:wasAttributedTo>
-    </prov:dependencies>
-</prov:records>
+
+  <prov:entity prov:id="wp:thoughts-from-the-dagstuhl-principles-of-provenance-workshop"/>
+
+  <prov:entity prov:id="dm:bl-dagstuhl"/>
+
+  <prov:agent prov:id="ex:Luc"/>
+
+  <prov:agent prov:id="ex:Paul"/>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="dm:gl-dagstuhl"/>
+    <prov:usedEntity prov:ref="wp:thoughts-from-the-dagstuhl-principles-of-provenance-workshop"/>
+    <prov:type>prov:Quotation</prov:type>
+  </prov:wasDerivedFrom>
+
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="dm:bl-dagstuhl"/>
+    <prov:agent prov:ref="ex:Luc"/>
+  </prov:wasAttributedTo>
+  
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="wp:thoughts-from-the-dagstuhl-principles-of-provenance-workshop"/>
+    <prov:agent prov:ref="ex:Paul"/>
+  </prov:wasAttributedTo>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Revision.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Revision.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,26 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on PROV-DM's Example 30 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#term-revision 
+<!-- based on PROV-DM's Example 30 from http://www.w3.org/TR/prov-dm/#anexample-revision 
      see also http://dvcs.w3.org/hg/prov/raw-file/default/xml/prov.xsd.html#type_WasRevisionOf -->
 
-<prov:records
+<prov:document
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:rec54="http://www.w3.org/2001/02pd/rec54#"
     xmlns:tr="http://example.com/ns/tr#">
-
-    <prov:entity prov:id="tr:WD-prov-dm-20111215">
-        <prov:type>rec54:WD</prov:type>
-    </prov:entity>
-    <prov:entity prov:id="tr:WD-prov-dm-20111018">
-        <prov:type>rec54:WD</prov:type>
-    </prov:entity>
+  
+  <prov:entity prov:id="tr:WD-prov-dm-20111215">
+    <prov:type>rec54:WD</prov:type>
+  </prov:entity>
 
-    <prov:dependencies>
-        <prov:wasDerivedFrom>
-            <prov:newer prov:ref="tr:WD-prov-dm-20111215" />
-            <prov:agent prov:ref="tr:WD-prov-dm-20111018" />
-            <prov:type>prov:Revision</prov:type>
-        </prov:wasDerivedFrom>
-    </prov:dependencies>
+  <prov:entity prov:id="tr:WD-prov-dm-20111018">
+    <prov:type>rec54:WD</prov:type>
+  </prov:entity>
 
-</prov:records>
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="tr:WD-prov-dm-20111215"/>
+    <prov:usedEntity prov:ref="tr:WD-prov-dm-20111018"/>
+    <prov:type>prov:Revision</prov:type>
+  </prov:wasDerivedFrom>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Role.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Role.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,20 +1,29 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!-- based on Example 51 from http://www.w3.org/TR/prov-dm/#anexample-role -->
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ex="http://example.com/ns/ex#">
-	<prov:activity prov:id="ex:div01"/>
-	<prov:activity prov:id="a"/>
-	<prov:entity prov:id="ex:cell"/>
-	<prov:agent prov:id="ag"/>
-	<prov:dependencies>
-		<prov:wasAssociatedWith>
-			<prov:activity prov:ref="a"/>
-			<prov:agent prov:ref="ag"/>
-			<prov:role>operator</prov:role>
-		</prov:wasAssociatedWith>
-		<prov:used>
-			<prov:activity prov:ref="ex:div01"/>
-			<prov:entity prov:ref="ex:cell"/>
-			<prov:role>divisor</prov:role>
-		</prov:used>
-	</prov:dependencies>
-</prov:records>
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#">
+
+  <prov:activity prov:id="a"/>
+
+  <prov:agent prov:id="ag"/>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="a"/>
+    <prov:agent prov:ref="ag"/>
+    <prov:role>operator</prov:role>
+  </prov:wasAssociatedWith>
+
+  <prov:activity prov:id="ex:div01"/>
+
+  <prov:entity prov:id="ex:cell"/>
+
+  <prov:used>
+    <prov:activity prov:ref="ex:div01"/>
+    <prov:entity prov:ref="ex:cell"/>
+    <prov:role>divisor</prov:role>
+  </prov:used>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/SoftwareAgent.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/SoftwareAgent.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,7 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!--Based on example 52 from http://www.w3.org/TR/prov-dm/#term-attribute-type-->
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-	<prov:agent prov:id="ag">
-		<prov:type>prov:SoftwareAgent</prov:type>
-	</prov:agent>
-</prov:records>
\ No newline at end of file
+
+<!-- based on Example 52 from http://www.w3.org/TR/prov-dm/#example_52 -->
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#">
+
+  <prov:agent prov:id="ag">
+    <prov:type>prov:SoftwareAgent</prov:type>
+  </prov:agent>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Specialization.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Specialization.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,17 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on Example 42 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#anexample-specialization -->
+<!-- based on Example 42 from http://www.w3.org/TR/prov-dm/#anexample-specialization -->
 
-<prov:records 
+<prov:document
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#"
     xmlns:bbc="http://www.bbc.co.uk/">
-    <prov:entity prov:id="ex:bbcNews2012-03-23"/>
-    <prov:entity prov:id="bbc:news"/>
-    <prov:dependencies>
-        <prov:specializationOf>
-            <prov:specificEntity prov:ref="ex:bbcNews2012-03-23"/>
-            <prov:generalEntity prov:ref="bbc:news"/>
-        </prov:specializationOf>
-    </prov:dependencies>
-</prov:records>
+  
+  <prov:entity prov:id="ex:bbcNews2012-03-23"/>
+
+  <prov:entity prov:id="bbc:news"/>
+
+  <prov:specializationOf>
+    <prov:specificEntity prov:ref="ex:bbcNews2012-03-23"/>
+    <prov:generalEntity prov:ref="bbc:news"/>
+  </prov:specializationOf>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Start.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Start.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,34 +1,95 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on PROV-DM's Example 22 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#term-Start 
-     see also http://dvcs.w3.org/hg/prov/raw-file/default/xml/prov.xsd.html#type_WasStartedBy -->
+<!-- based on PROV-DM's Example 22 from http://www.w3.org/TR/prov-dm/#anexample-start1
+     see also http://www.w3.org/TR/prov-dm/#type_WasStartedBy -->
 
-<prov:records
+<prov:document
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#">
 
-    <prov:activity prov:id="a0">
-        <prov:type>Write</prov:type>
-    </prov:activity>
-    <prov:activity prov:id="a1">
-        <prov:type>Discuss</prov:type>
-    </prov:activity>
-
-    <prov:entity prov:id="e1">
-        <prov:type>email message</prov:type>
-    </prov:entity>
+  <prov:entity prov:id="e1">
+    <prov:type>email message</prov:type>
+  </prov:entity>
 
-    <prov:dependencies>
-        <prov:wasStartedBy>
-            <prov:time>2011-11-16T16:05:00</prov:time>
-            <prov:activity prov:ref="a1"/>
-            <prov:trigger prov:ref="e1"/>
-            <prov:starter prov:ref="a0"/>
-        </prov:wasStartedBy>
-        <prov:used>
-            <prov:activity prov:ref="a1"/>
-            <prov:entity prov:ref="e1"/>
-        </prov:used>
-    </prov:dependencies>
+  <prov:activity prov:id="a1">
+    <prov:type>Discuss</prov:type>
+  </prov:activity>
 
-</prov:records>
+  <prov:wasStartedBy>
+    <prov:activity prov:ref="a1"/>
+    <prov:trigger prov:ref="e1"/>
+    <prov:time>2011-11-16T16:05:00</prov:time>
+  </prov:wasStartedBy>
+
+  <prov:used>
+    <prov:activity prov:ref="a1"/>
+    <prov:entity prov:ref="e1"/>
+  </prov:used>
+
+  <prov:activity prov:id="a0">
+    <prov:type>Write</prov:type>
+  </prov:activity>
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="e1"/>
+    <prov:activity prov:ref="a0"/>
+  </prov:wasGeneratedBy>
+
+  <prov:wasStartedBy>
+    <prov:activity prov:ref="a1"/>
+    <prov:trigger prov:ref="e1"/>
+    <prov:starter prov:ref="a0"/>
+    <prov:time>2011-11-16T16:05:00</prov:time>
+  </prov:wasStartedBy>
+  
+  <prov:wasStartedBy>
+    <prov:activity prov:ref="a1"/>
+    <prov:starter prov:ref="a0"/>
+    <prov:time>2011-11-16T16:05:00</prov:time>
+  </prov:wasStartedBy>
+  
+  <!-- Example 23, http://www.w3.org/TR/prov-dm/#anexample-start2 -->
+
+  <prov:activity prov:id="ex:foot_race"/>
+
+  <prov:entity prov:id="ex:bang"/>
+
+  <prov:wasStartedBy>
+    <prov:activity prov:ref="ex:foot_race"/>
+    <prov:trigger prov:ref="ex:bang"/>
+    <prov:time>2012-03-09T08:05:08-05:00</prov:time>
+  </prov:wasStartedBy>
+
+  <prov:agent prov:id="ex:Bob"/>
+  
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="ex:bang"/>
+    <prov:agent prov:ref="ex:Bob"/>
+  </prov:wasAttributedTo>
+
+  <!-- Example 24, http://www.w3.org/TR/prov-dm/#anexample-start3 -->
+
+  <prov:activity prov:id="ex:filling-fuel"/>
+
+  <prov:activity prov:id="ex:observing-low-fuel"/>
+
+  <prov:agent prov:id="ex:driver">
+    <prov:type>prov:Person</prov:type>
+  </prov:agent>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="ex:filling-fuel"/>
+    <prov:agent prov:ref="ex:driver"/>
+  </prov:wasAssociatedWith>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="ex:observing-low-fuel"/>
+    <prov:agent prov:ref="ex:driver"/>
+  </prov:wasAssociatedWith>
+
+  <prov:wasStartedBy>
+    <prov:activity prov:ref="ex:filling-fuel"/>
+    <prov:starter prov:ref="ex:observing-low-fuel"/>
+  </prov:wasStartedBy>
+
+</prov:document>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-40-xml-examples-by-term/xml/Time.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- based on Example 55 from http://www.w3.org/TR/prov-dm/#anexample-time -->
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#">
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="e1"/>
+    <prov:activity prov:ref="a1"/>
+    <prov:time>2001-10-26T21:32:52</prov:time>
+  </prov:wasGeneratedBy>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Usage.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Usage.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,21 +1,29 @@
 <?xml version="1.0" encoding="UTF-8"?>
+
 <!-- based on Example 20 from http://www.w3.org/TR/prov-dm/#anexample-usage -->
-<prov:records xmlns:prov="http://www.w3.org/ns/prov#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-	<prov:activity prov:id="a1"/>
-	<prov:entity prov:id="e1"/>
-	<prov:entity prov:id="e2"/>
-	<prov:dependencies>
-		<prov:used>
-			<prov:time>2011-11-16T16:00:00</prov:time>
-			<prov:activity prov:ref="a1"/>
-			<prov:entity prov:ref="e1"/>
-			<!--<ex:parameter>p1</ex:parameter>-->
-		</prov:used>
-		<prov:used>
-			<prov:time>2011-11-16T16:00:01</prov:time>
-			<prov:activity prov:ref="a1"/>
-			<prov:entity prov:ref="e2"/>
-			<!--<ex:parameter>p2</ex:parameter>-->
-		</prov:used>
-	</prov:dependencies>
-</prov:records>
+
+<prov:document
+    xmlns:prov="http://www.w3.org/ns/prov#"
+    xmlns:ex="http://example.com/ns/ex#">
+
+  <prov:activity prov:id="a1"/>
+
+  <prov:entity prov:id="e1"/>
+
+  <prov:entity prov:id="e2"/>
+
+  <prov:used>
+    <prov:activity prov:ref="a1"/>
+    <prov:entity prov:ref="e1"/>
+    <prov:time>2011-11-16T16:00:00</prov:time>
+    <ex:parameter>p1</ex:parameter>
+  </prov:used>
+                
+  <prov:used>
+    <prov:activity prov:ref="a1"/>
+    <prov:entity prov:ref="e2"/>
+    <prov:time>2011-11-16T16:00:01</prov:time>
+    <ex:parameter>p2</ex:parameter>
+  </prov:used>
+
+</prov:document>
--- a/examples/eg-40-xml-examples-by-term/xml/Value.xml	Tue Sep 18 09:59:50 2012 -0400
+++ b/examples/eg-40-xml-examples-by-term/xml/Value.xml	Tue Sep 18 10:02:20 2012 -0400
@@ -1,31 +1,36 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<!-- based on Example 53 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#example_53 -->
+<!-- based on Example 53 from http://www.w3.org/TR/prov-dm/#example_53 -->
 
-<prov:records
+<prov:document
     xmlns:prov="http://www.w3.org/ns/prov#"
     xmlns:ex="http://example.com/ns/ex#">
-    <prov:activity prov:id="ex:len">
-        <prov:type>string-length</prov:type>
-    </prov:activity>
-    <prov:entity prov:id="ex:in">
-        <prov:value>abcd</prov:value>
-    </prov:entity>
-    <prov:entity prov:id="ex:out">
-        <prov:value>4</prov:value>
-    </prov:entity>
-    <prov:dependencies>
-        <prov:used>
-            <prov:activity prov:ref="ex:len"/>
-            <prov:entity prov:ref="ex:in"/>
-        </prov:used>
-        <prov:wasGeneratedBy>
-            <prov:entity prov:ref="ex:out"/>
-            <prov:activity prov:ref="ex:len"/>
-        </prov:wasGeneratedBy>
-        <prov:wasDerivedFrom>
-            <prov:generatedEntity prov:ref="ex:out"/>
-            <prov:usedEntity prov:ref="ex:in"/>
-        </prov:wasDerivedFrom>
-    </prov:dependencies>
-</prov:records>
+
+  <prov:entity prov:id="ex:in">
+    <prov:value>abcd</prov:value>
+  </prov:entity>
+
+  <prov:entity prov:id="ex:out">
+    <prov:value>4</prov:value>
+  </prov:entity>
+
+  <prov:activity prov:id="ex:len">
+    <prov:type>string-length</prov:type>
+  </prov:activity>
+
+  <prov:used>
+    <prov:activity prov:ref="ex:len"/>
+    <prov:entity prov:ref="ex:in"/>
+  </prov:used>
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="ex:out"/>
+    <prov:activity prov:ref="ex:len"/>
+  </prov:wasGeneratedBy>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="ex:out"/>
+    <prov:usedEntity prov:ref="ex:in"/>
+  </prov:wasDerivedFrom>
+
+</prov:document>