ISSUE-109 Updated example to use prov:hadRecipe and prov:Recipe
authorStian Soiland-Reyes <soiland-reyes@cs.manchester.ac.uk>
Tue, 04 Oct 2011 11:30:22 +0100
changeset 456 efa140fd121d
parent 455 af15d4c27b6d
child 457 691330b00075
ISSUE-109 Updated example to use prov:hadRecipe and prov:Recipe
ontology/examples/ontology-extensions/workflow/prov2.ttl
ontology/examples/ontology-extensions/workflow/workflow-inferred.rdf
ontology/examples/ontology-extensions/workflow/workflowOntology.ttl
--- a/ontology/examples/ontology-extensions/workflow/prov2.ttl	Tue Oct 04 11:23:54 2011 +0100
+++ b/ontology/examples/ontology-extensions/workflow/prov2.ttl	Tue Oct 04 11:30:22 2011 +0100
@@ -25,30 +25,9 @@
         owl:imports <http://dvcs.w3.org/hg/prov/raw-file/default/ontology/ProvenanceOntology.owl> ;
          owl:versionInfo "0.3"^^xsd:string .
 
-    
-prov2:EntityInRole a owl:Class, 
-    [ a owl:Restriction ;
-      owl:onProperty prov:wasAssumedBy ;
-      owl:cardinality 1 
-    ],
-    [ a owl:Restriction ;
-      owl:onProperty prov:wasAssumedIn ;
-      owl:cardinality 1 
-    ] ;
-     :comment "An entity assuming a role"@en ;
-     :subClassOf prov:Entity .
-
-prov2:Recipe a owl:Class .
 
 prov2:Role a owl:Class . # NOT an entity
 
-prov2:recipe a owl:ObjectProperty ;
-    :comment """A recipe or plan which somewhat describes what this
-    process execution was intened to execute according. For instance a
-    shell script, workflow definition, cooking recipe or list of
-    instructions."""@en ;
-    :domain prov:ProcessExecution ;
-    :range prov2:Recipe .
     
 
 # or startedAfter ?
--- a/ontology/examples/ontology-extensions/workflow/workflow-inferred.rdf	Tue Oct 04 11:23:54 2011 +0100
+++ b/ontology/examples/ontology-extensions/workflow/workflow-inferred.rdf	Tue Oct 04 11:30:22 2011 +0100
@@ -57,7 +57,9 @@
         <wf:ranInWorkflowEngine rdf:resource="#workflowEngine"/>
         <wasControlledBy rdf:resource="#aUser"/>
         <wf:wasLaunchedBy rdf:resource="#aUser"/>
-        <recipe rdf:resource="http://www.example.com/workflow1#workflow"/>
+        <hadRecipe>
+            <Recipe rdf:about="http://www.example.com/workflow1#workflow"/>
+        </hadRecipe>
         <wf:wasDefinedBy rdf:resource="http://www.example.com/workflow1#workflow"/>
     </ProcessExecution>
 
@@ -65,7 +67,9 @@
         <rdf:type rdf:resource="http://www.example.com/scientific-workflow#Process"/>
         <wasControlledBy rdf:resource="#workflowRun"/>
         <wf:wasSubProcessExecutionOf rdf:resource="#workflowRun"/>
-        <recipe rdf:resource="http://www.example.com/workflow1#String_Constant"/>
+        <hadRecipe>
+            <Recipe rdf:about="http://www.example.com/workflow1#String_Constant"/>
+        </hadRecipe>
         <wf:wasDefinedBy rdf:resource="http://www.example.com/workflow1#String_Constant"/>
     </ProcessExecution>
 
@@ -113,7 +117,9 @@
         </used>
         <wasControlledBy rdf:resource="#workflowRun"/>
         <wf:wasSubProcessExecutionOf rdf:resource="#workflowRun"/>
-        <recipe rdf:resource="http://www.example.com/workflow1#cat"/>
+        <hadRecipe>
+            <Recipe rdf:about="http://www.example.com/workflow1#cat"/>
+        </hadRecipe>
         <wf:wasDefinedBy rdf:resource="http://www.example.com/workflow1#cat"/>
     </ProcessExecution>
 
@@ -132,7 +138,9 @@
         <used rdf:resource="#combined"/>
         <wasControlledBy rdf:resource="#workflowRun"/>
         <wf:wasSubProcessExecutionOf rdf:resource="#workflowRun"/>
-        <recipe rdf:resource="http://www.example.com/workflow1#shasum"/>
+        <hadRecipe>
+            <Recipe rdf:about="http://www.example.com/workflow1#shasum"/>
+        </hadRecipe>
         <wf:wasDefinedBy rdf:resource="http://www.example.com/workflow1#shasum"/>
     </ProcessExecution>
 
--- a/ontology/examples/ontology-extensions/workflow/workflowOntology.ttl	Tue Oct 04 11:23:54 2011 +0100
+++ b/ontology/examples/ontology-extensions/workflow/workflowOntology.ttl	Tue Oct 04 11:30:22 2011 +0100
@@ -20,10 +20,10 @@
     rdfs:subClassOf prov:Agent, prov:ProcessExecution .
 
 wf:ProcessDefinition a owl:Class ;
-    rdfs:subClassOf prov2:Recipe .
+    rdfs:subClassOf prov:Recipe .
 
 wf:wasDefinedBy a owl:ObjectProperty, owl:FunctionalProperty ;
-    rdfs:subPropertyOf prov2:recipe ;
+    rdfs:subPropertyOf prov:hadRecipe ;
     rdfs:range wf:Process ;
     rdfs:domain wf:ProcessDefinition .