{
  "id": "unit_of_measure",
  "name": "Unit of measurement",
  "status": "draft",
  "doc": "Unit in which a quantity in the same row is expressed, written as a name or a symbol, for example kilogram, kg, litre or thousand roubles. Data catalogs often keep it in a separate column next to the value. Coded forms are covered by patterns such as the UN/ECE Recommendation 20 common code and UCUM.",
  "categories": [
    {
      "id": "values",
      "name": "All measurable values (percentage, amount and e.t.c)"
    }
  ],
  "langs": [
    {
      "id": "common",
      "name": "Common to most languages"
    }
  ],
  "is_pii": false,
  "classification": "categorical",
  "examples": [
    {
      "value": "kg",
      "description": "kilogram, as a symbol"
    },
    {
      "value": "litre",
      "description": "unit name"
    },
    {
      "value": "%",
      "description": "percent"
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Unit_of_measurement"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Q47574"
    }
  ],
  "translations": {
    "ru": {
      "name": "Единица измерения"
    },
    "fr": {
      "name": "Unité de mesure"
    }
  },
  "type": "datatype",
  "patterns": [
    {
      "id": "ucum_code",
      "name": "UCUM unit code",
      "status": "draft",
      "doc": "Case-sensitive code of a unit in the Unified Code for Units of Measure (UCUM), built from unit atoms, prefixes and operators, for example kg, m/s, Cel or mm[Hg]. HL7 FHIR and LOINC use it for clinical and laboratory results.",
      "semantic_type": "unit_of_measure",
      "langs": [
        {
          "id": "common",
          "name": "Common to most languages"
        }
      ],
      "examples": [
        {
          "value": "kg",
          "description": "kilogram"
        },
        {
          "value": "m/s",
          "description": "metre per second"
        },
        {
          "value": "Cel",
          "description": "degree Celsius"
        },
        {
          "value": "mm[Hg]",
          "description": "millimetre of mercury"
        }
      ],
      "mappings": {
        "wikidata": "P7825"
      },
      "links": [
        {
          "type": "doc",
          "url": "https://ucum.org/ucum"
        },
        {
          "type": "wikipedia",
          "url": "https://en.wikipedia.org/wiki/Unified_Code_for_Units_of_Measure"
        },
        {
          "type": "wikidata",
          "url": "https://www.wikidata.org/wiki/Property:P7825"
        }
      ],
      "type": "pattern",
      "is_pii": false,
      "categories": [
        {
          "id": "values",
          "name": "All measurable values (percentage, amount and e.t.c)"
        }
      ],
      "classification": "categorical",
      "wikidata_property": "P7825",
      "translations": {}
    },
    {
      "id": "unece_rec20_unit_code",
      "name": "UN/ECE Recommendation 20 unit code (UN/CEFACT common code)",
      "status": "draft",
      "doc": "Two- or three-character code of a unit of measure from UN/ECE Recommendation 20, used in trade documents such as UN/EDIFACT and UBL invoices, for example KGM for kilogram or H87 for piece. Codes use uppercase letters and digits. Some lists, such as Peppol, add package codes from Recommendation 21 with an X prefix; they have the same shape but are not units.",
      "semantic_type": "unit_of_measure",
      "langs": [
        {
          "id": "common",
          "name": "Common to most languages"
        }
      ],
      "regexp": "^[A-Z0-9]{2,3}$",
      "examples": [
        {
          "value": "KGM",
          "description": "kilogram"
        },
        {
          "value": "MTR",
          "description": "metre"
        },
        {
          "value": "LTR",
          "description": "litre"
        },
        {
          "value": "C62",
          "description": "one (unit)"
        },
        {
          "value": "H87",
          "description": "piece"
        },
        {
          "value": "KGMS",
          "valid": false,
          "description": "four characters"
        }
      ],
      "mappings": {
        "wikidata": "P6512"
      },
      "links": [
        {
          "type": "doc",
          "url": "https://unece.org/trade/documents/2021/06/uncefact-rec20-0"
        },
        {
          "type": "wikidata",
          "url": "https://www.wikidata.org/wiki/Property:P6512"
        },
        {
          "type": "other",
          "url": "https://github.com/datasets/unece-units-of-measure"
        }
      ],
      "type": "pattern",
      "is_pii": false,
      "categories": [
        {
          "id": "values",
          "name": "All measurable values (percentage, amount and e.t.c)"
        }
      ],
      "classification": "categorical",
      "wikidata_property": "P6512",
      "translations": {}
    }
  ]
}