Uniform Resource Name

From Wikipedia, the free encyclopedia

A Uniform Resource Name (URN) is a Uniform Resource Identifier (URI) that uses the urn scheme, and does not imply availability of the identified resource. Both URNs (names) and URLs (locators) are URIs, and a particular URI may be a name and a locator at the same time.

The Functional Requirements for Uniform Resource Names are described in RFC 1737. The URNs are part of a larger Internet information architecture which is composed of URNs, Uniform Resource Characteristics (URCs), and Uniform Resource Locators (URLs). Each plays a specific role:

  • URNs are used for identification,
    • URCs for including meta-information.
      • URLs for locating or finding resources.

RFC 2141 says:

Uniform Resource Names (URNs) are intended to serve as persistent, location-independent resource identifiers and are designed to make it easy to map other namespaces (that share the properties of URNs) into URN-space. Therefore, the URN syntax provides a means to encode character data in a form that can be sent in existing protocols, transcribed on most keyboards, etc.

Contents

[edit] URN Syntax

RFC 2141 (dated May 1997 and still classified as needing requests discussion and suggestions for improvements) describe in BNF the syntax of URNs as:

  <URN> ::= "urn:" <NID> ":" <NSS>

where <NID> is the Namespace Identifier, and <NSS> is the Namespace Specific String. Phrases enclosed in quotes are REQUIRED. The leading "urn:" sequence is case-insensitive. The Namespace ID determines the syntactic interpretation of the Namespace Specific String.

[edit] Comparison with URLs

A URN is like a person's name, while a URL is like their street address. The URN defines something's identity, while the URL provides a method for finding something. Essentially, "what" vs. "where".

URNs are often compared to the ISBN system for uniquely identifying books (and in fact you can encode an ISBN as a URN). Having a book's unique identifier lets you discuss the book, such as whether you've read it, enjoyed it, etc. To actually read the book, however, you need its location (e.g. "on the bedside table"). So URNs and URLs are often complementary; for example, you might discuss an RFC using both concepts: "you can find urn:ietf:rfc:3187 (URN) over at http://www.faqs.org/rfcs/rfc3187.html (URL)."

[edit] Examples

urn:isbn:0451450523
The URN for "The Last Unicorn", identified by its book number.
urn:issn:0167-6423
The URN for the "Science of Computer Programming" journal, identified by its serial number.
urn:sici:1046-8188(199501)13:1%3C69:FTTHBI%3E2.0.TX;2-4
A specific article in the journal "ACM Transactions on Information Systems", identified by its percent-encoded SICI code.[1]
urn:ietf:rfc:3187
The URN for the IETF's RFC 3187.
urn:mpeg:mpeg7:schema:2001
Default Namespace Rules for MPEG-7 video metadata.
urn:oid:2.16.840
The URN corresponding to the OID for the United States.
urn:sha1:YNCKHTQCWBTRNJIV4WNAE52SJUQCZO5C
the URN representing an exact MP3 file of the I have a dream speech by Martin Luther King.
urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66
A URN using a version 1 UUID.
urn:www.agxml.org:schemas:all:2:0
Namespace for Schema "Agricultural Markup Language 2.0 for Grain and Oilseed Business".

[edit] See also

[edit] External links

In other languages