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 definition of a data link.

...

workflow/Helloworld.n3:

Code Block

@base <workflow/Helloworld> .
@prefix scufl2: <http://ns.taverna.org.uk/2010/scufl2/ontology/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .

<>
    a scufl2:Workflow ;
    scufl2:name "Helloworld" ;
    scufl2:workflowIdentifier <http://ns.taverna.org.uk/2010/workflow/00626652-55ae-4a9e-80d4-c8e9ac84e2ca/> ;
    scufl2:inputWorkflowPort <in/yourName> ;
    scufl2:outputWorkflowPort <out/results> ;
    scufl2:datalink _:datalink1, <datalink/5>, <datalink?from=processor/Hello/out/greeting&to=out/results&mergePosition=0> ;
    scufl2:processor <processor/Hello> .

<in/yourName> a scufl2:InputWorkflowPort ;
    scufl2:name "yourName" ;
    scufl2:portDepth 0 .

<out/results> a scufl2:OutputWorkflowPort ;
    scufl2:name "results" .

_:datalink1 a scufl2:DataLink ;
    scufl2:receivesFrom <in/yourName> ;
    scufl2:sendsTo <processor/Hello/in/name> .

<datalink/5> a scufl2:DataLink ;
    scufl2:receivesFrom <in/yourName> ;
    scufl2:sendsTo <out/results> ;
    scufl2:mergePosition 1 .

<datalink?from=processor/Hello/out/greeting&to=out/results&mergePosition=0> a scufl2:DataLink ;
    scufl2:receivesFrom <processor/Hello/out/greeting> ;
    scufl2:sendsTo <out/results> ;
    scufl2:mergePosition 0 .

...

The first link _:datalink1 is just an anonymous node without an identifier. It defines a data link from the input port "yourName" to the processor input port "name". This link could also have been written embedded with the workflow:

Code Block

<> a scufl2:Workflow ;
  ...
    scufl2:datalink [ 
        scufl2:receivesFrom <in/yourName> ;
        scufl2:sendsTo <processor/Hello/in/name>
    ] .

...