You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by bu...@apache.org on 2015/03/11 17:03:55 UTC

svn commit: r943355 - in /websites/staging/taverna/trunk: cgi-bin/ content/ content/documentation/scufl2/taverna_bundle.html

Author: buildbot
Date: Wed Mar 11 16:03:55 2015
New Revision: 943355

Log:
Staging update by buildbot for taverna

Added:
    websites/staging/taverna/trunk/content/documentation/scufl2/taverna_bundle.html
Modified:
    websites/staging/taverna/trunk/cgi-bin/   (props changed)
    websites/staging/taverna/trunk/content/   (props changed)

Propchange: websites/staging/taverna/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Mar 11 16:03:55 2015
@@ -1 +1 @@
-1665828
+1665917

Propchange: websites/staging/taverna/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Mar 11 16:03:55 2015
@@ -1 +1 @@
-1665828
+1665917

Added: websites/staging/taverna/trunk/content/documentation/scufl2/taverna_bundle.html
==============================================================================
--- websites/staging/taverna/trunk/content/documentation/scufl2/taverna_bundle.html (added)
+++ websites/staging/taverna/trunk/content/documentation/scufl2/taverna_bundle.html Wed Mar 11 16:03:55 2015
@@ -0,0 +1,546 @@
+<!DOCTYPE html>
+<html lang="en">
+      <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">	  
+    <meta name="viewport" content="width=device-width, initial-scale=1">      
+    <title>Apache Taverna - Taverna Workflow Bundle</title>
+
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <meta property="og:image" content="/img/taverna-logo-145x134.png" />
+
+	<link rel="shortcut icon" href="/favicon.ico">
+	<link rel="icon" type="image/png" sizes="145x134" href="/img/taverna-logo-145x134.png">
+	<link rel="apple-touch-icon" sizes="145x134" href="/img/taverna-logo-145x134.png">
+
+    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
+    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap-theme.min.css">
+    <link rel="stylesheet" href="/css/sticky-footer-navbar.css">
+    <link rel="stylesheet" href="/css/taverna.css">
+    <link rel="stylesheet" href="/css/pygments.css">
+
+    
+
+    
+    <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file to you under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License.  You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the specific language governing permissions and limitations under the License. -->
+
+    <!-- JSON-LD markup for Google Structured Data -->
+	
+	  <!-- generic JSON-LD for this page -->
+	  <script type="application/ld+json">  
+		{
+			"@context" : "http://schema.org",
+			"@type" : ["CreativeWork"],
+			"@id": "",
+			"name" : "Taverna Workflow Bundle",
+			"publisher" : {
+				"@type" : "Organization", 
+				"url" : "http://www.apache.org/",
+				"name" : "The Apache Software Foundation (ASF)" 
+			},
+			"license": { 
+				"@type": "CreativeWork",
+				"@id": "http://www.apache.org/licenses/LICENSE-2.0",
+				"url": "http://www.apache.org/licenses/LICENSE-2.0",
+				"name": "Apache License, Version 2.0"
+			}
+		}		
+</script>
+	  
+  </head>
+
+
+  <body>
+
+              <!-- Static navbar -->
+      <nav class="navbar navbar-default" role="navigation">
+        <div class="container">
+          <div class="navbar-header">
+            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
+              <span class="sr-only">Toggle navigation</span>
+              <span class="icon-bar"></span>
+              <span class="icon-bar"></span>
+              <span class="icon-bar"></span>
+            </button>
+			<a class="navbar-brand" href="/"><img src="/img/taverna-logo-145x134.png" alt="">Apache Taverna</a>
+			  
+          </div>
+          <div id="navbar" class="navbar-collapse collapse">
+            <ul class="nav navbar-nav">              
+                <li class="dropdown">
+					<a href="/introduction" data-toggle="dropdown" role="button" aria-expanded="false">Introduction<span class="caret"></span></a>
+					<ul class="dropdown-menu"  role="menu">
+					   <li><a href="/introduction/taverna-features">Taverna features</a></li>
+					   <li><a href="/introduction/why-use-workflows">Why use workflows?</a></li>
+					   <li><a href="/introduction/what-is-in-silico-experimentation">What is ‘in silico’ experimentation?</a></li>
+					   <li><a href="/introduction/what-is-a-workflow-management-system">What is a Workflow Management System?</a></li>
+					   <li><a href="/introduction/how-can-taverna-help-me">How can Taverna help me?</a></li>
+					   <li><a href="/introduction/services-in-taverna">Services in Taverna</a></li>
+					   <li><a href="/introduction/related-projects">Related projects</a></li>
+					   <li><a href="/introduction/chemistry-web-services">Chemistry-web-services</a></li>
+                       <li><a href="/introduction/taverna-in-use">Taverna in use</a></li>
+				       <li><a href="/introduction/works-with">Works with...</a></li>
+                       <li><a href="/introduction/roadmap">Raod Map</a></li>						
+					</ul>
+				</li>
+                <li class="dropdown">
+					<a href="/documentation" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Documentation<span class="caret"></span></a>
+                  <ul class="dropdown-menu" role="menu">
+					  <li><a href="/documentation/glossary">Glossary</a></li>
+					  <li><a href="/documentation/quick-start-guide">Quick start guide</a></li>
+					  <li><a href="/documentation/scufl2">Taverna's SCUFL2 Language</a></li>
+					  <li><a href="/documentation/components">Components</a></li>
+					  <li><a href="/documentation/interaction">Interactions</a></li>
+					  <li><a href="/documentation/tutorials">Tutorials</a></li>
+					  <li><a href="/documentation/videos">Videos</a></li>
+					  <li><a href="/documentation/example-workflows">Example workflows</a></li>
+					  <li><a href="/documentation/service-sets">Service sets</a></li>
+					  <li><a href="/documentation/provenance">Provenance management</a></li>
+					  <li><a href="/documentation/command-line">command-line</a></li>
+					  <li><a href="/documentation/server">Taverna Server</a></li>
+					  <li><a href="/documentation/taverna-player">Taverna Player</a></li>
+					  <li><a href="/documentation/plugins">Plugins</a></li>
+					  <li><a href="/documentation/training-and-workshops">Training and workshops</a></li>
+					  <li><a href="/documentation/web-service-developers">Web service developers</a></li>
+					  <li><a href="/documentation/#tools">Tools and Services</a></li>
+				  </ul>
+    			</li>
+
+                   <li class="dropdown">
+					<a href="/documentation/scufl2" data-toggle="dropdown" role="button" aria-expanded="false">Scufl2<span class="caret"></span></a>
+					<ul class="dropdown-menu"  role="menu">
+					   <li><a href="/documentation/scufl2/language">Language</a></li>
+					   <li><a href="/documentation/scufl2/bundle">Workflow Bundle</a></li>
+					   <li><a href="/documentation/scufl2/workflow">Workflow</a></li>
+					   <li><a href="/documentation/scufl2/profile">Profile</a></li>
+					   <li><a href="/documentation/scufl2/taverna_bundle">Taverna Bundle</a></li>
+					   <li><a href="/documentation/scufl2/datalink">Datalink</a></li>
+					   <li><a href="/documentation/scufl2/api">API</a></li>
+					   <li><a href="/ns">namespaces</a></li>
+						<li><a href="/documentation/scufl2/uris">URIs</a></li>
+                       <li><a href="/documentation/scufl2/ontology">Ontology</a></li>
+				       <li><a href="/download/scufl2">Download</a></li>
+					</ul>
+				</li>
+
+                    <li class="dropdown">
+					<a href="/download" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Download<span class="caret"></span></a>
+                  <ul class="dropdown-menu" role="menu">
+					  <li><a href="/download">Which Taverna to use</a></li>
+					  <li><a href="/download/workbench">TavernaWorkbench</a></li>
+					  <li><a href="/download/scufl2">Taverna's SCUFL2 Language</a></li>
+					  <li><a href="/download/command-line-tool">Taverna Command Line</a></li>
+					  <li><a href="/download/server">Taverna Server</a></li>
+					  <li><a href="/documentation/plugins">Plugins</a></li>
+					  <li><a href="/download/code">Source Code</a></li>
+					  <li><a href="/download/maven">Maven Repository</a></li>
+					  <li><a href="/download/system-requirements">System Requirements</a></li>
+					  <li><a href="/download/pre-apache">Taverna 2.x (Pre-Apache)</a></li>
+				  </ul>
+				</li>
+                <li class="dropdown">
+					<a href="/community" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Community<span class="caret"></span></a>
+                  <ul class="dropdown-menu" role="menu">
+					  <li><a href="/community#mailinglists">Mailing Lists</a></li>
+					  <li><a href="/community#contribute">Contribute</a></li>
+					  <li><a href="/community#reportbugs">Report a Bug</a></li>
+				  </ul>
+				</li>
+            </ul>
+             
+              <form >
+                      
+                      
+                      <!--<input type="submit" id="submit" value="Search">-->
+                    </form>
+              
+              <form class="navbar-form navbar-right" role="search"
+                  name="search" id="search" action="http://www.google.com/search" method="get">
+                      <input value="taverna.incubator.apache.org" name="sitesearch" type="hidden"/>
+                      <div class="form-group input-group">
+                          <input type="text" name="q" id="query" placeholder="Search" class="form-control">
+						  <span class="input-group-btn">
+                            <button type="submit" class="btn btn-default">Search</button>
+						  </span>
+                      </div>                  
+              </form>
+
+             <ul class="nav navbar-nav navbar-right">                
+            <li class="dropdown">
+                <a href="http://www.apache.org/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">ASF<span class="caret"></span></a>
+                <ul class="dropdown-menu" role="menu">
+                    <li><a href="http://www.apache.org/">Apache Software Foundation</a></li>
+                    <li><a href="http://www.apache.org/foundation/how-it-works.html">How it works</a></li>
+                    <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+                    <li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+                    <li><a href="http://incubator.apache.org/projects/taverna.html">Taverna Incubation Status</a></li>
+                </ul>
+              </li>
+            </ul>
+          </div><!--/.nav-collapse -->
+        </div><!--/.container-->
+      </nav>
+
+
+    <div id="page" class="container">
+       <h1>Taverna Workflow Bundle</h1>
+      <div id="content"><p>The primary <a href="/documentation/scufl2">SCUFL2</a> file format is the Taverna <em>workflow bundle</em>.</p>
+<table><tbody>
+<tr>
+<th>Media type</th>
+<td><code>application/vnd.taverna.scufl2.workflow-bundle</code></td>
+</tr>
+<tr>
+<th>File extension</th>
+<td><code>.wfbundle</code></td>
+</tr>
+<tr>
+<th>File type</th>
+<td>Zip archive</td>
+</tr>
+</tbody></table>
+
+</div>
+
+<p>This file is a structured ZIP archive, based on the 
+   <a href="http://livedocs.adobe.com/navigator/9/Navigator_SDK9_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Navigator_SDK9_HTMLHelp&amp;amp;file=Appx_Packaging.6.31.html">Adobe UCF</a>
+   format.
+This is similar to the structured ZIPs used by the OpenOffice format <a href="http://en.wikipedia.org/wiki/OpenDocument_technical_specification#Format_internals">ODF</a>.</p>
+<p>For a file to be a Taverna Workflow Bundle if it <strong>must</strong>:</p>
+<ul>
+<li>Is a valid <a href="http://livedocs.adobe.com/navigator/9/Navigator_SDK9_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Navigator_SDK9_HTMLHelp&amp;amp;file=Appx_Packaging.6.1.html#1522568">ZIP container</a></li>
+<li>Contains the file <code>mimetype</code> with the ASCII content <code>application/vnd.taverna.scufl2.workflow-bundle</code> (without LF/CR)</li>
+<li>Contains the file <code>workflowBundle.rdf</code> as a valid <a href="http://www.w3.org/TR/rdf-syntax-grammar/">RDF/XML</a> 
+     document describing a <a href="/documentation/scufl2/bundle">workflow bundle</a></li>
+</ul>
+<p>To be fully compliant, the bundle <strong>should</strong> also:</p>
+<ul>
+<li>Contain a valid <code>META-INF/manifest.xml</code> file listing all files in the archive</li>
+<li>Contain a valid <code>META-INF/container.xml</code> file including an entry for <code>workflowBundle.rdf</code></li>
+</ul>
+<p>The <a href="/documentation/scufl2/bundle">workflow bundle document</a> is the top level entry point ("root file") 
+   for the archive (think: <code>index.html</code>), and describes:</p>
+<ul>
+<li>Which workflows are included in the bundle under <code>workflow/</code></li>
+<li>Which profiles are included in the bundle under <code>profile/</code></li>
+<li>Which of the workflows is the suggested <em>main workflow</em></li>
+<li>Which of the profiles is the suggested <em>main profile</em></li>
+<li>What is the global workflow bundle identifier.</li>
+</ul>
+<p>A Workflow Bundle document can also be included as part of any other bundle, 
+   archive or resource according to these specifications. 
+In that case the resource name might or might not be <code>workflowBundle.rdf</code>, 
+   this depends on the specification of that other format.</p>
+<h3 id="archive-directory-structure">Archive directory structure</h3>
+<table><tbody>
+<tr>
+<th>Path</th>
+<th>Type</th>
+<th>Description</th>
+</tr>
+<tr>
+<td>mimetype</td>
+<td>Text</td>
+<td>Mime type of bundle, ie. <code>application/vnd.taverna.scufl2.workflow-bundle</code></td>
+</tr>
+<tr>
+<td>META-INF/</td>
+<td>Folder</td>
+<td>Reserved folder for manifest </td>
+</tr>
+<tr>
+<td> META-INF/manifest.xml </td>
+<td> XML </td>
+<td> ODF 1.3-like manifest, listing each file, mime-type and file size </td>
+</tr>
+<tr>
+<td> META-INF/container.xml </td>
+<td> XML </td>
+<td>Adobe UCF/OEBPS list of <a href="http://livedocs.adobe.com/navigator/9/Navigator_SDK9_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Navigator_SDK9_HTMLHelp&amp;file=Appx_Packaging.6.31.html" class="external-link" rel="nofollow">root files</a> (ie. <code>workflowBundle.rdf</code>))</td>
+</tr>
+<tr>
+<td> workflowBundle.rdf </td>
+<td> RDF/XML </td>
+<td> <a href="/wiki/display/developer/Scufl2-WorkflowBundle">Workflow Bundle Document</a> </td>
+</tr>
+<tr>
+<td>vworkflow/ </td>
+<td> Folder </td>
+<td> Workflow definitions </td>
+</tr>
+<tr>
+<td> workflow/HelloWorld.rdf </td>
+<td> RDF/XML</td>
+<td> <a href="/documentation/scufl2/workflow">Workflow definition</a> for &quot;HelloWorld&quot; </p></td>
+</tr>
+<tr>
+<td>workflow/otherWorkflow.rdf</td>
+<td> RDF/XML</td>
+<td> Workflow definition for &quot;otherWorkflow&quot; </td>
+</tr>
+<tr>
+<td> profile/ </td>
+<td> Folder </td>
+<td> Execution <a href="/wiki/display/developer/Scufl2-Profile">Profile </a> definitions </td>
+</tr>
+<tr>
+<td> profile/someProfile.rdf </td>
+<td> RDF/XML</td>
+<td> Profile definition &quot;someProfile&quot; </td>
+</tr>
+<tr>
+<td> profile/other.rdf </td>
+<td> RDF/XML</td>
+<td> Profile definition &quot;other&quot;</td>
+</tr>
+</tbody></table>
+
+</div>
+
+<p>The archive must be a ZIP file, and should have the file extension <code>.wfbundle</code>. 
+Some situations might require treating the workflow bundle as an unpacked set of folders. 
+In this case the top folder should still have the file extension <code>.wfbundle</code>.</p>
+<p>According to the Adobe UCF specifications, the <code>mimetype</code> file must be the <em>first file</em> in the folder, 
+   and must be stored without compression, encryption or permission attributes, 
+   to support detection by mimemagic and similar.</p>
+<p>The file <code>META-INF/manifest.xml</code> - if present - must list every non-<code>META-INF</code> file and folder in the archive, 
+   including the root folder. 
+It should provide the mime-type - if known - for individual files. 
+The root folder should have the same mime type as in the <code>mimetype</code> file - <code>application/vnd.taverna.scufl2.workflow-bundle</code>.</p>
+<p>The file <code>META-INF/container.xml</code> - if present - should point to the 'root' workflow bundle document. 
+One and only one entry which must be of the mime type <code>application/rdf+xml</code>, 
+   and this entry must be called <code>workflowBundle.rdf</code>. 
+Alternative representation of the workflow bundle root document can be included in other formats, 
+   there's no similar restriction on their filenames, although it is recommended they match the RDF/XML filename, 
+   for instance <code>workflowBundle.html</code>, <code>workflowBundle.json</code>, etc.</p>
+<p>The folder <code>workflow</code> contain each of the workflow definitions as 
+   <a href="/documentation/scufl2/workflow">Workflow Documents</a>. 
+One of these is typically the <em>main workflow</em> while the others are <em>nested workflows</em>, 
+   but there is no requirement that the workflows included are to be included as a nested workflow or a main workflow. 
+Such 'dangling workflows' can be considered to be only <em>declared workflows</em> - 
+   they might be there for historical reasons or because the workflow bundle is at an early stage of development 
+   when there is no main workflow yet.</p>
+<p>The execution details of workflows (such as activity choice, configuration) are described in the <code>profile</code> folder, 
+   one <a href="/documentation/scufl2/profile">Profile Document</a> per possible execution binding. 
+(For instance, one profile for the graphical Workbench, one for the Taverna Server and one for the Taverna Portal.). 
+One profile document can include execution details for several workflows, 
+   but there could also be workflows which don't have any execution details in any profile - 
+   these can be considered <em>abstract workflows</em>.</p>
+<h2 id="workflowbundlerdf">workflowBundle.rdf</h2>
+<p>The workflow bundle document <code>workflowBundle.rdf</code> should list each of these <em>workflows</em> and <em>profiles</em>, 
+   and <strong>should</strong> suggest the <em>main workflow</em> and <em>main profile</em>. </p>
+<h2 id="mimetype">mimetype</h2>
+<p>This file is required, as a guide for mime magic and similar tools that guess the type of the archive. 
+Therefore it must be added as the first file to the archive, uncompressed, 
+   so that its content is available in cleartext in the first bytes of the ZIP archive.</p>
+<p>The file must be in ASCII and <strong>not</strong> contain any line feeds. 
+If the archive is a Taverna Workflow Bundle, the mime type should be <code>application/vnd.taverna.scufl2.workflow-bundle</code>. 
+If <code>META-INF/manifest.xml</code> is present, this mime type must match the mime type of <code>"/"</code> in the manifest.</p>
+<p>To add the file <code>mimetype</code> as the first uncompressed file, followed by the rest of the bundle (excluding the mimetype file), 
+   try using InfoZip:</p>
+<div class="codehilite"><pre>$ <span class="n">zip</span> <span class="o">-</span>0 <span class="o">-</span><span class="n">X</span> <span class="p">.</span><span class="o">./</span><span class="n">example</span><span class="p">.</span><span class="n">wfbundle</span> <span class="n">mimetype</span>
+  <span class="n">adding</span><span class="p">:</span> <span class="n">mimetype</span> <span class="p">(</span><span class="n">stored</span> 0<span class="c">%)</span>
+
+$ <span class="n">zip</span> <span class="o">-</span><span class="n">X</span> <span class="o">-</span><span class="n">r</span> <span class="p">.</span><span class="o">./</span><span class="n">example</span><span class="p">.</span><span class="n">wfbundle</span> <span class="p">.</span> <span class="o">-</span><span class="n">x</span> <span class="n">mimetype</span>
+  <span class="n">adding</span><span class="p">:</span> <span class="n">workflowBundle</span><span class="p">.</span><span class="n">rdf</span> <span class="p">(</span><span class="n">deflated</span> 74<span class="c">%)</span>
+  <span class="n">adding</span><span class="p">:</span> <span class="n">workflow</span><span class="o">/</span> <span class="p">(</span><span class="n">stored</span> 0<span class="c">%)</span>
+  <span class="n">adding</span><span class="p">:</span> <span class="n">workflow</span><span class="o">/</span><span class="n">HelloWorld</span><span class="p">.</span><span class="n">rdf</span> <span class="p">(</span><span class="n">stored</span> 0<span class="c">%)</span>
+<span class="p">..</span>
+  <span class="n">adding</span><span class="p">:</span> <span class="n">META</span><span class="o">-</span><span class="n">INF</span><span class="o">/</span> <span class="p">(</span><span class="n">stored</span> 0<span class="c">%)</span>
+  <span class="n">adding</span><span class="p">:</span> <span class="n">META</span><span class="o">-</span><span class="n">INF</span><span class="o">/</span><span class="n">manifest</span><span class="p">.</span><span class="n">xml</span> <span class="p">(</span><span class="n">deflated</span> 78<span class="c">%)</span>
+  <span class="n">adding</span><span class="p">:</span> <span class="n">META</span><span class="o">-</span><span class="n">INF</span><span class="o">/</span><span class="n">container</span><span class="p">.</span><span class="n">xml</span> <span class="p">(</span><span class="n">deflated</span> 50<span class="c">%)</span>
+</pre></div>
+
+
+<p>To verify:</p>
+<div class="codehilite"><pre>$ <span class="n">unzip</span> <span class="o">-</span><span class="n">lv</span> <span class="p">.</span><span class="o">./</span><span class="n">example</span><span class="p">.</span><span class="n">wfbundle</span>
+<span class="n">Archive</span><span class="p">:</span>  <span class="p">.</span><span class="o">./</span><span class="n">example</span><span class="p">.</span><span class="n">wfbundle</span>
+ <span class="n">Length</span>   <span class="n">Method</span>    <span class="n">Size</span>  <span class="n">Cmpr</span>    <span class="n">Date</span>    <span class="n">Time</span>   <span class="n">CRC</span><span class="o">-</span>32   <span class="n">Name</span>
+<span class="o">--------</span>  <span class="o">------</span>  <span class="o">-------</span> <span class="o">----</span> <span class="o">----------</span> <span class="o">-----</span> <span class="o">--------</span>  <span class="o">----</span>
+      35  <span class="n">Stored</span>       35   0<span class="c">% 2010-10-11 16:44 8373c7d8  mimetype</span>
+    3047  <span class="n">Defl</span><span class="p">:</span><span class="n">N</span>      786  74<span class="c">% 2010-10-13 09:40 743ecfe4  workflowBundle.rdf</span>
+       0  <span class="n">Stored</span>        0   0<span class="c">% 2010-10-06 14:57 00000000  workflow/</span>
+<span class="p">...</span>
+
+$ <span class="n">python</span> <span class="o">-</span><span class="n">c</span> <span class="o">&amp;</span><span class="n">quot</span><span class="p">;</span><span class="n">print</span> <span class="n">open</span> <span class="p">(</span><span class="o">&amp;</span>#39<span class="p">;.</span><span class="o">./</span><span class="n">example</span><span class="p">.</span><span class="n">wfbundle</span><span class="o">&amp;</span>#39<span class="p">;).</span><span class="n">read</span><span class="p">(</span>128<span class="p">)[</span>38<span class="p">:</span>84<span class="p">]</span><span class="o">&amp;</span><span class="n">quot</span><span class="p">;</span>
+<span class="n">print</span><span class="p">(</span>&quot;<span class="n">code</span> <span class="n">sample</span>&quot;<span class="p">);</span>`<span class="n">application</span><span class="o">/</span><span class="n">vnd</span><span class="p">.</span><span class="n">taverna</span><span class="p">.</span><span class="n">scufl2</span><span class="p">.</span><span class="n">workflow</span><span class="o">-</span><span class="n">bundle</span>
+</pre></div>
+
+
+<h2 id="meta-infmanifestxml">META-INF/manifest.xml</h2>
+<p>This file, if exists, should follow the OpenDocument container format, 
+   and list every file in the bundle (except for the META-INF files). 
+The main functionality provided by the manifest is to give the mime-type of additional resources. 
+As a minimum the mime-type should distinguish between <code>text/plain</code> (UTF-8 text) and <code>application/octet-stream</code> (binary). 
+If a mime-magick like tool has guessed a more detailed mime type, it can also be provided here.</p>
+<p>Additionally the manifest may specify the file sizes, 
+cccin general this can be useful when inspecting a larger workflow bundle remotely (exposed as a RESTful folder or similar).</p>
+<p>The folder <code>/</code> represents the bundle itself, and must have the same mime type as in the file <code>mimetype</code>, 
+   ie. <code>application/vnd.taverna.scufl2.workflow-bundle</code>. 
+A different mime type might be used if the primary purpose of the archive is different from being a workflow bundle, 
+   for instance being a Taverna Data Bundle.</p>
+<p>The <code>workflowBundle.rdf</code> file must be listed in the manifest, and it must be listed with the <code>application/rdf+xml</code> mime type. 
+Any alternative representations must also be listed, and their mime type must match those in <code>META-INF/container.xml</code> 
+   (see below).</p>
+<p>The other folders are not required to have a mimetype.</p>
+<p>If there is no manifest in the workflow bundle, 
+   all data value files should be treated to be binary <code>application/octet-stream</code>, 
+   unless they have one of these file extensions:</p></p>
+<ul>
+<li><code>*.txt</code> is <code>text/plain</code> in UTF-8 character set</li>
+<li><code>*.rdf</code> is <code>application/rdf+xml</code></li>
+</ul>
+<p>Example manifest:</p>
+<div class="codehilite"><pre><span class="cp">&lt;?</span><span class="nx">xml</span> <span class="nx">version</span><span class="o">=</span><span class="s2">&quot;1.0&quot;</span> <span class="nx">encoding</span><span class="o">=</span><span class="s2">&quot;UTF-8&quot;</span><span class="cp">?&gt;</span>
+<span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">manifest</span> <span class="nx">xmlns</span><span class="o">:</span><span class="nx">manifest</span><span class="o">=</span><span class="s2">&quot;urn:oasis:names:tc:opendocument:xmlns:manifest:1.0&quot;</span><span class="o">&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;application/vnd.taverna.scufl2.workflow-bundle&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;/&quot;</span><span class="o">/&gt;</span>
+
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;application/rdf+xml&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;workflowBundle.rdf&quot;</span><span class="o">/&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;application/rdf+xml&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;workflow/HelloWorld.rdf&quot;</span><span class="o">/&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;application/rdf+xml&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;annotation/workflow/HelloWorld.rdf&quot;</span><span class="o">/&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;application/rdf+xml&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;annotation/workflowBundle.rdf&quot;</span><span class="o">/&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;application/rdf+xml&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;profile/tavernaWorkbench.rdf&quot;</span><span class="o">/&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;application/rdf+xml&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;profile/tavernaServer.rdf&quot;</span><span class="o">/&gt;</span>
+
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;text/turtle&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;workflowBundle.ttl&quot;</span><span class="o">/&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;text/turtle&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;workflow/HelloWorld.ttl&quot;</span><span class="o">/&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;text/turtle&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;annotation/workflow/HelloWorld.ttl&quot;</span><span class="o">/&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;text/turtle&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;annotation/workflowBundle.ttl&quot;</span><span class="o">/&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;text/turtle&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;profile/tavernaWorkbench.ttl&quot;</span><span class="o">/&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;text/turtle&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;profile/tavernaServer.ttl&quot;</span><span class="o">/&gt;</span>
+
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;image/svg+xml&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;Thumbnails/thumbnail.svg&quot;</span><span class="o">/&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;image/png&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;Thumbnails/thumbnail.png&quot;</span><span class="o">/&gt;</span>
+
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;image/svg+xml&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;diagram/workflow/HelloWorld.svg&quot;</span><span class="o">/&gt;</span>
+ <span class="o">&lt;</span><span class="nx">manifest</span><span class="o">:</span><span class="nx">file</span><span class="o">-</span><span class="nx">entry</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">media</span><span class="o">-</span><span class="nx">type</span><span class="o">=</span><span class="s2">&quot;image/png&quot;</span> <span class="nx">manifest</span><span class="o">:</span><span class="nx">full</span><span class="o">-</span><span class="nx">path</span><span class="o">=</span><span class="s2">&quot;diagram/workflow/HelloWorld.png&quot;</span><span class="o">/&gt;</span>
+<span class="o">&lt;</span><span class="err">/manifest:manifest&gt;</span>
+</pre></div>
+
+
+<h2 id="meta-infcontainerxml">META-INF/container.xml</h2>
+<p>This file, if present, should point to the root workflow bundle document, 
+   which in an <code>application/vnd.taverna.scufl2.workflow-bundle</code> must be  <code>workflowBundle.rdf</code>. 
+Alternative representation of the same file are permitted, 
+   but SCUFL2 compliant tools are only required to understand the  <code>application/rdf+xml</code> representations described here.</p>
+<p>The Adobe UCF specification defines the 
+   <a href="http://livedocs.adobe.com/navigator/9/Navigator_SDK9_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Navigator_SDK9_HTMLHelp&amp;amp;file=Appx_Packaging.6.31.html">format of this container file</a>.</p>
+<p><img alt="" src="//img/warning.png" /> <em>XML namespace in container.xml</em></p>
+<blockquote>
+<div class="codehilite"><pre><span class="n">Adobe</span> <span class="n">UCF</span> <span class="n">have</span> <span class="n">used</span> <span class="n">the</span> <span class="n">XML</span> <span class="n">namespace</span> `<span class="n">urn</span><span class="p">:</span><span class="n">oasis</span><span class="p">:</span><span class="n">names</span><span class="p">:</span><span class="n">tc</span><span class="p">:</span><span class="n">opendocument</span><span class="p">:</span><span class="n">xmlns</span><span class="p">:</span><span class="n">container</span>` <span class="n">although</span> <span class="n">this</span> <span class="n">format</span>
+</pre></div>
+
+
+<p>is not defined by OASIS or the Open Document specification. </p>
+<div class="codehilite"><pre><span class="n">SCUFL2</span> <span class="n">compliant</span> <span class="n">tools</span> <span class="n">should</span> <span class="n">therefore</span> <span class="n">parse</span> `<span class="n">container</span><span class="p">.</span><span class="n">xml</span>` <span class="n">ignoring</span> <span class="n">any</span> <span class="n">default</span> <span class="n">namespaces</span><span class="p">,</span> <span class="n">and</span> <span class="n">write</span> <span class="n">using</span> <span class="n">the</span> <span class="n">default</span> <span class="n">name</span>
+</pre></div>
+
+
+<p>space and <code>&lt;container
+xmlns="urn:oasis:names:tc:opendocument:xmlns:container"</code>  as the root
+element.</p>
+</blockquote>
+<p>If the archive is of the mime type <code>application/vnd.taverna.scufl2.workflow-bundle</code> 
+   and contains other representations of the workflow bundle (for instance: JSON, 
+Turtle, t2flow) then the bundle <strong>must</strong> have a container file and list these representations in addition to 
+   <code>workflowBundle.rdf</code>. 
+Derived representations such as SVG diagrams and HTML reports should generally <strong>not</strong> be listed as 'root files' 
+   unless they can be considered to 'fully represent the workflow bundle', for instance by using RDFa.</p>
+<p>A SCUFL2 compliant parser can assume that an archive which is <em>not</em> of the mime type 
+   <code>application/vnd.taverna.scufl2.workflow-bundle</code>,
+    but does contain a <code>META-INF/container.xml</code>-listed root file named <code>workflowBundle.rdf</code>, 
+    that file <strong>can</strong> be read as an RDF/XML representation of a workflow bundle document, 
+    even if it is not declared as having the <code>application/rdf+xml</code> mime type. 
+This enables any future extensions superseeding this <code>application/vnd.taverna.scufl2.workflow-bundle</code> format.</p>
+<p>All rootfiles must be equivalent and describe the same workflow structure, 
+   although additional formats can include more or less information than the required format. 
+There should be only one rootfile per media-type, and there must be a rootfile for the media type <code>application/rdf+xml</code>.</p>
+<p>Example:</p>
+<div class="codehilite"><pre><span class="cp">&lt;?xml version=&quot;1.0&quot;?&gt;</span>
+<span class="nt">&lt;container</span> <span class="na">version=</span><span class="s">&quot;1.0&quot;</span>
+    <span class="na">xmlns=</span><span class="s">&quot;urn:oasis:names:tc:opendocument:xmlns:container&quot;</span><span class="nt">&gt;</span>
+    <span class="nt">&lt;rootfiles&gt;</span>
+        <span class="nt">&lt;rootfile</span> <span class="na">full-path=</span><span class="s">&quot;workflowBundle.ttl&quot;</span>
+         <span class="na">media-type=</span><span class="s">&quot;text/turtle&quot;</span> <span class="nt">/&gt;</span> 
+        <span class="nt">&lt;rootfile</span> <span class="na">full-path=</span><span class="s">&quot;workflowBundle.rdf&quot;</span>
+         <span class="na">media-type=</span><span class="s">&quot;application/rdf+xml&quot;</span> <span class="nt">/&gt;</span> 
+    <span class="nt">&lt;/rootfiles&gt;</span>
+    <span class="nt">&lt;relationships&gt;</span>
+        <span class="nt">&lt;relationship</span> <span class="na">type=</span><span class="s">&quot;metadata&quot;</span> <span class="na">target=</span><span class="s">&quot;/annotation/</span><span class="p">$</span><span class="nv">dir</span><span class="s">/</span><span class="p">$</span><span class="nv">filename</span><span class="s">.</span><span class="p">$</span><span class="nv">ext</span><span class="s">&quot;</span> <span class="nt">/&gt;</span>
+    <span class="nt">&lt;/relationships&gt;</span>
+<span class="nt">&lt;/container&gt;</span>
+</pre></div>
+
+
+<h2 id="unknown-files-and-file-types">Unknown files and file types</h2>
+<p>Any other files in <code>workflow</code> and <code>profile</code> <strong>should</strong> be ignored by SCUFL2 compliant parsers, 
+   regardless of if they have the <code>application/rdf+xml</code> mime type or not. 
+When a SCUFL2 compliant tool has <em>modified</em> an existing Workflow Bundle, 
+   it <strong>should</strong> remove such unknown files from <code>workflow</code> and <code>profile</code> when saving, 
+   unless it has the capabilities to also update these. 
+These files would typically be representations in other formats which would be out of date after the editing. 
+On the other hand, if the tool has not structurally modified a workflow or profile, 
+   the tool <strong>should not</strong> remove unknown files from <code>workflow</code> and <code>profile</code>.</p>
+<p>On removal of files, the tool should also remove them from <code>META-INF/manifest.xml</code> and if necessary from 
+   <code>META-INF/container.xml</code>.</p>
+<h2 id="additional-resources">Additional resources</h2>
+<p>The workflow bundle format is an open-ended specification, so the archive can include additional resources not described here.</p>
+<p>For instance the bundle can include:</p>
+<ul>
+<li>Thumbnail of bundle (mini-diagram) (Recommendation: <code>META-INF/Thumbnails/thumbnail.png</code> and <code>Thumbnails/thumbnail.svg</code>)</li>
+<li>Ontologies referenced from RDF/XML files, in particular from configurations 
+      (Recommendation: <code>ontology/taverna2.2/beanshell.rdf</code>)</li>
+<li>Diagrams of workflows (Recommendation: <code>diagram/workflow/HelloWorld.svg</code> and <code>.png</code>)</li>
+<li>Alternative representations (RDF, JSON)  (Recommendation: Same naming conventions with different extensions)</li>
+<li>Annotations (Recommendation: under <code>annotations/</code> in RDF/XML format) - 
+     one file per annotation source, like `myExperiment.rdf)</li>
+<li>Resources/binaries/data needed by workflow (Recommendation: under <code>resources/</code></li>
+<li>Example input and output data (Recommendation: as in data bundle)</li>
+<li>Provenance and data of one or more workflow runs (Recommendation: under <code>run/</code></li>
+</ul>
+<p>A workflow bundle can also play 'double roles' by being other bundles, like a data bundle. 
+It is the <code>mimetype</code> and <em>root file</em> that determines what is the "main function" of the bundle, 
+   suggesting which tool should primarily open the bundle.
+One can for instance imagine an UCF archive which primarily is an Adobe PDFXML file for a published paper 
+   (see: <a href="http://labs.adobe.com/technologies/mars/">Mars project</a>) and should be opened in Adobe Acrobat Reader. 
+However, it can also contain <code>workflowBundle.rdf</code>, <code>workflow/importantResearch.rdf</code>, 
+   and could therefore also be opened using SCUFL2 tools. </p></div>
+
+    </div>
+
+        <footer class="footer">
+      <div class="container">
+           <p id="copyright" class="text-muted">
+              Copyright &#169; 2014-2015 The Apache Software Foundation, Licensed under the 
+              <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+              Apache and the Apache feather logo are trademarks of The Apache Software Foundation.
+          </p>
+      </div>
+    </footer>
+      
+
+
+    <script src="/lib/jquery/jquery-1.11.1.min.js"></script>
+<script src="/lib/bootstrap/js/bootstrap.min.js"></script>
+
+<script>
+	jQuery(function($) {
+        if($(window).width()>769){
+            $('.navbar .dropdown').hover(function() {
+                $(this).find('.dropdown-menu').first().stop(true, true).delay(250).slideDown();
+
+            }, function() {
+                $(this).find('.dropdown-menu').first().stop(true, true).delay(100).slideUp();
+
+            });
+
+            $('.navbar .dropdown > a').click(function(){
+                location.href = this.href;
+            });
+
+        }
+    });
+</script>
+
+  </body>
+</html>
\ No newline at end of file