元素:表格 / 信息
命名空间 | http://schemas.google.com/dspl/2010 | ||||
---|---|---|---|---|---|
注释 | 有关表的文本信息。 | ||||
图示 | |||||
类型 | 信息 | ||||
属性 |
|
||||
模型 | name、description{0,1}、url{0,1} | ||||
儿童 | description、name、url | ||||
实例 |
<info> <name>{1,1}</name> <description>{0,1}</description> <url>{0,1}</url> </info> |
||||
来源 |
<xs:element name="info" type="Info" minOccurs="0"> <xs:annotation> <xs:documentation>Textual information about the table.</xs:documentation> </xs:annotation> </xs:element> |
元素:表格 / 列
命名空间 | http://schemas.google.com/dspl/2010 | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
注释 | 表中列的规范。 | ||||||||||||||||||||||||
图示 | |||||||||||||||||||||||||
属性 |
|
||||||||||||||||||||||||
模型 | value* | conceptValue{0,1} | ||||||||||||||||||||||||
儿童 | conceptValue、value | ||||||||||||||||||||||||
实例 |
<column format="" id="" type=""> <value lang="">{0,unbounded}</value> <conceptValue concept="">{0,1}</conceptValue> </column> |
||||||||||||||||||||||||
属性 |
|
||||||||||||||||||||||||
来源 |
<xs:element name="column" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>The specification of a column in the table.</xs:documentation> </xs:annotation> <xs:complexType> <xs:group ref="ValuesGroup" minOccurs="0"> <xs:annotation> <xs:documentation>A constant value for the column.</xs:documentation> </xs:annotation> </xs:group> <xs:attribute name="id" type="LocalId" use="required"> <xs:annotation> <xs:documentation>The identifier of the table column.</xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="type" type="DataType" use="required"> <xs:annotation> <xs:documentation>The data type of the table column. All values of the column in the table must conform to this data type.</xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="format" type="xs:string" use="optional"> <xs:annotation> <xs:documentation>A format for the column, used to parse a textual representation of the values. Date formats are defined by: http://joda-time.sourceforge.net/api-release/org/joda/time/format/DateTimeFormat.html</xs:documentation> </xs:annotation> </xs:attribute> </xs:complexType> </xs:element> |
元素:表格 / 数据
命名空间 | http://schemas.google.com/dspl/2010 | ||||
---|---|---|---|---|---|
注释 | 可找到表数据的数据源。 | ||||
图示 | |||||
类型 | 数据 | ||||
属性 |
|
||||
模型 | file | ||||
儿童 | file | ||||
实例 |
<data> <file encoding="utf-8" format="csv">{1,1}</file> </data> |
||||
来源 |
<xs:element name="data" type="Data" minOccurs="0"> <xs:annotation> <xs:documentation>A data source where data for the table can be found.</xs:documentation> </xs:annotation> </xs:element> |
复杂类型:表
命名空间 | http://schemas.google.com/dspl/2010 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
注释 | 表提供数据集的数据。表可以针对某个概念或某个切片提供数据。 | ||||||||||||
图示 | |||||||||||||
使用者 |
|
||||||||||||
模型 | info{0,1}、column+、data{0,1} | ||||||||||||
儿童 | 列、数据、信息 | ||||||||||||
属性 |
|
||||||||||||
来源 |
<xs:complexType name="Table"> <xs:annotation> <xs:documentation>A table provides data for the dataset. A table may provide data for a concept or for a slice.</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="info" type="Info" minOccurs="0"> <xs:annotation> <xs:documentation>Textual information about the table.</xs:documentation> </xs:annotation> </xs:element> <xs:element name="column" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>The specification of a column in the table.</xs:documentation> </xs:annotation> <xs:complexType> <xs:group ref="ValuesGroup" minOccurs="0"> <xs:annotation> <xs:documentation>A constant value for the column.</xs:documentation> </xs:annotation> </xs:group> <xs:attribute name="id" type="LocalId" use="required"> <xs:annotation> <xs:documentation>The identifier of the table column.</xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="type" type="DataType" use="required"> <xs:annotation> <xs:documentation>The data type of the table column. All values of the column in the table must conform to this data type.</xs:documentation> </xs:annotation> </xs:attribute> <xs:attribute name="format" type="xs:string" use="optional"> <xs:annotation> <xs:documentation>A format for the column, used to parse a textual representation of the values. Date formats are defined by: http://joda-time.sourceforge.net/api-release/org/joda/time/format/DateTimeFormat.html</xs:documentation> </xs:annotation> </xs:attribute> </xs:complexType> </xs:element> <xs:element name="data" type="Data" minOccurs="0"> <xs:annotation> <xs:documentation>A data source where data for the table can be found.</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> <xs:attribute name="id" type="Id" use="required"> <xs:annotation> <xs:documentation>The unique identifier of the table in the dataset.</xs:documentation> </xs:annotation> </xs:attribute> </xs:complexType> |
属性:表格 / 列 / @format
命名空间 | 没有命名空间 | ||
---|---|---|---|
注释 | 列的格式,用于解析值的文本表示形式。日期格式定义如下:http://joda-time.sourceforge.net/api-release/org/joda/time/format/DateTimeFormat.html | ||
类型 | xs:string | ||
属性 |
|
||
来源 |
<xs:attribute name="format" type="xs:string" use="optional"> <xs:annotation> <xs:documentation>A format for the column, used to parse a textual representation of the values. Date formats are defined by: http://joda-time.sourceforge.net/api-release/org/joda/time/format/DateTimeFormat.html</xs:documentation> </xs:annotation> </xs:attribute> |
属性:表格 / 列 / @id
命名空间 | 没有命名空间 | |||
---|---|---|---|---|
注释 | 表格列的标识符。 | |||
类型 | LocalId | |||
属性 |
|
|||
分面 |
|
|||
来源 |
<xs:attribute name="id" type="LocalId" use="required"> <xs:annotation> <xs:documentation>The identifier of the table column.</xs:documentation> </xs:annotation> </xs:attribute> |
属性:表格 / 列 / @type
命名空间 | 没有命名空间 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
注释 | 表列的数据类型。表中相应列的所有值都必须符合此数据类型。 | ||||||||||||||||||
类型 | DataType | ||||||||||||||||||
属性 |
|
||||||||||||||||||
分面 |
|
||||||||||||||||||
来源 |
<xs:attribute name="type" type="DataType" use="required"> <xs:annotation> <xs:documentation>The data type of the table column. All values of the column in the table must conform to this data type.</xs:documentation> </xs:annotation> </xs:attribute> |
属性:表格 / @id
命名空间 | 没有命名空间 | |||
---|---|---|---|---|
注释 | 数据集中表的唯一标识符。 | |||
类型 | ID | |||
属性 |
|
|||
分面 |
|
|||
使用者 |
|
|||
来源 |
<xs:attribute name="id" type="Id" use="required"> <xs:annotation> <xs:documentation>The unique identifier of the table in the dataset.</xs:documentation> </xs:annotation> </xs:attribute> |
使用 oXygen XML 编辑器创建。