Skip to content

A GitHub Action to generate a template configuration file for Data Curator App

Notifications You must be signed in to change notification settings

Sage-Bionetworks/dca-template-config-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DCA Template Config Action

This action creates a DCA template config file from a data model.

Inputs

data-model

Required URL of data model jsonld file.

file

Required File to write the config.

include_data_types

Space-separated list of data types to include in output. Can't be used with exclude_data_types.

exclude_data_types

Space-separated list of data types to exclude from output. Can't be used with include_data_types.

data_model_labels

Required How schematic reads data model labels. Default 'class_label'. Can also be display_label.

Outputs

result

Diagnostic output from conversion.

Example usage

Generate a config from all schemas in a data model

uses: sage-bionetworks/dca-template-config-action@main env: data-model: 'https://raw.githubusercontent.com/Sage-Bionetworks/data-models/main/example.model.jsonld' file: 'dca-template-config.json'

Compare to using data_model_labels = 'display_label'

uses: sage-bionetworks/dca-template-config-action@main env: data-model: 'https://raw.githubusercontent.com/Sage-Bionetworks/data-models/main/example.model.jsonld' file: 'dca-template-config.json' data_model_labels: 'display-label'

Only include Patient and Biospecimen

uses: sage-bionetworks/dca-template-config-action@main env: data-model: 'https://raw.githubusercontent.com/Sage-Bionetworks/data-models/main/example.model.jsonld' file: 'dca-template-config.json' include_data_types: 'Patient Biospecimen'

Exclude Patient from output

uses: sage-bionetworks/dca-template-config-action@main env: data-model: 'https://raw.githubusercontent.com/Sage-Bionetworks/data-models/main/example.model.jsonld' file: 'dca-template-config.json' exclude_data_types: 'Patient'

About

A GitHub Action to generate a template configuration file for Data Curator App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published