[microformats-discuss] xFolk (RC1) and Topic Maps

Rob . rob.02004 at gmail.com
Wed Aug 10 16:48:37 PDT 2005


Rob . wrote:
> > I'm happy to discuss topic maps further and give XTM and LTM examples
> > if anyone is interested.

Bud Gibson wrote:
> I'm interested, 

Here are some snippets of XML Topic Map syntax, representing my
modelling of delicious bookmarks. Note that a topic map is the model,
XTM is merely an exchange format (bit like a relational model versus a
csv file).

<association>
    <instanceOf>
      <topicRef xlink:href='#bookmark'/>
    </instanceOf>
    <scope>
      <topicRef xlink:href='#rob'/>
    </scope>
    <member>
      <roleSpec>
        <topicRef xlink:href='#resource'/>
      </roleSpec>
      <topicRef xlink:href='#microformats_org'/>
    </member>
    <member>
      <roleSpec>
        <topicRef xlink:href='#tag'/>
      </roleSpec>
      <topicRef xlink:href='#microformats'/>
    </member>
  </association>

Here the resource topic referred to in that association:

  <topic id='microformats_org'>
    <instanceOf>
      <topicRef xlink:href='#resource'/>
    </instanceOf>
    <subjectIdentity>
      <resourceRef xlink:href='http://microformats.org/'/>
    </subjectIdentity>
    <occurrence>
      <instanceOf>
        <topicRef xlink:href='#title'/>
      </instanceOf>
      <scope>
        <topicRef xlink:href='#rob'/>
      </scope>
      <resourceData>microformats blog</resourceData>
    </occurrence>
    <occurrence>
      <instanceOf>
        <topicRef xlink:href='#description'/>
      </instanceOf>
      <scope>
        <topicRef xlink:href='#rob'/>
      </scope>
      <resourceData>pave cow paths</resourceData>
    </occurrence>
  </topic>

The Linear Topic Map Notation (LTM) is much more concise, so I'll show
more topics and bookmarks:

/* topic types */
[resource @"http://www.w3.org/1999/05/WCA-terms/01#Resource2"]
[tag @"http://dublincore.org/documents/dces/#subject"]
[user @"http://www.w3.org/1999/05/WCA-terms/01#User"]

/* occurence types */
[title @"http://dublincore.org/documents/dces/#title"]
[description @"http://dublincore.org/documents/dces/#description"]

/* association types */
[bookmark @"http://del.icio.us/post/"]

/* topics */
[rob : user @"http://del.icio.us/rob"]
[bud : user @"http://del.icio.us/bud"]
[microformats_org : resource %"http://microformats.org/"]
[microformats : tag @"http://del.icio.us/tag/microformats"]
[web : tag @"http://del.icio.us/tag/web"]

/* topic occurrences */
{microformats_org, title, [[microformats website]]} / bud
{microformats_org, title, [[microformats blog]]} / rob
{microformats_org, description, [[pave cow paths]]} / rob

/* bookmark associations */
bookmark(microformats_org, microformats) / bud
bookmark(microformats_org, microformats) / rob
bookmark(microformats_org, web) / rob

Cheers,
Rob


More information about the microformats-discuss mailing list