XLink -> RDF mapping

I've taken a shot at the simple xlink mapping below. I
made one change to the example in the spec so that the
role is a qname rather than a textual value. I am also
using the typed node syntax and the RDF MS feature of
being able to specify an rdf:ID on a property (although
the latter doesn't seem to be supported by most of the
RDF parsers out there). 
 

<sample
xmlns:xlink="http://www.w3.org/namespace/xlink/1999/"
              xlink:href="target"
                    xlink:type="simple"
                    xlink:show="embed"
                    xlink:actuate="onLoad"
                    xlink:role="ns1:role1"
                    xlink:title="The link title">
                    ...
</sample>


<sample>
  <rdf:RDF ...>

    <xlink:Simple xmlns:ns1="someURI"
                  rdf:about="#xpointer(../..)">
      <ns1:role1 rdf:ID="22" rdf:resource="target/>
    </xlink:Simple>

    <xlink:Meta rdf:about="#22">
      <xlink:show rdf:resource="xlink:embed"/>
      <xlink:actuate rdf:resource="xlink:onLoad"/>
      <xlink:title>The link title</xlink:title>
    </xlink:Meta>

  </rdf:RDF>
  ...
</sample>


-- 
--------------------------- 
http://www.jfinity.com/gabe

Received on Tuesday, 21 December 1999 13:50:12 UTC