added initial content to Component 4 - Bundles
authorStephan Zednik <zednis@rpi.edu>
Fri, 09 Nov 2012 09:38:23 -0700
changeset 4674 566293fc3ee4
parent 4673 8320b522aed7
child 4675 a960d286db0f
added initial content to Component 4 - Bundles
xml/prov-xml.html
--- a/xml/prov-xml.html	Fri Nov 09 07:41:02 2012 -0800
+++ b/xml/prov-xml.html	Fri Nov 09 09:38:23 2012 -0700
@@ -1448,6 +1448,111 @@
 <h3>Component 4: Bundles</h3>
 <p>The fourth component is concerned with bundles, a mechanism to support provenance of provenance.</p>
 
+<section id="term-Bundle">
+<h4>Bundle</h4>
+<div class="glossary-ref" data-ref="glossary-bundle"></div>
+<pre class="schema-type">
+&lt;xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Bundle"&gt;
+  &lt;xs:sequence&gt;
+    &lt;xs:group ref="prov:documentElements"/&gt;
+  &lt;/xs:sequence&gt;
+  &lt;xs:attribute ref="prov:id"/&gt;
+&lt;/xs:complexType&gt;
+</pre>
+<pre class="schema-usage">
+&lt;xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="document" type="prov:Document" /&gt;
+&lt;xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Document"&gt;
+  &lt;xs:sequence&gt;
+    &lt;xs:choice maxOccurs="unbounded"&gt;
+      &lt;xs:group ref="prov:documentElements"/&gt;
+      &lt;xs:element name="bundle" type="prov:Bundle"/&gt;
+    &lt;/xs:choice&gt;
+  &lt;/xs:sequence&gt;
+&lt;/xs:complexType&gt;
+</pre>
+<pre class="example">
+&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:ex="http://example.com/ns/ex#"
+    xmlns:bob="http://example.com/ns/bob#"
+    xmlns:alice="http://example.com/ns/alice#"
+    xmlns:agg="http://example.com/ns/agg#"&gt;
+
+  &lt;prov:entity prov:id="ex:report1"&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;report&lt;/prov:type&gt;
+    &lt;ex:version&gt;1&lt;/ex:version&gt;
+  &lt;/prov:entity&gt;
+  
+  &lt;prov:entity prov:id="ex:report2"&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;report&lt;/prov:type&gt;
+    &lt;ex:version&gt;2&lt;/ex:version&gt;
+  &lt;/prov:entity&gt;
+
+  &lt;prov:bundle prov:id="bob:bundle1"&gt;
+    &lt;prov:entity prov:id="ex:report1"&gt;
+      &lt;prov:type xsi:type="xsd:QName"&gt;report&lt;/prov:type&gt;
+      &lt;ex:version&gt;1&lt;/ex:version&gt;
+    &lt;/prov:entity&gt;
+    
+    &lt;prov:wasGeneratedBy&gt;
+      &lt;prov:entity prov:ref="ex:report1"/&gt;
+      &lt;prov:time&gt;2012-05-24T10:00:01&lt;/prov:time&gt;
+    &lt;/prov:wasGeneratedBy&gt;
+  &lt;/prov:bundle&gt;
+  
+  &lt;prov:bundle prov:id="alice:bundle2"&gt;
+    &lt;prov:entity prov:id="ex:report1"/&gt;
+    
+    &lt;prov:entity prov:id="ex:report2"&gt;
+      &lt;prov:type xsi:type="xsd:QName"&gt;report&lt;/prov:type&gt;
+      &lt;ex:version>2&lt;/ex:version&gt;
+    &lt;/prov:entity&gt;
+    
+    &lt;prov:wasGeneratedBy&gt;
+      &lt;prov:entity prov:ref="ex:report2"/&gt;
+      &lt;prov:time&gt;2012-05-25T11:00:01&lt;/prov:time&gt;
+    &lt;/prov:wasGeneratedBy&gt;
+    
+    &lt;prov:wasDerivedFrom&gt;
+      &lt;prov:generatedEntity prov:ref="ex:report2"/&gt;
+      &lt;prov:usedEntity prov:ref="ex:report1"/&gt;
+    &lt;/prov:wasDerivedFrom&gt;
+  &lt;/prov:bundle&gt;
+  
+  &lt;prov:entity prov:id="bob:bundle1"&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;prov:Bundle&lt;/prov:type&gt;
+  &lt;/prov:entity&gt;
+  
+  &lt;prov:wasGeneratedBy&gt;
+    &lt;prov:entity prov:ref="bob:bundle1"/&gt;
+    &lt;prov:time&gt;2012-05-24T10:30:00&lt;/prov:time&gt;
+  &lt;/prov:wasGeneratedBy&gt;
+
+  &lt;prov:wasAttributedTo&gt;
+    &lt;prov:entity prov:ref="bob:bundle1"/&gt;
+    &lt;prov:agent prov:ref="ex:Bob"/&gt;
+  &lt;/prov:wasAttributedTo&gt;
+  
+  &lt;prov:entity prov:id="alice:bundle2"&gt;
+    &lt;prov:type xsi:type="xsd:QName"&gt;prov:Bundle&lt;/prov:type&gt;
+  &lt;/prov:entity&gt;
+  
+  &lt;prov:wasGeneratedBy&gt;
+    &lt;prov:entity prov:ref="alice:bundle2"/&gt;
+    &lt;prov:time&gt;2012-05-25T11:15:00&lt;/prov:time&gt;
+  &lt;/prov:wasGeneratedBy&gt;
+    
+  &lt;prov:wasAttributedTo&gt;
+    &lt;prov:entity prov:ref="alice:bundle2"/&gt;
+    &lt;prov:agent prov:ref="ex:Alice"/&gt;
+  &lt;/prov:wasAttributedTo&gt;
+  
+&lt;/prov:document&gt;
+</pre>
+</section>
+
 </section> <!-- end component4 -->
 
 <section id="component5">