二、 相關文獻探討
2.2 主題地圖
2.2.4 XTM 語法元素
XTM 語法共有 19 個元素,其用法說明如下,並可參見表 9。
1. 主題地圖 (Topic Map) :根元素為 <topicMap> ,可運用的子元素包
含 <topic> 、 <association> 與 <mergeMap> 。
2. 資 源 指 引 主 題 與 主 題 指 標 3 (References to Topics and Subject Indicators) :根元素為 <topicRef> 與 <subjectIndicatorRef> 。
3. 範圍與情境 (Scope and Context) :根元素為 <scope> ,可運用的子元 素包括 <topicRef> 、 <resourceRef> 與 <subjectIndicatorRef> 。 4. 類別與實例 (Classes and Instances) :根元素為 <instanceOf> ,可運
用的子元素包括 <topicRef> 和 <subjectIndicatorRef> 。
5. 主題 (Topic and Subjects) :根元素為 <topic> 與 <subjectIdentity> , 其 中 <topic> 可 運 用 的 子 元 素 包 括 <instanceOf> 、
<subjectIdentity> 、 <baseName> 與 <occurrence> ; <subjectIdentity>
可 運 用 的 子 元 素 包 括 <resourceRef> 、 <subjectIndicatorRef> 或
<topicRef> 子元素。
6. 主 題 名 稱 (Topic Names) : 根 元 素 為 <baseName> 、
<baseNameString> 、 <variant> 、 <variantName> 與 <parameters> , 其 中 <baseName> 可 運 用 的 子 元 素 包 括 <scope> 、
<baseNameString> 與 <variant> ; <variant> 可運用的子元素包括
<parameters> 、 <variantName> 與 <variant> ; <variantName> 可運 用的子元素包括 <resourceRef> 與 <resourceData> ; <parameters>
可運用的子元素包括 <topicRef> 與 <subjectIndicatorRef> 。
7. 關聯與成員 (Associations and Members) :根元素為 <association> 、
<member> 與 <roleSpec> ,其中 <association> 可運用的子元素包括
<instanceOf> 、 <scope> 與 <member> ; <member> 可運用的子元
3 「主題指標」 (Subject Indicator) 是指由 Topic Maps 作者提供主題 (Subject) 之識別 (Indentity) 一個既實際又明確的標誌 (Indication) ,此標誌被視為是資源。
素 包 括 <roleSpec> 、 <topicReg> 、 <resourceRef> 與
<subjectIndicatorRef> ; <roleSpec>可運用的子元素包括 <topicRef>
與 <subjectIndicatorRef> 。
8. 資 源 指 引 和 資 源 (Occurrences and Resources) : 根 元 素 為
<occurrence> 、 <resourceRef> 與 <resourceData> , 其 中
<occurrence> 可 運 用 的 子 元 素 包 括 <instanceOf> 、 <scope> 、
<resourceRef> 與 <resourceData> 。
9. 合併 (Merging) :根元素為 <mergeMap> ,可運用的子元素包括
<topicRef> 、 <resourceRef> 與 <subjectIndicatorRef> 。 表 9 XTM 語法元素
主題地圖 (The Topic Map)
<topicMap> 主題地圖文件的根元素。可運用的子元素 包含<topic> 、 <association> 與
<mergeMap> 。
資源指引主題與主題指標 (References to Topics and Subject Indicators)
<topicRef> 資源指引主題元素。
<subjectIndicatorRef> 資源指引主題指標。
範圍與情境 (Scope and Context)
<scope> 資源指引構成範圍的主題。所以,被資源 指引的主題有共同存在的情境。可運用的 子元素包括 <topicRef> 、 <resourceRef>
與 <subjectIndicatorRef> 。 類別與實例 (Classes and Instances)
<instanceOf> 指向可以表示主題類型的主題。可運用的 子元素包括 <topicRef> 和
<subjectIndicatorRef> 。 主題 (Topic and Subjects)
<topic> 標示出主題。可運用的子元素包括
<instanceOf> 、 <subjectIdentity> 、
<baseName> 和 <occurrence> 。
<subjectIdentity> 主題識別。可透過 <resourceRef> 、
<subjectIndicatorRef> 或 <topicRef> 子 元素,來指名主題所具體化的主題 (subject) 。
主題名稱 (Topic Names)
<baseName> 主題的基本名稱。可運用的子元素包括
<scope> 、 <baseNameString> 與
<variant> 。
<baseNameString> 主題基本名稱之字串內容。
<variant> 主題的基本名稱以外的名稱;變異名稱。
可運用的子元素包括 <parameters> 、
<variantName> 及 <variant> 。
<variantName> 變異名稱之容器。可運用的子元素包括
<resourceRef> 與 <resourceData> 。
<parameters> 變異名稱 (<variant>) 的處理情境。可運 用的子元素包括 <topicRef> 和
<subjectIndicatorRef> 。
關聯與成員 (Associations and Members)
<association> 主題間之關聯。可運用的子元素包括
<instanceOf> 、 <scope> 及
<member> 。
<member> 關聯成員。指出在關聯中,扮演某種角色 的主題。可運用的子元素包括
<roleSpec> 、 <topicReg> 、
<resourceRef> 與
<subjectIndicatorRef> 。
<roleSpec> 指明在關聯中,成員扮演的角色。可運用 的子元素包括 <topicRef> 和
<subjectIndicatorRef> 。 資源指引和資源 (Occurrences and Resources)
<occurrence> 資源指引。指出和主題相關的資源。可運 用的子元素包括 <instanceOf> 、
<scope> 、 <resourceRef> 與
<resourceData> 。
<resourceRef> 提供所要資源指引之資源的 URI。
<resourceData> 資源資料的容器。只能容納字元資料。
合併 (Merging)
<mergeMap> 與其他主題地圖合併之用。可運用的子元 素包括 <topicRef> 、 <resourceRef> 與
<subjectIndicatorRef> 。
資料來源:鍾季倫,「RDF 與 Topic Maps 之知識表徵比較研究」,(碩 士論文,國立臺灣師範大學圖書資訊學系,2004)。