DataType

class pyvo.io.vosi.vodataservice.DataType(*args, **kwargs)[source]

Bases: ContentMixin, ElementWithXSIType

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

A type (in the computer language sense) associated with a parameter with an arbitrary name.

This XML type is used as a parent for defining data types with a restricted set of names.

Attributes Summary

arraysize

Specifies the size of the dataType

delim

the string that is used to delimit elements of an array value when arraysize is not "1".

extendedschema

An identifier for the schema that the value given by the extended attribute is drawn from.

extendedtype

The data value represented by this type can be interpreted as of a custom type identified by the value of this attribute.

Attributes Documentation

arraysize

Specifies the size of the dataType

delim

the string that is used to delimit elements of an array value when arraysize is not “1”.

Unless specifically disallowed by the context, applications should allow optional spaces to appear in an actual data value before and after the delimiter (e.g. “1, 5” when delim=”,”).

the default is “ “; i.e. the values are delimited by spaces.

extendedschema

An identifier for the schema that the value given by the extended attribute is drawn from.

This attribute is normally ignored if the extendedType attribute is not present.

extendedtype

The data value represented by this type can be interpreted as of a custom type identified by the value of this attribute.

If an application does not recognize this extendedType, it should attempt to handle value assuming the type given by the element’s value. string is a recommended default type.

This element may make use of the extendedSchema attribute and/or any arbitrary (qualified) attribute to refine the identification of the type.