URI And URL Difference

07/10/2009

Before going into URL and URI,

you need to know some background. Do you ever thought about, who decides what is URL? and what is URI? or who is the authority for URL, URI and such naming conventions?

W3C and IETF

There are two separate bodies W3C and IETF. The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web. The specifications for URI and URL are defined by W3C.

It was founded and headed by Sir Tim Berners-Lee. He is one of the greatest scientist living now. He created this www model of server and client architecture, a web server serving web pages through network and client browsers reading it. He did it first when he was with CERN. He created the world’s first web page http://info.cern.ch/ . He was also in HTML 2.0 working group of IETF. So it is very appropriate for W3C to define URI and URL.

Internet Engineering Task Force (IETF) is an open international community working on Internet related standards. In general it addresses issues of Internet protocols.

In particular W3C defines the web, html specifications and related information. IETF defines IP, TCP, or DNS, for security at any of these levels; with SMTP or NNTP protocols.

So the stake for definition for URI and URL is with W3C. But as there is only a thin line between these organisation’s work they tend to cross each other. In some place IETF gives dissimilar definition for URL and URI.

If you read through the huge volume of journals available in web for this topic, you can sense that experts :-( are using URI and URL synonymously. Which is causing all these confusion among the web community about URI, URL and URN.

URI

An URI identifies a resource. It is a locator. It includes a URI scheme, authority, path, query and fragment by syntax. For example, http: is a URI scheme.

Syntax of URI based on RFC 3986

foo://example.com:8042/over/there?name=ferret#nose
\_/ \______________/\_________/ \_________/ \__/
| | | | |
scheme authority path query fragment
| _____________________|__
/ \ / \
urn:example:animal:ferret:nose

URL

The term “Uniform Resource Locator” (URL) refers to the subset of URIs that, in addition to identifying a resource, provide a means of locating the resource by describing its primary access mechanism (e.g., its network “location”).

URN

The term “Uniform Resource Name” (URN) is used to identify a resource independent of its location. Example urn:ISBN:1-23-432536-5

Summary of differences between URI and URL

  • A URI was either a URL or a URN.
  • URL is a subset of URI. It identifies a resource using one of the URI schemes.
  • URN is a subset of URI. It identifies a resource independent of its location.

Whenever you have a doubt that, whether something is a URL or URI then use URI as a term to identify it. Since URI is a super set of URL.

thank you very much to give me this url. it is very usefull to our students i will give this url to all of my students.

ch raja ramesh on November 16th, 2009 8:25 pm

Thank u for this info….

Chetan on December 14th, 2010 4:40 am

thanks it is realy usefull 4 student

M.NADEEN on December 28th, 2010 4:01 am

thank u…………

vinay on March 31st, 2011 1:23 pm

Hi,
This URL is indeed wonderful as I came to know about one of the fact about the first web Page.
Will keep looking for more updates in the future like these.

Regards
Hiten

Hiten on April 8th, 2011 5:02 pm

thnx

Babai on May 17th, 2011 2:37 am

Thanks a lot Joseph my confusion about URL,URI,URN
has been cleared after going thro this blog
Keep up the good work!!!

navin chaitanya on June 10th, 2011 8:20 am

you are a genious….i have never seen such kind of easy understandable site..plz plz update info in your blog..plz plz

sandy on June 19th, 2011 3:11 pm

Well said.. keep up the good work. Thanks

Geet on June 28th, 2011 2:56 pm

But these two things are not explained clearly…. i have still confusing both uri and url…. please clarify this doubt….

chandru on July 26th, 2011 8:25 am

Will u plz clarify this in deep

Manthan on August 20th, 2011 2:38 pm

b.getBMenthod()

Rag on August 30th, 2011 5:36 am

Thanks for giving information.try to give briefly information like this.
what is URL,purpose of it?
what is URI,purpose of it?
whats the diff of them?

URL URI
1.
2.
3.

Thanks & Regards
k.sainath

K.SAINATH REDDY on September 5th, 2011 9:26 am

This page is easy understood for our students. It have very simply answer. Please diffenciate with table format.

Ranga , RKMPTC on September 25th, 2011 11:04 am

thank u shakthimaaan

Anonymous on October 12th, 2011 4:33 am

thanku shakthimaan

saretth on October 12th, 2011 4:35 am

thanks dis info

renju on October 14th, 2011 7:51 am

its very helpful

vijay on November 12th, 2011 9:57 am

Thanks Joe for explaining the terms clearly in very simple and easy ways, clear my doubts.

Irfan on December 6th, 2011 4:25 am

Sir URI stands for uniform resource identifier..

Rishi jhunjhunwala on December 20th, 2011 3:24 pm

Hi Joe,
Your information is really usefull.I want to know about how post method sends the data to the server in request message body.please help me in this regard.

sandhya on December 30th, 2011 4:55 am

Hi Joe,

I was wondering if you would consider showing tutorial material on Java for Android. Clearly,there is a plethora of material on the Internet… but not necessarily high-quality material.

Anonymous on January 17th, 2012 7:55 am

Recently I have been working on Android and I will try my best to post some articles on it soon.

Joe on January 17th, 2012 10:56 am

Hi,

Can you say an example for URI & URL

subha on January 18th, 2012 3:27 pm

Thsnks for giving this info about uri and url aswellas urn.I got fully confident what is what on that but a small doubt on that is uri is only before location resource.right? then Is url a after uri scheme location commes under url.

chandra on January 18th, 2012 7:21 pm

liitle but bit satisfactory

raaj on January 19th, 2012 10:31 am

it is so nic. thank u

sriram on January 19th, 2012 11:08 pm

please explain more about it

sriram on January 19th, 2012 11:10 pm

bambard …. maan gaye

Anonymous on January 20th, 2012 4:36 pm

gr8 design

Anonymous on February 1st, 2012 1:56 pm

good decription.Thanks

Anonymous on February 4th, 2012 12:01 pm


Email:

about
I am Joe, author of this blog. I run this with loads of passion. If you are into java, you may find lot of interesting things around ...more about me. Google+
java badge
Home