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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Definition 516 A hyperlink is a reference to data that can immediately be followed by the<br />

user or that is followed automatically by a user agent.<br />

Definition 517 A collection text documents with hyperlinks that point to text fragments<br />

within the collection is called a hypertext. The action of following hyperlinks in a hypertext<br />

is called browsing or navigating the hypertext.<br />

In this sense, the WWWeb is a multimedia hypertext.<br />

Addressing on the World Wide Web<br />

c○: Michael Kohlhase 351<br />

The essential idea is that the World Wide Web consists of a set of resources (documents, images,<br />

movies, etc.) that are connected by links (like a spider-web). In the WWWeb, the the links consist<br />

of pointers to addresses of resources. To realize them, we only need addresses of resources (much<br />

as we have IP numbers as addresses to hosts on the Internet).<br />

Uniform Resource Identifier (URI), Plumbing of the Web<br />

Definition 518 A uniform resource identifier (URI) is a global identifiers of networkretrievable<br />

documents (web resources). URIs adhere a uniform syntax (grammar) defined in<br />

RFC-3986 [BLFM05]. Grammar Rules contain:<br />

URI :== scheme, ′ : ′ , hierPart, [ ′ ? ′ query], [ ′ # ′ fragment] hier − part :==<br />

′ // ′ (pathAbempty | pathAbsolute | pathRootless | pathEmpty)<br />

Example 519 The following are two example URIs and their component parts:<br />

http :// example . com :8042/ over / there ? name = ferret # nose<br />

\__/ \ ______________ /\ _________ / \ _________ / \__/<br />

| | | | |<br />

scheme authority path query fragment<br />

| ___ __________________ | __________<br />

/ \ / \<br />

mailto :m. kohlhase@jacobs - university .de<br />

Note: URIs only identify documents, they do not have to be provide access to them (e.g. in<br />

a browser).<br />

c○: Michael Kohlhase 352<br />

The definition above only specifies the structure of a URI and its functional parts. It is designed<br />

to cover and unify a lot of existing addressing schemes, including URLs (which we cover next),<br />

ISBN numbers (book identifiers), and mail addresses.<br />

In many situations URIs still have to be entered by hand, so they can become quite unwieldy.<br />

Therefore there is a way to abbreviate them.<br />

Relative URIs<br />

Definition 520 URIs can be abbreviated to relative URIs; missing parts are filled in from<br />

the context<br />

Example 521 Relative URIs are more convenient to write<br />

relative URI abbreviates in context<br />

#foo 〈current-file 〉#foo curent file<br />

../bar.txt file:///home/kohlhase/foo/bar.txt file system<br />

../bar.html http://example.org/foo/bar.html on the web<br />

201

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

Saved successfully!

Ooh no, something went wrong!