VOTable 1'1 - PowerPoint PPT Presentation

1 / 23
About This Presentation
Title:

VOTable 1'1

Description:

VOTable Data Model ... COOSYS : celestial coordinate system. ... Same attributes as FIELD required attribute 'value' ... – PowerPoint PPT presentation

Number of Views:22
Avg rating:3.0/5.0
Slides: 24
Provided by: Christoph644
Category:

less

Transcript and Presenter's Notes

Title: VOTable 1'1


1
VOTable 1.1
  • Raúl Gutiérrez Sánchez
  • SVO, LAEFF-INTA
  • raul_at_laeff.esa.es

2
VOTable
  • XML format for the interchange and storage of
    tabular data in the VO framework.
  • Composed by
  • Metadata description of the data and its
    structure.
  • Data local or remote.

3
XML
  • XML is a cross-platform, software and hardware
    independent tool for transmitting information.
  • Can be used to
  • Share data just plain text, so no
    incompatibility.
  • Store data in files or databases.

Ideal for the VO!
4
XML (main characteristics)
  • XML was designed to carry data XML was designed
    to describe data and to focus on what data is.
  • XML does not DO anything XML was created to
    structure, store and to interchange information.
    Someone must write a piece of software able to
    deal with it.
  • XML is free and extensible XML tags are not
    predefined, you must invent your own tags.

5
XML Syntax (example)
lt?xml version1.0 encodingISO-8859-1?gt ltnotegt
lttogtPatricialt/togt ltfromgtAlexlt/fromgt
ltheadinggtBuy Beerlt/headinggt ltbodygtDont forget
to buy beerlt/bodygt lt/notegt
6
XML Syntax
  • All XML elements MUST have a closing tag.
  • XML tags are case sensitive. ltNotegtThis is
    incorrectlt/notegt
  • XML elements must be properly nested.
    ltbgtltigtincorrectlt/bgtlt/igt
  • All XML elements MUST have an unique root
    element.
  • Attribute values must always be quoted (single or
    double).
  • With XML, white space is preserved
  • CR/LF is converted to LF.
  • Comments lt!-- This is a comment --gt

Nothing special, just plain text with some tags
enclosed in angle brackets.
7
XML - VOTable
  • Well formed XML doc. ? Valid XML doc.
  • Well formed conform to the XML syntax.
  • Valid also conform to an XML Schema (or DTD)
  • XML Schema define the legal building blocks and
    the structure of an XML document.
  • VOTable ? XML document conform to the VOTable
    schema.

8
VOTable Data Model
  • VOTable hierarchy of Metadata associated
    TableData arranged as a set of Tables.
  • Metadata Parameters Infos Descriptions
    Links Fields Groups.
  • Table list of Fields Tabledata.
  • TableData stream of Rows
  • Row list of Cells.
  • Cell Primitive (or variable-length list of
    Primitives, or multidimensional array of
    Primitives).
  • Primitive integer, character, float, ...

9
VOTable Structure
10
VOTable Example
  • lt?xml version"1.0"?gt
  • ltVOTABLE version"1.1" xmlnsxsi"http//www.w3.or
    g/2001/XMLSchema-instance"
  • xsinoNamespaceSchemaLocation"http//www.ivoa.ne
    t/xml/VOTable/VOTable/v1.1"gt
  • ltCOOSYS ID"J2000" equinox"J2000."
    epoch"J2000." system"eq_FK5"/gt
  • ltRESOURCE name"myFavouriteGalaxies"gt
  • ltTABLE name"results"gt
  • ltDESCRIPTIONgtVelocities and Distance
    estimationslt/DESCRIPTIONgt
  • ltPARAM name"Telescope" datatype"float"
    ucd"phys.sizeinstr.tel"
  • unit"m" value"3.6"/gt
  • ltFIELD name"RA" ucd"pos.eq.rameta.main"
    ref"J2000"
  • datatype" float" width"6"
    precision"2" unit"deg"/gt
  • ltFIELD name"Dec" ucd"pos.eq.decmeta.main"
    ref"J2000"
  • datatype"float" width"6"
    precision"2" unit"deg"/gt
  • ltDATAgt
  • ltTABLEDATAgt
  • ltTRgtltTDgt010.68lt/TDgtltTDgt41.27lt/TDgtlt/TRgt
  • ltTRgtltTDgt287.43lt/TDgtltTDgt-63.85lt/TDgtlt/TRgt
  • lt/TABLEDATAgt
  • lt/DATAgt

