Wednesday, May 27, 2009

What is the difference between a URI and a URL?

Anybody who has browsed the Web knows that a URL is the web address of a web page on a web site. Meanwhile, the Semantic Web is based on the URI. So, what is a URI, and how are they different? The short answer is that all URLs are by definition URIs and in the context of the Semantic Web the preferred term is URI.

Part of the answer is historic: URL (Uniform Resource Locator) is the original term for a web address, the location of a web resource or web page on a web site, but technically we should be using the newer term URI (Uniform Resource Identifier.)

Going further back in history, at one stage URI meant Universal Resource Identifier, but that usage has been superceded by Uniform Resource Identifier.

There is a little bit more to it. While all URLs are in fact URIs, a subset of URIs are not URLs, in particular, the subset known as URNs or Uniform Resource Names. An example of a URN might the ISBN number for a book such as "URN:ISBN:0-062-51587-X".

So:

  • A URI is either a URL or a URN.
  • Every URL is a URI.
  • Every URN is a URI.
  • A URN is never a URL.
  • A URL is never a URN.

For HTML Web pages, it still makes since to refer to the URL of a web page, even though URI is now the technically more precise term, since an HTML Web page URI is in fact always a URL (and vice versa).

For RDF statements, the subject, predicate, and objects of an RDF triple are by definition referred to as URIs. They may at times in fact be URLs and refer to resources which are files on Web servers, but that is not required in all cases.

If you really want to get technical, there is a discussion in IETF RFC 3305 entitled "Report from the Joint W3C/IETF URI Planning Interest Group: Uniform Resource Identifiers (URIs), URLs, and Uniform Resource Names (URNs): Clarifications and Recommendations".

-- Jack Krupansky

26 Comments:

At January 26, 2013 at 7:26 AM , Blogger Claudio Timber said...

plumbing job is just too difficult to manage. Most of the time, though, you can fix the plumbing yourself if you are knowledgeable. Try these tips when your drain is clogged and you might not need to call the plumber. rancho cucamonga plumber

 
At March 19, 2013 at 4:12 AM , Blogger Sewer Repair Baltimore MD said...

This is the great information!
Broken Sewer Line Balitmore

 
At April 23, 2013 at 12:18 AM , Blogger Dentist Seo said...

This comment has been removed by the author.

 
At April 23, 2013 at 12:20 AM , Blogger Dentist Seo said...

i like to read your article..you giving to us great information!
Plumber SEO

 
At September 2, 2013 at 12:19 PM , Anonymous Pinky's Seattle Plumbing said...

I never heard of this before any ways thanks for the info.

 
At September 3, 2013 at 1:54 PM , Anonymous Commercial Moving Services San Antonio said...

this is new to me.. now it was clear to me what's the difference

 
At September 3, 2013 at 11:52 PM , Anonymous Professional House Cleaning Maid NY said...

it explain clearly what's bothering in my mind regarding with these two URI & URL

 
At September 5, 2013 at 12:41 AM , Anonymous Austin Wholesale Decking Supply said...

Thanks for nice post. I had to face trouble for browser cache.Now it's working.

 
At September 5, 2013 at 1:44 AM , Anonymous Houston DWI said...

"A URI is either a URL or a URN.
Every URL is a URI.
Every URN is a URI.
A URN is never a URL.
A URL is never a URN. Is like a helpful check card. That made this easier to memorize and understand"

 
At September 8, 2013 at 11:50 PM , Blogger Unknown said...

that was a very neat explanation. Minnesota Divorce

 
At November 30, 2013 at 8:55 AM , Blogger Mila Kier said...

Really thank you as I always had difficulty of understanding the difference. Renton's Deschutes Steelhead Guide, Fly-Fishing

 
At December 22, 2013 at 1:57 AM , Anonymous Cebu Resorts said...

I've learned something new.

 
At December 29, 2013 at 3:08 AM , Blogger Mila Kier said...

Harassment is any act that leads to stress, anxiety and sickness of a person. so please stop it! Learn about US Coast Guard License Training Alaska Waters Consulting

 
At December 29, 2013 at 11:16 PM , Anonymous House Cleaning Maid Service Vienna VA said...

that was a good explanation. you giving to us great information!

 
At January 30, 2014 at 1:59 PM , Anonymous Seattle SEO Expert said...

thanks for the clear definiton....

 
At March 2, 2014 at 11:24 AM , Blogger Unknown said...

Thanks for nice post.
you giving to us great information ^^
Recommended Affordable Irvine Self Storage

 
At March 24, 2014 at 2:55 AM , Anonymous Austin Maid Service Reliable Dependable said...

A URL is a specialization of URI that defines the network location of a specific resource. Unlike a URN, the URL defines how the resource can be obtained.

 
At May 7, 2014 at 1:21 AM , Anonymous suggested Beetlesmith Auto Repair Renton said...

hey i like to read your article, you giving to us great information!
thanks for this !

 
At May 8, 2014 at 3:34 PM , Anonymous Cheapest Symantec Software Download, from TrustPrice said...

Thanks for sharing this.! Now i can differentiate the two word give :) so useful!

 
At June 6, 2014 at 11:18 PM , Anonymous Austin Landscape Lighting said...

Thats a great article. I will be doing some interviews soon with local bands.

 
At August 7, 2014 at 5:48 AM , Anonymous user recommended top Alaska Paydirt concentrates, click here now said...

You give lots of great information and inspiration. For sure i will check out more of your posts.

 
At September 16, 2014 at 10:34 AM , Anonymous Highly recommended Alaska Fishing Lodge said...

the context of the Semantic Web the preferred term is URI.

 
At December 11, 2014 at 10:54 PM , Anonymous jual tas kamera said...

jual tas kamera

 
At February 20, 2015 at 10:18 AM , Blogger smartug6 said...

Faites appel à votre societe de vitrerie Eaubonne, Val-d'Oise, présents à toute heure.. Vitrier d'Eaubonne

 
At May 30, 2015 at 5:46 AM , Anonymous seo training institute in Jaipur said...

nice article is shared here according to me url and urn are both different things know about all rajasthan

 
At January 1, 2019 at 9:55 AM , Blogger IT Custom Solutions said...

thanks for sharing the most informative article this is the best for me to learn all about this thanks!
Data Recovery Sydney
Computer Repairs Sydney

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home