fuel example moved to wasStartedByActivity
authorStian Soiland-Reyes <soiland-reyes@cs.manchester.ac.uk>
Thu, 03 May 2012 10:48:18 +0100
changeset 2685 486f9d9246dc
parent 2684 11ea3599fa93
child 2686 40c2d2f1bf74
fuel example moved to wasStartedByActivity
new wasInformedBy example: voicemail interception
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Communication.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_StartByActivity.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedCommunication.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedStartByActivity.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasInformedBy.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasStartedByActivity.ttl
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Communication.ttl	Thu May 03 09:36:08 2012 +0100
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Communication.ttl	Thu May 03 10:48:18 2012 +0100
@@ -4,12 +4,17 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-:filling-petrol
-   a prov:Activity;
-   prov:wasInformedBy :low-fuel-flashing;
-   prov:qualifiedCommunication [
-      a prov:Communication;
-      prov:activity :low-fuel-flashing; 
-      rdfs:comment "Don't like flashing warning lights";
-   ];
-.
+:writing-celebrity-gossip a prov:Activity ;
+    prov:wasInformedBy :voicemail-interception ;
+    prov:qualifiedCommunication :informing-the-journalist .
+
+:informing-the-journalist a prov:Communication;
+    prov:atLocation :unknown-location ;
+    prov:activity :voicemail-interception ;
+    rdfs:comment """The journalist was informed by the private 
+investigator, but we don't know how or what he was told."""@en .
+
+:voicemail-interception a prov:Activity .
+
+:unknown-location a prov:Location ;
+    rdfs:label "Location unknown"@en .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_StartByActivity.ttl	Thu May 03 09:36:08 2012 +0100
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_StartByActivity.ttl	Thu May 03 10:48:18 2012 +0100
@@ -4,16 +4,20 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-:workflow-execution a prov:Activity .
+:filling-fuel
+    a prov:Activity ;
+    prov:startedAtTime            "2012-04-24T18:31:00Z"^^xsd:dateTime ;
+    prov:endedAtTime              "2012-04-24T18:33:10Z"^^xsd:dateTime ;
+    prov:wasStartedByActivity     :observing-low-fuel ;
+    prov:qualifiedStartByActivity :need-to-fill-fuel .
 
-:subworkflow-execution 
-    a prov:Activity;
-    prov:startedAtTime "2011-07-16T01:52:15Z"^^xsd:dateTime;
-    prov:wasStartedByActivity :workflow-execution;
-    prov:qualifiedStartByActivity [
-        a prov:StartByActivity;
-        prov:activity :workflow-execution;
-        :triggeredAt "2011-07-16T01:52:02Z"^^xsd:dateTime;
-        :activationParameter "java -jar -n 5"^^xsd:string;
-    ];
-.
+:need-to-fill-fuel
+    a prov:StartByActivity ;
+    prov:activity :observing-low-fuel ;
+    rdfs:comment  """The driver noticed the low fuel light immediately, 
+but spent half an hour looking for a cheap petrol station."""@en  .
+
+:observing-low-fuel
+    a prov:Activity ;
+    prov:startedAtTime "2012-04-24T17:45:00Z"^^xsd:dateTime .
+
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedCommunication.ttl	Thu May 03 09:36:08 2012 +0100
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedCommunication.ttl	Thu May 03 10:48:18 2012 +0100
@@ -4,20 +4,19 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-:filling-petrol
-   a prov:Activity;
-   prov:startedAtTime "2012-04-24T18:21:00Z"^^xsd:dateTime;
-   prov:endedAtTime   "2012-04-24T18:23:10Z"^^xsd:dateTime;
-   prov:wasInformedBy :low-fuel-flashing;
-   prov:qualifiedCommunication [
+:writing-celebrity-gossip a prov:Activity ;
+    prov:wasAttributedTo :journalist ;
+    prov:wasInformedBy :voicemail-interception ;
+    prov:qualifiedCommunication [
       a prov:Communication;
-      prov:activity :low-fuel-flashing; 
-      rdfs:comment "Don't like flashing warning lights";
-   ];
-.
+      prov:activity :voicemail-interception ;
+      rdfs:comment """The journalist was informed by the private 
+investigator, but we don't know how or what he was told."""@en
+   ] .
 
