A Uniform Resource Name (URN) is another type of URI. Unlike URLs, URNs are used to identify a resource by its name in a specific namespace. They provide a persistent, location-independent resource identifier.
Example of a URN: urn:isbn:0451450523
- This URN identifies a book by its International Standard Book Number (ISBN), not by where you can find it.
URNs are useful when we want to refer to a resource without tying it to a particular location. For instance, digital books, scientific papers, and legal documents often use URNs to ensure that their identifier remains the same, no matter where the resource is moved.
So, while a URL is like a detailed address locating a resource online, a URN is more like a name given to a resource that stays the same regardless of where it is stored.