Datatypes › Internet

Uniform Resource Name (URN)

ID urn

DatatypeNot PIIidentifierDraft

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).

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 datatype
Uniform Resource Identifier (URI) uri
Categories
Internet
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
90/100 · missing: mapping (Wikidata, Schema.org, ...)
Metacrafter rules
no detection rule yet
Supported by tools
Logstash and Elastic grok patterns

Regular expression

^[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})*$

Python re syntax.

Test a value

Examples

ValueDescription
urn:isbn:0451450523 Book identified by its ISBN
urn:ietf:rfc:2648 IETF RFC 2648
urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66 UUID namespace
urn:nbn:de:bvb:19-146642 National Bibliography Number (Germany)
urn:a:123 invalid The namespace identifier must be at least two characters long
https://example.org/a invalid A URL, not a URN

Child datatypes

IDNameCategoriesCountriesDescription
cts_urn CTS URN (Canonical Text Services) texts global URN that cites a passage of a text by its canonical reference, used for classical Greek and Latin texts in the Perseus Digital Library,...
epc_uri Electronic Product Code (EPC) pure identity URI gs1 global Identifier of one individual physical object in the GS1 EPC Tag Data Standard, written as a URN: urn:epc:id:<scheme>:<fields>. The...
lsid Life Science Identifier (LSID) science global Identifier for a piece of life-science data, written in URN form as urn:lsid:<authority>:<namespace>:<object id>, optionally followed by...
urn_nbn National Bibliography Number URN (URN:NBN) publishing, objectids global Uniform Resource Name in the NBN namespace (RFC 8458): a persistent identifier that national libraries and their partners assign to...

Translations

LanguageNameDescription
RussianУнифицированное имя ресурса (URN)Постоянное имя ресурса в схеме urn (RFC 8141) вида urn:<пространство имён>:<строка>.

Sources

Use this record