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.

Use --application-url to add an HTTP(S) endpoint that executes the CWL:

transpiler-mate cwl2ogcrecords --application-url https://example.org/processes/workflow/execution workflow.cwl

The record retains its application/cwl source link and adds a second application link with media type application/json and application:container="HTTP" for execution. The plugin publishes this link without calling the endpoint. Select links by both rel and type. File metadata and publication time still come from the context source. Without this option, only the CWL source application link is emitted.

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.

Include a Git reference

Available since 0.2.0

Supply one --repository-url string to include VCS v0.1.0 metadata.

transpiler-mate cwl2ogcrecords --output build/record.json --repository-url 'https://github.com/team/workflow/tree/main' workflow.cwl

This adds a vcs link and record properties with vcs:type="git" and vcs:branch="main". Use a release/tag URL for a tag or a commit URL for an exact revision. A clone URL such as git@github.com:team/workflow.git adds only the repository link and Git type. See VCS metadata for supported URL forms and inference limits.