CWL to OGC API - Records¶
cwl2ogcrecords is a Transpiler-Mate plugin that turns resolved CWL software
metadata into an OGC API - Records GeoJSON Feature. Record serialization uses
the pystac-ext-ogc-record dependency.
Available since 0.2.0
Workflow application links, software versions, scientific citations, and
related publication DOIs require cwl2ogcrecords 0.2.0 or later.
See workflow metadata enrichment
for the supported options and automatic metadata mappings.
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: convert a CWL workflow and inspect its record.
- Install: prepare a CLI or development environment.
- Use the CLI: convert a CWL source to a JSON file.
- Plugin reference: options, metadata mapping, and enrichment.
- Architecture: understand the conversion boundaries.