Uri & Url
Uri & Url
URI stand for Uniform Resource Identifier, which is used to identify resource on the
web.
A URI identify a resource either by location, or a name, or both.
More often than not, most of us use URIs that defines a location to a resource.
URIs can be classified as uniform resource Locators (URLs), as Uniform Resource
names (URNs), or as both.
A uniform resource name (URN) function 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
to find it.
URI
URN URL
Fig Uniform Resource Identifier
The World Wide Web can conceive as a large group of resource placed in different
computer all around the world.
The resource can be found and linked through URIs.
URI identifies resource by assigning them addresses in a given network.
Uniform Resource Locator (URL)
A URL is a type of URI that’s used to describe the location of a specific document.
A URL doesn’t define the type of content to be found (texts, images, movies, etc.), it
only shows where to find it
A common URL is composed by four parts:
The Protocol: this specifies which protocol is used to access the document. It is also
called URL scheme.
The computer name: gives the name of the computer, usually a domain name or IP
address, where the content is hosted.
The directories path: sequence of directories that define the path to follow to reach
the document.
The file name: the name of the file containing the resource.
For Example, http://www.mskdsoft.com/cv/index.php
Protocol: http://
Computer Name (Domain Name): www.mskdsoft.com
Directories path: /cv/
File Name: index.php
Other example of URL are:
mailto:[email protected]
telnet://192.0.2.16:80/
tel:+923445244445
ftp://ftp.mskdsoft.com/
1|Page
Uniform Resource Name (URN)
A URN identifies a resource by name in a given namespace but not define how the
resource maybe obtained.
URN functions like a person’s name, while a 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.
The ISBN system for uniquely identifying books provides a typical example of the
use of URNs.
ISBN 0-486-27557-4 (urn:isbn:0-486-27557-4) cites, unambiguously, a specific
edition of Shakespeare’s play Romeo and Juliet.
To gain access to this object and read the book, one needs its location: a URL
address.
A typical URL for this book an a Unix-like operating system would be a file path such
as file:///home/username/book/, identifying the electronic book library
saved on a local hard disk.
So URNs and URLs have complementary purposes.
Example URN are:
urn:isbn:0451450523 – The URN for the last Unicorn (1968 Book), identified
by its book number.
urn:isan:0000-0000-9E59-0000-O-0000-0000-2 – The URN for Spider-
Man (2002 film) identified by its audiovisual number.
urn:issn:0167-6423 – The URN for the science of computer science
programming (scientific journal), identified by its serial number.
urn:ietf:rfc:2648 – The URN for IETF’s RFC 2648.
2|Page