Close menu

Uniform Resource Name


Source: http://en.wikipedia.org/wiki/Uniform_Resource_Name
Updated: 2017-07-21T17:53Z

In computing, a Uniform Resource Name (URN) is a Uniform Resource Identifier (URI) that uses the

urn

scheme.

URIs, URNs, and URLs

The functional requirements for Uniform Resource Names were described in 1994 by RFC 1737,[1] and the syntax was first defined in 1997 in RFC 2141 [2], since replaced by RFC 8141 [3] in 2017. Originally, URNs were conceived to be part of a three-part information architecture for the Internet, along with Uniform Resource Locators (URLs) and Uniform Resource Characteristics (URCs), a metadata framework. URNs were distinguished from URLs, which identify resources by specifying their locations in the context of a particular access protocol, such as HTTP or FTP. In contrast, URNs were conceived as persistent, location-independent, identifiers assigned within defined namespaces, typically by an authority responsible for the namespace, so that they are globally unique and persistent over long periods of time, even after the resource which they identify ceases to exist or becomes unavailable .[3]

However, URCs never progressed past the conceptual stage,[4] and other technologies such as the Resource Description Framework later took their place. Since RFC 3986[5] in 2005, use of the terms "Uniform Resource Name" and "Uniform Resource Locator" has been deprecated in technical standards in favor of the term Uniform Resource Identifier (URI), which encompasses both, a view proposed in 2001 by a joint working group between the World Wide Web Consortium (W3C) and Internet Engineering Task Force (IETF).[4]

A URI is a string of characters used to identify or name a resource. URIs are used in many Internet protocols to refer to and access information resources. URI schemes include the familiar http, as well as hundreds of others.

In the "contemporary view", as it is called, all URIs identify or name resources, perhaps uniquely and persistently, with some of them also being "locators" which are resolvable in conjunction with a specified protocol to a representation of the resources.

Other URIs are not locators and are not necessarily resolvable within the bounds of the systems where they are found. These URIs may serve as names or identifiers of resources. Since resources can move, opaque identifiers which are not locators and are not bound to particular locations are arguably more likely than identifiers which are locators to remain unique and persistent over time. But whether a URI is resolvable depends on many operational and practical details, irrespective of whether it is called a "name" or a "locator". In the contemporary view, there is no bright line between "names" and "locators".

In accord with this way of thinking, the distinction between Uniform Resource Names and Uniform Resource Locators is now no longer used in formal Internet Engineering Task Force technical standards, though the latter term, URL, is still in wide informal use.

The term "URN" continues now as one of more than a hundred URI "schemes", urn:, paralleling http:, ftp:, and so forth. URIs of the urn: scheme are not locators, are not required to be associated with a particular protocol or access method, and need not be resolvable. They should be assigned by a procedure which provides some assurance that they will remain unique and identify the same resource persistently over a prolonged period. Some namespaces under the urn: scheme, such as urn:uuid: assign identifiers in a manner which does not require a registration authority, but most of them do. A typical URN namespace is urn:isbn, for International Standard Book Numbers.

There are other URI schemes, such as tag:, info:, and ni:[6] which are similar to the urn: scheme in not being locators and not being associated with particular resolution or access protocols.

Syntax

The syntax of a urn: scheme URI is represented in Augmented Backus-Naur form as:[3]

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, aimms, algol68, apache, applescript, arm, asm, asp, asymptote, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, caddcl, cadlisp, cfdg, cfm, chaiscript, chapel, cil, clojure, cmake, cobol, coffeescript, cpp, csharp, css, cuesheet, d, dart, dcl, dcpu16, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, ezt, f1, falcon, fo, fortran, freebasic, freeswitch, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, haxe, hicest, hq9plus, html4strict, html5, icon, idl, ini, inno, intercal, io, ispfpanel, j, java, java5, javascript, jcl, jquery, kixtart, klonec, klonecpp, latex, lb, ldif, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, nagios, netrexx, newlisp, nginx, nimrod, nsis, oberon2, objc, objeck, ocaml, octave, oobas, oorexx, oracle11, oracle8, oxygene, oz, parasail, parigp, pascal, pcre, per, perl, perl6, pf, php, pic16, pike, pixelbender, pli, plsql, postgresql, postscript, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, pys60, python, q, qbasic, qml, racket, rails, rbs, rebol, reg, rexx, robots, rpmspec, rsplus, ruby, rust, sas, scala, scheme, scilab, scl, sdlbasic, smalltalk, smarty, spark, sparql, sql, standardml, stonescript, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, upc, urbi, uscript, vala, vb, vbnet, vbscript, vedit, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xpp, yaml, z80, zxbasic


      namestring    = assigned-name                      [ rq-components ]                      [ "#" f-component ]      assigned-name = "urn" ":" NID ":" NSS      NID           = (alphanum) 0*30(ldh) (alphanum)      ldh           = alphanum / "-"      NSS           = pchar *(pchar / "/")      rq-components = [ "?+" r-component ]                      [ "?=" q-component ]      r-component   = pchar *( pchar / "/" / "?" )      q-component   = pchar *( pchar / "/" / "?" )      f-component   = fragment

