{
  "id": "eurostat_age_class",
  "kind": "datatype",
  "status": "draft",
  "name": "Eurostat age class code",
  "doc": "Code of an age or an age class in the AGE code list of Eurostat, as the datasets of the Eurostat database and the national tables sent to it give it: Y and the age in years (Y15), two ages joined by a hyphen for a class (Y14-17, Y18-34, Y35-64), Y_LT and Y_GE for an open class (Y_LT14 less than 14 years, Y_GE65 65 years or over), TOTAL for all ages and UNK for an unknown age. Asylum and residence permit tables of Cyprus have it in a column AGE beside CITIZEN and SEX.",
  "parent": "age_range",
  "is_pii": false,
  "categories": [
    "government"
  ],
  "country": [
    "EU"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^(?:TOTAL|UNK|Y_(?:LT|GE)\\d{1,3}|Y\\d{1,3}(?:-\\d{1,3})?)$",
  "examples": [
    {
      "value": "Y18-34",
      "description": "from 18 to 34 years",
      "valid": true
    },
    {
      "value": "Y_LT14",
      "description": "less than 14 years",
      "valid": true
    },
    {
      "value": "Y_GE65",
      "description": "65 years or over",
      "valid": true
    },
    {
      "value": "TOTAL",
      "valid": true
    },
    {
      "value": "18-34",
      "description": "without the letter Y",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/codelist/ESTAT/AGE"
    }
  ],
  "translations": {
    "ru": {
      "name": "Код возрастной группы Евростата"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "eurostatageclassbyname",
        "type": "field",
        "match": "regex",
        "file": "eu/eu_statistics.yaml"
      },
      {
        "rule": "eurostatageclassvalue",
        "type": "data",
        "match": "func",
        "file": "eu/eu_statistics.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/EU/government/eurostat_age_class.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/EU/government/eurostat_age_class.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/EU/government/eurostat_age_class.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/eurostat_age_class",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/eurostat_age_class.json"
  }
}