Why is URN one of more popular formats used to uniquely identify the resource?
Asked Answered
L

3

18

I somewhat understand that URNs are used to provide unique and location independent name for the resource. Yet I fail to see their usefulness and how exactly they work:

a) In order for URN to really be unique, there would have to be some central authority (similar to authority for domain names) where we could register URNs and that way ensure they are unique. Since there isn’t any such authority, how else do we make sure that our URNs are unique? And if we can’t. then what’s the point of having them?

b) Also,I don’t understand the reasoning behind URNs having the format urn:NID:NSS. What makes this format more efficient/logical than for example urn:NID:NID1:NSS?

c) And finally, how can URN help us locate a resource on the internet?


EDIT:

I'm not sure what you mean. NID is the Namespace Identifier and NSS is the Namespace Specific String Are you proposing a system of sub-namespaces?

I’m just trying to make sense of why the format URN uses is “superb” to other formats, such as urn:NID:NID1:NSS

Lookout answered 25/1, 2010 at 20:37 Comment(4)
please don't use HTML to format your SO questionsGarrulity
Are you concerned with URNs in a particular context? You tagged your question with xml and xhtml, but I fail to see why.Aspire
If you're trying to understand why a URN is better/more popular than some other scheme, you should specify some examples of alternatives to URN.Trentontrepan
I can't name you alternatives to URN since I don't know any. Anyways, I hope my post didn't come off as argumentative. I'm just trying to make some sense out of itLookout
M
29

a) In order for URN to really be unique, there would have to be some central authority... Since there isn’t any such authority, how else do we make sure that our URNs are unique?

There is a central authority, called IANA, to register namespaces (the NID part), and each namespace is responsible for ensuring uniqueness.

b) Also, I don’t understand the reasoning behind URNs having the format urn:NID:NSS. What makes this format more efficient/logical than for example urn:NID:NID1:NSS?

The "urn:NID:NSS" description states the interpretation of NSS depends on the value of NID. For example, if NID is "isbn", then we know to interpret the NSS as an ISBN number, as in "urn:isbn:0451450523".

The NSS part can contain colons, so "urn:example:other:more" is valid syntax. (And in-fact is a valid URN as of 2013-04-24.) For example, given "urn:mpeg:mpeg7:schema:2001", the NSS part is "mpeg7:schema:2001" and we interpret that according to the rules for the "mpeg" namespace.

Had "urn:NID:NID1:NSS" been required, it would have been redundant (some namespaces don't need a nested NID1) and superfluous (the authority for a namespace can already divide the NSS part up, as in the above mpeg example).

c) And finally, how can URN help us locate a resource on the internet?

URNs are not about location, that's a URL.

Magenta answered 21/6, 2010 at 9:46 Comment(0)
A
2

a) In order for URN to really be unique, there would have to be some central authority (similar to authority for domain names) where we could register URNs and that way ensure they are unique. Since there isn’t any such authority, how else do we make sure that our URNs are unique? And if we can’t. then what’s the point of having them?

An ISBN is used an a URN, and is managed by an agency.

b) Also,I don’t understand the reasoning behind URNs having the format urn:NID:NSS. What makes this format more efficient/logical than for example urn:NID:NID1:NSS?

I'm not sure what you mean. NID is the Namespace Identifier and NSS is the Namespace Specific String Are you proposing a system of sub-namespaces?

c) And finally, how can URN help us locate a resource on the internet?

A URN (Uniform Resource Name) doesn't help you locate something on the Internet. A URL (Uniform Resource Locator) does.

Also see What is the difference between URI and URL?

Aspire answered 25/1, 2010 at 20:42 Comment(4)
But then why is URN so useful? I assume there are plenty of other formats which we can use to identify a resource, so why is URN one of more popular ones?Lookout
Perhaps you are confused about the difference between URI, URL, and URN. A URI identifies, a URL locates, and a URN names. Also, both URL and URN are a type of URI.Aspire
I do understand that URI identifies a resource and that URL is also an URI, since besides locating the resource it also identifies it. I just feel I'm missing something very obvious about URNsLookout
uh, I didn't notice you've edited your post. In case you find the time, I've edited my initial post in response to your replyLookout
B
1

URNs

a URN ( Uniform Resource Name ), is supposed to be unique across both ( time and space ).

a URL\URI cannot guarantee his uniqueness, unlike a URN that can be a URI in the same time.

Maybe a URI Resource (X) in path (Y) is a valid URL, because the path can be a location, but the same whole Identifier (Z) can be duplicated in many physical, logical or virtual locations in the world.

``

# Unique only in the same actual location

Z = [Y => X];
A = [B => Z];
C = [D => Z];

But if we add A Uniform U (could be a domain name for example) at the beginning it can be more flexible but not unique (domains can get expired).

# Unique only in the same actual location

Z = [ U => Y => X ];

The same format can be extended and extended by other variables trying to make it as Unique as possible.

Because of this last, we have to make sure a more sophisticated and real unique format is here, that can identify more type of Resources across time and space.

``

"URNs" are not a "URLs" ( exception ofUnique persistant URL used as a name ), because they are not locating a resource, in fact they are more then what your think, they can identify [ *ideas, UUIDs, virtual or physical Objects and more* ], but both of them plus "URCs/data URIs" can be "URIs".

Note :

Take a look into a simple and more clear example of URNs here :

https://mcmap.net/q/18289/-what-is-the-difference-between-a-uri-a-url-and-a-urn

And here is a very informative link :

https://mcmap.net/q/18289/-what-is-the-difference-between-a-uri-a-url-and-a-urn

Ballistics answered 4/10, 2015 at 6:26 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.