added examples directory under mention with PROV-XML example files
authorStephan Zednik <zednis@rpi.edu>
Tue, 13 Nov 2012 09:48:17 -0700
changeset 4767 b059da91520e
parent 4766 6844baeef943
child 4770 b228e435a973
added examples directory under mention with PROV-XML example files
mention/examples/Mention_45.provx
mention/examples/Mention_46.provx
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mention/examples/Mention_45.provx	Tue Nov 13 09:48:17 2012 -0700
@@ -0,0 +1,61 @@
+<?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: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: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 xsi:type="xsd:QName">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 xsi:type="xsd:QName">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/mention/examples/Mention_46.provx	Tue Nov 13 09:48:17 2012 -0700
@@ -0,0 +1,83 @@
+<?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: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: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 xsi:type="xsd:QName">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 xsi:type="xsd:QName">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 xsi:type="xsd:QName">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 xsi:type="xsd:QName">viz:Configuration</prov:type>
+      <prov:type xsi:type="xsd:QName">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>