added class_EntityInvolvement and property_hadActivity.
authorStephan Zednik <zednis@rpi.edu>
Wed, 02 May 2012 11:58:20 -0600
changeset 2681 a7618ebdd926
parent 2680 e4b025709028
child 2682 08a9d5d69512
added class_EntityInvolvement and property_hadActivity.
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_EntityInvolvement.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadActivity.ttl
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_EntityInvolvement.ttl	Wed May 02 16:02:49 2012 +0100
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_EntityInvolvement.ttl	Wed May 02 11:58:20 2012 -0600
@@ -4,4 +4,20 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-# TODO
+# EntityInvolvement is an 'abstract' superclass of
+# Involvements that reference an entity (e.g. Usage, Derivation, Source)
+
+# It is not recommended that the type EntityInvolvement be directly declared,
+# use a specialization of EntityInvolvement instead.
+
+# by definition, all instances of prov:Usage are also instances of prov:EntityInvolvement
+
+:sortActivity
+	a prov:Activity;
+	prov:qualifiedUsage [
+		a prov:Usage, prov:EntityInvolvement;
+		prov:entity    :datasetA;
+		prov:hadRole   :inputToBeSorted;
+	];
+	prov:generated :datasetB .
+
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadActivity.ttl	Wed May 02 16:02:49 2012 +0100
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadActivity.ttl	Wed May 02 11:58:20 2012 -0600
@@ -4,4 +4,15 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-# TODO
+# The activity that which used, generated, invalidated or was responsible for the entity.
+# In this qualified Derivation prov:hadActivity references the activity that generated the bar chart.
+
+:bar_chart
+	a prov:Entity ;
+	prov:wasDerivedFrom :aggregatedByRegions ;
+	prov:wasGeneratedBy :make_bar_chart ;
+	prov:qualifiedDerivation [
+		a prov:Derivation ;
+		prov:hadActivity :make_bar_chart ; # references same activity as prov:wasGeneratedBy
+		prov:entity :aggregatedByRegions ;
+	] ;
\ No newline at end of file