15.08.2013 Views

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

c○: Michael Kohlhase 353<br />

Note that some forms of URIs can be used for actually locating (or accessing) the identified<br />

resources, e.g. for retrieval, if the resource is a document or sending to, if the resource is a mailbox.<br />

Such URIs are called “uniform resource locators”, all others “uniform resource locators”.<br />

Uniform Resource Names and Locators<br />

Definition 522 A uniform resource locator (URL) is a URI that that gives access to a<br />

web resource, by specifying an access method or location. All other URIs are called uniform<br />

resource names (URN).<br />

Idea: A URN defines the identity of a resource, a URL provides a method for finding it.<br />

Example 523 The following URI is a URL (try it in your browser)<br />

http://kwarc.info/kohlhase/index.html<br />

Example 524 urn:isbn:978-3-540-37897-6 only identifies [Koh06] (it is in the library)<br />

Example 525 URNs can be turned into URL via a catalog service, e.g. http://wm-urn.<br />

org/urn:isbn:978-3-540-37897-6<br />

Note: URI/URLs are one of the core features of the web infrastructure, they are considered<br />

to be the plumbing of the WWWeb. (direct the flow of data)<br />

c○: Michael Kohlhase 354<br />

Historically, started out as URLs as short strings used for locating documents on the Internet.<br />

The generalization to identifiers (and the addition of URNs) as a concept only came about when<br />

the concepts evolved and the application layer of the Internet grew and needed more structure.<br />

Note that there are two ways in URIs can fail to be resource locators: first, the scheme does<br />

not support direct access (as the ISBN scheme in our example), or the scheme specifies an access<br />

method, but address does not point to an actual resource that could be accessed. Of course, the<br />

problem of “dangling links” occurs everywhere we have addressing (and change), and so we will<br />

neglect it from our discussion. In practice, the URL/URN distinction is mainly driven by the<br />

scheme part of a URI, which specifies the access/identification scheme.<br />

Running the World Wide Web<br />

The infrastructure of the WWWeb relies on a client-server architecture, where the servers (called<br />

web servers) provide documents and the clients (usually web browsers) present the documents to<br />

the (human) users. Clients and servers communicate via the http protocol. We give an overview<br />

via a concrete example before we go into details.<br />

The World Wide Web as a Client/Server System<br />

202

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!