Halaman ini dan subhalaman tertautnya mendokumentasikan skema XML DSPL.
Materi ini ditujukan bagi pengguna tingkat lanjut yang ingin memahami
detail tingkat rendah bahasa; bagi sebagian besar pengguna, konten
dalam
Panduan Developer sudah memadai untuk membuat dan mengedit
set data DSPL.
Skema XML lengkap dapat didownload dalam format XSD
di
situs kode DSPL.
Elemen: dspl
Namespace |
http://schemas.google.com/dspl/2010 |
Anotasi |
Spesifikasi DSPL mendeskripsikan set data. Set data diidentifikasi oleh namespace-nya. Set data terdiri dari elemen berikut: - Tabel: Data untuk konsep dan slice yang ditentukan dalam set data - Konsep: Definisi dan struktur yang ditentukan pengguna yang digunakan dalam set data - Slice: Kombinasi dimensi dan metrik yang ada dalam set data - Topik: Label hierarki yang digunakan untuk mengatur konsep set data |
Diagram |
|
Properti |
|
Model |
import* , info , provider ,
atribut* , topik{0,1} , konsep{0,1} , irisan{0,1} , tabel{0,1} |
Turunan |
attribute, konsep, impor,
info, penyedia, irisan,
tabel, topik |
Instance |
<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>
|
Atribut |
NamaQ |
Jenis |
Fixed |
Default |
Penggunaan |
Annotation |
TargetNamespace |
xs.URI |
|
|
opsional |
Setiap set data dapat menyediakan namespace target. Namespace target adalah URI yang mengidentifikasi set data secara unik. Untuk
informasi selengkapnya tentang penggunaan namespace di XML, lihat:
http://www.w3.org/TR/REC-xml-names/ Jika tidak ada targetNamespace
yang diberikan, namespace akan dihasilkan saat set data
diimpor. |
|
Sumber |
<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>
|
Elemen: dspl / impor
Namespace |
http://schemas.google.com/dspl/2010 |
Anotasi |
Perintah impor untuk set data eksternal -- dibuat sesuai dengan perintah impor Skema XML. Untuk menggunakan elemen yang ditetapkan dalam set data eksternal, set data eksternal harus direferensikan menggunakan perintah impor. |
Diagram |
|
Properti |
konten: |
kompleks |
Terjadi: |
0 |
maxTerjadi: |
tidak terikat |
|
Atribut |
NamaQ |
Jenis |
Fixed |
Default |
Penggunaan |
Annotation |
lokasi |
|
|
|
opsional |
Lokasi opsional tempat definisi set data
yang diimpor dapat ditemukan, yang ditetapkan sebagai URL. Jika lokasi dihilangkan, sistem yang memproses set data DSPL ini harus sudah mengetahui set data yang diimpor. Catatan penerapan: Pengimpor set data Google
mengabaikan atribut lokasi. Setiap set data yang diimpor harus diketahui oleh pengimpor Google sebelumnya. |
namespace |
|
|
|
wajib |
Namespace dari set data yang diimpor, yang ditetapkan sebagai URI. Awalan harus dikaitkan dengan namespace ini sebelum
kontennya dapat dirujuk. Lihat [ Namespace XML] untuk mengetahui informasi selengkapnya tentang penggunaan namespace dan awalan dalam XML. |
|
Sumber |
<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>
|
Elemen: dspl / info
Namespace |
http://schemas.google.com/dspl/2010 |
Anotasi |
Informasi umum tentang set data. |
Diagram |
|
Jenis |
Info |
Properti |
konten: |
kompleks |
Terjadi: |
1 |
|
Model |
name , description{0,1} , url{0,1} |
Turunan |
description, name, url |
Instance |
<info>
<name>{1,1}</name>
<description>{0,1}</description>
<url>{0,1}</url>
</info>
|
Sumber |
<xs:element name="info" type="Info" minOccurs="1">
<xs:annotation>
<xs:documentation>General information about the dataset.</xs:documentation>
</xs:annotation>
</xs:element>
|
Elemen: dspl / provider
Namespace |
http://schemas.google.com/dspl/2010 |
Anotasi |
Informasi umum tentang penyedia set data. |
Diagram |
|
Jenis |
Info |
Properti |
|
Model |
name , description{0,1} , url{0,1} |
Turunan |
description, name, url |
Instance |
<provider>
<name>{1,1}</name>
<description>{0,1}</description>
<url>{0,1}</url>
</provider>
|
Sumber |
<xs:element name="provider" type="Info">
<xs:annotation>
<xs:documentation>General information about the dataset provider.</xs:documentation>
</xs:annotation>
</xs:element>
|
Elemen: dspl / atribut
Namespace |
http://schemas.google.com/dspl/2010 |
Anotasi |
Atribut yang terkait dengan set data. |
Diagram |
|
Jenis |
Atribut |
Properti |
konten: |
kompleks |
Terjadi: |
0 |
maxTerjadi: |
tidak terikat |
|
Model |
info{0,1} , jenis{0,1} , (nilai*
| konsepValue{0,1}) |
Turunan |
konsepNilai, info, jenis, nilai |
Instance |
<attribute concept="" id="">
<info>{0,1}</info>
<type format="" ref="">{0,1}</type>
</attribute>
|
Atribut |
NamaQ |
Jenis |
Fixed |
Default |
Penggunaan |
Annotation |
konsep |
xs:NamaQ |
|
|
opsional |
Referensi untuk konsep yang sesuai dengan nilai
atribut. Jika atribut menentukan sebuah jenis, maka jenis tersebut harus cocok dengan jenis konsep yang direferensikan. Referensi ke
konsep eksternal harus dalam bentuk
"prefix:other_konsep_id", dengan "awalan" adalah
awalan yang digunakan untuk namespace set data eksternal (lihat namespace
XML). |
id |
LocalId |
|
|
opsional |
ID atribut konsep. ID ini harus unik dalam konsep (di seluruh atribut dan properti). ID
dapat dihilangkan jika atribut konsep ditentukan. Dalam hal ini, ID dibuat secara implisit dengan nilai nama lokal dari konsep yang direferensikan. Misalnya, <attribute
konsep="unit:currency"/> setara dengan
<attribute id="currency"
="="="unit:currency"/> |
|
Sumber |
<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>
|
Elemen: dspl / topics
Namespace |
http://schemas.google.com/dspl/2010 |
Anotasi |
Hierarki topik yang digunakan untuk mengatur konten
set data. Urutan pemberian topik berarti dan harus dipatuhi oleh visualisasi yang menampilkan topik ini. |
Diagram |
|
Properti |
konten: |
kompleks |
Terjadi: |
0 |
|
Model |
topik+ |
Turunan |
topik |
Instance |
<topics>
<topic id="" parentTopic="">{1,unbounded}</topic>
</topics>
|
Sumber |
<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>
|
Namespace |
http://schemas.google.com/dspl/2010 |
Diagram |
|
Jenis |
Topik |
Properti |
konten: |
kompleks |
maxTerjadi: |
tidak terikat |
|
Model |
info , topic* |
Turunan |
info, topik |
Instance |
<topic id="" parentTopic="">
<info>{1,1}</info>
<topic id="" parentTopic="">{0,unbounded}</topic>
</topic>
|
Atribut |
NamaQ |
Jenis |
Fixed |
Default |
Penggunaan |
Annotation |
id |
ID |
|
|
wajib |
ID unik topik dalam set data. |
topikorang tua |
xs:NamaQ |
|
|
opsional |
ID topik induk dari topik ini, jika ada.
parentTopic tidak dapat ditentukan untuk topik yang disisipkan di dalam
topik lain. |
|
Sumber |
<xs:element name="topic" type="Topic" maxOccurs="unbounded"/>
|
Elemen: dspl / konsep
Namespace |
http://schemas.google.com/dspl/2010 |
Anotasi |
Daftar konsep yang ditentukan dalam set data ini. |
Diagram |
|
Properti |
konten: |
kompleks |
Terjadi: |
0 |
|
Model |
konsep+ |
Turunan |
konsep |
Instance |
<concepts>
<concept extends="" id="">{1,unbounded}</concept>
</concepts>
|
Sumber |
<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>
|
Namespace |
http://schemas.google.com/dspl/2010 |
Diagram |
|
Jenis |
Konsep |
Properti |
konten: |
kompleks |
maxTerjadi: |
tidak terikat |
|
Model |
info , topic* , type{0,1} ,
attribute* , property* , defaultValue{0,1} , tabel{0,1} |
Turunan |
attribute, defaultValue, info,
property, table, topic,
jenis |
Instance |
<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>
|
Atribut |
NamaQ |
Jenis |
Fixed |
Default |
Penggunaan |
Annotation |
diperluas |
xs:NamaQ |
|
|
opsional |
ID unik dari konsep yang diperluas oleh
konsep ini. Konsep yang direferensikan dapat ditentukan dalam set data yang sama atau secara eksternal, yaitu di set data lain. Referensi ke konsep
eksternal harus berupa "prefix:other_konsep_id",
dengan "prefiks" adalah awalan yang digunakan untuk namespace
set data eksternal (lihat namespace XML). |
id |
ID |
|
|
wajib |
ID unik konsep, yang harus unik secara global dalam set data. |
|
Sumber |
<xs:element name="concept" type="Concept" maxOccurs="unbounded"/>
|
Elemen: dspl / slice
Namespace |
http://schemas.google.com/dspl/2010 |
Anotasi |
Daftar slice yang ditentukan dalam set data ini. |
Diagram |
|
Properti |
konten: |
kompleks |
Terjadi: |
0 |
|
Model |
bagian |
Turunan |
slice |
Instance |
<slices>
<slice id="">{1,unbounded}</slice>
</slices>
|
Sumber |
<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>
|
Namespace |
http://schemas.google.com/dspl/2010 |
Diagram |
|
Jenis |
Potongan |
Properti |
konten: |
kompleks |
maxTerjadi: |
tidak terikat |
|
Model |
info{0,1}, dimensi+, metrik+, tabel |
Turunan |
dimension, info, metric,
tabel |
Instance |
<slice id="">
<info>{0,1}</info>
<dimension concept="">{1,unbounded}</dimension>
<metric concept="">{1,unbounded}</metric>
<table ref="">{1,1}</table>
</slice>
|
Atribut |
NamaQ |
Jenis |
Fixed |
Default |
Penggunaan |
Annotation |
id |
ID |
|
|
wajib |
ID unik dari bagian tersebut. |
|
Sumber |
<xs:element name="slice" type="Slice" maxOccurs="unbounded"/>
|
Elemen: dspl / tabel
Namespace |
http://schemas.google.com/dspl/2010 |
Anotasi |
Daftar tabel yang ditentukan dalam set data ini. |
Diagram |
|
Properti |
konten: |
kompleks |
Terjadi: |
0 |
|
Model |
tabel+ |
Turunan |
tabel |
Instance |
<tables>
<table id="">{1,unbounded}</table>
</tables>
|
Sumber |
<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>
|
Namespace |
http://schemas.google.com/dspl/2010 |
Diagram |
|
Jenis |
Tabel |
Properti |
konten: |
kompleks |
maxTerjadi: |
tidak terikat |
|
Model |
info{0,1}, kolom+, data{0,1} |
Turunan |
kolom, data, info |
Instance |
<table id="">
<info>{0,1}</info>
<column format="" id="" type="">{1,unbounded}</column>
<data>{0,1}</data>
</table>
|
Atribut |
NamaQ |
Jenis |
Fixed |
Default |
Penggunaan |
Annotation |
id |
ID |
|
|
wajib |
ID unik tabel dalam set data. |
|
Sumber |
<xs:element name="table" type="Table" maxOccurs="unbounded"/>
|
Atribut: dspl / import / @namespace
Namespace |
Tidak ada namespace |
Anotasi |
Namespace set data yang diimpor, ditetapkan sebagai URI. Awalan
harus dikaitkan dengan namespace ini sebelum kontennya dapat
direferensikan. Lihat [namespace XML] untuk mengetahui informasi selengkapnya tentang penggunaan
namespace dan awalan di XML. |
Properti |
|
Digunakan oleh |
|
Sumber |
<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>
|
Atribut: dspl / import / @location
Namespace |
Tidak ada namespace |
Anotasi |
Lokasi opsional tempat definisi set data
yang diimpor dapat ditemukan, yang ditetapkan sebagai URL. Jika lokasi dihilangkan, sistem yang memproses set data DSPL ini harus sudah mengetahui set data
yang diimpor. Catatan penerapan: Pengimpor set data Google mengabaikan
atribut lokasi. Setiap set data yang diimpor harus diketahui oleh pengimpor Google sebelumnya. |
Properti |
|
Digunakan oleh |
|
Sumber |
<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>
|
Atribut: dspl / @targetNamespace
Namespace |
Tidak ada namespace |
Anotasi |
Setiap set data dapat menyediakan namespace target. Namespace target adalah URI yang mengidentifikasi set data secara unik. Untuk
informasi selengkapnya tentang penggunaan namespace dalam XML, lihat:
http://www.w3.org/TR/REC-xml-names/ Jika tidak ada targetNamespace yang disediakan,
namespace akan dibuat saat set data
diimpor. |
Jenis |
xs.URI |
Properti |
|
Digunakan oleh |
|
Sumber |
<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>
|
Dibuat menggunakan
Editor XML oXygen.