How to import data with XML files

From GhoSST
(Difference between revisions)
Jump to: navigation, search
m (For the “Fundamental data”)
(For the “Data” (sample, experiment and spectra))
Line 20: Line 20:
 
*** Data/import/Spectrum
 
*** Data/import/Spectrum
 
* Select the corresponding file
 
* Select the corresponding file
* Parse/import the metadata (+ spectral data for “spectra”)
+
* Keep the 'Simulation mode' checkbox checked
 +
* Parse the metadata  
 
* Debug your XML file from the “bug” information provided
 
* Debug your XML file from the “bug” information provided
 
* The parser check many types of problems:
 
* The parser check many types of problems:
Line 31: Line 32:
 
** If there are missing spectra files
 
** If there are missing spectra files
 
** ...
 
** ...
 +
* When you get a message that a file is missing, then zip your xml file with the file (spectral data file for “spectra”, ...)
 +
* Import the metadata (+ spectral data for “spectra”)
 
* When import is successful it will let you know!
 
* 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)
+
* Always verify that your data are in the database (and that all values are correct) using GhoSST interface (Search/Advanced (for specttra and bandlist) or Producer/Full search for all type of data)

Revision as of 11:21, 21 April 2014

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
  • Keep the 'Simulation mode' checkbox checked
  • Parse the metadata
  • 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 you get a message that a file is missing, then zip your xml file with the file (spectral data file for “spectra”, ...)
  • Import the metadata (+ spectral data for “spectra”)
  • 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 (Search/Advanced (for specttra and bandlist) or Producer/Full search for all type of data)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox