[topicmapmail] Multiple scopes for one occurence in XTM-Topicmap

Kal Ahmed kal@techquila.com
Tue, 04 May 2004 17:36:54 +0100


Hi Armin,

Opinions differ on this (unfortunately) but I think that two possible 
approaches are:

1) Use two topicRefs inside your scope element (this is allowed by the 
XTM DTD!)

<topic id="example" >
  
  <baseName>
   <baseNameString>
  EXAMPLE
  </baseNameString>
  </baseName>
  <occurrence>
   <instanceOf>
    <topicRef xlink:href="#textdocument"/>
   </instanceOf>
   <scope>
      <topicRef xlink:href="#California"/>
      <topicRef xlink:href="#school-building"/>
   </scope>
   <resourceRef xlink:href="c:\data\behaviour_in_school.txt"/>
  </occurrence>
</topic>

In this case, there is an "implicit" AND between the two scoping topics.

2) Create a new topic that represents the concept "School building in 
California" and use some sort of association to say that "School 
building in California" is a combination of the topic "School building" 
and the geographical region "California", then use that single topic in 
the scope:

<topic id="example" >
  
  <baseName>
   <baseNameString>
  EXAMPLE
  </baseNameString>
  </baseName>
  <occurrence>
   <instanceOf>
    <topicRef xlink:href="#textdocument"/>
   </instanceOf>
   <scope>
      <topicRef xlink:href="#school-building-in-California"/>
   </scope>
   <resourceRef xlink:href="c:\data\behaviour_in_school.txt"/>
  </occurrence>
</topic>

<topic id="school-building-in-California">
...
</topic>
Note that I have (deliberately) left out the association as there are 
many possible ways of reflecting this - you could choose to model a 
simple combination using logical operators; or you could have a more 
complex domain-specific model (something like a faceted classification 
of contexts).

I started to write something about this on topicmapcentral. See 
http://www.topicmapcentral.com/wiki/Wiki.jsp?page=ScopeBestPractice - 
its an open wiki so other contributions are more than welcome!

Cheers,

Kal

Armin Wagenknecht web.de wrote:

> Hello,
>  
> i am modelling a TopicMap, and I have the following problem:
>  
> I want to use two scopes in the topicmap for one occurence which has 
> to satsify BOTH scopes!!
>  
> Example:
>  
> I have the textdocument "behaviour in school"  which is only valble 
> for school-buildings in the State of California.
>  
> Scope-Topic: California
> Scope-Topic: school-building
>  
> Occurence-Topic: textdocument
>  
> This Code covers only the scope "California" (anotherone would cover 
> only the scope "school-building"):
>  
> -----------------------------------------------
> <topic id="example" >
>   
>   <baseName>
>    <baseNameString>
>   EXAMPLE
>   </baseNameString>
>   </baseName>
>   <occurrence>
>    <instanceOf>
>     <topicRef xlink:href="#textdocument"/>
>    </instanceOf>
>    <scope><topicRef xlink:href="#California"/></scope>
>    <resourceRef xlink:href="c:\data\behaviour_in_school.txt"/>
>   </occurrence>
>  
> --------------------------------------
>  
> I would be very happy if someone have the solution for this problem.
>  
> Armin Wagenknecht, student at TU Darmstadt, Germany