{
  "id": "tel_uri",
  "kind": "pattern",
  "status": "draft",
  "name": "Telephone number as a tel URI",
  "doc": "Telephone number written as a URI of the tel scheme (RFC 3966), as in HTML links, vCards and SIP messages. A global number starts with a plus sign and may contain hyphens, dots and parentheses as visual separators; a local number needs a phone-context parameter. Other parameters, such as ext for an extension, follow after semicolons.",
  "semantic_type": "phone",
  "is_pii": true,
  "categories": [
    "pii",
    "common",
    "telecom"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^tel:(?:\\+[\\d().-]*\\d[\\d().-]*|[\\dA-Fa-f*#().-]*[\\dA-Fa-f*#][\\dA-Fa-f*#().-]*)(?:;[^;\\s]+)*$",
  "examples": [
    {
      "value": "tel:+1-201-555-0123",
      "description": "Global number (RFC 3966)",
      "valid": true
    },
    {
      "value": "tel:7042;phone-context=example.com",
      "description": "Local number with a domain as its context (RFC 3966)",
      "valid": true
    },
    {
      "value": "tel:863-1234;phone-context=+1-914-555",
      "description": "Local number with a number prefix as its context (RFC 3966)",
      "valid": true
    },
    {
      "value": "+1-201-555-0123",
      "description": "The tel scheme is missing",
      "valid": false
    },
    {
      "value": "sip:+1-212-555-1212@gateway.com",
      "description": "A SIP URI, not a tel URI",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.rfc-editor.org/rfc/rfc3966"
    }
  ],
  "translations": {
    "ru": {
      "name": "Номер телефона в виде tel URI",
      "doc": "Номер телефона, записанный как URI схемы tel (RFC 3966), например в HTML-ссылках, vCard и сообщениях SIP. Глобальный номер начинается со знака плюс и может содержать дефисы, точки и скобки; для локального номера нужен параметр phone-context."
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/telecom/tel_uri.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/telecom/tel_uri.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/telecom/tel_uri.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/tel_uri",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/tel_uri.json"
  }
}