توثق هذه الصفحة والصفحات الفرعية المرتبطة بها مخطط XML DSPL.
هذه المادة مخصّصة للمستخدمين المتقدّمين الذين يريدون فهم تفاصيل اللغة المنخفضة المستوى. وبالنسبة إلى معظم المستخدمين، يجب أن يكون المحتوى في دليل المطوِّر كافيًا لإنشاء مجموعات بيانات DSPL وتعديلها.
يتوفّر مخطّط XML الكامل للتنزيل بتنسيق XSD
على موقع رمز DSPL الإلكتروني.
العنصر: dspl
مساحة الاسم |
http://schemas.google.com/dspl/2010 |
التعليقات التوضيحية |
تصف مواصفات DSPL مجموعة بيانات. يتم تحديد مجموعة البيانات
من خلال مساحة الاسم. تتألف مجموعة البيانات من العناصر التالية: - الجداول: بيانات للمفاهيم والشرائح المحددة في مجموعة البيانات. |
رسم بياني |
|
أماكن إقامة |
|
الطراز |
import* ، info ، provider ،
attribute* ، topics{0,1} ، مفاهيم{0,1} ، شرائح{0,1} ، جداول{0,1} |
أطفال |
attribute ، concepts, import,
info, provider, slices,
tables, topics |
مثال |
<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>
|
السمات |
اسم Q |
النوع |
ثابت |
تلقائي |
استخدام |
التعليق التوضيحي |
targetNamespace |
xs:anyURI |
|
|
إجراء اختياري |
قد تقدّم كل مجموعة بيانات مساحة اسم مستهدفة. مساحة الاسم الهدف هي معرّف موارد منتظم (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 / استيراد
مساحة الاسم |
http://schemas.google.com/dspl/2010 |
التعليقات التوضيحية |
توجيه الاستيراد لمجموعات البيانات الخارجية -- تم تصميمه استنادًا إلى أمر استيراد مخطط XML. لاستخدام العناصر المحدّدة في مجموعة بيانات خارجية، يجب الإشارة إلى مجموعة البيانات الخارجية باستخدام توجيه الاستيراد. |
رسم بياني |
|
أماكن إقامة |
المحتوى: |
مُعَقَّد |
minOccurs: |
0 |
maxOccurs: |
بلا حدود |
|
السمات |
اسم Q |
النوع |
ثابت |
تلقائي |
استخدام |
التعليق التوضيحي |
location (الموقع الجغرافي) |
|
|
|
إجراء اختياري |
موقع اختياري يمكن العثور من خلاله على تعريف مجموعة البيانات التي تم استيرادها، على أن يكون محددًا كعنوان URL. وإذا تم حذف الموقع الجغرافي، يجب أن يعرف النظام الذي يعالج مجموعة بيانات DSPL هذه مجموعة البيانات المستوردة. ملاحظة التنفيذ: تتجاهل جهة استيراد
مجموعة بيانات Google سمة الموقع الجغرافي. ويجب أن يكون مستورَد Google
معروفًا لأي مجموعة بيانات مستوردة قبل ذلك. |
مساحة الاسم |
|
|
|
إجراء مطلوب |
مساحة الاسم لمجموعة البيانات التي تم استيرادها، والمحددة كمعرف موارد منتظم (URI). يجب ربط بادئة بمساحة الاسم هذه قبل أن تتمكن من
الإشارة إلى محتواها. يمكنك الاطّلاع على [XML Namespaces] للحصول على المزيد من المعلومات حول استخدام مساحات الأسماء والبادئات في 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 |
التعليقات التوضيحية |
معلومات عامة عن مجموعة البيانات. |
رسم بياني |
|
النوع |
معلومات |
أماكن إقامة |
المحتوى: |
مُعَقَّد |
minOccurs: |
1 |
|
الطراز |
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="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} |
أطفال |
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 |
التعليقات التوضيحية |
السمة المرتبطة بمجموعة البيانات. |
رسم بياني |
|
النوع |
السمة |
أماكن إقامة |
المحتوى: |
مُعَقَّد |
minOccurs: |
0 |
maxOccurs: |
بلا حدود |
|
الطراز |
info{0,1} , type{0,1} , (value*
| conceptValue{0,1}) |
أطفال |
conceptValue، info، type،
value |
مثال |
<attribute concept="" id="">
<info>{0,1}</info>
<type format="" ref="">{0,1}</type>
</attribute>
|
السمات |
اسم Q |
النوع |
ثابت |
تلقائي |
استخدام |
التعليق التوضيحي |
مفهوم |
xs:QName |
|
|
إجراء اختياري |
مرجع لمفهوم يتوافق مع قيم السمة. إذا كانت السمة تحدد نوعًا، يجب أن يتطابق النوع مع نوع المفهوم المشار إليه. يجب أن يكون مرجع مفهوم خارجي على الشكل التالي: "prefix:other_concept_id "، حيث تمثل "prefix" البادئة المستخدمة لمساحة الاسم لمجموعة البيانات الخارجية (راجع مساحات الأسماء بتنسيق XML). |
المعرِّف |
المعرّف المحلي |
|
|
إجراء اختياري |
معرّف سمة المفهوم. ويجب أن يكون هذا المعرّف فريدًا ضمن المفهوم (في السمات والسمات). وقد
يتم حذف المعرّف إذا تم تحديد سمة المفهوم. في هذه
الحالة، يكون المعرّف عبارة عن مدى البساطة التي تم إنشاؤها من خلال إضافة قيمة للاسم المحلي للمفهوم المشار إليه. على سبيل المثال <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 |
التعليقات التوضيحية |
تدرج هرمي للمواضيع المستخدَمة لتنظيم محتويات مجموعة البيانات. والترتيب الذي يتم به تقديم المواضيع مفيد ويجب احترامه من خلال التمثيلات البصرية التي تعرض هذه المواضيع. |
رسم بياني |
|
أماكن إقامة |
المحتوى: |
مُعَقَّد |
minOccurs: |
0 |
|
الطراز |
موضوع+ |
أطفال |
موضوع |
مثال |
<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 |
رسم بياني |
|
النوع |
Topic |
أماكن إقامة |
المحتوى: |
مُعَقَّد |
maxOccurs: |
بلا حدود |
|
الطراز |
info ، topic* |
أطفال |
info، topic |
مثال |
<topic id="" parentTopic="">
<info>{1,1}</info>
<topic id="" parentTopic="">{0,unbounded}</topic>
</topic>
|
السمات |
اسم Q |
النوع |
ثابت |
تلقائي |
استخدام |
التعليق التوضيحي |
المعرِّف |
رقم التعريف |
|
|
إجراء مطلوب |
المعرّف الفريد للموضوع في
مجموعة البيانات. |
parentTopic |
xs:QName |
|
|
إجراء اختياري |
معرّف الموضوع الرئيسي لهذا الموضوع في حال توفّره
لا يمكن تحديد الخاصية parentTopic للمواضيع المضمّنة داخل مواضيع أخرى. |
|
المصدر |
<xs:element name="topic" type="Topic" maxOccurs="unbounded"/>
|
العنصر: dspl / المفاهيم
مساحة الاسم |
http://schemas.google.com/dspl/2010 |
التعليقات التوضيحية |
قائمة بالمفاهيم المحدّدة في مجموعة البيانات هذه. |
رسم بياني |
|
أماكن إقامة |
المحتوى: |
مُعَقَّد |
minOccurs: |
0 |
|
الطراز |
concept+ |
أطفال |
مفهوم |
مثال |
<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 |
رسم بياني |
|
النوع |
المفهوم |
أماكن إقامة |
المحتوى: |
مُعَقَّد |
maxOccurs: |
بلا حدود |
|
الطراز |
info وtopic* وtype{0,1} و
attribute* وproperty* وdefaultValue{0,1} وtable{0,1} |
أطفال |
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>
|
السمات |
اسم Q |
النوع |
ثابت |
تلقائي |
استخدام |
التعليق التوضيحي |
يمتد |
xs:QName |
|
|
إجراء اختياري |
المعرّف الفريد لمفهوم يمتد إليه هذا المفهوم. يمكن تحديد المفهوم المشار إليه في نفس مجموعة البيانات أو خارجيًا، أي في مجموعة بيانات أخرى. يجب أن يكون مرجع مفهوم خارجي على الشكل "prefix:other_concept_id"؛ حيث تمثل "prefix" البادئة المستخدمة لمساحة الاسم لمجموعة البيانات الخارجية (راجع مساحات أسماء XML). |
المعرِّف |
رقم التعريف |
|
|
إجراء مطلوب |
المعرّف الفريد للمفهوم، والذي يجب أن يكون فريدًا عالميًا في مجموعة البيانات. |
|
المصدر |
<xs:element name="concept" type="Concept" maxOccurs="unbounded"/>
|
العنصر: dspl / الشرائح
مساحة الاسم |
http://schemas.google.com/dspl/2010 |
التعليقات التوضيحية |
قائمة الشرائح المحدّدة في مجموعة البيانات هذه. |
رسم بياني |
|
أماكن إقامة |
المحتوى: |
مُعَقَّد |
minOccurs: |
0 |
|
الطراز |
شريحة+ |
أطفال |
شريحة |
مثال |
<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>
|
العنصر: dspl / شرائح / شريحة
مساحة الاسم |
http://schemas.google.com/dspl/2010 |
رسم بياني |
|
النوع |
الشريحة |
أماكن إقامة |
المحتوى: |
مُعَقَّد |
maxOccurs: |
بلا حدود |
|
الطراز |
info{0,1} وdimension+ وmetric+
وtable |
أطفال |
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>
|
السمات |
اسم Q |
النوع |
ثابت |
تلقائي |
استخدام |
التعليق التوضيحي |
المعرِّف |
رقم التعريف |
|
|
إجراء مطلوب |
المعرّف الفريد للشريحة. |
|
المصدر |
<xs:element name="slice" type="Slice" maxOccurs="unbounded"/>
|
العنصر: dspl / الجداول
مساحة الاسم |
http://schemas.google.com/dspl/2010 |
التعليقات التوضيحية |
قائمة بالجداول المحدّدة في مجموعة البيانات هذه. |
رسم بياني |
|
أماكن إقامة |
المحتوى: |
مُعَقَّد |
minOccurs: |
0 |
|
الطراز |
الجدول+ |
أطفال |
الجدول |
مثال |
<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 |
رسم بياني |
|
النوع |
جدول |
أماكن إقامة |
المحتوى: |
مُعَقَّد |
maxOccurs: |
بلا حدود |
|
الطراز |
info{0,1} وcolumn+ وdata{0,1} |
أطفال |
column وdata وinfo |
مثال |
<table id="">
<info>{0,1}</info>
<column format="" id="" type="">{1,unbounded}</column>
<data>{0,1}</data>
</table>
|
السمات |
اسم Q |
النوع |
ثابت |
تلقائي |
استخدام |
التعليق التوضيحي |
المعرِّف |
رقم التعريف |
|
|
إجراء مطلوب |
المعرّف الفريد للجدول في مجموعة البيانات. |
|
المصدر |
<xs:element name="table" type="Table" maxOccurs="unbounded"/>
|
السمة: dspl / import / @namespace
مساحة الاسم |
لا توجد مساحة اسم |
التعليقات التوضيحية |
مساحة الاسم لمجموعة البيانات المستوردة، والمحددة كمعرف موارد منتظم (URI). ويجب إقران بادئة بمساحة الاسم هذه قبل أن تتمكن من الإشارة إلى محتوياتها. راجِع [XML Namespaces] للحصول على المزيد من المعلومات عن استخدام مساحات الأسماء والبادئات في 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>
|
السمة: dspl / import / @location
مساحة الاسم |
لا توجد مساحة اسم |
التعليقات التوضيحية |
موقع اختياري يمكن العثور من خلاله على تعريف مجموعة البيانات التي تم استيرادها، على أن يكون محددًا كعنوان URL. وإذا تم حذف الموقع الجغرافي، يجب أن يعرف النظام الذي يعالج مجموعة بيانات DSPL مجموعة البيانات المستوردة من قبل. ملاحظة التنفيذ: تتجاهل جهة استيراد مجموعة بيانات Google سمة الموقع الجغرافي. ويجب أن يكون مستورَد 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
مساحة الاسم |
لا توجد مساحة اسم |
التعليقات التوضيحية |
قد تقدّم كل مجموعة بيانات مساحة اسم مستهدفة. مساحة الاسم الهدف هي معرّف موارد منتظم (URI) يعرّف مجموعة البيانات بشكل فريد. لمزيد من المعلومات حول استخدام مساحات الاسم في ملف XML، يُرجى الاطّلاع على: http://www.w3.org/TR/REC-xml-names/ في حال عدم توفير مساحة اسم مستهدفة، سيتم إنشاء مساحة اسم عند استيراد مجموعة البيانات. |
النوع |
xs:anyURI |
أماكن إقامة |
|
قيد الاستخدام بواسطة |
|
المصدر |
<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.