XLink Characterization

Web-Based Publishing (INFO 290-19)

Erik Wilde, UC Berkeley School of Information
2007-03-08
Creative Commons License

This work is licensed under a Creative Commons
Attribution-NonCommercial-ShareAlike 2.5 License.

Abstract

XLink's data model allows a number of combinations of XLink placement, XLink encoding, and XLink structure which make it hard to get an overview of all possible usages. XLink characterization aims at systematically looking at the various placements, encodings, and structures XLink allows, as well as looking at the individual participating resources of the link and their characterization in terms of their properties and their connections with the other resources participating in the link.

XLink Analyzer

 <xsl:param name="linkbase" select="''"/>
 <xsl:template match="/">
  <html>
   <head>
    <title>XLink Analyzer</title>
    <style type="text/css">*:target { outline : red solid medium ; }</style>
   </head>
   <body>
    <xsl:apply-templates select="/" mode="link-analyzer"/>
   </body>
  </html>

Outline (Link Phenomenology)

  1. Link Phenomenology [11]
    1. Link Types [3]
    2. Link Location [4]
    3. Link Occurrence [4]
  2. Resource Phenomenology [3]
  3. Conclusions [1]

Outline (Link Types)

  1. Link Phenomenology [11]
    1. Link Types [3]
    2. Link Location [4]
    3. Link Occurrence [4]
  2. Resource Phenomenology [3]
  3. Conclusions [1]

Simple vs. Extended

Simple Link: Type S

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
 <head>
  <title>XLink Type S</title>
 </head>
 <body>
  <h1>XLink Type S</h1>
  <p>This is a <span xlink:type="simple" xlink:href="http://dret.net/">Type S XLink</span>.</p>
 </body>
</html>

Extended Link: Type E

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
 <head>
  <title>XLink Type E</title>
 </head>
 <body>
  <h1>XLink Type E</h1>
  <p>This is a <span xlink:type="extended">
    <target xlink:type="locator" xlink:href="http://dret.net/" />
    <anchor xlink:type="resource">Type E XLink</anchor>
   </span>.</p>
 </body>
</html>

Outline (Link Location)

  1. Link Phenomenology [11]
    1. Link Types [3]
    2. Link Location [4]
    3. Link Occurrence [4]
  2. Resource Phenomenology [3]
  3. Conclusions [1]

Inline vs. Out-of-Line

Simple Inline Link: Type S/i

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
 <head>
  <title>XLink Type S</title>
 </head>
 <body>
  <h1>XLink Type S</h1>
  <p>This is a <span xlink:type="simple" xlink:href="http://dret.net/">Type S XLink</span>.</p>
 </body>
</html>

Extended Inline Link: Type E/i

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
 <head>
  <title>XLink Type E</title>
 </head>
 <body>
  <h1>XLink Type E</h1>
  <p>This is a <span xlink:type="extended">
    <target xlink:type="locator" xlink:href="http://dret.net/" />
    <anchor xlink:type="resource">Type E XLink</anchor>
   </span>.</p>
 </body>
</html>

Out-of-Line Link: Type E/o

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
 <head>
  <title>XLink Type E/o</title>
  <link xlink:type="extended">
   <target xlink:type="locator" xlink:href="http://dret.net/" />
   <target xlink:type="locator" xlink:href="#link" />
  </link>
 </head>
 <body>
  <h1>XLink Type E/o</h1>
  <p>This is a <span id="link">Type E/o XLink</span>.</p>
 </body>
</html>

Outline (Link Occurrence)

  1. Link Phenomenology [11]
    1. Link Types [3]
    2. Link Location [4]
    3. Link Occurrence [4]
  2. Resource Phenomenology [3]
  3. Conclusions [1]

Embedded vs. Linkbase

Embedded Link: Type E/o/e

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
 <head>
  <title>XLink Type E/o</title>
  <link xlink:type="extended">
   <target xlink:type="locator" xlink:href="http://dret.net/" />
   <target xlink:type="locator" xlink:href="#link" />
  </link>
 </head>
 <body>
  <h1>XLink Type E/o</h1>
  <p>This is a <span id="link">Type E/o XLink</span>.</p>
 </body>
</html>

Linkbase: Type E/o/l

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
 <head>
  <title>XLink Type E/o/l</title>
  <linkbase xlink:type="extended">
    <startrsrc xlink:type="locator" xlink:label="spec" xlink:href="." />
    <linkbase xlink:type="locator" xlink:label="linkbase" xlink:href="xlink-type-E-o-l-linkbase.xml" />
    <load xlink:type="arc" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:from="spec" xlink:to="linkbase" actuate="onLoad" />
  </linkbase>
 </head>
 <body>
  <h1>XLink Type E/o/l</h1>
  <p>This is a <span id="link">Type E/o/l XLink</span>.</p>
 </body>
</html>
<linkbase xmlns:xlink="http://www.w3.org/1999/xlink">
 <link xlink:type="extended">
  <target xlink:type="locator" xlink:href="http://dret.net/"/>
  <target xlink:type="locator" xlink:href="xlink-type-E-o-l.html#link"/>
 </link>
</linkbase>

Third-Party Linkbase: Type E/o/l3

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
 <head>
  <title>XLink Type E/o/l3</title>
 </head>
 <body>
  <h1>XLink Type E/o/l3</h1>
  <p>This is a <span id="link">Type E/o/l3 XLink</span>.</p>
 </body>
</html>
<linkbase xmlns:xlink="http://www.w3.org/1999/xlink">
 <link xlink:type="extended">
  <target xlink:type="locator" xlink:href="http://dret.net/"/>
  <target xlink:type="locator" xlink:href="xlink-type-E-o-l3.html#link"/>
 </link>
</linkbase>

Outline (Resource Phenomenology)

  1. Link Phenomenology [11]
    1. Link Types [3]
    2. Link Location [4]
    3. Link Occurrence [4]
  2. Resource Phenomenology [3]
  3. Conclusions [1]

XLinks Link Anything

MIME Types

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
 <head>
  <title>XLink Type E/o</title>
  <link xlink:type="extended">
   <!-- the following uri assumes an image fragment identifier of rect(startx, starty, sizex, sizey) -->
   <target xlink:type="locator" xlink:href="../img/lookoflink-xlink-mockup.jpg#rect(202,137,154,174)" />
   <target xlink:type="locator" xlink:href="http://w3.rz-berlin.mpg.de/cmp/beethoven_sym5_1.mp3" />
   <target xlink:type="locator" xlink:href="http://en.wikipedia.org/wiki/Symphony_No._5_(Beethoven)" />
  </link>
 </head>
 <body>
  <h1>XLink Type E/o</h1>
  <p>An image with music and text link: <img src="../img/lookoflink-xlink-mockup.jpg" /></p>
 </body>
</html>

Fragment Identifiers

Outline (Conclusions)

  1. Link Phenomenology [11]
    1. Link Types [3]
    2. Link Location [4]
    3. Link Occurrence [4]
  2. Resource Phenomenology [3]
  3. Conclusions [1]

Link Complexity