finished adding PROV-XML examples for primer, examples have NOT been validated.
authorStephan Zednik <zednis@rpi.edu>
Thu, 01 Nov 2012 15:11:01 -0600
changeset 4615 7bb5e92584b9
parent 4614 b57f223502ff
child 4616 a34c6e8e05a8
finished adding PROV-XML examples for primer, examples have NOT been validated.
primer/primer-prov-xml-examples.xml
--- a/primer/primer-prov-xml-examples.xml	Thu Nov 01 13:34:10 2012 -0400
+++ b/primer/primer-prov-xml-examples.xml	Thu Nov 01 15:11:01 2012 -0600
@@ -3,6 +3,7 @@
 <prov:document
     xmlns:prov="http://www.w3.org/ns/prov#"
 	xmlns:dct="http://purl.org/dc/terms/"
+	xmlns:foaf="http://xmlns.com/foaf/0.1/"
 	xmlns:ex="http://example.com/ns/ex#">
 
   <!-- Entities -->
@@ -11,7 +12,7 @@
 	<dct:title>Crime rises in cities</dct:title>
   </prov:entity>
 
-  <prov:entity prov:id="ex:dataset1"/>
+  <prov:entity prov:id="ex:dataSet1"/>
 
   <prov:entity prov:id="ex:regionList"/>
 
@@ -56,14 +57,161 @@
 
   <!-- Agents and Responsibility -->
 
+  <prov:agent prov:id="ex:derek">
+    <prov:type>prov:Person</prov:type>
+    <foaf:givenName>Derek</foaf:givenName>
+    <foaf:mbox>mailto:derek@example.org</foaf:mbox>
+  </prov:agent>
+
+  <prov:agent prov:id="ex:chartgen">
+    <prov:type>prov:Organization</prov:type>
+    <foaf:name>Chart Generators Inc</foaf:name>
+  </prov:agent>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="ex:compose"/>
+    <prov:agent prof:ref="ex:derek"/>
+  </prov:wasAssociatedWith>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="ex:illustrate"/>
+    <prov:agent prof:ref="ex:derek"/>
+  </prov:wasAssociatedWith>
+
+  <prov:wasAttributedTo>
+    <prov:entity prov:ref="ex:chart1"/>
+    <prov:agent prof:ref="ex:derek"/>
+  </prov:wasAttributedTo>
+
+  <prov:actedOnBehalfOf>
+    <prov:delegate prov:ref="ex:derek"/>
+    <prov:responsible prov:ref="ex:chartgen"/>
+    <prov:activity prov:ref="ex:compose"/>
+  </prov:actedOnBehalfOf>
+
   <!-- Roles -->
 
+  <prov:used>
+    <prov:activity prov:ref="ex:compose"/>
+    <prov:entity prov:ref="ex:dataSet1"/>
+    <prov:role>ex:dataToCompose</prov:role>
+  </prov:used>
+
+  <prov:used>
+    <prov:activity prov:ref="ex:compose"/>
+    <prov:entity prov:ref="ex:regionList"/>
+    <prov:role>ex:regionsToAggregateBy</prov:role>
+  </prov:used>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="ex:compose"/>
+    <prov:agent prof:ref="ex:derek"/>
+    <prov:role>ex:analyst</prov:role>
+  </prov:wasAssociatedWith>
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="ex:composition"/>
+    <prov:activity prov:ref="ex:compose"/>
+    <prov:role>ex:composedData</prov:role>
+  </prov:wasGeneratedBy>
+
   <!-- Revision and Derivation -->
 
+  <entity prov:id="dataSet2"/>
+  <entity prov:id="chart2"/>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="ex:dataSet2"/>
+    <prov:usedEntity prov:ref="ex:dataSet1"/>
+    <prov:type>prov:Revision</prov:type>
+  </prov:wasDerivedFrom>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="ex:chart2"/>
+    <prov:usedEntity prov:ref="ex:dataSet2"/>
+  </prov:wasDerivedFrom>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="ex:chart2"/>
+    <prov:usedEntity prov:ref="ex:chart1"/>
+    <prov:type>prov:Revision</prov:type>
+  </prov:wasDerivedFrom>
+
   <!-- Plans -->
 
+  <prov:activity prov:id="ex:correct"/>
+
+  <prov:agent prov:id="ex:edith"/>
+    <prov:type>prov:Person</prov:type>
+  </prov:agent>
+
+  <prov:wasAssociatedWith>
+    <prov:activity prov:ref="ex:correct"/>
+    <prov:agent prof:ref="ex:edith"/>
+    <prov:plan>ex:instructions</prov:plan>
+  </prov:wasAssociatedWith>
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="ex:dataSet2"/>
+    <prov:activity prov:ref="ex:correct"/>
+  </prov:wasGeneratedBy>
+
   <!-- Time -->
 
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="ex:chart1"/>
+    <prov:time>2012-03-02T10:30:00</prov:time>
+  </prov:wasGeneratedBy>
+
+  <prov:wasGeneratedBy>
+    <prov:entity prov:ref="ex:chart2"/>
+    <prov:time>2012-04-01T15:21:00</prov:time>
+  </prov:wasGeneratedBy>
+
+  <prov:wasStartedBy>
+    <prov:activity prov:ref="ex:correct"/>
+    <prov:time>2012-03-31T09:21:00</prov:time>
+  </prov:wasStartedBy>
+
+  <prov:wasEndedBy>
+    <prov:activity prov:ref="ex:correct"/>
+    <prov:time>2012-04-01T15:21:00</prov:time>
+  <prov:wasEndedBy>
+	
+  <!-- alternatively, you can put the activity start and end time in the activity declaration -->
+
+  <prov:activity prov:id="ex:correct"/>
+    <prov:startTime>2012-03-31T09:21:00</prov:startTime>
+    <prov:endTime>2012-04-01T15:21:00</prov:endTime>
+  </prov:activity>
+
   <!-- Alternate Entities and Specialization -->
 
+  <prov:entity prov:id="ex:blogEntry"/>
+
+  <prov:wasDerivedFrom>
+    <prov:generatedEntity prov:ref="ex:blogEntry"/>
+    <prov:usedEntity prov:ref="ex:article"/>
+    <prov:type>prov:Quotation</prov:type>
+  </prov:wasDerivedFrom>
+
+  <prov:entity prov:id="ex:articleV1"/>
+
+  <prov:specializationOf>
+    <prov:specificEntity prov:ref="ex:articleV1"/>
+    <prov:generalEntity prov:ref="ex:article"/>
+  </prov:specializationOf>
+
+  <prov:entity prov:id="ex:articleV2"/>
+
+  <prov:specializationOf>
+    <prov:specificEntity prov:ref="ex:articleV2"/>
+    <prov:generalEntity prov:ref="ex:article"/>
+  </prov:specializationOf>
+
+  <prov:alternateOf>
+    <prov:alternate1 prov:ref="ex:articleV1"/>
+    <prov:alternate2 prov:ref="ex:articleV2"/>
+  </prov:alternateOf>
+
 </prov:document>
\ No newline at end of file