Embedded Trackbacks

Given the cite extension I mentioned earlier today it becomes possible to embed another well-known schema: trackbacks. The trackback RDF is notorious for being embedded in an HTML comment which hides it from everything except screen scrapers. Here's the trackback rdf from this posting:

<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
            xmlns:dc="http://purl.org/dc/elements/1.1/"
            xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">

  <rdf:Description rdf:about="http://blog.iandavis.com/2005/11/embedded-trackbacks"
    dc:identifier="http://blog.iandavis.com/2005/11/embedded-trackbacks"
    dc:title="Embedded Trackbacks"
    trackback:ping="http://blog.iandavis.com/2005/11/embedded-trackbacks.tb" />

</rdf:RDF>
-->

Here's one way of embedding that information in an XHTML document.

<html  xmlns="http://www.w3.org/1999/xhtml">
  <head profile="http://purl.org/NET/erdf/profile">
    <title>Embedded Trackbacks</title>
    <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
    <link rel="schema.trackback" href="http://madskills.com/public/xml/rss/module/trackback/" />
  </head>
  <body>
    <blockquote cite="http://blog.iandavis.com/2005/11/embedded-trackbacks">
      <h1 class="dc-title">Embedded Trackbacks</h1>
      <p>
         Link to this post at this permanent URL:
        <a href="http://blog.iandavis.com/2005/11/embedded-trackbacks" class="dc-identifier">http://blog.iandavis.com/2005/11/embedded-trackbacks</a>
        or ping it with a track back using this URL:
        <a href="http://blog.iandavis.com/2005/11/embedded-trackbacks.tb" class="trackback-ping">http://blog.iandavis.com/2005/11/embedded-trackbacks.tb</a>
      </p>
    </blockquote>
  </body>
</html>

I've worked on an enhanced embedded RDF extractor that understands the cite usage and here's its output. Hopefully I should be able to release the cite-enabled version later tonight.

<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:ns211="http://madskills.com/public/xml/rss/module/trackback/">
  <rdf:Description rdf:about="">
    <admin:generatorAgent rdf:resource="http://purl.org/NET/erdf/extract"/>
  </rdf:Description>
  <rdf:Description rdf:about="http://blog.iandavis.com/2005/11/embedded-trackbacks">
    <dc:title>Embedded Trackbacks</dc:title>
    <dc:identifier>http://blog.iandavis.com/2005/11/embedded-trackbacks</dc:identifier>

    <ns211:ping>http://blog.iandavis.com/2005/11/embedded-trackbacks.tb</ns211:ping>
  </rdf:Description>
</rdf:RDF>

Permalink: http://blog.iandavis.com/2005/11/embedded-trackbacks/


Other posts tagged as blogging, erdf, rdf, trackback

Earlier Posts