bundle ex provo
authorTim L <lebot@rpi.edu>
Mon, 18 Jun 2012 12:03:29 -0700
changeset 3400 66f3690eee07
parent 3399 1c02dd730a0e
child 3401 99b21bdf9256
bundle ex provo
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Bundle.ttl
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Bundle.ttl	Mon Jun 18 11:44:11 2012 -0700
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Bundle.ttl	Mon Jun 18 12:03:29 2012 -0700
@@ -1,19 +1,61 @@
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
-@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
-@prefix owl:  <http://www.w3.org/2002/07/owl#> .
-@prefix prov: <http://www.w3.org/ns/prov#> .
-@prefix :     <http://example.com/> .
+@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
+@prefix owl:   <http://www.w3.org/2002/07/owl#> .
+@prefix prov:  <http://www.w3.org/ns/prov#> .
+@prefix alice: <http://example.com/alice#> .
+@prefix bob:   <http://example.com/bob#> .
+@prefix my:    <http://example.com/my#> .
+@prefix :      <http://example.com/> .
 
-# An account can be described in many ways. A possibility is a named graph:
-:acc23_04_2012_dereck {
+# Let us consider two entities :report1 and :report2.
 
-   :acc23_04_2012_dereck a prov:Bundle .
+:report1
+   a my:Report, prov:Entity;
+   my:version "1";
+   prov:generatedAtTime "2012-05-24T10:00:01"^^xsd:dateTime;
+.
 
-   :entity1 a prov:Entity .
-   :agent1  a prov:Agent .
+:report2
+   a my:Report, prov:Entity;
+   my:version "2";
+   prov:generatedAtTime "2012-05-25T11:00:01"^^xsd:dateTime;
+   prov:wasDerivedFrom :report1;
+.
 
-   #Other provenance statements.
+# Let us assume that Bob observed the creation of :report1. A first bundle can be expressed.
+ 
+bob:bundle1 {
+   :report1
+      a my:Report, prov:Entity;
+      my:version "1";
+      prov:generatedAtTime "2012-05-24T10:00:01"^^xsd:dateTime;
+   .
 }
 
-# Another possibility is by pointing to the container of the provenance triples:
-<http://www.example.com/provTriples.txt> a prov:Bundle .
+# In contrast, Alice observed the creation of :report2 and its derivation from :report1. A separate bundle can also be expressed.
+ 
+alice:bundle2 {
+   :report1 a prov:Entity .
+   :report2
+      a my:Report, prov:Entity;
+      my:version "2";
+      prov:generatedAtTime "2012-05-25T11:00:01"^^xsd:dateTime;
+      prov:wasDerivedFrom :report1;
+   .
+}
+
+# The first bundle contains the descriptions corresponding to Bob observing the creation of :report1. Its provenance can be described as follows.
+ 
+bob:bundle1
+   a prov:Bundle;
+   prov:generatedAtTime "2012-05-24T10:30:00"^^xsd:dateTime;
+   prov:wasAttributedTo :Bob;
+.
+
+# In contrast, the second bundle is attributed to Alice who observed the derivation of :report2 from :report1.
+ 
+alice:bundle2
+   a prov:Bundle;
+   prov:generatedAtTime "2012-05-25T11:15:00"^^xsd:dateTime;
+   prov:wasAttributedTo :Alice;
+.