Triples

  • Node: http://1.example.com/
    • Arc:http://purl.org/dc/elements/1.1/creator
      • Value: "Fred Flintstone"
  • Node: http://2.example.com/
    • Arc:http://purl.org/dc/elements/1.1/publisher
      • Value: mailto:publisher@example.com
    • Arc:http://purl.org/dc/elements/1.1/creator
      • Value: mailto:webmaster@2.example.com
  • Node: http://3.example.com/
    • Arc:http://purl.org/dc/elements/1.1/publisher
      • Value: mailto:publisher@example.com
    • Arc:http://purl.org/dc/elements/1.1/creator
      • Value: mailto:webmaster@3.example.com
  • Node: mailto:webmaster@3.example.com
    • Arc:http://www.w3.org/1999/02/22-rdf-syntax-ns#value
      • Value: "webmaster"

Here's the stylesheet I used:

<rt:stylesheet xmlns:rt="http://purl.org/vocab/2003/rdft/">
  <rt:root-template>
    <html>
      <head>
        <title>Triples</title>
      </head>
      <body>
      <ul>
        <rt:for-each rt:select="~subject()">
          <li>Node: 
            <rt:value-of rt:select="label()" />
            <ul>
              <rt:for-each rt:select="node()/resource()">
                <li>Arc:
                  <rt:value-of rt:select="label()" />
                    <ul>
                    <rt:for-each rt:select="resource()/resource()">
                      <li>Value: 
                        <rt:value-of rt:select="label()" />
                      </li>
                    </rt:for-each>
                    <rt:for-each rt:select="resource()/literal()">
                      <li>Value: 
                        "<rt:value-of rt:select="label()" />"
                      </li>
                    </rt:for-each>
                  </ul>
                </li>
              </rt:for-each>
            </ul>
          </li>
        </rt:for-each>
        </ul>
      </body>
    </html>
  </rt:root-template>
</rt:stylesheet>

This, for me, is a pretty significant step forward, and paves the way for all kinds of stylesheets. I just need to tighten up the testcases for arc selection and update the spec.

12 Comments

  1. napster file sharing

    Triples

    Trackback by Sybille Lingner — 17 Jul 2005 @ 1:34 am

  2. martinho da vila

    Triples

    Trackback by Klaus Hertwig — 30 Jul 2005 @ 11:38 am

  3. cheap mp3 song

    Triples

    Trackback by Yuki Yoshino — 2 Aug 2005 @ 11:01 pm

  4. blow-free-job-movie

    Triples

    Trackback by Luthi Anton — 10 Aug 2005 @ 9:31 pm

  5. free-xxx-hardcore-sex-pic

    Triples

    Trackback by Margus Theson — 10 Aug 2005 @ 9:31 pm

  6. Meridia

    Triples

    Trackback by Zora Sen Coutinho — 16 Aug 2005 @ 5:53 am

  7. Royal pills - generic drugs! zenegra, cialis, zyban, meridia…
    Triples

    Trackback by Holzknecht Rudolf — 19 Aug 2005 @ 11:10 am

  8. osteoporosis

    Triples

    Trackback by Olivia Raga — 21 Aug 2005 @ 10:50 am

  9. Cozaar

    Triples

    Trackback by Law Silvia — 27 Aug 2005 @ 11:34 am

  10. card check credit free porn using without

    Triples

    Trackback by Madeline Jud Stierli — 30 Aug 2005 @ 12:09 am

  11. brunettes babes

    Triples

    Trackback by Ursala Schmidt — 12 Sep 2005 @ 10:24 am

  12. free bondage sex video

    Triples

    Trackback by Kristina Mohr — 4 Oct 2005 @ 2:20 am

Leave a comment

Sorry, the comment form is closed at this time.