source: branches/new-datamodel/src/unit_tests/poems_light.xtm

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

rdf-exporter: updated all unit tests to the last changes

File size: 21.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<tm:topicMap version="2.0" xmlns:tm="http://www.topicmaps.org/xtm/">
3  <!-- this file contains constructs that are originally defined as TM and
4       RDF. So certain constructs are not consistent because of test cases,
5       but all are valid! -->
6  <tm:topic id="goethe">
7    <tm:subjectIdentifier href="http://some.where/author/Goethe"/>
8    <tm:instanceOf><tm:topicRef href="#author"/></tm:instanceOf>
9    <tm:name>
10      <tm:itemIdentity href="http://some.where/name_ii_1"/>
11      <tm:type><tm:topicRef href="#firstName"/></tm:type>
12      <tm:value>Johann Wolfgang</tm:value>
13    </tm:name>
14    <tm:occurrence>
15      <tm:type><tm:topicRef href="#lastName"/></tm:type>
16      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">von Goethe</tm:resourceData>
17    </tm:occurrence>
18  </tm:topic>
19
20  <tm:topic id="UUID-born-event">
21    <tm:instanceOf><tm:topicRef href="#event"/></tm:instanceOf>
22    <tm:occurrence>
23      <tm:type><tm:topicRef href="#date"/></tm:type>
24      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#date">28.08.1749</tm:resourceData>
25    </tm:occurrence>
26  </tm:topic>
27
28  <tm:topic id="frankfurt_m">
29    <tm:subjectIdentifier href="http://some.where/metropolis/FrankfurtMain"/>
30    <tm:instanceOf><tm:topicRef href="#metropolis"/></tm:instanceOf>
31    <tm:occurrence>
32      <tm:type><tm:topicRef href="#population"/></tm:type>
33      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedLong">659000</tm:resourceData>
34    </tm:occurrence>
35    <tm:occurrence>
36      <tm:type><tm:topicRef href="#fullName"/></tm:type>
37      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Frankfurt am Main</tm:resourceData>
38    </tm:occurrence>
39  </tm:topic>
40
41  <tm:topic id="germany">
42    <tm:subjectIdentifier href="http://some.where/country/Germany"/>
43    <tm:instanceOf><tm:topicRef href="#country"/></tm:instanceOf>
44    <tm:occurrence>
45      <tm:type><tm:topicRef href="#nativeName"/></tm:type>
46      <tm:scope><tm:topicRef href="#de"/></tm:scope>
47      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Deutschland</tm:resourceData>
48    </tm:occurrence>
49    <tm:occurrence>
50      <tm:type><tm:topicRef href="#population"/></tm:type>
51      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedLong">82099232</tm:resourceData>
52    </tm:occurrence>
53  </tm:topic>
54
55  <tm:topic id="berlin">
56    <tm:subjectIdentifier href="http://some.where/metropolis/Berlin"/>
57    <tm:instanceOf><tm:topicRef href="#metropolis"/></tm:instanceOf>
58    <tm:occurrence>
59      <tm:type><tm:topicRef href="#fullName"/></tm:type>
60      <tm:resourceData>Berlin</tm:resourceData>
61    </tm:occurrence>
62    <tm:occurrence>
63      <tm:type><tm:topicRef href="#population"/></tm:type>
64      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedLong">3431473</tm:resourceData>
65    </tm:occurrence>
66  </tm:topic>
67
68  <tm:topic id="UUID-died-event">
69    <tm:instanceOf><tm:topicRef href="#event"/></tm:instanceOf>
70    <tm:occurrence>
71      <tm:type><tm:topicRef href="#date"/></tm:type>
72      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#date">22.03.1832</tm:resourceData>
73    </tm:occurrence>
74  </tm:topic>
75
76  <tm:topic id="weimar">
77    <tm:subjectIdentifier href="http://some.where/city/Weimar"/>
78    <tm:instanceOf><tm:topicRef href="#city"/></tm:instanceOf>
79    <tm:occurrence>
80      <tm:type><tm:topicRef href="#fullName"/></tm:type>
81      <tm:resourceData>Weimar</tm:resourceData>
82    </tm:occurrence>
83    <tm:occurrence>
84      <tm:type><tm:topicRef href="#population"/></tm:type>
85      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#unsignedLong">64720</tm:resourceData>
86    </tm:occurrence>
87  </tm:topic>
88
89  <tm:topic id="zauberlehrling">
90    <tm:subjectIdentifier href="http://some.where/poem/Der_Zauberlehrling"/>
91    <tm:subjectIdentifier href="http://some.where/poem/Zauberlehrling"/>
92    <tm:itemIdentity href="http://some.where/poem/Zauberlehrling_itemIdentity_1"/>
93    <tm:itemIdentity href="http://some.where/poem/Zauberlehrling_itemIdentity_2"/>
94    <tm:subjectLocator href="http://some.where/resource_1"/>
95    <tm:subjectLocator href="http://some.where/resource_2"/>
96    <tm:instanceOf><tm:topicRef href="#poem"/></tm:instanceOf>
97    <tm:occurrence>
98      <tm:itemIdentity href="http://some.where/occurrence_ii_1"/>
99      <tm:itemIdentity href="http://some.where/occurrence_ii_2"/>
100      <tm:type><tm:topicRef href="#title"/></tm:type>
101      <tm:scope>
102        <tm:topicRef href="#de"/>
103        <tm:topicRef href="#en"/>
104      </tm:scope>
105      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Der Zauberlehrling</tm:resourceData>
106    </tm:occurrence>
107    <tm:occurrence>
108      <tm:type><tm:topicRef href="#content"/></tm:type>
109      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Hat der alte Hexenmeister ...</tm:resourceData>
110    </tm:occurrence>
111  </tm:topic>
112
113  <tm:topic id="UUID-dateRange-1">
114    <tm:occurrence>
115      <tm:type><tm:topicRef href="#start"/></tm:type>
116      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#date">01.01.1797</tm:resourceData>
117    </tm:occurrence>
118        <tm:occurrence>
119      <tm:type><tm:topicRef href="#end"/></tm:type>
120      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#date">31.12.1797</tm:resourceData>
121    </tm:occurrence>
122  </tm:topic>
123
124  <tm:topic id="erlkoenig">
125    <tm:subjectIdentifier href="http://some.where/ballad/Der_Erlkoenig"/>
126    <tm:instanceOf><tm:topicRef href="#ballad"/></tm:instanceOf>
127    <tm:occurrence>
128      <tm:type><tm:topicRef href="#title"/></tm:type>
129      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Der Erlkönig</tm:resourceData>
130      <tm:scope><tm:topicRef href="#en"/></tm:scope>
131    </tm:occurrence>
132    <tm:occurrence>
133      <tm:type><tm:topicRef href="#content"/></tm:type>
134      <tm:scope><tm:topicRef href="#de"/></tm:scope>
135      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Wer reitet so spÀt durch Nacht und Wind? ...</tm:resourceData>
136    </tm:occurrence>
137  </tm:topic>
138
139  <tm:topic id="UUID-dateRange-2">
140    <tm:occurrence>
141      <tm:type><tm:topicRef href="#start"/></tm:type>
142      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#date">01.01.1782</tm:resourceData>
143    </tm:occurrence>
144        <tm:occurrence>
145      <tm:type><tm:topicRef href="#end"/></tm:type>
146      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#date">31.12.1782</tm:resourceData>
147    </tm:occurrence>
148  </tm:topic>
149
150  <tm:topic id="prometheus">
151    <tm:subjectIdentifier href="http://some.where/poem/Prometheus"/>
152    <tm:instanceOf><tm:topicRef href="#poem"/></tm:instanceOf>
153    <tm:occurrence>
154      <tm:type><tm:topicRef href="#title"/></tm:type>
155      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Prometheus</tm:resourceData>
156      <tm:scope><tm:topicRef href="#de"/></tm:scope>
157    </tm:occurrence>
158    <tm:occurrence>
159      <tm:type><tm:topicRef href="#content"/></tm:type>
160      <tm:scope><tm:topicRef href="#de"/></tm:scope>
161      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Bedecke deinen Himmel, Zeus, ...</tm:resourceData>
162    </tm:occurrence>
163  </tm:topic>
164
165  <tm:topic id="UUID-dateRange-3">
166    <tm:occurrence>
167      <tm:type><tm:topicRef href="#start"/></tm:type>
168      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#date">01.01.1772</tm:resourceData>
169    </tm:occurrence>
170        <tm:occurrence>
171      <tm:type><tm:topicRef href="#end"/></tm:type>
172      <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#date">31.12.1774</tm:resourceData>
173    </tm:occurrence>
174  </tm:topic>
175
176  <tm:topic id="dateRange">
177    <tm:subjectIdentifier href="http://some.where/relationship/dateRange"/>
178  </tm:topic>
179
180  <tm:topic id="officialese">
181    <tm:subjectIdentifier href="http://some.where/relationship/officialese"/>
182  </tm:topic>
183
184  <tm:topic id="content">
185    <tm:subjectIdentifier href="http://some.where/relationship/content"/>
186  </tm:topic>
187
188  <tm:topic id="start">
189    <tm:subjectIdentifier href="http://some.where/relationship/start"/>
190  </tm:topic>
191
192  <tm:topic id="end">
193    <tm:subjectIdentifier href="http://some.where/relationship/end"/>
194  </tm:topic>
195
196  <tm:topic id="de">
197    <tm:subjectIdentifier href="http://isidorus/rdf2tm_mapping/scope/de"/>
198  </tm:topic>
199
200  <tm:topic id="en">
201    <tm:subjectIdentifier href="http://some.where/scope/en"/>
202  </tm:topic>
203
204  <tm:topic id="title">
205    <tm:subjectIdentifier href="http://some.where/relationship/title"/>
206  </tm:topic>
207
208  <tm:topic id="poem">
209    <tm:subjectIdentifier href="http://some.where/types/Poem"/>
210  </tm:topic>
211
212  <tm:topic id="ballad">
213    <tm:subjectIdentifier href="http://some.where/types/Ballad"/>
214  </tm:topic>
215
216  <tm:topic id="supertype-subtype">
217    <tm:subjectIdentifier href="http://psi.topicmaps.org/iso13250/model/supertype-subtype"/>
218  </tm:topic>
219
220  <tm:topic id="supertype">
221    <tm:subjectIdentifier href="http://psi.topicmaps.org/iso13250/model/supertype"/>
222  </tm:topic>
223
224  <tm:topic id="subtype">
225    <tm:subjectIdentifier href="http://psi.topicmaps.org/iso13250/model/subtype"/>
226  </tm:topic>
227
228  <tm:topic id="region">
229    <tm:subjectIdentifier href="http://some.where/types/Region"/>
230  </tm:topic>
231
232  <tm:topic id="city">
233    <tm:subjectIdentifier href="http://some.where/types/City"/>
234  </tm:topic>
235
236  <tm:topic id="died">
237    <tm:subjectIdentifier href="http://some.where/relationship/died"/>
238  </tm:topic>
239
240  <tm:topic id="capital">
241    <tm:subjectIdentifier href="http://some.where/relationship/capital"/>
242  </tm:topic>
243
244  <tm:topic id="german">
245    <tm:subjectIdentifier href="http://some.where/language/German"/>
246    <tm:instanceOf><tm:topicRef href="#language"/></tm:instanceOf>
247  </tm:topic>
248
249  <tm:topic id="language">
250    <tm:subjectIdentifier href="http://some.where/types/Language"/>
251  </tm:topic>
252
253  <tm:topic id="population">
254    <tm:subjectIdentifier href="http://some.where/relationship/population"/>
255  </tm:topic>
256
257  <tm:topic id="nativeName">
258    <tm:subjectIdentifier href="http://some.where/relationship/nativeName"/>
259  </tm:topic>
260
261  <tm:topic id="country">
262    <tm:subjectIdentifier href="http://some.where/types/Country"/>
263  </tm:topic>
264
265  <tm:topic id="metropolis">
266    <tm:subjectIdentifier href="http://some.where/types/Metropolis"/>
267  </tm:topic>
268
269  <tm:topic id="locatedIn">
270    <tm:subjectIdentifier href="http://some.where/relationship/locatedIn"/>
271  </tm:topic>
272
273  <tm:topic id="place">
274    <tm:subjectIdentifier href="http://some.where/relationship/place"/>
275  </tm:topic>
276
277  <tm:topic id="fullName">
278    <tm:subjectIdentifier href="http://some.where/relationship/fullName"/>
279  </tm:topic>
280
281  <tm:topic id="date">
282    <tm:subjectIdentifier href="http://some.where/relationship/date"/>
283  </tm:topic>
284
285  <tm:topic id="born">
286    <tm:subjectIdentifier href="http://some.where/relationship/born"/>
287  </tm:topic>
288
289  <tm:topic id="author">
290    <tm:subjectIdentifier href="http://some.where/types/Author"/>
291  </tm:topic>
292
293  <tm:topic id="firstName">
294    <tm:subjectIdentifier href="http://some.where/relationship/firstName"/>
295  </tm:topic>
296
297  <tm:topic id="lastName">
298    <tm:subjectIdentifier href="http://some.where/relationship/lastName"/>
299  </tm:topic>
300
301  <tm:topic id="event">
302    <tm:subjectIdentifier href="http://some.where/types/Event"/>
303  </tm:topic>
304
305  <tm:topic id="isi-subject">
306    <tm:subjectIdentifier href="http://isidorus/rdf2tm_mapping/subject"/>
307  </tm:topic>
308
309  <tm:topic id="isi-object">
310    <tm:subjectIdentifier href="http://isidorus/rdf2tm_mapping/object"/>
311  </tm:topic>
312
313  <tm:association>
314    <tm:type><tm:topicRef href="#born"/></tm:type>
315    <tm:role>
316      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
317      <tm:topicRef href="#goethe"/>
318    </tm:role>
319    <tm:role>
320      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
321      <tm:topicRef href="#UUID-born-event"/>
322    </tm:role>
323  </tm:association>
324
325  <tm:association>
326    <tm:type><tm:topicRef href="#place"/></tm:type>
327    <tm:role>
328      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
329      <tm:topicRef href="#UUID-born-event"/>
330    </tm:role>
331    <tm:role>
332      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
333      <tm:topicRef href="#frankfurt_m"/>
334    </tm:role>
335  </tm:association>
336
337  <tm:association>
338    <tm:type><tm:topicRef href="#locatedIn"/></tm:type>
339    <tm:role>
340      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
341      <tm:topicRef href="#frankfurt_m"/>
342    </tm:role>
343    <tm:role>
344      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
345      <tm:topicRef href="#germany"/>
346    </tm:role>
347  </tm:association>
348
349  <tm:association>
350    <tm:type><tm:topicRef href="#officialese"/></tm:type>
351    <tm:role>
352      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
353      <tm:topicRef href="#germany"/>
354    </tm:role>
355    <tm:role>
356      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
357      <tm:topicRef href="#german"/>
358    </tm:role>
359  </tm:association>
360
361  <tm:association>
362    <tm:type><tm:topicRef href="#locatedIn"/></tm:type>
363    <tm:role>
364      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
365      <tm:topicRef href="#berlin"/>
366    </tm:role>
367    <tm:role>
368      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
369      <tm:topicRef href="#germany"/>
370    </tm:role>
371  </tm:association>
372
373  <tm:association>
374    <tm:type><tm:topicRef href="#capital"/></tm:type>
375    <tm:role>
376      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
377      <tm:topicRef href="#germany"/>
378    </tm:role>
379    <tm:role>
380      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
381      <tm:topicRef href="#berlin"/>
382    </tm:role>
383  </tm:association>
384
385  <tm:association>
386    <tm:type><tm:topicRef href="#died"/></tm:type>
387    <tm:role>
388      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
389      <tm:topicRef href="#goethe"/>
390    </tm:role>
391    <tm:role>
392      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
393      <tm:topicRef href="#UUID-died-event"/>
394    </tm:role>
395  </tm:association>
396
397  <tm:association>
398    <tm:type><tm:topicRef href="#place"/></tm:type>
399    <tm:role>
400      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
401      <tm:topicRef href="#UUID-died-event"/>
402    </tm:role>
403    <tm:role>
404      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
405      <tm:topicRef href="#weimar"/>
406    </tm:role>
407  </tm:association>
408
409  <tm:association>
410    <tm:type><tm:topicRef href="#locatedIn"/></tm:type>
411    <tm:role>
412      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
413      <tm:topicRef href="#weimar"/>
414    </tm:role>
415    <tm:role>
416      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
417      <tm:topicRef href="#germany"/>
418    </tm:role>
419  </tm:association>
420
421  <tm:association>
422    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
423    <tm:role>
424      <tm:type><tm:topicRef href="#supertype"/></tm:type>
425      <tm:topicRef href="#region"/>
426    </tm:role>
427    <tm:role>
428      <tm:type><tm:topicRef href="#subtype"/></tm:type>
429      <tm:topicRef href="#city"/>
430    </tm:role>
431  </tm:association>
432
433  <tm:association>
434    <tm:itemIdentity href="http://some.where/metropolis_supertye-subtype-association"/>
435    <tm:type><tm:topicRef href="#supertype-subtype"/></tm:type>
436    <tm:role>
437      <tm:type><tm:topicRef href="#supertype"/></tm:type>
438      <tm:topicRef href="#region"/>
439    </tm:role>
440    <tm:role>
441      <tm:type><tm:topicRef href="#subtype"/></tm:type>
442      <tm:topicRef href="#metropolis"/>
443    </tm:role>
444  </tm:association>
445
446  <tm:association>
447    <tm:type><tm:topicRef href="#dateRange"/></tm:type>
448    <tm:role>
449      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
450      <tm:topicRef href="#zauberlehrling"/>
451    </tm:role>
452    <tm:role>
453      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
454      <tm:topicRef href="#UUID-dateRange-1"/>
455    </tm:role>
456  </tm:association>
457
458  <tm:association>
459    <tm:type><tm:topicRef href="#dateRange"/></tm:type>
460    <tm:role>
461      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
462      <tm:topicRef href="#erlkoenig"/>
463    </tm:role>
464    <tm:role>
465      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
466      <tm:topicRef href="#UUID-dateRange-2"/>
467    </tm:role>
468  </tm:association>
469
470  <tm:association>
471    <tm:type><tm:topicRef href="#dateRange"/></tm:type>
472    <tm:role>
473      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
474      <tm:topicRef href="#prometheus"/>
475    </tm:role>
476    <tm:role>
477      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
478      <tm:topicRef href="#UUID-dateRange-3"/>
479    </tm:role>
480  </tm:association>
481
482  <!-- === the rdf:li elements are contained as a collection, to test the
483       export of collections =============================================== -->
484  <tm:topic id="wrote">
485    <tm:subjectIdentifier href="http://some.where/relationship/wrote"/>
486  </tm:topic>
487
488  <tm:topic id="rest">
489    <tm:subjectIdentifier href="http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"/>
490  </tm:topic>
491
492  <tm:topic id="first">
493    <tm:subjectIdentifier href="http://www.w3.org/1999/02/22-rdf-syntax-ns#first"/>
494  </tm:topic>
495
496  <tm:topic id="nil">
497    <tm:subjectIdentifier href="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
498  </tm:topic>
499
500  <!-- first node -->
501  <tm:topic id="UUID-1-collection"/>
502 
503  <tm:association>
504    <tm:type><tm:topicRef href="#wrote"/></tm:type>
505    <tm:role>
506      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
507      <tm:topicRef href="#goethe"/>
508    </tm:role>
509    <tm:role>
510      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
511      <tm:topicRef href="#UUID-1-collection"/>
512    </tm:role>
513  </tm:association>
514
515  <tm:association>
516    <tm:type><tm:topicRef href="#first"/></tm:type>
517    <tm:role>
518      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
519      <tm:topicRef href="#UUID-1-collection"/>
520    </tm:role>
521    <tm:role>
522      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
523      <tm:topicRef href="#zauberlehrling"/>
524    </tm:role>
525  </tm:association>
526
527  <tm:association>
528    <tm:type><tm:topicRef href="#rest"/></tm:type>
529    <tm:role>
530      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
531      <tm:topicRef href="#UUID-1-collection"/>
532    </tm:role>
533    <tm:role>
534      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
535      <tm:topicRef href="#UUID-2-collection"/>
536    </tm:role>
537  </tm:association>
538 
539  <!-- second node -->
540  <tm:topic id="UUID-2-collection"/>
541
542  <tm:association>
543    <tm:type><tm:topicRef href="#first"/></tm:type>
544    <tm:role>
545      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
546      <tm:topicRef href="#UUID-2-collection"/>
547    </tm:role>
548    <tm:role>
549      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
550      <tm:topicRef href="#erlkoenig"/>
551    </tm:role>
552  </tm:association>
553
554  <tm:association>
555    <tm:type><tm:topicRef href="#rest"/></tm:type>
556    <tm:role>
557      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
558      <tm:topicRef href="#UUID-2-collection"/>
559    </tm:role>
560    <tm:role>
561      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
562      <tm:topicRef href="#UUID-3-collection"/>
563    </tm:role>
564  </tm:association>
565
566  <!-- third node -->
567  <tm:topic id="UUID-3-collection"/>
568
569  <tm:association>
570    <tm:type><tm:topicRef href="#first"/></tm:type>
571    <tm:role>
572      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
573      <tm:topicRef href="#UUID-3-collection"/>
574    </tm:role>
575    <tm:role>
576      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
577      <tm:topicRef href="#prometheus"/>
578    </tm:role>
579  </tm:association>
580
581  <tm:association>
582    <tm:type><tm:topicRef href="#rest"/></tm:type>
583    <tm:role>
584      <tm:type><tm:topicRef href="#isi-subject"/></tm:type>
585      <tm:topicRef href="#UUID-3-collection"/>
586    </tm:role>
587    <tm:role>
588      <tm:type><tm:topicRef href="#isi-object"/></tm:type>
589      <tm:topicRef href="#nil"/>
590    </tm:role>
591  </tm:association>
592
593  <!-- === tests some TM associations that owns mor than two roles ========= -->
594  <tm:topic id="authorInfo">
595    <tm:subjectIdentifier href="http://some.where/relationship/authorInfo"/>
596  </tm:topic>
597
598  <tm:topic id="schiller">
599    <tm:instanceOf><tm:topicRef href="#author"/></tm:instanceOf>
600    <tm:name>
601      <tm:type><tm:topicRef href="#firstName"/></tm:type>
602      <tm:value>Johann Christoph Friedrich</tm:value>
603      <tm:variant>
604        <tm:itemIdentity href="http://some.where/variant_ii_1"/>
605        <tm:scope><tm:topicRef href="#display"/></tm:scope>
606        <tm:resourceData datatype="http://www.w3.org/2001/XMLSchema#string">Friedrich</tm:resourceData>
607      </tm:variant>
608    </tm:name>
609    <tm:name>
610      <tm:type><tm:topicRef href="#lastName"/></tm:type>
611      <tm:value>von Schiller</tm:value>
612    </tm:name>
613    <tm:occurrence>
614      <tm:type><tm:topicRef href="#authorInfo"/></tm:type>
615      <tm:resourceRef href="http://de.wikipedia.org/wiki/Schiller"/>
616    </tm:occurrence>
617  </tm:topic>
618
619  <tm:topic id="display">
620    <tm:subjectIdentifier href="http://www.topicmaps.org/xtm/1.0/core.xtm#display"/>
621  </tm:topic>
622
623  <tm:topic id="associatedWithEachOther">
624    <tm:subjectIdentifier href="http://some.where/relationship/associatedWithEachOther"/>
625  </tm:topic>
626
627  <tm:topic id="writer">
628    <tm:subjectIdentifier href="http://some.where/roletype/writer"/>
629  </tm:topic>
630
631  <tm:topic id="literature">
632    <tm:subjectIdentifier href="http://some.where/roletype/literature"/>
633  </tm:topic>
634 
635  <tm:association>
636    <tm:itemIdentity href="http://some.where/test-association"/>
637    <tm:type><tm:topicRef href="#associatedWithEachOther"/></tm:type>
638    <tm:role>
639      <tm:type><tm:topicRef href="#writer"/></tm:type>
640      <tm:topicRef href="#schiller"/>
641    </tm:role>
642    <tm:role>
643      <tm:type><tm:topicRef href="#writer"/></tm:type>
644      <tm:topicRef href="#goethe"/>
645    </tm:role>
646    <tm:role>
647      <tm:type><tm:topicRef href="#literature"/></tm:type>
648      <tm:topicRef href="#poem"/>
649    </tm:role>
650    <tm:role>
651      <tm:itemIdentity href="http://some.where/test-role"/>
652      <tm:type><tm:topicRef href="#literature"/></tm:type>
653      <tm:topicRef href="#ballad"/>
654    </tm:role>
655  </tm:association>
656</tm:topicMap>
Note: See TracBrowser for help on using the repository browser.