I tried reading the W3C article but it confused me. I also red wikipedia and it confused me because if a book in a library has an ISBN wouldn't that be a URL because there is a system for finding a book given it's ISBN?
I tried reading the W3C article but it confused me. I also red wikipedia and it confused me because if a book in a library has an ISBN wouldn't that be a URL because there is a system for finding a book given it's ISBN?
I have a book with ISBN 978-0-321-55944-9. Tell me where in my house it is.
The ISBN doesn't help you find the book, it only tells you what book it is - author, publisher, version, etc. That makes it a URN. If you want a book analogy, the Dewey decimal system might be closer to a URL, since it tells you in what section of a library to find the book.Originally Posted by Wikipedia URI article
I get it about the ISBN now. So a URI can be either a URN or URL?
It confuses me when they say the URL has a scheme such as "http or ftp" isn't that the protocol?
Never really liked the book analogy. No idea why they keep insisting doing it since it is actually a bad analogy. No idea why they just don't show web addresses...
The terms are almost interchangeable these days. They all refer to the same thing; i.e. the address (or location) of some resource. The difference between the three is what exactly the address is pointing to and whether the address includes the protocol (the standard specifications refers to this has the schema) or not. So:
This is a URL. The protocol is defined (http). As well as a valid address to a document. No location in that document is defined.Code:http://cboard.cprogramming.com/tech-board/138678-cant-figure-out-differnece-between-uri-urn-url.html
This is a URI. The protocol is defined (http). A valid address to a document is defined. And a valid location in that document is defined.Code:http://cboard.cprogramming.com/tech-board/138678-cant-figure-out-differnece-between-uri-urn-url.html#post1032171
This is a URN. It's the same as a URI, but no protocol is defined.Code:cboard.cprogramming.com/tech-board/138678-cant-figure-out-differnece-between-uri-urn-url.html#post1032171
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Thanks! got it
Since a URI is also a URL and since webservers default to http, when specifying any type of valid address reachable through http, you can safely call it a URL. The distinction in terms is only necessary when you want to be technical, or perhaps when discussing addresses in the context of how a webserver sees them.
Also, for any webserver implementing a default document, addresses the likes of http://cboard.cprogramming.com, are URLs too, since the document portion will expand to something like default.htm, index.html, etc.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.