{
  "id": "faostat_element_code",
  "kind": "datatype",
  "status": "draft",
  "name": "FAOSTAT element code",
  "doc": "Numeric code of the measured element in FAOSTAT (the Element Code column of its downloads): 5510 production, 5312 area harvested; older extracts use three-digit codes such as 551 and 561 for rural and urban population.",
  "is_pii": false,
  "categories": [
    "agriculture"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[1-9]\\d{2,4}$",
  "examples": [
    {
      "value": "5510",
      "description": "Production",
      "valid": true
    },
    {
      "value": "5312",
      "description": "Area harvested",
      "valid": true
    },
    {
      "value": "551",
      "description": "Rural population in an older extract",
      "valid": true
    },
    {
      "value": "55",
      "description": "Two digits",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.fao.org/faostat/en/#definitions"
    }
  ],
  "translations": {
    "ru": {
      "name": "Код элемента FAOSTAT"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "faostatelementcodebyname",
        "type": "field",
        "match": "regex",
        "file": "common/research_codes.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/agriculture/faostat_element_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/agriculture/faostat_element_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/agriculture/faostat_element_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/faostat_element_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/faostat_element_code.json"
  }
}