How to import data with XML files

From GhoSST
Jump to: navigation, search

Follow the order described above for the imports.

For the “Fundamental data”

  • Take an empty template [1] or get an already filled one ($)
  • Fill the corresponding template at your best
  • Test it in 'simulation mode': "Producer/Import simulation"
  • Send it to the database manager who will verify the file and import it ("Manager/import").

$ Note: All xml files of already imported data (of any type) can be retrieved by going to the data page and its 'Import history' tab: the link on 'Get the file(s)' of the last correction (or first import if no correction) will give you the original xml file(s) (including data provider comments). You can thus found the closest data to yours and only slightly modify the structure (be care, several unused options or keywords may have been deleted) and then change the data content to get your import file.

For the “Data” (sample, experiment and spectra)

  • Use the GhoSST interface:
    • Data/import/ and choose either:
      • “sample”
      • “experiment and spectra”
    • Or go directly to:
      • Data/import/Sample
      • Data/import/Spectrum
  • Select the corresponding file
  • Parse/import the metadata (+ spectral data for “spectra”)
  • Debug your XML file from the “bug” information provided
  • The parser check many types of problems:
    • Correctness of data format
    • Correctness of data syntax (key-word names, unexpected key-words, …)
    • If the mandatory key-words are filled
    • If values are within the accepted set of ‘enumerations’ elements
    • If references (index, molecules, …) to data effectively exist in the database
      • In some cases it can propose you to choose one of the values existing in the database
    • If there are missing spectra files
    • ...
  • When import is successful it will let you know!
  • Always verify that your data are in the database (and that all values are correct) using GhoSST interface (Data/Search)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox