Create your first record

This tutorial converts a CWL workflow through Transpiler-Mate and inspects the resulting OGC API - Records GeoJSON file.

Prepare the workflow

Install the plugin in the same environment as the Transpiler-Mate CLI. Use an existing CWL source with software metadata, named workflow.cwl in the commands below. Review the metadata mapping and input assumptions, including creation date, license, author affiliations and email addresses, and software-help objects.

Convert the source

transpiler-mate cwl2ogcrecords --output build/record.json workflow.cwl

The plugin creates the output directory if necessary and writes one record. Running the command again overwrites the file.

Inspect the result

python -m json.tool build/record.json

The JSON has top-level type: "Feature", an identifier, geometry: null, properties, and links. The title, description, dates, contacts, keywords, and themes come from the resolved software metadata. No self link is emitted.

Available since 0.2.0

Version 0.2.0 adds workflow application links, software versions, scientific citations, and related publication DOIs. Earlier versions do not provide these enrichment features.

With version 0.2.0 or later, nonblank software version metadata becomes properties.version. A DOI-valued software identifier becomes sci:doi with a cite-as link. The context source produces an application link with media type application/cwl without scheme filtering. --application-url adds a separate JSON execution link with application:container="HTTP"; it does not replace the CWL source link.

The enrichment example shows how to supply public resource URLs, workflow citation text, and related publication DOIs through the plugin's Python options.

Next steps

See the CLI guide for source conversion and the plugin reference for all supported settings.