Apache Taverna Language Command Line — Convert Command

UNOFFICIAL, PUBLIC WORKING DRAFT.

The following conversion options are available when running the Taverna Language Command Line tool.

usage: tavlang convert output-format [options] [input-file-list]

Options:
-i,--input Specify input file directory
-o,--output Specify output file directory
-r,--recursive Execute command recursively
-V,--validate Validate workflow before conversion
-- Indicate end of options list (optional)
Output-format:
--iwir Output workflow as .iwir
--json Output workflow as .json
--robundle Output bundle as .robundle
--structure Output workflow as .structure
--wfbundle Output bundle as .wfbundle
--wfdesc Output workflow as .wfdesc.ttl

The Apache Taverna Language provides a set of APIs for converting and managing workflow bundles and Research Object bundles. The Taverna Language Command Line tool invokes those methods in a console interface.

The command line tool converts .t2flow and .wfbundle file formats into either .structure, .json, .iwir, .wfbundle, .wfdesc.ttl (in progress), or .robundle (in progress) file formats. The convert command can be invoked on single or multiple files. Input files are specified two ways: (1) by listing the file(s) in the command line – separated by spaces – or (2) by specifying the input file directory (recursive option). (The input file type is auto-guessed by WorkflowBundleIO.)

Option Usage
-i Specifies the input file directory for recursive conversions.
Example:

 $tavlang convert --json –r –i /inputdir
-o Specifies the output file directory. If not used, converted files will be saved to the /converted folder in the current working directory.
Example:

 $tavlang convert --structure –o/outputdir /input.t2flow
-r Executes the command recursively on all workflows.
Example:

$tavlang convert --wfbundle –r –i /inputdir
-V Validates the workflow before conversion.
Example:

 $tavlang convert –-json –V /input.t2flow
--
Separates command line options from argument lists.

See separate post for examples. [Edited, 2015-06-26]

One thought on “Apache Taverna Language Command Line — Convert Command

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s