{
  "id": "weight",
  "kind": "datatype",
  "status": "draft",
  "name": "Weight (mass)",
  "doc": "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": "numeric",
  "is_pii": false,
  "categories": [
    "values",
    "common"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^\\d+(?:[.,]\\d+)?\\s?(?:kg|g|mg|lbs?|oz)\\.?$",
  "examples": [
    {
      "value": "95 lbs.",
      "description": "pounds, abbreviation with a dot",
      "valid": true
    },
    {
      "value": "72.5 kg",
      "description": "kilograms",
      "valid": true
    },
    {
      "value": "250g",
      "description": "grams without a space",
      "valid": true
    },
    {
      "value": "12 oz",
      "description": "ounces",
      "valid": true
    },
    {
      "value": "kg",
      "description": "unit without a number",
      "valid": false
    },
    {
      "value": "5 km",
      "description": "unit of length",
      "valid": false
    }
  ],
  "mappings": {
    "schema_org": "weight",
    "sherlock": "weight",
    "wikidata": "P2067"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Mass"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P2067"
    },
    {
      "type": "schema.org",
      "url": "https://schema.org/weight"
    }
  ],
  "translations": {
    "ru": {
      "name": "Вес (масса)"
    }
  },
  "detected_by": {
    "tools": [
      "doduo",
      "sato",
      "sherlock"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/any/values/weight.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/values/weight.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/values/weight.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/weight",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/weight.json"
  }
}