Datatypes

Weight (mass)

ID weight

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).

Weight of a person, an animal or a product, measured as mass in kilograms, grams, pounds or ounces. Datasets store it as a number, with the unit either in the value, such as "95 lbs.", or in the column name or metadata. The regular expression recognizes only values that carry one of these unit symbols.

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
Schema.org
weight
Sherlock and Sato
weight
Wikidata
P2067
Quality
100/100
Metacrafter rules
no detection rule yet
Supported by tools
Doduo, Sato, Sherlock

Regular expression

^\d+(?:[.,]\d+)?\s?(?:kg|g|mg|lbs?|oz)\.?$

Python re syntax.

Examples

ValueDescription
95 lbs.pounds, abbreviation with a dot
72.5 kgkilograms
250ggrams without a space
12 ozounces
kg invalidunit without a number
5 km invalidunit of length

Translations

LanguageNameDescription
RussianВес (масса)

Sources

Use this record