11
ltVOTABLEgt
  • Typically contains
  • ltDESCRIPTIONgt, ltPARAMgt, ltINFOgt
  • ltCOOSYSgt celestial coordinate system.
  • ltRESOURCEgt description and data of logically
    independent data structures. Recursive.

12
ltTABLEgt
  • Contains
  • DESCRIPTION element
  • Collection of
  • FIELD Description of a table column.
  • PARAM constant value.
  • GROUP Associate logically connected FIELDs or
    PARAMs
  • LINK pointer to other documents or data servers.
  • DATA rows of data. Containing cells in the same
    order as the FIELD definitions.

13
ltFIELDgt
  • Description of a table column.
  • May contain DESCRIPTION, LINK and VALUES
    (information about domain of the data) elements.
  • Attributes
  • name/ID identify the FIELD. ID required if field
    has to be referenced.
  • datatype nature of the data (how to read and
    store).
  • arraysize if the column is used for storing more
    than one of the specified datatypes (10x5x).
  • width precision number of characters
    numerical accuracy.

14
ltFIELDgt cont.
  • Attributes (cont.)
  • unit units in which the values of the column are
    expressed (controlled vocabulary).
  • ucd Unified Content Descriptor. Standarized
    classification of the physical quantity
    (pos.eq.ra)
  • utype reference to an external data model
    (utypedatamodel_identifierrole_identifier)
  • ref reference to other element.
  • ltCOOSYS IDJ2000 equinoxJ2000 epochJ2000
    systemeq_FK5/gt
  • ...
  • ltFIELD nameRA ucdpos.eq.rameta.main
    refJ2000/gt

15
datatypes
16
ltPARAMgt
  • Almost the same as ltFIELDgt
  • Keeps a constant value.
  • Same attributes as FIELD required attribute
    value.
  • May be viewed as a FIELD that keeps a constant
    value.

17
ltDATAgt
  • Unique in the TABLE
  • 3 possible formats
  • TABLEDATA pure XML table.
  • FITS
  • BINARY for efficiency reasons
  • FITS and BINARY must contain a ltSTREAMgt element.

18
ltSTREAMgt
  • Contains (or references) data not in XML format.
  • Local data if encoding produces text.
  • ltSTREAM encodingbase64gt
  • AAAj/yVZiDGSSUwFZ6ypR4yGkADwAcQV0euAAIAAJBmMzNwZ
    WZmkGle4
  • ..........
  • lt/STREAMgt
  • Remote data if encoding does not produce text or
    the data is too large.
  • ltSTREAM hrefftp//sdc.laeff.esa.es/mydata.dat/
    gt
  • ltSTREAM hreffile//sdc.laeff.esa.es/mydata.dat
    /gt
  • ltSTREAM hrefhttp//sdc.laeff.esa.es/mydata.dat
    /gt

19
Serialization
TABLEDATA
VOTable
TABLE
Encoding gzip base64 dynamic
EXTERNAL DATA
FITS
BINARY
20
VOTable main elements
21
Attributes
22
VOTable in real world
  • ConeSearch services.
  • SSA (Simple Spectrum Access) SIA (Simple Image
    Access) services
  • http//sdc.laeff.esa.es/ines/jsp/ssap.jsp?POS244
    .9,46.3SIZE0.5

23
Tools
  • Java libraries
  • SAVOT http//cdsweb.u-strasbg.fr/devcorner.gml
  • JAVOT http//www.us-vo.org/VOTable/JAVOT/
  • C Libraries
  • VO India http//vo.iucaa.ernet.in/voi/cplusparse
    r.htm
  • Tools
  • Aladin http//aladin.u-strasbg.fr/aladin.gml
  • VOPlot http//vo.iucaa.ernet.in/voi/voplot.htm
  • VOSpec http//pma.standby.vilspa.esa.es8080/vosp
    ec/index.html
  • Topcat http//www.starlink.ac.uk/topcat
Write a Comment
User Comments (0)
About PowerShow.com