DataHarmonizer icon indicating copy to clipboard operation
DataHarmonizer copied to clipboard

Importing data and schema configuration from standard JSON file

Open kennethbruskiewicz opened this issue 10 months ago • 1 comments

Riffing off of this: https://github.com/cidgoh/DataHarmonizer/issues/431#issuecomment-2071096888

given a data structure like:

{
    "schema": "https://www.example.com/GRDI",
    "version": "10.0.0",
    "GRDI_Sample": [ /* list items*/ ],
    "AMR_Test": [ /* list items*/ ]
}

we can imagine using the "in_language" property like

{
    "schema": "https://www.example.com/GRDI",
    "version": "10.0.0",
    "in_language": "fr",
    "GRDI_Sample": [ /* list items*/ ],
    "AMR_Test": [ /* list items*/ ]
}

This closes the import-export loop for the application, allowing users to save where they left off and have the application state restored to normal. It also means that when the file is passed around, it can self-document what the language content is.

This seems good-enough, with the only possible extension being a self-referential or error-checkable hash that can ensure file integrity.

kennethbruskiewicz avatar Apr 25 '24 21:04 kennethbruskiewicz