Hyeon Young Lee
2004-07-05 20:42:53 UTC
Hello,
I am creating a relatively complex topic map in XTM. There are numerous
associations. My question: If I use a <roleSpec> in my associations to
define a relation R between two topics A and B, is it advisable to also use
<instanceOf> in my topics to say that A is an instance of B? Is this good,
wrong, or does it depend on the purpose?
An example:
<topic id="s1">
<instanceOf>
<topicRef xlink:href="#document"/>
</instanceOf>
....
</topic>
<association>
<instanceOf>
<topicRef xlink:href="#user_created_document"/>
</instanceOf>
<member>
<roleSpec>
<topicRef xlink:href="#user"/>
</roleSpec>
<topicRef xlink:href="#hy"/>
</member>
<member>
<roleSpec>
<topicRef xlink:href="#document"/>
</roleSpec>
<topicRef xlink:href="#s1"/>
....
</association>
As you can see, the relation between document and s1 is defined twice. I
have seen this in several topic maps, but found no clear guidelines.
Thanks....
Hyeon Young Lee
I am creating a relatively complex topic map in XTM. There are numerous
associations. My question: If I use a <roleSpec> in my associations to
define a relation R between two topics A and B, is it advisable to also use
<instanceOf> in my topics to say that A is an instance of B? Is this good,
wrong, or does it depend on the purpose?
An example:
<topic id="s1">
<instanceOf>
<topicRef xlink:href="#document"/>
</instanceOf>
....
</topic>
<association>
<instanceOf>
<topicRef xlink:href="#user_created_document"/>
</instanceOf>
<member>
<roleSpec>
<topicRef xlink:href="#user"/>
</roleSpec>
<topicRef xlink:href="#hy"/>
</member>
<member>
<roleSpec>
<topicRef xlink:href="#document"/>
</roleSpec>
<topicRef xlink:href="#s1"/>
....
</association>
As you can see, the relation between document and s1 is defined twice. I
have seen this in several topic maps, but found no clear guidelines.
Thanks....
Hyeon Young Lee