Length (linear dimension)
ID length
DatatypeNot PIIDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Size of an object measured along one dimension, such as the length of a cable, the depth of a shelf or the height of a person. Datasets store it as a number in millimetres, centimetres, metres, inches or feet, or in pixels for images and screen elements, with the unit either in the value or in the column name or metadata. The regular expression recognizes only values that carry one of these unit symbols. Height and width are narrower datatypes for the vertical and the horizontal dimension.
- Parent datatype
- Numeric value
numeric - Categories
- All measurable values (percentage, amount and e.t.c), Common
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Wikidata
- P2043
- Quality
- 90/100 · missing: detector coverage
- Metacrafter rules
- no detection rule yet
- Supported by tools
- no tool record lists this type yet
Regular expression
^\d+(?:[.,]\d+)?\s?(?:mm|cm|m|in|ft|px)\.?$
Python re syntax.
Examples
| Value | Description |
|---|---|
| 2.5 m | metres |
| 180 cm | centimetres |
| 1920px | pixels without a space |
| 6 ft. | feet, abbreviation with a dot |
| cm invalid | unit without a number |
| 72.5 kg invalid | unit of mass |
Child datatypes
| ID | Name | Categories | Countries | Description |
|---|---|---|---|---|
| height | Height draft | values, common | global | Vertical size of a person or an object, such as the height of a person, a building, a product package or an image. Datasets usually keep... |
| width | Width draft | values, common | global | Horizontal size of an object measured from side to side, such as the width of an image, a screen, a piece of furniture or a road.... |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Длина |
Sources
- wikipedia: https://en.wikipedia.org/wiki/Length
- wikidata: https://www.wikidata.org/wiki/Property:P2043
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/length - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/values/length.yamlon GitHub