{
  "id": "week_of_year",
  "kind": "datatype",
  "status": "draft",
  "name": "Week number in a year",
  "doc": "Number of a week within a year, from 1 to 53, sometimes written with a leading zero. Most years have 52 weeks. The rule for week 1 depends on the system; ISO 8601 weeks start on Monday and week 1 contains the first Thursday of the year. Data catalogs keep it in columns such as week, semaine or semana.",
  "children": [
    "epi_week"
  ],
  "is_pii": false,
  "categories": [
    "datetime"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^(?:0?[1-9]|[1-4]\\d|5[0-3])$",
  "examples": [
    {
      "value": "1",
      "description": "first week of the year",
      "valid": true
    },
    {
      "value": "05",
      "description": "fifth week, with a leading zero",
      "valid": true
    },
    {
      "value": "53",
      "description": "last week of a 53-week year",
      "valid": true
    },
    {
      "value": "54",
      "description": "no year has 54 weeks",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/ISO_week_date"
    }
  ],
  "translations": {
    "ru": {
      "name": "Номер недели в году"
    },
    "fr": {
      "name": "Numéro de semaine"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/datetime/week_of_year.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/datetime/week_of_year.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/week_of_year.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/week_of_year",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/week_of_year.json"
  }
}