Uniform Resource Identifier (URI)
ID uri
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Identifier of a resource in the generic syntax of RFC 3986: a scheme, a colon and a scheme-specific part, optionally followed by ?query and #fragment, such as https://example.com/, mailto:John.Doe@example.com, urn:isbn:0451450523 or tel:+1-816-555-1212. URLs, which locate a resource, and URNs, which name it, are both URIs. The scheme starts with a letter and may contain letters, digits, +, - and .; IANA keeps the registry of schemes. The regexp accepts only the ASCII characters that RFC 3986 allows, with other characters percent-encoded, so IRIs with non-ASCII characters do not match.
- Categories
- Internet
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- HL7 FHIR identifier system
urn:ietf:rfc:3986- Quality
- 90/100 · missing: detector coverage
- Metacrafter rules
- no detection rule yet
- Supported by tools
- no tool record lists this type yet
Regular expression
^[A-Za-z][A-Za-z0-9+.-]*:(?:[A-Za-z0-9._~!$&'()*+,;=:@/?#\[\]-]|%[0-9A-Fa-f]{2})+$
Python re syntax.
Examples
| Value | Description |
|---|---|
| ldap://[2001:db8::7]/c=GB?objectClass?one | Example of RFC 3986, section 1.1.2 |
| mailto:John.Doe@example.com | Example of RFC 3986, section 1.1.2 |
| news:comp.infosystems.www.servers.unix | Example of RFC 3986, section 1.1.2 |
| tel:+1-816-555-1212 | Example of RFC 3986, section 1.1.2 |
| urn:oasis:names:specification:docbook:dtd:xml:4.1.2 | Example of RFC 3986, section 1.1.2 |
| www.example.com invalid | No scheme |
| 10:30 invalid | A time; a scheme starts with a letter |
| http://example.com/a b invalid | Unencoded space |
Child datatypes
| ID | Name | Categories | Countries | Description |
|---|---|---|---|---|
| bitcoin_uri | Bitcoin payment URI (bitcoin:) draft | cryptocurrency, internet | global | URI of the bitcoin: scheme that wallets open from links and QR codes to start a payment (BIP 321, which replaces BIP 21). It holds an... |
| data_uri | Data URI (data: URL) draft | internet | global | URI of the data: scheme that carries a small file inline instead of pointing to it (RFC 2397): data:, an optional media type with... |
| did | Decentralized identifier (DID) draft | identifiers | global | Identifier defined by the W3C Recommendation Decentralized Identifiers (DIDs) v1.0 (2022). It has the form... |
| magnet_link | Magnet URI (BitTorrent) | internet, identifiers | global | URI of the magnet: scheme that identifies a file or a torrent by a hash of its content instead of by its location, used by BitTorrent... |
| mailto_uri | Mailto URI PII draft | internet, pii | global | URI of the mailto: scheme (RFC 6068) that opens a new email message: one or more email addresses separated by commas, optionally... |
| sip_uri | SIP URI PII draft | telecom, internet, pii | global | Address of a user, a phone or a service in the Session Initiation Protocol (RFC 3261), used for voice over IP, video calls and instant... |
| tag_uri | Tag URI draft | internet | global | Unique identifier in the tag URI scheme defined by RFC 4151. It has the form tag:<authority>,<date>:<specific>. The authority is a... |
| uri_with_password | URI with embedded password PII draft | secrets, internet | global | URI whose user information part contains a password, as in scheme://user:password@host/. RFC 3986 deprecates this form, but database and... |
| url | Uniform Resource Locator (URL) | common, internet | global | Address of a resource on a network that also says how to retrieve it: a scheme such as https, a host, an optional port, a path, a query... |
| urn | Uniform Resource Name (URN) draft | internet | global | Persistent, location-independent name in the urn URI scheme, defined by RFC 8141. It has the form urn:<NID>:<NSS>. The namespace... |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Унифицированный идентификатор ресурса (URI) | Идентификатор ресурса в общем синтаксисе RFC 3986: схема, двоеточие и часть, зависящая от схемы. |
Sources
- wikipedia: https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
- doc: https://www.rfc-editor.org/rfc/rfc3986
- doc: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/uri - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/internet/uri.yamlon GitHub