source: branches/new-datamodel/src/unit_tests/reification_xtm2.0.xtm

Last change on this file was 150, checked in by lgiessmann, 15 years ago

added a unit-test for reification in the xtm2.0-importer

  • Property svn:executable set to *
File size: 3.3 KB
Line 
1<?xml version="1.0"?>
2<!-- ======================================================================= -->
3<!--  Isidorus                                                               -->
4<!--  (c) 2008-2009 Marc Kuester, Christoph Ludwig, Lukas Giessmann          -->
5<!--                                                                         -->
6<!--  Isidorus is freely distributable under the LGPL license.               -->
7<!--  You can find a detailed description in trunk/docs/LGPL-LICENSE.txt.    -->
8<!-- ======================================================================= -->
9
10<tm:topicMap xmlns:tm="http://www.topicmaps.org/xtm/" version="2.0">
11  <tm:topic id="homer">
12    <tm:subjectIdentifier href="http://simpsons.tv/homer"/>
13    <tm:name reifier="http://simpsons.tv/homer-name">
14      <tm:value>Homer Simpson</tm:value>
15      <tm:variant reifier="http://simpsons.tv/homer-name-variant">
16        <tm:scope><tm:topicRef href="#fullName"/></tm:scope>
17        <tm:resourceData>Homer Jay Simpson</tm:resourceData>
18      </tm:variant>
19    </tm:name>
20    <tm:occurrence reifier="http://simpsons.tv/homer-occurrence">
21      <tm:type><tm:topicRef href="#profession"/></tm:type>
22      <tm:resourceData>Safety Inspector</tm:resourceData>
23    </tm:occurrence>
24  </tm:topic>
25
26  <tm:topic id="marge">
27    <tm:subjectIdentifier href="http://simpsons.tv/marge"/>
28    <tm:name>
29      <tm:value>Marge Simpson</tm:value>
30      <tm:variant>
31        <tm:scope><tm:topicRef href="#fullName"/></tm:scope>
32        <tm:resourceData>Marjorie Simpson</tm:resourceData>
33      </tm:variant>
34    </tm:name>
35    <tm:occurrence>
36      <tm:type><tm:topicRef href="#profession"/></tm:type>
37      <tm:resourceData>Housewife</tm:resourceData>
38    </tm:occurrence>
39  </tm:topic>
40
41  <tm:topic id="fullName">
42    <tm:subjectIdentifier href="http://simpsons.tv/fullName"/>
43  </tm:topic>
44
45  <tm:topic id="profession">
46    <tm:subjectIdentifier href="http://simpsons.tv/profession"/>
47  </tm:topic>
48
49  <tm:topic id="married">
50    <tm:subjectIdentifier href="http://simpsons.tv/married"/>
51  </tm:topic>
52
53  <tm:topic id="husband">
54    <tm:subjectIdentifier href="http://simpsons.tv/husband"/>
55  </tm:topic>
56
57  <tm:topic id="wife">
58    <tm:subjectIdentifier href="http://simpsons.tv/wife"/>
59  </tm:topic>
60
61  <tm:association reifier="http://simpsons.tv/married-association">
62    <tm:type><tm:topicRef href="#married"/></tm:type>
63    <tm:role reifier="http://simpsons.tv/married-husband-role">
64      <tm:type><tm:topicRef href="#husband"/></tm:type>
65      <tm:topicRef href="#homer"/>
66    </tm:role>
67    <tm:role>
68      <tm:type><tm:topicRef href="#wife"/></tm:type>
69      <tm:topicRef href="#marge"/>
70    </tm:role>
71  </tm:association>
72
73
74  <!-- === reifier-topics ================================================== -->
75  <tm:topic id="homer-name-reifier">
76    <tm:itemIdentity href="http://simpsons.tv/homer-name"/>
77  </tm:topic>
78
79  <tm:topic id="homer-name-variant-reifier">
80    <tm:itemIdentity href="http://simpsons.tv/homer-name-variant"/>
81  </tm:topic>
82
83  <tm:topic id="homer-occurrence-reifier">
84    <tm:itemIdentity href="http://simpsons.tv/homer-occurrence"/>
85  </tm:topic>
86
87  <tm:topic id="married-reifier">
88    <tm:itemIdentity href="http://simpsons.tv/married-association"/>
89  </tm:topic>
90
91  <tm:topic id="married-husband-reifier">
92    <tm:itemIdentity href="http://simpsons.tv/married-husband-role"/>
93  </tm:topic>
94</tm:topicMap>
Note: See TracBrowser for help on using the repository browser.