Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Scufl2 has moved to Apache (incubator) 

Information in this section is out of date!

 

The entry point of the Taverna Workflow Bundle.

...

Example META-INF/container.xml:

Code Block
xml

<?xml version="1.0"?>
<container version="1.0"
    xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
    <rootfiles>
        <rootfile full-path="workflowBundle.ttl"
         media-type="text/turtle" />  
        <rootfile full-path="workflowBundle.rdf"
         media-type="application/rdf+xml" />  
    </rootfiles>
</container>

...

The semantics of sameBaseAs is a kind of recursive version of owl:sameAs - so also resources which URI start with the same will be included.

So if:

Code Block
     @prefix : <http://ns.taverna.org.uk/2010/scufl2#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

    <./>     a :WorkflowBundle;
         :name "HelloWorld";
         :sameBaseAs <http://ns.taverna.org.uk/2010/workflowBundle/28f7c554-4f35-401f-b34b-516e9a0ef731/>;
         :mainWorkflow <workflow/HelloWorld/>;
         :workflow <workflow/HelloWorld/>;

    <workflow/HelloWorld/>     a :Workflow;
         rdfs:seeAlso <workflow/HelloWorld.ttl> .

{code]

then also:

...

Example representation in RDF/XML

Code Block
xml

<?xml version="1.0"?>
<rdf:RDF xmlns="http://ns.taverna.org.uk/2010/scufl2#"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://ns.taverna.org.uk/2010/scufl2# http://ns.taverna.org.uk/2010/scufl2/scufl2.xsd http://www.w3.org/1999/02/22-rdf-syntax-ns# http://ns.taverna.org.uk/2010/scufl2/rdf.xsd"
	xsi:type="WorkflowBundleDocument" xml:base="./">
	<WorkflowBundle rdf:about="">
		<name>HelloWorld</name>
		<sameBaseAs
			rdf:resource="http://ns.taverna.org.uk/2010/workflowBundle/28f7c554-4f35-401f-b34b-516e9a0ef731/" />		
		<mainWorkflow rdf:resource="workflow/HelloWorld/" />
		<workflow>
			<Workflow rdf:about="workflow/HelloWorld/">
				<rdfs:seeAlso rdf:resource="workflow/HelloWorld.rdf" />
			</Workflow>
		</workflow>
		<!--
		<workflow>
			<Workflow rdf:about="workflow/SomeNestedWorkflow/">
				<rdfs:seeAlso rdf:resource="workflow/SomeNestedWorkflow.rdf" />
			</Workflow>
		</workflow>
		-->
		<mainProfile rdf:resource="profile/tavernaWorkbench/" />
		<profile>
			<Profile rdf:about="profile/tavernaServer/">
				<rdfs:seeAlso rdf:resource="profile/tavernaServer.rdf" />
			</Profile>
		</profile>
		<profile>
			<Profile rdf:about="profile/tavernaWorkbench/">
				<rdfs:seeAlso rdf:resource="profile/tavernaWorkbench.rdf" />
			</Profile>
		</profile>
		<rdfs:seeAlso rdf:resource="annotation/workflowBundle.rdf" />
	</WorkflowBundle>
</rdf:RDF>

...

If alternate formats other than the required RDF/XML format is included in the bundle, these formats can therefore link to resources in other formats, for instance in an additional workflowBundle.ttl (Turtle format):

Code Block
     @prefix : <http://ns.taverna.org.uk/2010/scufl2#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    
    <./>     a :WorkflowBundle;
         :mainProfile <profile/tavernaWorkbench/>;
         :mainWorkflow <workflow/HelloWorld/>;
         :name "HelloWorld";
         :profile <profile/tavernaServer/>,
                <profile/tavernaWorkbench/>;
         :sameBaseAs <http://ns.taverna.org.uk/2010/workflowBundle/28f7c554-4f35-401f-b34b-516e9a0ef731/>;
         :workflow <workflow/HelloWorld/>;
         rdfs:seeAlso <annotation/workflowBundle.ttl> .
    
    <profile/tavernaServer/>     a :Profile;
         rdfs:seeAlso <profile/tavernaServer.ttl> .
    
    <profile/tavernaWorkbench/>     a :Profile;
         rdfs:seeAlso <profile/tavernaWorkbench.ttl> .
    
    <workflow/HelloWorld/>     a :Workflow;
         rdfs:seeAlso <workflow/HelloWorld.ttl> .

...

SCUFL2 compliant readers, when parsing a workflow bundle document:

  • Mayassume that a declared workflow/profile is defined in the referenced representation. For instance, if:

    Code Block
    xml
                     <workflow>
    			<Workflow rdf:about="workflow/SomeNestedWorkflow/">
    				<rdfs:seeAlso rdf:resource="workflow/SomeNestedWorkflow.rdf" />
    			</Workflow>
    		</workflow>
    

    then workflow/SomeNestedWorkflow.rdf must contain a workflow definition for workflow/SomeNestedWorkflow/.

  • May parse the /workflowBundle.rdf as RDF/XML
  • May parse the {/workflowBundle.rdf}} according to the XML schema if the xsi:type="WorkflowBundleDocument" is set on the rdf:RDF element.