{
  "id": "eu_surface_water_body_code",
  "kind": "datatype",
  "status": "draft",
  "name": "EU surface water body code (WFD)",
  "doc": "Code of a river, lake, transitional or coastal water body that a Member State reports to the European Environment Agency (WISE) under the Water Framework Directive. It is the two-letter country code (EL for Greece, UK for the former UK reports) followed by the national water body code, 3 to 42 upper-case letters, digits, hyphens and underscores in all, starting and ending with a letter or digit. Codes change between river basin management cycles (Sweden moved to UUID-based codes in 2022), and groundwater body codes have the same form, so check the reporting cycle and column context.",
  "is_pii": false,
  "categories": [
    "environment",
    "geo"
  ],
  "country": [
    "EU"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[A-Z]{2}[0-9A-Z](?:[0-9A-Z_-]{0,38}[0-9A-Z])?$",
  "examples": [
    {
      "value": "FRAC01",
      "description": "French coastal water from the Belgian border to the Malo jetty; Eionet WISE water body vocabulary",
      "valid": true
    },
    {
      "value": "DECW_DENI_N4-5900-01",
      "description": "Western Wadden Sea of the Elbe, Germany; Eionet WISE water body vocabulary",
      "valid": true
    },
    {
      "value": "SE21E5483D-ADCA-4053-A3CC-D71A6010C80C",
      "description": "Lake Orlången, Sweden (code of the 2022 cycle); Eionet WISE water body vocabulary",
      "valid": true
    },
    {
      "value": "NL18_KANDWCRN",
      "description": "Canal through Walcheren, Netherlands; Wikidata example",
      "valid": true
    },
    {
      "value": "FRAC01_",
      "description": "Ends with an underscore; the code must end with a letter or digit",
      "valid": false
    },
    {
      "value": "frac01",
      "description": "Lower case; EU codes use upper-case letters only",
      "valid": false
    }
  ],
  "mappings": {
    "wikidata": "P2856"
  },
  "links": [
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P2856"
    },
    {
      "type": "doc",
      "url": "https://dd.eionet.europa.eu/schemas/WFD2022/WFDCommon_2022.xsd"
    },
    {
      "type": "doc",
      "url": "https://dd.eionet.europa.eu/vocabulary/wise/WaterBody/view"
    },
    {
      "type": "doc",
      "url": "https://eur-lex.europa.eu/eli/dir/2000/60/oj"
    }
  ],
  "translations": {
    "ru": {
      "name": "Код поверхностного водного объекта ЕС (ВРД)",
      "doc": "Код реки, озера, переходных или прибрежных вод, который страна ЕС сообщает в систему WISE по Водной рамочной директиве. Состоит из двухбуквенного кода страны и национального кода водного объекта."
    }
  },
  "quality": {
    "score": 90,
    "missing": [
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/EU/environment/eu_surface_water_body_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/EU/environment/eu_surface_water_body_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/EU/environment/eu_surface_water_body_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/eu_surface_water_body_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/eu_surface_water_body_code.json"
  }
}