workflow inferred - ref PROV-ISSUE-107
authorStian Soiland-Reyes <soiland-reyes@cs.manchester.ac.uk>
Fri, 30 Sep 2011 11:27:03 +0100
changeset 417 13bfa22d7e41
parent 416 2b9b20c1fec3
child 418 5e23de1b8ec7
workflow inferred - ref PROV-ISSUE-107
ontology/examples/ontology-extensions/workflow/workflow-inferred.rdf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ontology/examples/ontology-extensions/workflow/workflow-inferred.rdf	Fri Sep 30 11:27:03 2011 +0100
@@ -0,0 +1,179 @@
+<rdf:RDF xmlns="http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/ProvenanceOntology.owl#"
+    xmlns:cnt="http://www.w3.org/2011/content#"
+    xmlns:foaf="http://xmlns.com/foaf/0.1/"
+    xmlns:prov="http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/ProvenanceOntology.owl#"
+    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+    xmlns:wf="http://www.example.com/scientific-workflow#"
+    xmlns:base="http://www.example.com/run1#" >
+    <!--
+
+    Example of workflow.rdf with inferenced classes/properties from PROV
+    inluded specifically. Notice the verbosity in particular on
+    properties, like  <wasControlledBy> and <wf:ranInWorkflowEngine>
+
+    -->
+
+    <Agent rdf:about="#aUser">
+        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
+        <foaf:name>Stian Soiland-Reyes</foaf:name>
+    </Agent>
+
+    <Entity rdf:about="#workflowEngine">
+        <rdf:type rdf:resource="http://www.example.com/scientific-workflow#WorkflowEngine"/>
+    </Entity>
+
+    <Entity rdf:about="#inputFile">
+        <rdf:type rdf:resource="http://www.example.com/scientific-workflow#FileValue"/>
+        <wf:file>/tmp/myinput.txt</wf:file>
+        <wf:value>
+            <cnt:ContentAsText>
+                <cnt:characterEncoding>UTF-8</cnt:characterEncoding>
+                <cnt:chars>Steve</cnt:chars>
+            </cnt:ContentAsText>
+        </wf:value>
+    </Entity>
+
+    <Entity rdf:about="#input">
+        <rdf:type rdf:resource="http://www.example.com/scientific-workflow#Value"/>
+        <prov:wasDerivedFrom rdf:resource="#inputFile"/>
+        <wf:wasReadFrom rdf:resource="#inputFile"/>
+        <wf:value>
+            <cnt:ContentAsText>
+                <cnt:characterEncoding>UTF-8</cnt:characterEncoding>
+                <cnt:chars>Steve</cnt:chars>
+            </cnt:ContentAsText>
+        </wf:value>
+    </Entity>
+
+    <ProcessExecution rdf:about="#workflowRun">
+        <rdf:type rdf:resource="http://www.example.com/scientific-workflow#Process"/>
+        <used>
+            <wf:ValueAtPort>
+                <wf:sawValue rdf:resource="#input"/>
+                <wf:seenAtPort rdf:resource="http://www.example.com/workflow1#inName"/>
+            </wf:ValueAtPort>
+        </used>
+        <wasControlledBy rdf:resource="#workflowEngine"/>
+        <wf:ranInWorkflowEngine rdf:resource="#workflowEngine"/>
+        <wasControlledBy rdf:resource="#aUser"/>
+        <wf:wasLaunchedBy rdf:resource="#aUser"/>
+        <recipe rdf:resource="http://www.example.com/workflow1#workflow"/>
+        <wf:wasDefinedBy rdf:resource="http://www.example.com/workflow1#workflow"/>
+    </ProcessExecution>
+
+    <ProcessExecution rdf:about="#constant">
+        <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"/>
+        <wf:wasDefinedBy rdf:resource="http://www.example.com/workflow1#String_Constant"/>
+    </ProcessExecution>
+
+    <Entity rdf:about="#hello">
+        <rdf:type rdf:resource="http://www.example.com/scientific-workflow#Value"/>
+        <wasGeneratedBy rdf:resource="#constant"/>
+        <wf:value>
+            <cnt:ContentAsText>
+                <cnt:chars>Hello, </cnt:chars>
+            </cnt:ContentAsText>
+        </wf:value>
+    </Entity>
+
+    <Role rdf:about="#helloValue">
+        <rdf:type rdf:resource="http://www.example.com/scientific-workflow#Value"/>
+        <wasGeneratedBy rdf:resource="#constant"/>
+        <wf:value>
+            <cnt:ContentAsText>
+                <cnt:chars>Hello, </cnt:chars>
+            </cnt:ContentAsText>
+        </wf:value>
+        <assumedBy rdf:resource="#hello"/>
+        <wf:sawEntity rdf:resource="#hello"/>
+    </Role>
+
+    <ProcessExecution rdf:about="#combine">
+        <rdf:type rdf:resource="http://www.example.com/scientific-workflow#Process"/>
+        <used>
+          <Role>
+            <rdf:type rdf:resource="http://www.example.com/scientific-workflow#EntityAtPort"/>
+            <assumedBy rdf:resource="#hello"/>
+            <wf:sawValue rdf:resource="#hello"/>
+            <assumedRole rdf:resource="http://www.example.com/workflow1#catIn1"/>
+            <wf:seenAtPort rdf:resource="http://www.example.com/workflow1#catIn1"/>
+          </Role>
+        </used>
+        <used>
+          <Role>
+            <rdf:type rdf:resource="http://www.example.com/scientific-workflow#EntityAtPort"/>
+            <assumedBy rdf:resource="#input"/>
+            <wf:sawValue rdf:resource="#input"/>
+            <assumedRole rdf:resource="http://www.example.com/workflow1#catIn2"/>
+            <wf:seenAtPort rdf:resource="http://www.example.com/workflow1#catIn2"/>
+          </Role>
+        </used>
+        <wasControlledBy rdf:resource="#workflowRun"/>
+        <wf:wasSubProcessExecutionOf rdf:resource="#workflowRun"/>
+        <recipe rdf:resource="http://www.example.com/workflow1#cat"/>
+        <wf:wasDefinedBy rdf:resource="http://www.example.com/workflow1#cat"/>
+    </ProcessExecution>
+
+    <Entity rdf:about="#combined">
+        <rdf:type rdf:resource="http://www.example.com/scientific-workflow#Value"/>
+        <wasGeneratedBy rdf:resource="#combine"/>
+        <wf:value>
+            <cnt:ContentAsText>
+                <cnt:chars>Hello, Steve</cnt:chars>
+            </cnt:ContentAsText>
+        </wf:value>
+    </Entity>
+
+    <ProcessExecution rdf:about="#shasum">
+        <rdf:type rdf:resource="http://www.example.com/scientific-workflow#Process"/>
+        <used rdf:resource="#combined"/>
+        <wasControlledBy rdf:resource="#workflowRun"/>
+        <wf:wasSubProcessExecutionOf rdf:resource="#workflowRun"/>
+        <recipe rdf:resource="http://www.example.com/workflow1#shasum"/>
+        <wf:wasDefinedBy rdf:resource="http://www.example.com/workflow1#shasum"/>
+    </ProcessExecution>
+
+    <Entity rdf:about="#sha1">
+        <rdf:type rdf:resource="http://www.example.com/scientific-workflow#Value"/>
+        <wf:value>
+            <cnt:ContentAsText>
+                <cnt:characterEncoding>UTF-8</cnt:characterEncoding>
+                <cnt:chars>a33d1fb1658d4fbf017de59ab67437a3eb5ff50d</cnt:chars>
+            </cnt:ContentAsText>
+        </wf:value>
+    </Entity>
+
+    <Role rdf:about="#sha1OutputFromShasum">
+        <rdf:type rdf:resource="http://www.example.com/scientific-workflow#ValueAtPort"/>
+        <wasGeneratedBy rdf:resource="#shasum"/>
+        <wf:value>
+            <cnt:ContentAsText>
+                <cnt:characterEncoding>UTF-8</cnt:characterEncoding>
+                <cnt:chars>a33d1fb1658d4fbf017de59ab67437a3eb5ff50d</cnt:chars>
+            </cnt:ContentAsText>
+        </wf:value>
+        <assumedBy rdf:resource="#sha1"/>
+        <wf:sawValue rdf:resource="#sha1"/>
+        <assumedRole rdf:resource="http://www.example.com/workflow1#shaOut"/>
+        <wf:wasSeenAt rdf:resource="http://www.example.com/workflow1#shaOut"/>
+    </Role>
+
+    <Role rdf:about="#sha1OutputFromWorkflow">
+        <rdf:type rdf:resource="http://www.example.com/scientific-workflow#ValueAtPort"/>
+        <wasGeneratedBy rdf:resource="#workflowRun"/>
+        <wf:value>
+            <cnt:ContentAsText>
+                <cnt:characterEncoding>UTF-8</cnt:characterEncoding>
+                <cnt:chars>a33d1fb1658d4fbf017de59ab67437a3eb5ff50d</cnt:chars>
+            </cnt:ContentAsText>
+        </wf:value>
+        <assumedBy rdf:resource="#sha1"/>
+        <wf:sawValue rdf:resource="#sha1"/>
+        <assumedRole rdf:resource="http://www.example.com/workflow1#sha1"/>
+        <wf:wasSeenAt rdf:resource="http://www.example.com/workflow1#sha1"/>
+    </Role>
+
+</rdf:RDF>