based on PROV-DM's Example 39 from http://dvcs.w3.org/hg/prov/raw-file/default/model/prov-dm.html#component4
authorhhua
Thu, 06 Sep 2012 12:14:27 -0700
changeset 4423 c7b8944b983a
parent 4422 47bdac144517
child 4424 759918d8818a
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
examples/eg-40-xml-examples-by-term/xml/Bundle.xml
--- a/examples/eg-40-xml-examples-by-term/xml/Bundle.xml	Thu Sep 06 12:14:02 2012 -0700
+++ b/examples/eg-40-xml-examples-by-term/xml/Bundle.xml	Thu Sep 06 12:14:27 2012 -0700
@@ -0,0 +1,104 @@
+<?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 -->
+
+<prov:bundle
+    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#">
+
+    <!--
+    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: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>bob:bundle1</prov:entity>
+                <prov:agent>ex:Bob</prov:agent>
+            </prov:wasAttributedTo>
+            <prov:wasAttributedTo>
+                <prov:entity>alice:bundle2</prov:entity>
+                <prov:agent>ex:Alice</prov:agent>
+            </prov:wasAttributedTo>
+        </prov:dependencies>
+    </prov:records>
+
+    <!-- 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>
+
+    <!-- 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:bundle>
+