CWL to OGC API - Records

cwl2ogcrecords is a Transpiler-Mate plugin that turns resolved CWL software metadata into an OGC API - Records GeoJSON Feature. It also provides an OGCRecord Python model with PySTAC link, asset, and extension support.

Get started

Install the plugin in the same environment as the Transpiler-Mate CLI:

python -m pip install cwl2ogcrecords
transpiler-mate cwl2ogcrecords --help
transpiler-mate cwl2ogcrecords --output build/record.json workflow.cwl

The conversion command expects a CWL source with software metadata. See the plugin reference for the fields consumed and current input assumptions. The default output is ogc-record.json.

  • First steps: create and save a record in Python.
  • Install: prepare a CLI or development environment.
  • Use the CLI: convert a CWL source to a JSON file.
  • Typed metadata: construct languages, themes, formats, external identifiers, and contacts.
  • Record behavior: serialization, extensions, and validation.
  • Architecture: understand the conversion boundaries.