DSPL-Schema

Auf dieser Seite und den verknüpften Unterseiten wird das XML-Schema von DSPL dokumentiert. Dieses Material ist für fortgeschrittene Nutzer gedacht, die die allgemeinen Informationen der Sprache verstehen möchten. Für die meisten Nutzer sollte der Inhalt im Entwicklerleitfaden zum Erstellen und Bearbeiten von DSPL-Datasets ausreichen.

Das vollständige XML-Schema steht auf der DSPL-Code-Website zum Download im XSD-Format zur Verfügung.

Element: dspl

Namespace http://schemas.google.com/dspl/2010
Annotationen In einer DSPL-Spezifikation wird ein Dataset beschrieben. Ein Dataset wird durch seinen Namespace identifiziert. Ein Dataset besteht aus den folgenden Elementen: - Tabellen: Daten zu den im Dataset definierten Konzepten und Segmenten - Konzepte: Im Dataset verwendete Definitionen und Strukturen - Segmente: im Dataset enthaltene Dimensionen und Messwerte – Hierarchische Labels zum Organisieren der Dataset-Konzepte
Diagramm Diagramm dspl9.tmp#id103 dspl9.tmp#id2 dspl9.tmp#id5 dspl9.tmp#id16 dspl9.tmp#id17 dspl9.tmp#id27 dspl9.tmp#id35 dspl9.tmp#id68 dspl9.tmp#id86
Attribute
content: Komplex
Modell import*, info, provider, attribute*, topics{0,1}, konzepte{0,1}, slices{0,1}, tables{0,1}
Kinder Attribut, Konzepte, Import, Info, Anbieter, Segmente, Tabellen, Themen
Instanz
<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>
Attribute
QName Typ Fixed Standard Verwenden Anmerkung
Ziel-Namespace xs:anyURI optional Jedes Dataset kann einen Ziel-Namespace enthalten. Der Ziel-Namespace ist ein URI, der das Dataset eindeutig identifiziert. Weitere Informationen zur Verwendung von Namespaces in XML finden Sie unter: http://www.w3.org/TR/REC-xml-names/ Wenn kein Ziel-Namespace angegeben ist, wird beim Importieren des Datasets ein Namespace generiert.
Quelle
<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>

Element: dspl / import

Namespace http://schemas.google.com/dspl/2010
Annotationen Importanweisung für externe Datasets – modelliert nach der Importanweisung für XML-Schemas. Damit Sie Elemente verwenden können, die in einem externen Dataset definiert sind, muss auf das externe Dataset mit einer Importanweisung verwiesen werden.
Diagramm Diagramm dspl9.tmp#id3 dspl9.tmp#id4
Attribute
content: Komplex
minOccurs: 0
MaxOccurs: Unbegrenzt
Attribute
QName Typ Fixed Standard Verwenden Anmerkung
den Standort optional Ein optionaler Speicherort für die Definition des importierten Datasets, angegeben als URL. Wenn der Standort weggelassen wird, muss das System, das dieses DSPL-Dataset verarbeitet, das importierte Dataset bereits kennen. Implementierungshinweis: Das Google-Dataset-Importeur ignoriert das Standortattribut. Alle importierten Datasets müssen dem Google-Importeur bekannt sein.
namespace erforderlich Der Namespace des importierten Datasets, angegeben als URI. Mit diesem Namespace muss ein Präfix verknüpft werden, bevor auf seinen Inhalt verwiesen werden kann. Weitere Informationen zur Verwendung von Namespaces und Präfixen in XML finden Sie unter [XML-Namespaces].
Quelle
<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>

Element: dspl / info

Namespace http://schemas.google.com/dspl/2010
Annotationen Allgemeine Informationen zum Dataset.
Diagramm Diagramm dspl4.tmp#id7 dspl4.tmp#id14 dspl4.tmp#id15 dspl4.tmp#id6
Typ Info
Attribute
content: Komplex
minOccurs: 1
Modell name, description{0,1}, url{0,1}
Kinder Beschreibung, Name, URL
Instanz
<info>
  <name>{1,1}</name>
  <description>{0,1}</description>
  <url>{0,1}</url>
</info>
Quelle
<xs:element name="info" type="Info" minOccurs="1">
  <xs:annotation>
    <xs:documentation>General information about the dataset.</xs:documentation>
  </xs:annotation>
</xs:element>

Element: dspl/Anbieter

Namespace http://schemas.google.com/dspl/2010
Annotationen Allgemeine Informationen zum Dataset-Anbieter.
Diagramm Diagramm dspl4.tmp#id7 dspl4.tmp#id14 dspl4.tmp#id15 dspl4.tmp#id6
Typ Info
Attribute
content: Komplex
Modell name , description{0,1} , url{0,1}
Kinder Beschreibung, Name, URL
Instanz
<provider>
  <name>{1,1}</name>
  <description>{0,1}</description>
  <url>{0,1}</url>
