Skip to the content.

Data schema

This repository contains a description of the data schema using for the cheminfo ELN. It is also the place where changes to the schema are discussed.

Table of contents

Conventions

- arrayOfObjectExample (array<object>):
  - key1 (string): Description of key1
  - key2 (number, K): This is temperature
unitObject:
  - SI (number): value in SI units
  - unit (string): default unit that is shown to the user
instrumentObject:
    - model (string)
    - manufacturer (string)
    - software (string)
    - serialNumber (string)
source (object):
    - type (experiment|simulation|literature)
    - name (str): e.g., aiidalab.materialscloud.org
    - uuid (str): e.g., the UUID of the node of the object in AiiDAlab or the UUID of the data in some other database
    - doi (str)
    - url (str)

Spectra

Spectra are typically converted into JCAMP-DX files. We store all user metadata using ##$ labels. That is, even though there is a global, IUPAC defined, label for TEMPERATURE we will store the temperature using a ##$ to keep all metadata consistent.

package metadata

To be able to automatically curate an overview of all the tools we add standardized metadata to the package.json file under the info key. We use the following keys:

If there is a filetype for which multiple extension are used, then use multiple objects (for example, jdx, dx, jcamp).

An example is:

"version" : "",
"name": "",
"description": "",
"info": {
    "logo": "https://raw.githubusercontent.com/cheminfo/font/master/src/tga/assignment.svg",
    "domain": [
      "Physical Chemistry",
      "Materials Science"
    ],
    "technique": {
      "name": "TGA",
      "chmo": "0000690",
      "iupac": "https://doi.org/10.1351/goldbook.T06324"
    },
    "functionality": {
      "fileTypes": [
        {
          "extension": "txt",
          "manufacturer": "TA Instruments",
          "example": "https://raw.githubusercontent.com/cheminfo/tga-spectrum/master/testFiles/TAInstruments.txt"
        },
        {
          "extension": "csv",
          "manufacturer": "Perkin Elmer",
          "example": "https://raw.githubusercontent.com/cheminfo/tga-spectrum/master/testFiles/perkinElmer.csv"
        },
        {
          "extension": "txt",
          "manufacturer": "Perkin Elmer",
          "example": "https://raw.githubusercontent.com/cheminfo/tga-spectrum/master/testFiles/perkinElmer_tga4000.txt"
        },
        {
          "extension": "jcamp",
          "manufacturer": "cheminfo",
          "example": "https://raw.githubusercontent.com/cheminfo/tga-spectrum/master/testFiles/ntuples.jdx"
        }
      ]
    }
  }