Skip to content

VODML Mapping vs ModelInstanceInVot #23

@lmichel

Description

@lmichel

Both proposals (VOML Mapping, ModelInstanceInVot) have similar structures. There is nevertheless a major difference that is justified here.

  • Fig 1 shows a dataset made with a block of metadata on the top of the data block and mapped with VOML Mapping
    • Data are mapped in the TEMPLATE block that maps data for one row.
    • Metadata are located in the GLOBALS block along with the coordinate frames.
    • Issues
      • The parser has to browse 2 different mapping blocks to retrieve all the components of the dataset
      • The parser has no easy way to discrimine which GLOBALS element is part or not of the dataset mapping.
  • Fig 3 shows the same dataset mapped with ModelInstanceInVot
    • Both data and metadata are mapped within the TABLE_TEMPLATE blocks
    • The data mapping is enclosed in a TABLE_RAW_TEMPLATE block
    • Gains
      • All elements related to the dataset mapping are located in a single block (TABLE_TEMPLATE), this makes the parser job easier.
      • All elements not related to any dataset are located in the GLOBALS block
      • We can have several TABLE_RAW_TEMPLATE blocks within a single TABLE_TEMPLATE. This allows to tell the parser to iterate several times on the same data table e.g. to extract data subsets (selection by filter in time-series/gaia_multiband).

Screenshot 2021-03-24 at 14 01 19

The advantage of the ModelInstanceInVot mapping structure is even more obvious for multi-table VOTables.

  • Fig 2 shows the mapping structure for a VOTable containing 2 tables, each one with its own mapping (e.g. source + detections).
    • The GLOBALS block contains now the meta data of the 2 datasets in addition to the coordinate frames.
    • Issues
      • Same as before
      • The parser has no easy way to identify which GLOBALS element is part of dataset 1 ort 2
  • Fig 4 shows the same datasets mapped with ModelInstanceInVot
    • Each table is mapped in a specific TABLE_TEMPLATE.
    • Gains
      • Same as before
      • No longer risk to mix up meta data of both datasets.

Screenshot 2021-03-24 at 14 01 29

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions