סכימת DSPL
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הדף הזה ודפי המשנה המקושרים שלו מתעדים את סכימת ה-XML של DSPL.
התוכן הזה מיועד למשתמשים מתקדמים שרוצים להבין
פרטים ברמה נמוכה של השפה. רוב המשתמשים
צריכים לקרוא את
המדריך למפתחים כדי ליצור ולערוך
מערכי נתונים של DSPL.
סכימת ה-XML המלאה זמינה להורדה בפורמט XSD באתר קוד DSPL.
אלמנט: dspl
מרחב שמות |
http://schemas.google.com/dspl/2010 |
הערות |
מפרט של DSPL מתאר מערך נתונים. מערך הנתונים מזוהה
על ידי מרחב השמות שלו. מערך נתונים מורכב מהרכיבים הבאים: – טבלאות: נתונים עבור הקונספטים והפלחים המוגדרים במערך הנתונים – מושגים: הגדרות ומבנים ספציפיים שצוינו במערך הנתונים – פרוסות: שילובים של מאפיינים ומדדים שנמצאים במערך הנתונים – נושאים: תוויות היררכיות המשמשות לארגון הערכים של מערך הנתונים |
דיאגרמה |
|
נכסים |
|
דגם |
Import* , info , provider ,
attribute* , topics{0,1} , concepts{0,1} , slices{0,1} , tables{0,1} |
ילדים |
מאפיין, קונספטים, ייבוא,
מידע, ספק, slices,
טבלאות, נושאים |
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>
|
מאפיינים |
שם |
סוג |
קבוע |
ברירת מחדל |
שימוש |
הערה |
targetNamespace |
xs:anyURI |
|
|
אופציונלי |
כל מערך נתונים יכול לספק מרחב שמות ייעודי. מרחב השמות של היעד הוא URI שמזהה את מערך הנתונים באופן ייחודי. למידע נוסף על השימוש במרחבי שמות ב-XML, אפשר לעיין במאמר הבא: http://www.w3.org/TR/REC-xml-names/ אם לא יסופק מרחב שמות Name, ייווצר מרחב שמות כשמייבאים את מערך הנתונים. |
|
מקור |
<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: |
ללא הבחנה |
|
מאפיינים |
שם |
סוג |
קבוע |
ברירת מחדל |
שימוש |
הערה |
מיקום |
|
|
|
אופציונלי |
מיקום אופציונלי שבו ניתן למצוא את ההגדרה של מערך הנתונים
המיובא, שמצוין ככתובת URL. אם לא תכללו את המיקום, מערך הנתונים שמטפל ב-DSPL חייב להכיר את מערך הנתונים שיובא. הערה להטמעה: כלי הייבוא של מערכי הנתונים של Google מתעלם ממאפיין המיקום. היבואן של Google חייב להכיר את מערכי הנתונים המיובאים מראש. |
namespace |
|
|
|
חובה |
מרחב השמות של מערך הנתונים שיובא, שצוין כ-URI. צריך לשייך את הקידומת למרחב השמות הזה לפני שאפשר יהיה להפנות לתוכן שלה. פרטים נוספים על השימוש במרחבי שמות ובקידומות ב-XML מפורטים ב-[XML Namespaces]. |
|
מקור |
<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 / מידע
מרחב שמות |
http://schemas.google.com/dspl/2010 |
הערות |
מידע כללי על מערך הנתונים |
דיאגרמה |
|
סוג |
מידע |
נכסים |
|
דגם |
name , description{0,1} , url{0,1} |
ילדים |
description [תיאור], name [שם], url [כתובת_URL] |
Instance |
<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 [כתובת_URL] |
Instance |
<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 |
Instance |
<attribute concept="" id="">
<info>{0,1}</info>
<type format="" ref="">{0,1}</type>
</attribute>
|
מאפיינים |
שם |
סוג |
קבוע |
ברירת מחדל |
שימוש |
הערה |
קונספט |
xs:QName |
|
|
אופציונלי |
הפניה לקונספט שתואם לערכים של
המאפיין. אם המאפיין מציין סוג, הסוג צריך להיות
תואם לסוג הקונספט שאליו מתייחסים. ההתייחסות לקונספט חיצוני צריכה להיות בפורמט "prefix:other_concept_id", כאשר "prefix" הוא הקידומת של מרחב השמות החיצוני של מערך הנתונים החיצוני (פרטים של מרחבי שמות מסוג XML). |
id |
LocalId |
|
|
אופציונלי |
מזהה מאפיין הקונספט. המזהה הזה צריך להיות
ייחודי בתוך הקונספט (בכל המאפיינים והמאפיינים). אם המאפיין קונספט מופיע, אפשר להשמיט את המזהה. במקרה כזה, מזהה הוא פשטות שנוצרה עם ערך השם המקומי של הקונספט המדובר. לדוגמה, המאפיין <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 |
הערות |
היררכיה של נושאים שמשמשים לארגון התוכן של מערך הנתונים. הסדר שבו הנושאים מוצגים הוא משמעותי ויש לכבד אותם
באמצעות תצוגות חזותיות שמציגות את הנושאים האלה. |
דיאגרמה |
|
נכסים |
|
דגם |
topic+ |
ילדים |
topic |
Instance |
<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 |
דיאגרמה |
|
סוג |
נושא |
נכסים |
תוכן: |
מורכב |
maxOccurs: |
ללא הבחנה |
|
דגם |
info , topic* |
ילדים |
מידע, נושא |
Instance |
<topic id="" parentTopic="">
<info>{1,1}</info>
<topic id="" parentTopic="">{0,unbounded}</topic>
</topic>
|
מאפיינים |
שם |
סוג |
קבוע |
ברירת מחדל |
שימוש |
הערה |
id |
מזהה |
|
|
חובה |
המזהה הייחודי של הנושא במערך הנתונים. |
parentTopic |
xs:QName |
|
|
אופציונלי |
מזהה הנושא הראשי של הנושא הזה, אם יש לו נושא כזה.
לא ניתן לציין הורה לגבי נושאים שבתוך
נושאים אחרים. |
|
מקור |
<xs:element name="topic" type="Topic" maxOccurs="unbounded"/>
|
רכיב: dspl / מושגים
מרחב שמות |
http://schemas.google.com/dspl/2010 |
הערות |
רשימת מושגים שהוגדרו במערך הנתונים הזה. |
דיאגרמה |
|
נכסים |
|
דגם |
קונספט + |
ילדים |
קונספט |
Instance |
<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,
המאפיין, table, topic,
type |
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>
|
מאפיינים |
שם |
סוג |
קבוע |
ברירת מחדל |
שימוש |
הערה |
מאריך |
xs:QName |
|
|
אופציונלי |
המזהה הייחודי של מושג מסוים שעל פיו מתייחס התוכן. אפשר להגדיר את הקונספט שאליו בוצעה הפניה באותו מערך נתונים, או מחוץ לו, כלומר במערך נתונים אחר. ההתייחסות לקונספט חיצוני
צריכה להיות בצורה "prefix:other_concept_id",
כש-"prefix" הוא הקידומת שבה נעשה שימוש במרחב השמות של מערך הנתונים החיצוני (מידע נוסף על מרחבי שמות של XML). |
id |
מזהה |
|
|
חובה |
המזהה הייחודי של הקונספט, שצריך להיות ייחודי גלובלית במערך הנתונים. |
|
מקור |
<xs:element name="concept" type="Concept" maxOccurs="unbounded"/>
|
רכיב: dspl / פרוסות
מרחב שמות |
http://schemas.google.com/dspl/2010 |
הערות |
רשימה של פרוסות המוגדרות במערך הנתונים הזה. |
דיאגרמה |
|
נכסים |
|
דגם |
slice+ |
ילדים |
פרוסה |
Instance |
<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 |
דיאגרמה |
|
סוג |
פרוסה |
נכסים |
תוכן: |
מורכב |
maxOccurs: |
ללא הבחנה |
|
דגם |
info{0,1} , dimension+ , measure+
, table |
ילדים |
מאפיין, מידע, ערך,
טבלה |
Instance |
<slice id="">
<info>{0,1}</info>
<dimension concept="">{1,unbounded}</dimension>
<metric concept="">{1,unbounded}</metric>
<table ref="">{1,1}</table>
</slice>
|
מאפיינים |
שם |
סוג |
קבוע |
ברירת מחדל |
שימוש |
הערה |
id |
מזהה |
|
|
חובה |
המזהה הייחודי של הפלח. |
|
מקור |
<xs:element name="slice" type="Slice" maxOccurs="unbounded"/>
|
הרכיב: dspl / טבלאות
מרחב שמות |
http://schemas.google.com/dspl/2010 |
הערות |
רשימה של טבלאות המוגדרות במערך הנתונים הזה. |
דיאגרמה |
|
נכסים |
|
דגם |
table+ |
ילדים |
table |
Instance |
<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 |
Instance |
<table id="">
<info>{0,1}</info>
<column format="" id="" type="">{1,unbounded}</column>
<data>{0,1}</data>
</table>
|
מאפיינים |
שם |
סוג |
קבוע |
ברירת מחדל |
שימוש |
הערה |
id |
מזהה |
|
|
חובה |
המזהה הייחודי של הטבלה במערך הנתונים. |
|
מקור |
<xs:element name="table" type="Table" maxOccurs="unbounded"/>
|
מאפיין: dspl / import / @namespace
מרחב שמות |
אין מרחב שמות |
הערות |
מרחב השמות של מערך הנתונים המיובא, שצוין כ-URI. צריך לשייך
קידומת למרחב השמות הזה לפני שאפשר יהיה להפנות לתוכן שלו. פרטים נוספים על השימוש במרחבי שמות ובקידומות ב-XML מפורטים ב-[XML Namespaces] . |
נכסים |
|
בשימוש על ידי |
|
מקור |
<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.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-01-19 (שעון UTC).
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"חסרים לי מידע או פרטים"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"התוכן מורכב מדי או עם יותר מדי שלבים"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"התוכן לא עדכני"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"בעיה בתרגום"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"בעיה בדוגמאות/בקוד"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"סיבה אחרת"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"התוכן קל להבנה"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"התוכן עזר לי לפתור בעיה"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"סיבה אחרת"
}]