W3C
 previous contents
 change-style

Ap: Extended Link mapping to RDF


graph of the extended link model
<element xmlns:xlink="http://www.w3.org/1999/xlink/namespace/"
         xlink:type="extended">
    <xlink:locator href="Source" role="role1"/>         
    <xlink:locator href="Target" role="role2"/>         
    <xlink:arc from="role1" to="role2"
               show="embed" actuate="auto"/>
    <xlink:title="The link title"/>         
    ...
</element>

translates to
           
<element>         
  <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
           xmlns:xlink="http://www.w3.org/1999/xlink/namespace/">
    <rdf:description about="#xptr(../..)">
        <xlink:type rdf:resource="xlink:extended"/>
        <xlink:locator rdf:about="source" rdf:id="role1"/>
        <xlink:locator rdf:about="target" rdf:id="role2"/>
        <xlink:arc>
            <xlink:from rdf:resource="#role1">
            <xlink:to rdf:resource="#role2">
            <xlink:show rdf:resource="xlink:embed"/>
            <xlink:actuate rdf:resource="xlink:auto"/>
        </xlink:arc>
        <xlink:title>the link title</xlink:title>
    </rdf:description>
  </rdf:rdf>
  ...
</element>  

Daniel Veillard

18 of 18