{
  "id": "urn",
  "kind": "datatype",
  "status": "draft",
  "name": "Uniform Resource Name (URN)",
  "doc": "Persistent, location-independent name in the urn URI scheme, defined by RFC 8141. It has the form urn:<NID>:<NSS>. The namespace identifier (NID) is a name registered with IANA, 2 to 32 letters, digits and hyphens long, such as isbn, uuid or ietf. The namespace-specific string (NSS) follows the rules of that namespace. The urn prefix is case-insensitive. A URN names a resource; it does not say where to retrieve it.",
  "parent": "uri",
  "children": [
    "epc_uri",
    "lsid"
  ],
  "is_pii": false,
  "categories": [
    "internet"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[Uu][Rr][Nn]:[A-Za-z0-9][A-Za-z0-9-]{0,30}[A-Za-z0-9]:(?:[A-Za-z0-9._~!$&'()*+,;=:@-]|%[0-9A-Fa-f]{2})(?:[A-Za-z0-9._~!$&'()*+,;=:@/-]|%[0-9A-Fa-f]{2})*$",
  "examples": [
    {
      "value": "urn:isbn:0451450523",
      "description": "Book identified by its ISBN",
      "valid": true
    },
    {
      "value": "urn:ietf:rfc:2648",
      "description": "IETF RFC 2648",
      "valid": true
    },
    {
      "value": "urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66",
      "description": "UUID namespace",
      "valid": true
    },
    {
      "value": "urn:nbn:de:bvb:19-146642",
      "description": "National Bibliography Number (Germany)",
      "valid": true
    },
    {
      "value": "urn:a:123",
      "description": "The namespace identifier must be at least two characters long",
      "valid": false
    },
    {
      "value": "https://example.org/a",
      "description": "A URL, not a URN",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Uniform_Resource_Name"
    },
    {
      "type": "doc",
      "url": "https://www.rfc-editor.org/rfc/rfc8141"
    },
    {
      "type": "doc",
      "url": "https://www.iana.org/assignments/urn-namespaces/urn-namespaces.xhtml"
    }
  ],
  "translations": {
    "ru": {
      "name": "Унифицированное имя ресурса (URN)",
      "doc": "Постоянное имя ресурса в схеме urn (RFC 8141) вида urn:<пространство имён>:<строка>."
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/internet/urn.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/internet/urn.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/urn.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/urn",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/urn.json"
  }
}