Class AnIMLBridge

java.lang.Object
org.episteme.natural.chemistry.loaders.animl.AnIMLBridge

public class AnIMLBridge extends Object
Bridge for converting AnIML DTOs to core Episteme analytical chemistry objects.

AnIML (Analytical Information Markup Language) is the ASTM standard for analytical chemistry data. This bridge converts parsed AnIML to Episteme structures.

Architecture

AnIML → AnIMLReader → AnIML DTOs → AnIMLBridge → Core Objects
                                                  ├── ScientificExperiment
                                                  ├── Sample
                                                  └── Observation (capturing Spectrum)
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • AnIMLBridge

      public AnIMLBridge()
  • Method Details

    • toExperiment

      public ScientificExperiment<Map<String,Object>, Object> toExperiment(AnIMLDocument animlDoc)
      Converts AnIML document to Episteme ScientificExperiment.
      Parameters:
      animlDoc - the parsed AnIML document
      Returns:
      an Experiment object with samples and results
    • convertSample

      public Sample<?> convertSample(AnIMLSample animlSample)
      Converts AnIML sample to Episteme Sample.
    • convertExperimentStep

      public Observation<Object> convertExperimentStep(AnIMLExperimentStep step)
      Converts AnIML experiment step to Episteme Observation.
    • convertToSpectrum

      public Spectrum convertToSpectrum(AnIMLResult result)
      Converts AnIML result series to Episteme Spectrum.