Skip navigation

Workflow Metadata guidelines

Guidance for describing the scientific logic of a computational workflow, including abstract and concrete stages, identifiers, relations, paths, and environment.

How to use this guideline

Use this page as the human-readable version of the MATSCI-NASU author guideline. The technical source and current package version are maintained in DataverseUA. Metadata should record only information supported by actual files, settings, logs, results, documentation, or researcher decisions; do not invent values for formal completeness.

Author Guidelines: workflow.json — MATSCI-NASU Workflow Metadata Profile v1.0

Schema: workflow.schema.json
Profile version: v1.0

1. Purpose of the Workflow File

workflow.json provides a structured description of the scientific logic of a computational study: which scientific stages are envisaged, which data types they accept and produce, and how specific tools and files implement these stages. The file may describe either an executed or a planned procedure, but its status must be evident from the content, in particular from executionStatus where this field is used.

The workflow does not replace provenance.json. The workflow describes the structure and organization of the procedure, whereas the provenance records the origin of the data and the actual execution history.

2. Structure of the File

The root object of workflow.json contains:

  • workflow — the identification and a brief description of the particular workflow;
  • layers.abstract — the scientific stages, independent of any specific software tool;
  • layers.concrete — the concrete implementation steps of the scientific stages;
  • environment — an optional description of the general software and hardware environment of the whole workflow.

The $schema field is not added to workflow.json itself. It is used only in the file workflow.schema.json to indicate the version of the JSON Schema standard.

The abstract layer answers the question “What is being done?”; the concrete layer answers “How exactly is it done?”

3. General Rules for Completing the Record

3.1. Describe the Scientific Logic

The name of an abstract stage must describe a scientific operation rather than merely the name of a program. A scientific stage, for example the generation of DFT reference data, may be implemented by several concrete steps or by different programs.

3.2. Use Identifiers Consistently

Every abstract and concrete stage has its own id. Identifiers must be non-empty and conform to the schema format: they must begin with a letter or a digit and may further contain letters, digits, periods, underscores and hyphens. Identifiers must not be repeated within the corresponding set. The link between the layers is established through concrete.mapsTo.

3.3. Use Relative Paths

inputs, outputs, package, metadata and readme are intended for relative paths within the data package, consistent with the structure of the package and with manifest.json. Use the POSIX separator /; do not use absolute paths or paths that extend beyond the package boundaries. For inputs and outputs, specify the particular files or directories that actually belong to the package. The schema validates the format of the strings, but the existence of the files and the correspondence of the paths to the manifest must be verified separately.

3.4. Do Not Invent Missing Information

Specify only known tool names, versions, parameters, environments and checksums. If the version of a tool is unknown, toolVersion may be null. For optional fields for which no data are available, make no assumptions; the field may be omitted if it is not mandatory. Use null only where the schema permits it.

4. The workflow Field

Required fields:

  • id — a unique identifier of the particular workflow;
  • name — a short name;
  • description — a description of the scientific objective and the sequence of stages;
  • version — the version of the particular workflow in the format number.number.

workflow.version describes the version of the workflow itself, not the version of the MATSCI-NASU schema. The profile version is given in the name of the profile/schema; do not add the fields schemaVersion or $schema to workflow.json, since they are not provided for in the schema of profile v1.0.

5. Abstract Layer — Scientific Stages

Each element of layers.abstract must contain id, name, actionType, inputType and outputType.

Permitted values of actionType:

  • ComputeAction — a computation;
  • TransformAction — a transformation or preparation of data;
  • TrainModelAction — model training;
  • SimulationAction — numerical simulation.

inputType and outputType describe data types, not file names. Use clear terms that are consistent throughout the study. In the schema these fields are strings, so the names of the data types are not restricted to a closed list.

6. Concrete Layer — Specific Implementations

Each element of layers.concrete must contain:

  • id — the identifier of the concrete step;
  • mapsTo — the id of the abstract stage that this step implements;
  • tool — the software, method, script or other tool;
  • toolVersion — the version of the tool, or null if unknown;
  • inputs — an array of relative paths to the input files or directories;
  • outputs — an array of relative paths to the results.