-:low-fuel-flashing
-   a prov:Activity;
-   prov:startedAtTime "2012-04-24T17:45:00Z"^^xsd:dateTime;
-   prov:endedAtTime   "2012-04-24T18:21:40Z"^^xsd:dateTime;
-.
+:voicemail-interception a prov:Activity ;
+    prov:wasAttributedTo :private-investigator .
+
+:private-investigator a prov:Agent .
+
+:journalist a prov:Agent .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedStartByActivity.ttl	Thu May 03 09:36:08 2012 +0100
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedStartByActivity.ttl	Thu May 03 10:48:18 2012 +0100
@@ -4,19 +4,22 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-:workflow-execution 
-   a prov:Activity;
-   prov:startedAtTime "2011-07-16T01:30:00Z"^^xsd:dateTime;
-.
+:filling-fuel
+    a prov:Activity;
+    prov:startedAtTime        "2012-04-24T18:31:00Z"^^xsd:dateTime ;
+    prov:endedAtTime          "2012-04-24T18:33:10Z"^^xsd:dateTime ;
+    prov:wasAttributedTo      :driver ;
+    prov:wasStartedByActivity :observing-low-fuel ;
+    prov:qualifiedStartByActivity [
+        a prov:StartByActivity ;
+        prov:activity :observing-low-fuel ;
+        rdfs:comment """The driver noticed the low fuel light immediately, 
+but spent half an hour looking for a cheap petrol station."""@en 
+    ] .
 
-:subworkflow-execution 
-   a prov:Activity;
-   prov:startedAtTime "2011-07-16T01:52:15Z"^^xsd:dateTime; # TODO: simplify time
-   prov:wasStartedByActivity :workflow-execution;
-   prov:qualifiedStartByActivity [
-      a prov:StartByActivity;
-      prov:activity :workflow-execution;
-      prov:atTime          "2011-07-16T01:52:02Z"^^xsd:dateTime; # TODO: why different than above?
-      :activationParameter "java -jar -n 5"^^xsd:string;
-   ];
-.
+:observing-low-fuel
+    a prov:Activity;
+    prov:wasAttributedTo      :driver ;
+    prov:startedAtTime        "2012-04-24T17:45:00Z"^^xsd:dateTime .
+
+:driver a prov:Person, prov:Agent .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasInformedBy.ttl	Thu May 03 09:36:08 2012 +0100
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasInformedBy.ttl	Thu May 03 10:48:18 2012 +0100
@@ -4,18 +4,8 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-:filling-petrol
-   a prov:Activity;
-   prov:startedAtTime "2012-04-24T18:21:00Z"^^xsd:dateTime;
-   prov:endedAtTime   "2012-04-24T18:23:10Z"^^xsd:dateTime;
-   prov:wasInformedBy :low-fuel-flashing;
-.
+:writing-celebrity-gossip a prov:Activity ;
+    prov:wasInformedBy :voicemail-interception .
 
-:low-fuel-flashing
-    a prov:Activity;
-    prov:wasInformedBy :fuel-tank-measurement;
-    prov:startedAtTime "2012-04-24T17:45:00Z"^^xsd:dateTime;
-    prov:endedAtTime   "2012-04-24T18:21:40Z"^^xsd:dateTime;
-.
+:voicemail-interception a prov:Activity .
 
-:fuel-tank-measurement a prov:Activity .
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasStartedByActivity.ttl	Thu May 03 09:36:08 2012 +0100
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasStartedByActivity.ttl	Thu May 03 10:48:18 2012 +0100
@@ -4,7 +4,17 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-:workflow-execution a prov:Activity .
-:subWorkflow-execution 
+:filling-fuel
     a prov:Activity;
-    prov:wasStartedByActivity :workflow-execution .
+    prov:startedAtTime        "2012-04-24T18:21:00Z"^^xsd:dateTime ;
+    prov:endedAtTime          "2012-04-24T18:23:10Z"^^xsd:dateTime ;
+    prov:wasAttributedTo      :driver ;
+    prov:wasStartedByActivity :observing-low-fuel .
+
+:observing-low-fuel
+    a prov:Activity;
+    prov:wasAttributedTo      :driver ;
+    prov:startedAtTime        "2012-04-24T17:45:00Z"^^xsd:dateTime .
+
+:driver a prov:Person, prov:Agent .
+