</provider>
Quelle
<xs:element name="provider" type="Info">
  <xs:annotation>
    <xs:documentation>General information about the dataset provider.</xs:documentation>
  </xs:annotation>
</xs:element>

Element: dspl / Attribut

Namespace http://schemas.google.com/dspl/2010
Annotationen Mit dem Dataset verknüpftes Attribut.
Diagramm Diagramm dspl14.tmp#id24 dspl14.tmp#id26 dspl14.tmp#id19 dspl14.tmp#id20 dspl0.tmp#id10 dspl0.tmp#id12 dspl0.tmp#id9 dspl14.tmp#id18
Typ Attribut
Attribute
content: Komplex
minOccurs: 0
MaxOccurs: Unbegrenzt
Modell info{0,1} , Typ{0,1} , (Wert* | conceptValue{0,1})
Kinder conceptValue, info, type, value
Instanz
<attribute concept="" id="">
  <info>{0,1}</info>
  <type format="" ref="">{0,1}</type>
</attribute>
Attribute
QName Typ Fixed Standard Verwenden Anmerkung
Konzept xs:QName optional Verweis auf ein Konzept, das den Werten des Attributs entspricht. Wenn das Attribut einen Typ angibt, muss der Typ dem Typ des referenzierten Konzepts entsprechen. Ein Verweis auf ein externes Konzept muss die Form „prefix:other_concept_id“ haben, wobei „prefix“ das Präfix ist, das für den Namespace des externen Datasets verwendet wird (siehe XML-Namespaces).
id LocalId optional Die ID des Konzeptattributs. Diese Kennung muss innerhalb des Konzepts (über Attribute und Eigenschaften hinweg) eindeutig sein. Die ID kann weggelassen werden, wenn das Konzeptattribut angegeben ist. In diesem Fall wird eine ID implizit mit dem lokalen Namen des referenzierten Konzepts erstellt. Beispiel: <attribute concept="unit:currency"/> entspricht <attribute id="currency" concept="unit:currency"/>
Quelle
<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>

Element: dspl/topics

Namespace http://schemas.google.com/dspl/2010
Annotationen Eine Hierarchie von Themen, mit denen der Inhalt des Datasets organisiert wird. Die Reihenfolge der Themen ist aussagekräftig und sollte durch Visualisierungen eingehalten werden, in denen diese Themen angezeigt werden.
Diagramm Diagramm dspl9.tmp#id28
Attribute
content: Komplex
minOccurs: 0
Modell + Thema
Kinder thema
Instanz
<topics>
  <topic id="" parentTopic="">{1,unbounded}</topic>
</topics>
Quelle
<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>

Element: dspl / topics / thema

Namespace http://schemas.google.com/dspl/2010
Diagramm Diagramm dspl15.tmp#id32 dspl15.tmp#id34 dspl15.tmp#id30 dspl15.tmp#id31 dspl15.tmp#id29
Typ Thema
Attribute
content: Komplex
MaxOccurs: Unbegrenzt
Modell Info, topic*
Kinder info, thema
Instanz
<topic id="" parentTopic="">
  <info>{1,1}</info>
  <topic id="" parentTopic="">{0,unbounded}</topic>
</topic>
Attribute
QName Typ Fixed Standard Verwenden Anmerkung
id ID erforderlich Die eindeutige ID des Themas im Dataset.
parentThema xs:QName optional Die ID des übergeordneten Themas dieses Themas, falls vorhanden. parentTopic kann nicht für Themen angegeben werden, die innerhalb anderer Themen inline sind.
Quelle
<xs:element name="topic" type="Topic" maxOccurs="unbounded"/>

Element: dspl/Konzepte

Namespace http://schemas.google.com/dspl/2010
Annotationen Eine Liste der in diesem Dataset definierten Konzepte.
Diagramm Diagramm dspl9.tmp#id36
Attribute
content: Komplex
minOccurs: 0
Modell konzept+
Kinder Konzept
Instanz
<concepts>
  <concept extends="" id="">{1,unbounded}</concept>
</concepts>
Quelle
<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>

Element: dspl / konzepte / konzept

Namespace http://schemas.google.com/dspl/2010
Diagramm Diagramm dspl6.tmp#id66 dspl6.tmp#id67 dspl6.tmp#id38 dspl6.tmp#id43 dspl6.tmp#id45 dspl6.tmp#id47 dspl6.tmp#id48 dspl6.tmp#id57 dspl6.tmp#id58 dspl6.tmp#id37
Typ Konzept
Attribute
content: Komplex
MaxOccurs: Unbegrenzt
Modell info, topic*, type{0,1}, attribute*, property*, defaultValue{0,1}, table{0,1}
Kinder Attribut, Standardwert, Info, Attribut, Tabelle, Thema, Typ
Instanz
<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>
Attribute
QName Typ Fixed Standard Verwenden Anmerkung
erweitert xs:QName optional Die eindeutige Kennung eines Konzepts, das von diesem Konzept erweitert wird. Das Konzept, auf das verwiesen wird, kann im selben Dataset oder extern definiert werden, also in einem anderen Dataset. Ein Verweis auf ein externes Konzept muss das Format „prefix:other_concept_id“ haben, wobei „prefix“ das Präfix ist, das für den Namespace des externen Datasets verwendet wird (siehe XML-Namespaces).
id ID erforderlich Die eindeutige Kennung des Konzepts, die innerhalb des Datasets global eindeutig sein muss.
Quelle
<xs:element name="concept" type="Concept" maxOccurs="unbounded"/>

