Title: Scufl2-Processors Notice: 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 “License”); 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 “AS IS” 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.
The definition of a processor.
/workflow/\$workflowName.n3
Processors should be described in the same file as their containing workflow.
##Identifier
Each processor must have a scufl2:name, which uniquely identifies this processor within its owning workflow.
Processors are globally identified as <http://ns.taverna.org.uk/2010/researchObject/$researchId/workflow/$workflowName/processor/$processorName/>
- for instance<http://ns.taverna.org.uk/2010/researchObject/28f7c554-4f35-401f-b34b-516e9a0ef731/workflow/Helloworld/processor/Hello/>
.
Within the workflow bundle the processors should be linked to relatively, for instance <processor/Hello>
within a workflow file, or <workflow/Helloworld/processor/Hello>
within a profile file.
##Example
workflow/Helloworld.n3: (Outdated)
@base <workflow/Helloworld/> @prefix scufl2: <http://ns.taverna.org.uk/2010/scufl2/ontology/> . <processor/Hello> a scufl2:Processor ; scufl2:name "Hello" ; scufl2:inputProcessorPort <processor/Hello/in/name> ; scufl2:outputProcessorPort <processor/Hello/out/greeting> ; scufl2:dispatchStack <http://ns.taverna.org.uk/2010/scufl2/taverna#defaultDispatchStack> ; scufl2:iterationStrategyStack (<processor/Hello/iterationStrategy/0>) . <processor/Hello/in/name> a scufl2:InputProcessorPort ; scufl2:name "name"; scufl2:portDepth 0 ; scufl2:granularPortDepth 0 . <processor/Hello/out/greeting> a scufl2:OutputProcessorPort ; scufl2:name "greeting" . ]]>
This example defines the processor “Hello” in the workflow “Helloworld”. It contains one processor input port “name” and one processor output port “greeting”. Additionally the processor has a dispatch stack and an iteration strategy stack.
The nested resources for this workflow, such as InputProcessorPort, OutputProcessorPort, DispatchStack, IterationStrategyStack and their children should be described in the same file as owning workflow itself. Additional metadata should be added to an /annotations/
file.
##Properties
##Bundle links
All nested processor resources should also be defined in the same archive file as this workflow. Their URIs must be relative to this processor, their type and scufl2:name. So for instance <processor/Hello/out/greeting> is a scufl2:OutputProcessorPort in <processor/Hello>, and has a scufl2:name “greeting”.