This action creates a DCA template config file from a data model.
Required URL of data model jsonld file.
Required File to write the config.
Space-separated list of data types to include in output. Can't be used with exclude_data_types.
Space-separated list of data types to exclude from output. Can't be used with include_data_types.
Required How schematic reads data model labels. Default 'class_label'. Can also be display_label
.
Diagnostic output from conversion.
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'