TableSchema

class pyvo.io.vosi.vodataservice.TableSchema(config=None, pos=None, _name='schema', **kwargs)[source]

Bases: Element, HomogeneousList

TableSchema element as described in http://www.ivoa.net/xml/VODataService/v1.1

A detailed description of a logically-related set of tables.

Parameters:
typessequence of types

The types to accept.

valuessequence, optional

An initial set of values.

Attributes Summary

description

A free text description of the tableset that should explain in general how all of the tables are related.

name

A name for the set of tables.

tables

A list of tables in the schema.

title

a descriptive, human-interpretable name for the table set.

utype

an identifier for a concept in a data model that the data in this schema as a whole represent.

Methods Summary

parse(iterator, config)

For internal use.

Attributes Documentation

description

A free text description of the tableset that should explain in general how all of the tables are related.

name

A name for the set of tables.

This is used to uniquely identify the table set among several table sets. If a title is not present, this name can be used for display purposes.

If there is no appropriate logical name associated with this set, the name should be explicitly set to “default”.

tables

A list of tables in the schema. Must contain only VODataServiceTable objects.

A description of one of the tables that makes up the set. The table names for the table should be unique.

title

a descriptive, human-interpretable name for the table set.

This is used for display purposes. There is no requirement regarding uniqueness. It is useful when there are multiple schemas in the context (e.g. within a tableset; otherwise, the resource title could be used instead).

utype

an identifier for a concept in a data model that the data in this schema as a whole represent.

The format defined in the VOTable standard is strongly recommended.

Methods Documentation

parse(iterator, config)[source]

For internal use. Parse the XML content of the children of the element. Override this method and do after-parse checks after calling super().parse, if you need to.

Parameters:
iteratorxml iterator

An iterator over XML elements as returned by get_xml_iterator.

configdict

The configuration dictionary that affects how certain elements are read.