{
  "id": "year_range",
  "kind": "datatype",
  "status": "draft",
  "name": "Year range",
  "doc": "Span of calendar years written as two four-digit years joined by a hyphen, such as 2019-2020. It often names a season, an academic or fiscal year, or a reporting period.",
  "children": [
    "person_life_years"
  ],
  "is_pii": false,
  "categories": [
    "datetime"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^\\d{4}-\\d{4}$",
  "examples": [
    {
      "value": "2019-2020",
      "valid": true
    },
    {
      "value": "1914-1918",
      "valid": true
    },
    {
      "value": "2019-20",
      "description": "short form of the second year is not covered",
      "valid": false
    }
  ],
  "mappings": {
    "fta": "PERIOD.YEAR_RANGE"
  },
  "links": [
    {
      "type": "other",
      "url": "https://github.com/tsegall/fta/blob/main/SemanticTypes.md"
    }
  ],
  "translations": {
    "ru": {
      "name": "Диапазон лет"
    }
  },
  "detected_by": {
    "tools": [
      "fta"
    ]
  },
  "quality": {
    "score": 93,
    "missing": [
      "authoritative source link"
    ]
  },
  "source": {
    "path": "data/datatypes/any/datetime/year_range.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/datetime/year_range.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/year_range.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/year_range",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/year_range.json"
  }
}