Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URI  RSS feed

 
Allion Salvador
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't quite get the URI stuff in the API. I read everything, but I still didn't get it. Could someone help me in PLAIN ENGLISH?!!!
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes it takes more than "plain English" to explain some concepts, but I shall try:
You know what a URL (Uniform Resource Locator) is, right? It's what you type into the address bar of a web browser to bring up a web page (i.e. www.javaranch.com). That's one kind of URI. If you have a URL you know exactly where on the network a resource is. A URI (Uniform Resource Identifier) is not as picky. While it can indicate where a resource is (like www.javaranch.com) it doesn't have to. For example, we can identify a book by using its ISBN number: urn:ISBN:0-395-36341-1. This lets us talk about a particular book but doesn't tell us how or where to get a copy.
Again, like our discussion of IO byte streams, it's kind of hard to picture how to use such a thing without having concrete examples. I've been programming for years and can't think of a time that I used a URI other than URL's.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!