<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>No Rest For The Weekend &#187; internet</title>
	<atom:link href="http://www.norestfortheweekend.com/category/internet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.norestfortheweekend.com</link>
	<description>Time is an illusion. Weekends doubly so.</description>
	<lastBuildDate>Thu, 02 Feb 2012 15:30:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>What&#8217;s the difference between URL and URI?</title>
		<link>http://www.norestfortheweekend.com/2009/09/13/whats-the-difference-between-url-and-uri/</link>
		<comments>http://www.norestfortheweekend.com/2009/09/13/whats-the-difference-between-url-and-uri/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 14:02:53 +0000</pubDate>
		<dc:creator>markstickley</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[isbn]]></category>
		<category><![CDATA[uri]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[urn]]></category>

		<guid isPermaLink="false">http://www.norestfortheweekend.com/?p=38</guid>
		<description><![CDATA[Good question, and something I&#8217;ve often wondered. You hear people using both terms the whole time so let&#8217;s lay this one to rest. So I&#8217;m sitting in this café writing some code and probably looking like a bit of a geek. Fair enough, thviagra happens. For various reasons I want to have a variable in [...]]]></description>
			<content:encoded><![CDATA[<p>Good question, and something I&#8217;ve often wondered. You hear people using both terms the whole time so let&#8217;s lay this one to rest.</p>
<p>So I&#8217;m sitting in this café writing some code and probably looking like a bit of a geek. Fair enough, th<a href=http://atlantic-drugs.net/products/viagra.htm>viagra</a> happens. For various reasons I want to <a href='http://cvsmailorderpharmacy.org/buy-kamagra-usa.html'>have</a> a variable in my webapp&#8217;s registry that stores the URL of the current page. Or is it URI? I&#8217;m at a bit of a loss on what to call it.</p>
<h4>What is a URL?</h4>
<p>URL stands for <em>Uniform Resource Locator</em> which means it&#8217;s a reference to a specific <em>location</em>. Importantly the location must be on the web, although this isn&#8217;t indicated within it&#8217;s name. More </p>
<h4>What is a URI?</h4>
<p>In relation to a URL<strong>a URI is like a superclass</strong>. It stands for <em>Uniform Resource Identifier</em> which means it&#8217;s a reference to a specific <em>thing</em>. This thing could be just about anything addressable. For example a location on the web!</p>
<h4>What&#8217;s the difference really? Why don&#8217;t we just use URL?</h4>
<p>We should do if we are talking about web addresses! The distinction is that a URL provides information on how to get to the resource (Eg. http, https, ftp, mailto, etc). A URI can be relative (Eg. /path/to/file.jpg) or missing the protocol (Eg. //www.norestfortheweekend.com/2009/). These are both valid URIs but not URLs.</p>
<h4>Hidden Extras</h4>
<p>A URL <em>is a </em> URI but a URI <em>is not necessarily</em> a URL. We see this kind of relationship in programming with classes. Another &#8216;subclass&#8217; of URI which not as many people have heard of is the URN.</p>
<p>URNs (Uniform Resource Name) start with <code>urn:</code> followed by a string identifying something. They are used for identification purposes rather than as a way of finding (locating) things as URLs are. Something that has some kind of universal identifier can be formatted as a URN. A good example of this is books. The majority of books at retail have an <abbr title="International Standard Book Number">ISBN</abbr>. The ISBN is their universal identifier; it doesn&#8217;t point to where you can find the book, or contain any of the books subject matter. It just identifies it in a way that there is no confusion as to what you&#8217;re talking about. </p>
<p>An ISBN can be expressed as a URN: <code>urn:isbn:1582408181</code>.</p>
<p class="furtherreading">For more wordy explanations, check out the wikipedia articles on <a href="http://en.wikipedia.org/wiki/Uniform_Resource_Identifier">URIs</a>, <a href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator">URLs</a> and <a href="http://en.wikipedia.org/wiki/Uniform_Resource_Name">URNs</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.norestfortheweekend.com/2009/09/13/whats-the-difference-between-url-and-uri/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
