XML Topic Maps explained

The semantic web has been above my radar for some time now. Still I find it hard to grasp the available standards. My focus has been primarily on XTM (XML Topic Maps). Sure, I’ve read the TAO and played around with online examples. I even presented the concepts of the semantic web to 20 non-tech colleagues.

But… crafting a nifty simple XTM document myself? Not yet. It’s verbose. It’s hard.

Tonight, I found an apprehensive introduction: The Topic Maps Handbook (pdf). Pages 12 to 15 will get you up to speed with your first XTM. I chose ATC definitions as a domain for my topic map (see below). It’s a start.

Next step is visualization. I’m considering XSLT => dot => PNG. More on that later, if I succeed.

<?xml version="1.0" encoding="UTF-8"?>
<topicMap
xml:base="http://www.nederhoed.com/topicmaps/gstandaard.xtm"
xmlns="http://www.topicmaps.org/xtm/1.0/"
xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Domain description -->
<topic id="atc">
<baseName>
<baseNameString>Anatomical Therapeutic Chemical</baseNameString>
</baseName>
<occurrence>
<resourceRef xlink:href="http://en.wikipedia.org/wiki/Anatomical_Therapeutic_Chemical_Classification_System" />
</occurrence>
</topic>
<!-- Associations -->
<topic id="atc">
<baseName>
<baseNameString>Anatomical Therapeutic Chemical</baseNameString>
</baseName>
<occurrence>
<resourceRef xlink:href="http://en.wikipedia.org/wiki/Anatomical_Therapeutic_Chemical_Classification_System" />
</occurrence>
</topic>
<!-- Domain contents -->
<topic id="J01">
<instanceOf>
<topicRef xlink:href="#atc"/>
</instanceOf>
<baseName>
<baseNameString>Antibacterials for systemic use</baseNameString>
</baseName>
<baseName>
<scope>
<topicRef xlink:href="#atc" />
</scope>
<baseNameString>J01</baseNameString>
</baseName>
</topic>
<topic id="J01A">
<instanceOf>
<topicRef xlink:href="#atc"/>
</instanceOf>
<baseName>
<baseNameString>Tetracyclines</baseNameString>
</baseName>
<baseName>
<scope>
<topicRef xlink:href="#atc" />
</scope>
<baseNameString>J01A</baseNameString>
</baseName>
</topic>
<topic id="J01AA">
<instanceOf>
<topicRef xlink:href="#atc"/>
</instanceOf>
<baseName>
<baseNameString>Tetracyclines</baseNameString>
</baseName>
<baseName>
<scope>
<topicRef xlink:href="#atc" />
</scope>
<baseNameString>J01AA</baseNameString>
</baseName>
</topic>
<topic id="J01AA01">
<instanceOf>
<topicRef xlink:href="#atc"/>
</instanceOf>
<baseName>
<baseNameString>Demeclocycline</baseNameString>
</baseName>
<baseName>
<scope>
<topicRef xlink:href="#atc" />
</scope>
<baseNameString>J01AA01</baseNameString>
</baseName>
<occurrence>
<resourceRef xlink:href="http://en.wikipedia.org/wiki/Demeclocycline" />
</occurrence>
</topic>
<topic id="J01AA02">
<instanceOf>
<topicRef xlink:href="#atc"/>
</instanceOf>
<baseName>
<baseNameString>Doxycycline</baseNameString>
</baseName>
<baseName>
<scope>
<topicRef xlink:href="#atc" />
</scope>
<baseNameString>J01AA02</baseNameString>
</baseName>
</topic>
<!-- Medications -->
</topicMap>

Tags: ,

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: