Convert a CWL source¶
Install the plugin in your Transpiler-Mate environment as described in Install. Check the command options:
transpiler-mate cwl2ogcrecords --help
Write a record¶
transpiler-mate cwl2ogcrecords --output build/record.json workflow.cwl
SOURCE is the positional CWL source handled by Transpiler-Mate. The plugin
receives the resolved context and software metadata. It writes one JSON Feature,
creates missing parent directories, and overwrites the selected file if it
already exists. Without --output, the destination is ogc-record.json in the
current directory.
Inspect the result:
python -m json.tool build/record.json
The result contains id, type, geometry, properties, and links. Metadata
such as title, language, themes, and contacts appears inside properties.
The plugin excludes self links when writing the file.
Prepare metadata¶
Review the mapping and input assumptions before conversion. In particular, the current implementation expects creation date, author contact details and affiliations, license information, and software-help objects. Incomplete author or help metadata can fail during conversion.
The host CLI also exposes authentication options for source access. Use its
--help output for the options available in your installed version.