The leading scheme (

urn:

) is case-insensitive.

<NID>

is the namespace identifier, and may include letters, digits, and -. The NID is followed by the namespace-specific string

<NSS>

, the interpretation of which depends on the specified namespace. The NSS may contain ASCII letters and digits, and many punctuation and special characters. Disallowed ASCII and Unicode characters may be included if percent-encoded.

In 2017 the syntax for URNs was updated as follows:[3]

  • The slash character (/) is now allowed in the NSS to represent names containing slashes from non-URN identifier systems.
  • The q-component was added to enable passing of parameters to named resources.
  • The r-component was added to enable passing of parameters to resolvers. However, the updated specification notes that the r-component should not be used until its semantics are defined via further standardization.

Namespaces

In order to ensure the global uniqueness of URN namespaces, their identifiers (NIDs) are required to be registered with the IANA. Registered namespaces may be "formal" or "informal". An exception to the registration requirement was formerly made for "experimental namespaces"[7], since rescinded by RFC 8141.[3]

Formal

Approximately sixty formal URN namespace identifiers have been registered. These are namespaces where Internet users are expected to benefit from their publication,[3] and are subject to several restrictions. They must:

  • not be an already-registered NID
  • not start with
    urn-
  • be more than two letters long
  • not start with
    XY-
    , where XY is any combination of two ASCII letters
  • not start with
    x-
    (see "Experimental namespaces", below).

Informal

Informal namespaces are registered with IANA and assigned a number sequence (chosen by IANA on a first-come-first-served basis) as an identifier,[3] in the format

"urn-" <number>

Informal namespaces are fully fledged URN namespaces and can be registered in global registration services.[3]

Experimental

An exception to the registration requirement was formerly made for "experimental namespaces".[7] However, following the deprecation of the "X-" notation for new identifier names [8], RFC 8141 [3] did away with experimental URN namespaces, indicating a preference for use of the urn:example namespace where appropriate.[9]

Examples

URNcorresponds to
urn:isbn:0451450523
The 1968 book The Last Unicorn, identified by its book number.
urn:isan:0000-0000-9E59-0000-O-0000-0000-2
The 2002 film Spider-Man, identified by its audiovisual number.
urn:ISSN:0167-6423
The scientific journal Science of Computer Programming, identified by its serial number.
urn:ietf:rfc:2648
The IETF's RFC 2648.
urn:mpeg:mpeg7:schema:2001
The default namespace rules for MPEG-7 video metadata.
urn:oid:2.16.840
The OID for the United States.
urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66
A version 1 UUID.
urn:nbn:de:bvb:19-146642
A National Bibliography Number for a document, indicating country (
de
), regional network (
bvb
= Bibliotheksverbund Bayern), library number (19) and document number.
urn:lex:eu:council:directive:2010-03-09;2010-19-UE
A directive of the European Union, using the proposed Lex URN namespace.
urn:lsid:zoobank.org:pub:CDC8D258-8F57-41DC-B560-247E17D3DC8C
A directive of the Life Science Identifiers may be resolved to http://zoobank.org/urn:lsid:zoobank.org:pub:CDC8D258-8F57-41DC-B560-247E17D3DC8C .

See also

References

Citations

External links

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.

Also On Wow

    Advertisement

    Trending Now