# Component: Slice

## Element: [Slice](https://developers.google.com/public-data/docs/schema/dspl2#id70) / info

| Namespace | http://schemas.google.com/dspl/2010 |
| Annotations | Textual information about the slice. |
| Diagram | ![Diagram](https://developers.google.com/static/public-data/images/schema/dspl.html25.jpeg) |
| Type | [Info](https://developers.google.com/public-data/docs/schema/dspl4#id6) |
| Properties | | content: | complex | | minOccurs: | 0 | |---|---| |
| Model | [name](https://developers.google.com/public-data/docs/schema/dspl4#id7) , [description{0,1}](https://developers.google.com/public-data/docs/schema/dspl4#id14) , [url{0,1}](https://developers.google.com/public-data/docs/schema/dspl4#id15) |
| Children | [description](https://developers.google.com/public-data/docs/schema/dspl4#id14), [name](https://developers.google.com/public-data/docs/schema/dspl4#id7), [url](https://developers.google.com/public-data/docs/schema/dspl4#id15) |
| Instance | ``` <info> <name>{1,1}</name> <description>{0,1}</description> <url>{0,1}</url> </info> ``` |
| Source | ``` <xs:element name="info" type="Info" minOccurs="0"> <xs:annotation> <xs:documentation>Textual information about the slice.</xs:documentation> </xs:annotation> </xs:element> ``` |
|---|---|

## Element: [Slice](https://developers.google.com/public-data/docs/schema/dspl2#id70) / dimension

| Namespace | http://schemas.google.com/dspl/2010 |
| Diagram | ![Diagram](https://developers.google.com/static/public-data/images/schema/dspl.html59.jpeg) |
| Type | [SliceConceptRef](https://developers.google.com/public-data/docs/schema/dspl1#id73) |
| Properties | | content: | complex | | maxOccurs: | unbounded | |---|---| |
| Attributes | | QName | Type | Fixed | Default | Use | Annotation | | [concept](https://developers.google.com/public-data/docs/schema/dspl1#id74) | xs:QName |   |   | required | The concept that the dimension or metric corresponds to. | |---|---|---|---|---|---| |
| Source | ``` <xs:element name="dimension" type="SliceConceptRef" maxOccurs="unbounded"/> ``` |
|---|---|

## Element: [Slice](https://developers.google.com/public-data/docs/schema/dspl2#id70) / metric

| Namespace | http://schemas.google.com/dspl/2010 |
| Diagram | ![Diagram](https://developers.google.com/static/public-data/images/schema/dspl.html1.jpeg) |
| Type | [SliceConceptRef](https://developers.google.com/public-data/docs/schema/dspl1#id73) |
| Properties | | content: | complex | | maxOccurs: | unbounded | |---|---| |
| Attributes | | QName | Type | Fixed | Default | Use | Annotation | | [concept](https://developers.google.com/public-data/docs/schema/dspl1#id74) | xs:QName |   |   | required | The concept that the dimension or metric corresponds to. | |---|---|---|---|---|---| |
| Source | ``` <xs:element name="metric" type="SliceConceptRef" maxOccurs="unbounded"/> ``` |
|---|---|

## Element: [Slice](https://developers.google.com/public-data/docs/schema/dspl2#id70) / table

| Namespace | http://schemas.google.com/dspl/2010 |
| Annotations | A mapping to a table where the slice data can be accessed. |
| Diagram | ![Diagram](https://developers.google.com/static/public-data/images/schema/dspl.html18.jpeg) |
| Type | [SliceTableMapping](https://developers.google.com/public-data/docs/schema/dspl12#id77) |
| Properties | | content: | complex | |---|---| |
| Model | [mapDimension\*](https://developers.google.com/public-data/docs/schema/dspl12#id78) , [mapMetric\*](https://developers.google.com/public-data/docs/schema/dspl12#id81) |
| Children | [mapDimension](https://developers.google.com/public-data/docs/schema/dspl12#id78), [mapMetric](https://developers.google.com/public-data/docs/schema/dspl12#id81) |
| Instance | ``` <table ref=""> <mapDimension concept="" toColumn="">{0,unbounded}</mapDimension> <mapMetric concept="" toColumn="">{0,unbounded}</mapMetric> </table> ``` |
| Attributes | | QName | Type | Fixed | Default | Use | Annotation | | [ref](https://developers.google.com/public-data/docs/schema/dspl12#id84) | xs:QName |   |   | required | The identifier of the table that contains data for the slice. | |---|---|---|---|---|---| |
| Source | ``` <xs:element name="table" type="SliceTableMapping"> <xs:annotation> <xs:documentation>A mapping to a table where the slice data can be accessed.</xs:documentation> </xs:annotation> </xs:element> ``` |
|---|---|

## Complex Type: Slice

| Namespace | http://schemas.google.com/dspl/2010 |
| Annotations | A slice describes a combination of concepts for which data exists. Metrics are the concepts that provide values, while dimensions are the concepts used to access these values. More precisely, the dimensions are a primary key for the data of the slice. That is, for any combination of values of the dimensions, there is at most one data row in the slice. Slices in a dataset must follow the following requirements: - No two dimensions or metrics in a slice may refer to the same concept. - No two slices in the dataset may have the same dimensions and metrics. |
| Diagram | ![Diagram](https://developers.google.com/static/public-data/images/schema/dspl.html54.jpeg) |
| Used by | | Element | [dspl/slices/slice](https://developers.google.com/public-data/docs/schema/dspl9#id69) | |---|---| |
| Model | [info{0,1}](https://developers.google.com/public-data/docs/schema/dspl2#id71) , [dimension+](https://developers.google.com/public-data/docs/schema/dspl2#id72) , [metric+](https://developers.google.com/public-data/docs/schema/dspl2#id75) , [table](https://developers.google.com/public-data/docs/schema/dspl2#id76) |
| Children | [dimension](https://developers.google.com/public-data/docs/schema/dspl2#id72), [info](https://developers.google.com/public-data/docs/schema/dspl2#id71), [metric](https://developers.google.com/public-data/docs/schema/dspl2#id75), [table](https://developers.google.com/public-data/docs/schema/dspl2#id76) |
| Attributes | | QName | Type | Fixed | Default | Use | Annotation | | [id](https://developers.google.com/public-data/docs/schema/dspl2#id85) | [Id](https://developers.google.com/public-data/docs/schema/dspl19#id33) |   |   | required | The unique identifier of the slice. | |---|---|---|---|---|---| |
| Source | ``` <xs:complexType name="Slice"> <xs:annotation> <xs:documentation>A slice describes a combination of concepts for which data exists.  Metrics are the concepts that provide values, while dimensions are the concepts used to access these values. More precisely, the dimensions are a primary key for the data of the slice. That is, for any combination of values of the dimensions, there is at most one data row in the slice. Slices in a dataset must follow the following requirements: - No two dimensions or metrics in a slice may refer to the same concept. - No two slices in the dataset may have the same dimensions and metrics.</xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="info" type="Info" minOccurs="0"> <xs:annotation> <xs:documentation>Textual information about the slice.</xs:documentation> </xs:annotation> </xs:element> <xs:element name="dimension" type="SliceConceptRef" maxOccurs="unbounded"/> <xs:element name="metric" type="SliceConceptRef" maxOccurs="unbounded"/> <xs:element name="table" type="SliceTableMapping"> <xs:annotation> <xs:documentation>A mapping to a table where the slice data can be accessed.</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> <xs:attribute name="id" type="Id" use="required"> <xs:annotation> <xs:documentation>The unique identifier of the slice.</xs:documentation> </xs:annotation> </xs:attribute> </xs:complexType> ``` |
|---|---|

## Attribute: [Slice](https://developers.google.com/public-data/docs/schema/dspl2#id70) / @id

| Namespace | No namespace |
| Annotations | The unique identifier of the slice. |
| Type | [Id](https://developers.google.com/public-data/docs/schema/dspl19#id33) |
| Properties | | use: | required | |---|---| |
| Facets | | maxLength | 64 |   | |---|---|---| |
| Used by | | Complex Type | [Slice](https://developers.google.com/public-data/docs/schema/dspl2#id70) | |---|---| |
| Source | ``` <xs:attribute name="id" type="Id" use="required"> <xs:annotation> <xs:documentation>The unique identifier of the slice.</xs:documentation> </xs:annotation> </xs:attribute> ``` |
|---|---|

Created using the
[oXygen XML Editor](http://www.oxygenxml.com).