Role, Usage and hadRole examples
authordgarijo
Mon, 23 Apr 2012 22:47:03 +0200
changeset 2480 ecf639798682
parent 2470 660834e8fa6f
child 2481 8aa9f333638a
Role, Usage and hadRole examples
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Role.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Usage.ttl
examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadRole.ttl
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Role.ttl	Mon Apr 23 21:11:43 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Role.ttl	Mon Apr 23 22:47:03 2012 +0200
@@ -4,4 +4,28 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-# TODO
+:divideActivity 
+      a prov:Activity;   
+      prov:qualifiedUsage [
+         a prov:Usage;
+         prov:entity    :variableA;
+         prov:hadRole   :dividend;          
+      ];
+	  
+      prov:qualifiedUsage [
+         a prov:Usage;
+         prov:entity    :variableB;
+         prov:hadRole   :divisor;          
+      ];
+	  
+	  prov:generated :res112234.
+   .
+:variableA a prov:Entity.
+:variableB a prov:Entity.
+:dividend a prov:Role.
+:divisor a prov:Role.
+:res112234 
+	a prov:Entity;
+	prov:wasGeneratedBy :divideActivity.
+.
+	
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Usage.ttl	Mon Apr 23 21:11:43 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Usage.ttl	Mon Apr 23 22:47:03 2012 +0200
@@ -4,4 +4,18 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-# TODO
+:sortActivity 
+      a prov:Activity;
+	  prov:atTime     "2011-07-16T01:52:02Z"^^xsd:dateTime; 
+      prov:qualifiedUsage [
+         a prov:Usage;
+         prov:entity    :datasetA;
+         prov:hadRole   :inputToBeSorted;          
+      ];
+	  prov:generated :datasetB;
+   .
+:datasetA a prov:Entity.
+:datasetB a prov:Entity.
+:inputToBeSorted a prov:Role.  
+ 
+  
--- a/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadRole.ttl	Mon Apr 23 21:11:43 2012 +0200
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadRole.ttl	Mon Apr 23 22:47:03 2012 +0200
@@ -4,4 +4,25 @@
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix :     <http://example.com/> .
 
-# TODO
+:divideActivity 
+      a prov:Activity;   
+      prov:qualifiedUsage [
+         a prov:Usage;
+         prov:entity    :variableA;
+         prov:hadRole   :dividend;          
+      ];
+	  
+      prov:qualifiedUsage [
+         a prov:Usage;
+         prov:entity    :variableB;
+         prov:hadRole   :divisor;          
+      ];
+   .
+   
+:variableA a prov:Entity.
+
+:variableB a prov:Entity.
+
+:dividend a prov:Role.
+
+:divisor a prov:Role.