{
  "id": "eu_celex",
  "kind": "datatype",
  "status": "draft",
  "name": "CELEX number",
  "doc": "Identifier of a document in EUR-Lex, the database of European Union law: a sector digit, the year, a document type letter and a number, such as 32016R0679 for the GDPR.",
  "is_pii": false,
  "categories": [
    "legal",
    "government"
  ],
  "country": [
    "EU"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[\\dEC](20|1\\d)\\d\\d[A-Z][A-Z]?(\\d{3,5}(\\(\\d\\d\\))?|/TXT|/PRO/\\d\\d)(-\\d{8})?$",
  "examples": [
    {
      "value": "61993CJ0415",
      "description": "Bosman ruling",
      "valid": true
    },
    {
      "value": "32016R0679",
      "description": "General Data Protection Regulation",
      "valid": true
    },
    {
      "value": "22014A0529(01)",
      "description": "Ukraine–European Union Association Agreement",
      "valid": true
    }
  ],
  "mappings": {
    "wikidata": "P476"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/EUR-Lex"
    },
    {
      "type": "doc",
      "url": "https://eur-lex.europa.eu/content/tools/TableOfSectors/types_of_documents_in_eurlex.html"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P476"
    }
  ],
  "quality": {
    "score": 80,
    "missing": [
      "negative example",
      "translation",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/EU/legal/eu_celex.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/EU/legal/eu_celex.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/EU/legal/eu_celex.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/eu_celex",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/eu_celex.json"
  }
}