{
  "id": "iso8601_repeating_interval",
  "kind": "datatype",
  "status": "draft",
  "name": "ISO 8601 repeating interval",
  "doc": "Repeating time interval of ISO 8601: R, the number of repetitions if they are limited, then the interval as start and duration, start and end, or a duration alone, parts separated by slashes (R/2015-01-02/P2W every two weeks from 2 January 2015, R5/2008-03-01T13:00:00Z/P1Y2M10DT2H30M, R/P1Y). Waste collection schedules, recurring events and DCAT accrual periodicity write it; a single duration is iso8601duration, a frequency in words periodicity.",
  "is_pii": false,
  "categories": [
    "datetime"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^R\\d*/(?:[0-9T:.+\\-Z]{4,}/)?(?:P[0-9YMWDTHS.]+|[0-9T:.+\\-Z]{4,})$",
  "examples": [
    {
      "value": "R/2015-01-02/P2W",
      "description": "fortnightly rubbish collection, Greater Geelong waste collection areas",
      "valid": true
    },
    {
      "value": "R5/2008-03-01T13:00:00Z/P1Y2M10DT2H30M",
      "description": "ISO 8601 example",
      "valid": true
    },
    {
      "value": "R/P1Y",
      "valid": true
    },
    {
      "value": "P2W",
      "description": "a duration, iso8601duration",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/ISO_8601#Repeating_intervals"
    }
  ],
  "translations": {
    "ru": {
      "name": "Повторяющийся интервал ISO 8601"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "iso8601repeatingintervalvalue",
        "type": "data",
        "match": "func",
        "file": "common/assets.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/datetime/iso8601_repeating_interval.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/datetime/iso8601_repeating_interval.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/datetime/iso8601_repeating_interval.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/iso8601_repeating_interval",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/iso8601_repeating_interval.json"
  }
}