DSPL XML スキーマについては、このページとそれにリンクされているサブページをご覧ください。この教材は、言語の下位レベルの詳細を理解したい上級ユーザーを対象としています。ほとんどのユーザーには、DSPL データセットの作成と編集に十分なデベロッパー ガイドのコンテンツが用意されています。
完全な XML スキーマは、DSPL コードサイトで XSD 形式でダウンロードできます。
要素: dspl
名前空間 |
http://schemas.google.com/dspl/2010 |
アノテーション |
DSPL の仕様では、データセットを記述します。データセットは名前空間によって識別されます。データセットは、次の要素で構成されます。- テーブル: データセットに定義されているコンセプトとスライスのデータ - コンセプト: データセット内で使用されるユーザー定義の定義と構造 - スライス: データセット内に存在しているディメンションと指標の組み合わせ - トピック: データセットのコンセプトの整理に使用する階層ラベル
|
図 |
|
プロパティ |
|
モデル |
import*、info、provider、attribute*、topics{0,1}、concepts{0,1}、slices{0,1}、tables{0,1} |
Children |
属性、コンセプト、インポート、情報、プロバイダ、スライス、テーブル、トピック |
インスタンス |
<dspl targetNamespace="">
<import location="" namespace="">{0,unbounded}</import>
<info>{1,1}</info>
<provider>{1,1}</provider>
<attribute concept="" id="">{0,unbounded}</attribute>
<topics>{0,1}</topics>
<concepts>{0,1}</concepts>
<slices>{0,1}</slices>
<tables>{0,1}</tables>
</dspl>
|
属性 |
QName |
タイプ |
固定 |
Default |
用途 |
Annotation |
targetNamespace |
xs:任意 URI |
|
|
省略可 |
各データセットはターゲットの Namespace を提供する場合があります。ターゲットの名前空間は、データセットを一意に識別する URI です。XML での名前空間の使用方法について詳しくは、http://www.w3.org/TR/REC-xml-names/ をご覧ください。targetNamespace が指定されていない場合は、データセットのインポート時に名前空間が生成されます。 |
|
ソース |
<xs:element name="dspl">
<xs:annotation>
<xs:documentation>A DSPL specification describes a dataset. A dataset is
identified by its namespace. A dataset is comprised of the
following elements:
- Tables: Data for the concepts and slices defined in the
dataset
- Concepts: User-specified definitions and structures used in
the dataset
- Slices: Combinations of dimensions and metrics present in
the dataset
- Topics: Hierarchical labels used to organise the concepts of
the dataset</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="import" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Import directive for external datasets -- modeled after
the XML Schema import directive. In order to use
elements defined in an external dataset, the external
dataset must be referenced using an import directive.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="namespace" use="required">
<xs:annotation>
<xs:documentation>The namespace of the imported dataset, specified as
a URI. A prefix must be associated with this
namespace before its contents can be referenced. See
[XML Namespaces] for more information about the use
of namespaces and prefixes in XML.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="location" use="optional">
<xs:annotation>
<xs:documentation>An optional location where the definition of the
imported dataset can be found, specified as a
URL. If the location is omitted, the system
processing this DSPL dataset must already know the
imported dataset.
Implementation note: The Google dataset importer
ignores the location attribute. Any imported dataset
must be known by the Google importer beforehand.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="info" type="Info" minOccurs="1">
<xs:annotation>
<xs:documentation>General information about the dataset.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="provider" type="Info">
<xs:annotation>
<xs:documentation>General information about the dataset provider.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="attribute" type="Attribute" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Attribute associated with the dataset.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="topics" minOccurs="0">
<xs:annotation>
<xs:documentation>A hierarchy of topics used to organize the contents of
the dataset. The order in which topics are given is
meaningful and should be respected by visualizations
that displays these topics.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="topic" type="Topic" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="concepts" minOccurs="0">
<xs:annotation>
<xs:documentation>A list of concepts defined in this dataset.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="concept" type="Concept" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="slices" minOccurs="0">
<xs:annotation>
<xs:documentation>A list of slices defined in this dataset.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="slice" type="Slice" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tables" minOccurs="0">
<xs:annotation>
<xs:documentation>A list of tables defined in this dataset.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="table" type="Table" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="targetNamespace" type="xs:anyURI" use="optional">
<xs:annotation>
<xs:documentation>Each dataset may provide a target namespace. The
target namespace is a URI that uniquely identifies the
dataset. For more information about the use of namespaces in XML,
see:
http://www.w3.org/TR/REC-xml-names/
If no targetNamespace is provided, then a namespace will be
generated when the dataset is imported.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
|
要素: dspl / import
名前空間 |
http://schemas.google.com/dspl/2010 |
アノテーション |
外部データセットのインポート ディレクティブ -- XML スキーマのインポート ディレクティブに従ってモデル化されています。外部データセットで定義された要素を使用するには、インポート ディレクティブを使用して外部データセットを参照する必要があります。 |
図 |
|
プロパティ |
content: |
複雑 |
minOccurs: |
0 |
maxOccurs: |
制限なし |
|
属性 |
QName |
タイプ |
固定 |
Default |
用途 |
Annotation |
地域 |
|
|
|
省略可 |
インポートされたデータセットの定義を確認できるロケーション(省略可)。URL として指定します。ロケーションを省略する場合、この DSPL データセットを処理するシステムでは、インポートされたデータセットがあらかじめ認識されている必要があります。実装に関する注記: Google データセット インポータでは、location 属性は無視されます。インポートされたデータセットは、事前に Google のインポータで認識されている必要があります。 |
namespace |
|
|
|
required |
インポートされたデータセットの名前空間。URI として指定します。コンテンツを参照する前に、この名前空間に接頭辞を関連付ける必要があります。XML での名前空間と接頭辞の使用法については、[XML 名前空間] をご覧ください。 |
|
ソース |
<xs:element name="import" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Import directive for external datasets -- modeled after
the XML Schema import directive. In order to use
elements defined in an external dataset, the external
dataset must be referenced using an import directive.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="namespace" use="required">
<xs:annotation>
<xs:documentation>The namespace of the imported dataset, specified as
a URI. A prefix must be associated with this
namespace before its contents can be referenced. See
[XML Namespaces] for more information about the use
of namespaces and prefixes in XML.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="location" use="optional">
<xs:annotation>
<xs:documentation>An optional location where the definition of the
imported dataset can be found, specified as a
URL. If the location is omitted, the system
processing this DSPL dataset must already know the
imported dataset.
Implementation note: The Google dataset importer
ignores the location attribute. Any imported dataset
must be known by the Google importer beforehand.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
|
要素: dspl / info
名前空間 |
http://schemas.google.com/dspl/2010 |
アノテーション |
データセットに関する一般的な情報。 |
図 |
|
タイプ |
情報 |
プロパティ |
|
モデル |
name、description{0,1}、url{0,1} |
Children |
description、name、url |
インスタンス |
<info>
<name>{1,1}</name>
<description>{0,1}</description>
<url>{0,1}</url>
</info>
|
ソース |
<xs:element name="info" type="Info" minOccurs="1">
<xs:annotation>
<xs:documentation>General information about the dataset.</xs:documentation>
</xs:annotation>
</xs:element>
|
要素: dspl / プロバイダ
名前空間 |
http://schemas.google.com/dspl/2010 |
アノテーション |
データセット プロバイダに関する一般的な情報。 |
図 |
|
タイプ |
情報 |
プロパティ |
|
モデル |
name、description{0,1}、url{0,1} |
Children |
description、name、url |
インスタンス |
<provider>
<name>{1,1}</name>
<description>{0,1}</description>
<url>{0,1}</url>
</provider>
|
ソース |
<xs:element name="provider" type="Info">
<xs:annotation>
<xs:documentation>General information about the dataset provider.</xs:documentation>
</xs:annotation>
</xs:element>
|
要素: dspl / 属性
名前空間 |
http://schemas.google.com/dspl/2010 |
アノテーション |
データセットに関連付けられている属性。 |
図 |
|
タイプ |
属性 |
プロパティ |
content: |
複雑 |
minOccurs: |
0 |
maxOccurs: |
制限なし |
|
モデル |
info{0,1}、type{0,1}、(value* | conceptValue{0,1}) |
Children |
conceptValue、info、type、value |
インスタンス |
<attribute concept="" id="">
<info>{0,1}</info>
<type format="" ref="">{0,1}</type>
</attribute>
|
属性 |
QName |
タイプ |
固定 |
Default |
用途 |
Annotation |
コンセプト |
xs:QName |
|
|
省略可 |
属性の値に対応するコンセプトへの参照。属性がタイプを指定する場合、その型は参照されるコンセプトの型と一致する必要があります。外部コンセプトへの参照は、「接頭辞:other_concept_id」の形式にする必要があります。「接頭辞」は、外部データセットの名前空間に使用される接頭辞です(XML 名前空間を参照)。 |
id |
ローカル ID |
|
|
省略可 |
コンセプト属性の ID。この識別子は、(属性とプロパティ全体で)コンセプト内で一意である必要があります。コンセプト属性が指定されている場合、この ID を省略できます。その場合、ID は値が参照されるコンセプトのローカル名で暗黙的に作成されます。たとえば、<attribute
concept="unit:currency;" は <attribute id="currency"
concept="unit:currency"/> と同等です |
|
ソース |
<xs:element name="attribute" type="Attribute" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Attribute associated with the dataset.</xs:documentation>
</xs:annotation>
</xs:element>
|
要素: dspl / トピック
名前空間 |
http://schemas.google.com/dspl/2010 |
アノテーション |
データセットの内容を編成するために使用するトピックの階層。トピックの順番は意味のあるものであり、トピックを表示するビジュアリゼーションで尊重する必要があります。 |
図 |
|
プロパティ |
|
モデル |
トピック+ |
Children |
トピック |
インスタンス |
<topics>
<topic id="" parentTopic="">{1,unbounded}</topic>
</topics>
|
ソース |
<xs:element name="topics" minOccurs="0">
<xs:annotation>
<xs:documentation>A hierarchy of topics used to organize the contents of
the dataset. The order in which topics are given is
meaningful and should be respected by visualizations
that displays these topics.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="topic" type="Topic" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
|
名前空間 |
http://schemas.google.com/dspl/2010 |
図 |
|
タイプ |
トピック |
プロパティ |
content: |
複雑 |
maxOccurs: |
制限なし |
|
モデル |
情報、トピック* |
Children |
情報、トピック |
インスタンス |
<topic id="" parentTopic="">
<info>{1,1}</info>
<topic id="" parentTopic="">{0,unbounded}</topic>
</topic>
|
属性 |
QName |
タイプ |
固定 |
Default |
用途 |
Annotation |
id |
ID |
|
|
required |
データセット内のトピックの一意の識別子。 |
親トピック |
xs:QName |
|
|
省略可 |
このトピックの親トピックの ID(ある場合)。
parentTopic は、他のトピック内にインライン化されたトピックには指定できません。 |
|
ソース |
<xs:element name="topic" type="Topic" maxOccurs="unbounded"/>
|
要素: dspl / コンセプト
名前空間 |
http://schemas.google.com/dspl/2010 |
アノテーション |
このデータセットで定義されているコンセプトのリスト。 |
図 |
|
プロパティ |
|
モデル |
concept+ |
Children |
コンセプト |
インスタンス |
<concepts>
<concept extends="" id="">{1,unbounded}</concept>
</concepts>
|
ソース |
<xs:element name="concepts" minOccurs="0">
<xs:annotation>
<xs:documentation>A list of concepts defined in this dataset.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="concept" type="Concept" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
|
名前空間 |
http://schemas.google.com/dspl/2010 |
図 |
|
タイプ |
コンセプト |
プロパティ |
content: |
複雑 |
maxOccurs: |
制限なし |
|
モデル |
info、topic*、type{0,1}、attribute*、property*、defaultValue{0,1}、table{0,1} |
Children |
attribute、defaultValue、info、property、table、topic、type |
インスタンス |
<concept extends="" id="">
<info>{1,1}</info>
<topic ref="">{0,unbounded}</topic>
<type ref="">{0,1}</type>
<attribute concept="" id="">{0,unbounded}</attribute>
<property concept="" id="" isMapping="false" isParent="false">{0,unbounded}</property>
<defaultValue>{0,1}</defaultValue>
<table ref="">{0,1}</table>
</concept>
|
属性 |
QName |
タイプ |
固定 |
Default |
用途 |
Annotation |
拡張 |
xs:QName |
|
|
省略可 |
このコンセプトが拡張するコンセプトの一意の識別子。参照されるコンセプトは、同じデータセットで定義することも、別のデータセット(別のデータセット)で定義することもできます。外部コンセプトへの参照は、「接頭辞:other_concept_id」の形式にする必要があります。「接頭辞」は、外部データセットの名前空間に使用される接頭辞です(XML 名前空間を参照)。 |
id |
ID |
|
|
required |
コンセプトの一意の識別子。データセット内でグローバルに一意である必要があります。 |
|
ソース |
<xs:element name="concept" type="Concept" maxOccurs="unbounded"/>
|
要素: dspl / スライス
名前空間 |
http://schemas.google.com/dspl/2010 |
アノテーション |
このデータセットで定義されているスライスのリスト。 |
図 |
|
プロパティ |
|
モデル |
slice+ |
Children |
slice |
インスタンス |
<slices>
<slice id="">{1,unbounded}</slice>
</slices>
|
ソース |
<xs:element name="slices" minOccurs="0">
<xs:annotation>
<xs:documentation>A list of slices defined in this dataset.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="slice" type="Slice" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
|
名前空間 |
http://schemas.google.com/dspl/2010 |
図 |
|
タイプ |
スライス |
プロパティ |
content: |
複雑 |
maxOccurs: |
制限なし |
|
モデル |
info{0,1}、dimension+、metric+、table |
Children |
dimension、info、metric、table |
インスタンス |
<slice id="">
<info>{0,1}</info>
<dimension concept="">{1,unbounded}</dimension>
<metric concept="">{1,unbounded}</metric>
<table ref="">{1,1}</table>
</slice>
|
属性 |
QName |
タイプ |
固定 |
Default |
用途 |
Annotation |
id |
ID |
|
|
required |
スライスの一意の識別子。 |
|
ソース |
<xs:element name="slice" type="Slice" maxOccurs="unbounded"/>
|
要素: dspl / テーブル
名前空間 |
http://schemas.google.com/dspl/2010 |
アノテーション |
このデータセットで定義されているテーブルのリスト。 |
図 |
|
プロパティ |
|
モデル |
テーブル+ |
Children |
テーブル |
インスタンス |
<tables>
<table id="">{1,unbounded}</table>
</tables>
|
ソース |
<xs:element name="tables" minOccurs="0">
<xs:annotation>
<xs:documentation>A list of tables defined in this dataset.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="table" type="Table" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
|
名前空間 |
http://schemas.google.com/dspl/2010 |
図 |
|
タイプ |
テーブル |
プロパティ |
content: |
複雑 |
maxOccurs: |
制限なし |
|
モデル |
info{0,1}、column+、data{0,1} |
Children |
列、データ、情報 |
インスタンス |
<table id="">
<info>{0,1}</info>
<column format="" id="" type="">{1,unbounded}</column>
<data>{0,1}</data>
</table>
|
属性 |
QName |
タイプ |
固定 |
Default |
用途 |
Annotation |
id |
ID |
|
|
required |
データセット内のテーブルの一意の識別子。 |
|
ソース |
<xs:element name="table" type="Table" maxOccurs="unbounded"/>
|
名前空間 |
名前空間がありません |
アノテーション |
インポートされたデータセットの名前空間。URI として指定します。コンテンツを参照する前に、この名前空間に接頭辞を関連付ける必要があります。XML での名前空間と接頭辞の使用法については、[XML 名前空間] をご覧ください。 |
プロパティ |
|
使用アカウント |
|
ソース |
<xs:attribute name="namespace" use="required">
<xs:annotation>
<xs:documentation>The namespace of the imported dataset, specified as
a URI. A prefix must be associated with this
namespace before its contents can be referenced. See
[XML Namespaces] for more information about the use
of namespaces and prefixes in XML.</xs:documentation>
</xs:annotation>
</xs:attribute>
|
名前空間 |
名前空間がありません |
アノテーション |
インポートされたデータセットの定義を確認できるロケーション(省略可)。URL として指定します。ロケーションを省略する場合、この DSPL データセットを処理するシステムでは、インポートされたデータセットがあらかじめ認識されている必要があります。実装に関する注記: Google データセット インポータでは、location 属性は無視されます。インポートされたデータセットは、事前に Google のインポータで認識されている必要があります。 |
プロパティ |
|
使用アカウント |
|
ソース |
<xs:attribute name="location" use="optional">
<xs:annotation>
<xs:documentation>An optional location where the definition of the
imported dataset can be found, specified as a
URL. If the location is omitted, the system
processing this DSPL dataset must already know the
imported dataset.
Implementation note: The Google dataset importer
ignores the location attribute. Any imported dataset
must be known by the Google importer beforehand.</xs:documentation>
</xs:annotation>
</xs:attribute>
|
属性: dspl / @targetNamespace
名前空間 |
名前空間がありません |
アノテーション |
各データセットはターゲットの Namespace を提供する場合があります。ターゲットの名前空間は、データセットを一意に識別する URI です。XML での名前空間の使用の詳細については、http://www.w3.org/TR/REC-xml-names/ をご覧ください。targetNamespace が指定されていない場合は、データセットのインポート時に名前空間が生成されます。 |
タイプ |
xs:任意 URI |
プロパティ |
|
使用アカウント |
|
ソース |
<xs:attribute name="targetNamespace" type="xs:anyURI" use="optional">
<xs:annotation>
<xs:documentation>Each dataset may provide a target namespace. The
target namespace is a URI that uniquely identifies the
dataset. For more information about the use of namespaces in XML,
see:
http://www.w3.org/TR/REC-xml-names/
If no targetNamespace is provided, then a namespace will be
generated when the dataset is imported.</xs:documentation>
</xs:annotation>
</xs:attribute>
|
oXygen XML Editor を使用して作成します。