Element: dspl / Slices

Namespace http://schemas.google.com/dspl/2010
Annotationen Eine Liste der in diesem Dataset definierten Segmente.
Diagramm Diagramm dspl9.tmp#id69
Attribute
content: Komplex
minOccurs: 0
Modell Slice+
Kinder Slice
Instanz
<slices>
  <slice id="">{1,unbounded}</slice>
</slices>
Quelle
<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>

Element: dspl / slices / slice

Namespace http://schemas.google.com/dspl/2010
Diagramm Diagramm dspl2.tmp#id85 dspl2.tmp#id71 dspl2.tmp#id72 dspl2.tmp#id75 dspl2.tmp#id76 dspl2.tmp#id70
Typ Slicen
Attribute
content: Komplex
MaxOccurs: Unbegrenzt
Modell info{0,1}, Dimension+, Messwert+, Tabelle
Kinder dimension, info, metric, table
Instanz
<slice id="">
  <info>{0,1}</info>
  <dimension concept="">{1,unbounded}</dimension>
  <metric concept="">{1,unbounded}</metric>
  <table ref="">{1,1}</table>
</slice>
Attribute
QName Typ Fixed Standard Verwenden Anmerkung
id ID erforderlich Die eindeutige Kennung des Segments.
Quelle
<xs:element name="slice" type="Slice" maxOccurs="unbounded"/>

Element: dspl / Tabellen

Namespace http://schemas.google.com/dspl/2010
Annotationen Eine Liste der in diesem Dataset definierten Tabellen.
Diagramm Diagramm dspl9.tmp#id87
Attribute
content: Komplex
minOccurs: 0
Modell Tabelle +
Kinder Tabelle
Instanz
<tables>
  <table id="">{1,unbounded}</table>
</tables>
Quelle
<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>

Element: dspl/tables/table

Namespace http://schemas.google.com/dspl/2010
Diagramm Diagramm dspl10.tmp#id102 dspl10.tmp#id89 dspl10.tmp#id90 dspl10.tmp#id97 dspl10.tmp#id88
Typ Tabelle
Attribute
content: Komplex
MaxOccurs: Unbegrenzt
Modell info{0,1}, Spalte+, Daten{0,1}
Kinder Spalte, Daten, Informationen
Instanz
<table id="">
  <info>{0,1}</info>
  <column format="" id="" type="">{1,unbounded}</column>
  <data>{0,1}</data>
</table>
Attribute
QName Typ Fixed Standard Verwenden Anmerkung
id ID erforderlich Die eindeutige Kennung der Tabelle im Dataset.
Quelle
<xs:element name="table" type="Table" maxOccurs="unbounded"/>

Attribut: dspl/import/ @namespace

Namespace Kein Namespace
Annotationen Der Namespace des importierten Datasets, angegeben als URI. Ein Präfix muss diesem Namespace zugeordnet werden, bevor auf seinen Inhalt verwiesen werden kann. Weitere Informationen zur Verwendung von Namespaces und Präfixen in XML finden Sie unter [XML-Namespaces].
Attribute
verwenden Sie zum Beispiel: erforderlich
Verwendet von
Element dspl/import
Quelle
<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>

Attribut: dspl/import/ @location

Namespace Kein Namespace
Annotationen Ein optionaler Speicherort für die Definition des importierten Datasets, angegeben als URL. Wenn der Standort weggelassen wird, muss das System, das dieses DSPL-Dataset verarbeitet, das importierte Dataset bereits kennen. Implementierungshinweis: Das Google-Dataset-Importeur ignoriert das Standortattribut. Importierte Datasets müssen dem Google-Importeur bekannt sein.
Attribute
verwenden Sie zum Beispiel: optional
Verwendet von
Element dspl/import
Quelle
<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>

Attribut: dspl / @targetNamespace

Namespace Kein Namespace
Annotationen Jedes Dataset kann einen Ziel-Namespace enthalten. Der Ziel-Namespace ist ein URI, der das Dataset eindeutig identifiziert. Weitere Informationen zur Verwendung von Namespaces in XML finden Sie unter: http://www.w3.org/TR/REC-xml-names/ Wenn kein Ziel-Namespace angegeben ist, wird beim Importieren des Datasets ein Namespace generiert.
Typ xs:anyURI
Attribute
verwenden Sie zum Beispiel: optional
Verwendet von
Element dspl
Quelle
<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>

Erstellt mit dem oXygen-XML-Editor.