cidgoh / DataHarmonizer

A standardized browser-based spreadsheet editor and validator that can be run offline and locally, and which includes templates for SARS-CoV-2 and Monkeypox sampling data. This project, created by the Centre for Infectious Disease Genomics and One Health (CIDGOH), at Simon Fraser University, is now an open-source collaboration with contributions from the National Microbiome Data Collaborative (NMDC), the LinkML development team, and others.
MIT License
97 stars 27 forks source link

JSON Export #431

Closed kennethbruskiewicz closed 1 week ago

kennethbruskiewicz commented 7 months ago

Ensure that data can be exported in JSON format:

{
    "GRDI_Sample": [ /* list items*/ ],
    "AMR_Test": [ /* list items*/ ]
}

Is this for all templates?

ddooley commented 7 months ago

And since we can, priming this data to mention the schema and version it conforms to. In future this can be adapted to include language of content too. E.g.

image
kennethbruskiewicz commented 7 months ago

@ddooley Should this be distinct from the "Save as..." functionality? It seems like the most natural place for this.

ddooley commented 7 months ago

Indeed the "save as" json option is the place that triggers writing of this data structure. I believe the structure of this would match exactly the Container class of any particular standard - so plural GRDI_Samples etc. with the schema, version, and in_language annotation added since that's the minimum info needed to retrieve appropriate schema.

ddooley commented 1 week ago

Resolved in upcoming DH2-i18n-rc1 branch.