In the app, the required schemas is configured in the file www/config.json
, which is used to adapt the dropdown data types list in the app. Below are the steps to generate config.json
locally using an example data model. Please remember to replace the example repo with your own data model's repo.
-
Create a repo for your data model using this template
-
Clone your data model repo, i.e:
-
Create
config.json
and placed it in thewww
folder. We recommend that you generate theconfig.json
via this command:python3 .github/generate_config_json.py \ -jd data-models/example.model.jsonld \ -schema 'Sage-Bionetworks/data-models' \ -service Sage-Bionetworks/schematic'
service
andschema
are GitHub repos (<repo-owner/repo-name>
, i.eSage-Bionetworks/schematics
) and are optional flags. If no values provided, empty string will be set for versions.
-
All properties the in the
config.json
are listed below:manifest schemas
: defines the list of schemas displayed under the "Choose a Metadata Template Type:" dropdown in the application.display_name
: The display name for the dropdown. (e.g. scRNA-seq Level 1)schema_name
: The name of the manifest in the JSON-LD schema (e.g. ScRNA-seqLevel1)type
: The type of manifest, either file or record.
service_version
: The version of schematic service (Default is empty string if no value provided)schema_version
: The version of data model (Default is empty string if no value provided)