Review of the examples with hadActivity, fixing some statements that were wrong and adding extra explanations of the examples.
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Delegation.ttl Thu Nov 22 15:23:49 2012 +0000
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Delegation.ttl Thu Nov 22 19:58:25 2012 +0100
@@ -4,7 +4,10 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix ex: <http://example.com/vocab#> .
@prefix : <http://example.com/> .
-
+
+### In this example, Frank (an insurance agent) acts on behalf of his company for performing
+### a policy sale
+
:policySale
a prov:Activity;
prov:wasAssociatedWith :insuranceAgent_Frank;
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Derivation.ttl Thu Nov 22 15:23:49 2012 +0000
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Derivation.ttl Thu Nov 22 19:58:25 2012 +0100
@@ -32,11 +32,14 @@
];
.
-### The process during which the chart was created, from loading the data to the software, to process the data and plot the chart
+### The process during which the chart was created, from loading the data to the software, to process the data and plot the chart.
+### Additional metadata was recorded, like when it started (before the usage), ended (after the generation of the chart) and who was associated with it.
:create_the_chart
a prov:Activity;
- prov:wasAttributedTo :derek;
+ prov:wasAssociatedWith :derek;
+ prov:startedAtTime "2012-04-03T00:00:00Z"^^xsd:dateTime;
+ prov:endedAtTime "2012-04-03T00:00:10Z"^^xsd:dateTime;
.
### The final chart was plotted
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_End.ttl Thu Nov 22 15:23:49 2012 +0000
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_End.ttl Thu Nov 22 19:58:25 2012 +0100
@@ -4,7 +4,8 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix : <http://example.com/> .
-# End can be used to qualify wasEndedBy with time and location information
+### End can be used to qualify wasEndedBy with time and location information.
+### In this example, an experiment is stopped because an intermediate inconsitent resul.
:experiment
a prov:Activity;
@@ -20,7 +21,7 @@
:inconsistentResult a prov:Entity .
-### An implicit process of analysing the intermediate result to confirm its expected consistency
+### An implicit process analyzes the intermediate result to confirm its expected consistency
analyse_intermediate_result
a prov:Activity ;
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Start.ttl Thu Nov 22 15:23:49 2012 +0000
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Start.ttl Thu Nov 22 19:58:25 2012 +0100
@@ -4,7 +4,8 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix : <http://example.com/> .
-# Start can be used to qualify wasStartedBy with time and location information.
+### Start can be used to qualify wasStartedBy with time and location information.
+### In this example, a consistency checking activity is started by the update of a data record.
:consistency_checking
a prov:Activity;
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedDelegation.ttl Thu Nov 22 15:23:49 2012 +0000
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedDelegation.ttl Thu Nov 22 19:58:25 2012 +0100
@@ -6,7 +6,7 @@
@prefix : <http://example.com/> .
:traffic-stop
- a prov:Activity;
+ a prov:Activity;
prov:wasAssociatedWith :chauffeur,
:traffic-officer-34;
prov:qualifiedAssociation [
@@ -14,14 +14,14 @@
prov:agent :chauffeur;
# The chauffeur was the one violating traffic rules.
- ex:hadRole :violator;
+ prov:hadRole :violator;
];
prov:qualifiedAssociation [
a prov:Association;
prov:agent :traffic-officer-34;
# The officer was the one enforcing the traffic rules.
- ex:hadRole :enforcer;
+ prov:hadRole :enforcer;
];
.
@@ -33,12 +33,21 @@
prov:agent :celebrity-in-car;
# The celebrity employed the chauffeur during the enforcement.
- ex:hadRole :employer;
- prov:hadActivity :driving-during-the-year ;
+ prov:hadRole :employer;
+ prov:hadActivity :driving-during-the-year ;
];
.
-:driving-during-the-year a prov:Activity .
+#The chaffeur was employed for a whole year as a driver
+:driving-during-the-year a prov:Activity ;
+ prov:wasAssociatedWith :chaffeur;
+ prov:qualifiedAssociation [
+ a prov:Association;
+ prov:hadRole :driver;
+ ];
+ prov:startedAtTime "2011-07-16T01:52:02Z"^^xsd:dateTime;
+ prov:endedAtTime "2012-07-16T01:52:02Z"^^xsd:dateTime;;
+.
:traffic_officer_34
a prov:Person;
@@ -48,7 +57,7 @@
prov:agent :city-of-Paris;
# The city of Paris employed the officer during the enforcement.
- ex:hadRole :employer;
+ prov:hadRole :employer;
prov:hadActivity :control-city-traffic ;
];
.
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedDerivation.ttl Thu Nov 22 15:23:49 2012 +0000
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedDerivation.ttl Thu Nov 22 19:58:25 2012 +0100
@@ -5,6 +5,7 @@
@prefix : <http://example.com/> .
:bar_chart
+ a prov:Entity;
prov:wasDerivedFrom :aggregatedByRegions;
prov:qualifiedDerivation [
a prov:Derivation;
@@ -20,6 +21,7 @@
:chart_creation
a prov:Activity ;
+ prov:wasAssociatedWith :derek;
prov:startedAtTime "2011-07-16T01:52:02Z"^^xsd:dateTime;
prov:endedAtTime "2011-07-16T03:00:02Z"^^xsd:dateTime;
.
@@ -28,6 +30,6 @@
:chat_plotting
a prov:Generation ;
- prov:endedAtTime "2011-07-16T03:00:02Z"^^xsd:dateTime;
+ prov:atTime "2011-07-16T03:00:02Z"^^xsd:dateTime;
.
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedEnd.ttl Thu Nov 22 15:23:49 2012 +0000
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedEnd.ttl Thu Nov 22 19:58:25 2012 +0100
@@ -4,7 +4,7 @@
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix : <http://example.com/> .
-# End can be used to qualify wasEndedBy with time and location information
+### End can be used to qualify wasEndedBy with time and location information
:experiment
a prov:Activity;