For Example: URI for home image, http://www.cs.org/Icons/home. Note the absence of a file extension. The URI for the home image is still universally unique, but it does not specify the specific representation of the image (either a GIF, PNG, or JPG). The selection of the representation can be determined by the web server through HTTP content negotiation.
A URL is a URI but a URI is not a URL. Schemes in the URL (locator) and URN (name) categories form subsets of URI, and also (generally) disjoint sets.
A URL is a specialization of URI that defines the network location of a specific representation for a given resource. Taking the same example, there are actually 2 representations available for the home resource:
These URIs also define the file extension that indicates what content type is available at the URL.
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.
'URN' ::= "urn:" 'NID' ":" 'NSS'
e.g. : urn:issn:0167-6423
The URN for the "Science of Computer Programming" journal, identified by its serial number.
A Uniform Resource Name (URN) functions like a person's name, while a Uniform Resource Locator (URL) resembles that person's street address. In other words: the URN defines an item's identity, while the URL provides a method for finding it.