[topicmapmail] Occurrence resource naming
Knud Möller
knud.moeller@deri.org
Mon, 06 Dec 2004 16:50:09 +0000
Hi Alastair,
I havn't done much topic mapping lately, but can you not reify the
occurrence and tell your application to display that topic's basename
instead? Something along the following lines:
<topic id="reifiedOccurrence">
<subjectIdentity>
<resourceRef xlink:href="#googleStressSearch"/>
</subjectIdentity>
<baseName>
<baseNameString>'Stress' from Google</baseNameString>
</baseName>
</topic>
As far as I can see the XTM specification doesn't allow to specify
basenames for occurences directly.
Cheers,
Knud
Am 06.12.2004 um 15:15 schrieb ROBERTS, Alastair:
>
>
> Hi guys,
>
> I was wondering if there is a simple way of expessing a baseName for
> an occurrence? At the moment I might have something like :-
>
>
>
> Â Â Â Â Â Â Â <topic id="webPage">
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â <baseName>
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <baseNameString>Web Page</baseNameString>
> Â Â Â Â Â Â Â Â Â Â Â Â Â </baseName>
> Â Â Â Â Â Â Â </topic>
> Â Â Â Â Â Â Â <topic id="stressInTheWorkplace">
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â <baseName>
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <baseNameString>Stress (In the
> Workplace)</baseNameString>
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â </baseName>
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â <occurrence id="googleStressSearch">
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <instanceOf>
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <topicRef
> xlink:href="#webPage"></topicRef>
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </instanceOf>
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <resourceRef
> xlink:href="http://www.google.com?q=
=stress+workplace"></resourceRef>
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â </occurrence>
> Â Â Â Â Â Â Â </topic>
>
> Which is all very well producing the occurrence
>
> Web Page      Â
> â—¦ =09http://www.google.com?q=stress+workplace
=
>
>
>
>
> Whereas what I actually want to pass is something along the lines of :-
>
> Web Page
> â—¦ 'Stress' from google
>
>
>
> Normally you could express this with xlink via a show attribute :-
>
>        <resourceRef  Â
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â xlink:href="http://www.goog=
le.com?q=stress+workplace"
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â xlink:show="Stress search from google">
> Â Â Â Â Â Â Â </resourceRef>
>
> But the XML Topic Maps (XTM) 1.0 standard only supports type and href :
>
> <!ATTLIST resourceRef
>        id            ID            #IMPLIED
>        xlink:type     NMTOKEN        #FIXED 'simple'
>        xlink:href     CDATA  #REQUIRED
> >
> Any ideas?
>
>
> Visit http://w=
ww.bupa.com or call 0800 00 10 10 and find out what
> BUPA can do for you.
>
> BUPA, the health and care people
>
>
> BUPA House 15-19 Bloomsbury Way London WC1A 2BA
>
> Internet communications are not secure and therefore BUPA does
> not accept legal responsibility for the contents of this message. Any
> views or opinions presented are solely those of the author and do
> not necessarily represent those of BUPA.
>
-------------------------------------------------
Knud Möller, MA
+353 - 91 - 512624
Digital Enterprise Research Institute
National University of Ireland, Galway
Institiúid Taighde na FiontraÃochta DigitÃ
Ollscoil na hÉireann, Gaillimh