A single abstract stage may have several concrete steps, for example the preparation of input files and the subsequent execution of a calculation. Each mapsTo must correspond to an existing id in layers.abstract; this cross-element correspondence must be verified separately.

7. Additional Fields of a Concrete Step

Where appropriate, a concrete step may also contain:

  • parameters — a string with the path to a configuration file, an object of parameters, or null. Record the parameters needed to understand the step; do not unnecessarily duplicate the entire content of a stored configuration file;
  • environment — the software and hardware environment that may influence the result;
  • package — the relative path to the directory or logical package of the stage;
  • metadata — the relative path to the metadata file of the stage;
  • readme — the relative path to the documentation of the stage;
  • executionStatus — one of the statuses complete, partial, failed, not-run;
  • hash — a checksum in the format sha256: followed by 64 hexadecimal characters, or null.

Do not mark a step that was planned but not executed as complete. Select executionStatus in accordance with the actual state; if a status is not required or is unknown, the optional field may be omitted. The hash is not mandatory: do not invent it, and if it is given, it must conform to the schema format.

8. Computational Environment

The root-level environment describes the general environment of the workflow; layers.concrete[].environment describes the environment of an individual step. Both fields may be an object or null. The environment object has the fields software and hardware, each of which is an array of strings. Specify only essential information, for example library versions, the type of accelerator or the hardware platform, where these may affect the results. Do not add other keys to the environment object, since the schema prohibits additional properties.

9. Relations and Checks

The workflow must convey the logic input data → operation → output data. In a multi-stage procedure, the output of one stage may serve as the input of the next. The abstract layer describes the scientific content, and the concrete layer describes its implementation and the files involved.

The JSON Schema validates the structure, the required fields, the types, the permitted status values and the formats of paths and hashes. At a minimum, the following must be verified by separate scripts:

  • the uniqueness of id within the corresponding arrays;
  • the presence of every mapsTo among layers.abstract[].id;
  • the actual existence of the files and directories specified in the paths;
  • the correspondence of the paths to the package structure and to manifest.json;
  • the consistency of inputs and outputs with the logic of the stage;
  • the correspondence of hash to the actual file, if a hash is given.

The mere fact that the JSON Schema validation succeeds does not prove that the computations were actually performed or that the workflow is scientifically sound.

  1. Define the scientific objective and the sequence of the procedure.
  2. Complete workflow.id, workflow.name, workflow.description and workflow.version.
  3. Compile the list of scientific stages and complete layers.abstract.
  4. For each stage, define the concrete implementation steps and complete layers.concrete.
  5. Specify mapsTo for each concrete step.
  6. Add the relative paths inputs and outputs, checking them against the package structure and the manifest.
  7. Where necessary, add the parameters, environment, package, metadata file, README, status and hash.
  8. Ensure that planned and executed steps are not mixed and that missing information has not been invented.
  9. Validate the JSON against workflow.schema.json, and then perform the separate checks of relations and file paths.

11. Basic Principle

The workflow must reflect the scientific logic of the study independently of the specific software. Describe the actual procedure, or clearly distinguish between planned and executed steps. Use only the fields provided by profile v1.0; do not add schemaVersion, $schema or any other custom fields to the JSON.

Appendix. Corrections of 30 October 2026

The profile version stays v1.0. The schema was corrected before the final release; the table lists what changed in this module. Changes marked as renamed or removed values make records that use the old values invalid; the example record in examples/ has been updated. The meaning of every field and value and its mapping to external standards are given in semantic/semantic_crosswalk_v1.0.csv.

Field Change
layers.concrete[].id Referenced from provenance.json activities[].workflowStep (prov:hadPlan): keep the ids stable.

Source and current version

Canonical source file: Workflow_Authors_Guidelines_v1_0.md
The current Markdown source, JSON Schema, example record, and related technical materials are maintained with the MATSCI-NASU research package in DataverseUA.

Open current package in DataverseUA Back to all Author Guidelines
Status: MATSCI-NASU working guideline / reusable training resource.
Suggested slug: workflow-metadata-guidelines