# quantity

This page documents the **quantity** canonical concept dataset.
The [complete XML file](https://developers.google.com/public-data/docs/canonical/quantity_xml) is also available for
review.

## Basic Info

| Name | Quantity concepts |
| Description | DSPL quantity concepts. |
| Namespace | http://www.google.com/publicdata/dataset/google/quantity |
| URL | [http://code.google.com/apis/publicdata/docs/canonical/quantity.html](https://developers.google.com/public-data/docs/canonical/quantity) |
|---|---|

## Provider

| Name | Google Inc. |
| Description | Google Inc. |
| URL | <http://www.google.com> |
|---|---|

## Imported Namespaces

| ID | URI |
|---|---|
| unit | [http://www.google.com/publicdata/dataset/google/unit](https://developers.google.com/public-data/docs/canonical/unit) |
| geo | [http://www.google.com/publicdata/dataset/google/geo](https://developers.google.com/public-data/docs/canonical/geo) |
| time | [http://www.google.com/publicdata/dataset/google/time](https://developers.google.com/public-data/docs/canonical/time) |

## Topics

No topics defined.

## Concepts

### Concept: quantity

| ID | quantity \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#quantity)\] |
| Name | Quantity |
| Type | float |
| Description | Base concept for defining concept that represent numerical quantities. |
| Attributes [unit](https://developers.google.com/public-data/docs/canonical/quantity#quantity_unit) [significant_digits](https://developers.google.com/public-data/docs/canonical/quantity#quantity_significant_digits) [decimal_places](https://developers.google.com/public-data/docs/canonical/quantity#quantity_decimal_places) | | ID (implied) | unit \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#quantity_unit)\] | | Concept | [unit:unit](https://developers.google.com/public-data/docs/canonical/unit#unit) | | Name | Unit | | Description | The unit of the quantity | |---|---| | ID | significant_digits \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#quantity_significant_digits)\] | | Name | Number of significant digits | | Type | integer | | Description | Specifies the number of significant digits to use when displaying the values of a metric concept. | |---|---| | ID | decimal_places \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#quantity_decimal_places)\] | | Name | Number of decimal places | | Type | integer | | Description | Specifies the number of decimal places to use for displaying the values of a metric concept. | |---|---| |
| Properties | No local properties. |
|---|---|

### Concept: amount

| ID | amount \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#amount)\] |
| Name | Amount |
| Extends | [quantity](https://developers.google.com/public-data/docs/canonical/quantity#quantity) |
| Description | Indicates that a numeric concept is an amount, i.e., a count of discrete elements. Example concept: Population, Gross Domestic Product. |
| Attributes | No local attributes. |
| Properties | No local properties. |
|---|---|

### Concept: magnitude

| ID | magnitude \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#magnitude)\] |
| Name | Magnitude |
| Extends | [quantity](https://developers.google.com/public-data/docs/canonical/quantity#quantity) |
| Description | Indicates that a numeric concept is a magnitude, i.e., a continuous quantity that is measurable. Example concepts: Temperature. |
| Attributes | No local attributes. |
| Properties | No local properties. |
|---|---|

### Concept: fraction

| ID | fraction \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#fraction)\] |
| Name | Fraction |
| Extends | [magnitude](https://developers.google.com/public-data/docs/canonical/quantity#magnitude) |
| Description | Indicates that a numeric concept represents a fraction, i.e., the division of two quantities. |
| Attributes [denominator](https://developers.google.com/public-data/docs/canonical/quantity#fraction_denominator) [numerator](https://developers.google.com/public-data/docs/canonical/quantity#fraction_numerator) | | ID | denominator \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#fraction_denominator)\] | | Name | Denominator | | Type | concept | | Description | The denominator of the fraction. | |---|---| | ID | numerator \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#fraction_numerator)\] | | Name | Numerator | | Type | concept | | Description | The numerator of the fraction. | |---|---| |
| Properties | No local properties. |
|---|---|

### Concept: ratio

| ID | ratio \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#ratio)\] |
| Name | Ratio |
| Extends | [fraction](https://developers.google.com/public-data/docs/canonical/quantity#fraction) |
| Description | Indicates that a numeric concept is a ratio, i.e., a fraction of two quantities of the same nature. Example concept: Ratio of girls to boys in primary and secondary education. |
| Attributes [is_percentage](https://developers.google.com/public-data/docs/canonical/quantity#ratio_is_percentage) [percentage_of](https://developers.google.com/public-data/docs/canonical/quantity#ratio_percentage_of) | | ID | is_percentage \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#ratio_is_percentage)\] | | Name | Is percentage | | Type | boolean | | Description | Set to true if this ratio is a percentage, set to false otherwise. | |---|---| | ID | percentage_of \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#ratio_percentage_of)\] | | Name | Percentage of | | Type | string | | Description | If this is a percentage, this attribute provides a descriptive text to display next to number that specifies what this is a percentage of. For instance, the "unemployment rate" metric has a percentage_of attribute set to: "of the labor force" to that the value reads "10.5% of the labor force". | |---|---| |
| Properties | No local properties. |
|---|---|

### Concept: index

| ID | index \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#index)\] |
| Name | Index |
| Extends | [rate](https://developers.google.com/public-data/docs/canonical/quantity#rate) |
| Description | A quantity that shows by its variations the changes of a magnitude over time or space, often normalized to a reference value. Example concept: Consumer Price Index. |
| Attributes [base_value](https://developers.google.com/public-data/docs/canonical/quantity#index_base_value) [base_time](https://developers.google.com/public-data/docs/canonical/quantity#index_base_time) [base_location](https://developers.google.com/public-data/docs/canonical/quantity#index_base_location) | | ID | base_value \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#index_base_value)\] | | Concept | [quantity](https://developers.google.com/public-data/docs/canonical/quantity#quantity) | | Name | Base value | | Description | The reference value for the index (e.g., 100). | |---|---| | ID | base_time \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#index_base_time)\] | | Concept | [time:time_point](https://developers.google.com/public-data/docs/canonical/time#time_point) | | Name | Base time | | Description | The reference time the index is defined for. | |---|---| | ID | base_location \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#index_base_location)\] | | Concept | [geo:location](https://developers.google.com/public-data/docs/canonical/geo#location) | | Name | Base location | | Description | The reference location the index is defined for. | |---|---| |
| Properties | No local properties. |
|---|---|

### Concept: rate

| ID | rate \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#rate)\] |
| Name | Rate |
| Extends | [ratio](https://developers.google.com/public-data/docs/canonical/quantity#ratio) |
| Description | A quantity considered as a proportion of another quantity. Example concepts: Literacy rate, GDP per Capita, unemployment rate. |
| Attributes | No local attributes. |
| Properties | No local properties. |
|---|---|

### Concept: change_rate

| ID | change_rate \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#change_rate)\] |
| Name | Change rate |
| Extends | [rate](https://developers.google.com/public-data/docs/canonical/quantity#rate) |
| Description | The rate at which some quantity changes. Example concept: GDP growth rate. |
| Attributes [base_quantity](https://developers.google.com/public-data/docs/canonical/quantity#change_rate_base_quantity) | | ID | base_quantity \[[XML](https://developers.google.com/public-data/docs/canonical/quantity_xml#change_rate_base_quantity)\] | | Name | Base quantity | | Type | concept | | Description | The quantity (concept) that this is a change rate for. | |---|---| |
| Properties | No local properties. |
|---|---|

## Slices

No slices defined.

## Tables

No tables defined.