source: branches/gdl-frontend/src/unit_tests/poems_light.xtm.txt

Last change on this file was 332, checked in by lgiessmann, 14 years ago

fixed tifcket #81 -> fixed some bugs with the mark-as-deleted-handler of the UI when some topictypes are deleted and tmcl information is generated; adaption of the datamodel-unit-tests of TopicMapC with the equality of TopicMapC; fixed ticket #78 -> added a json unit-test that tests lage xml-contents in topic-occurrences that are serialized and deserialized to and from json; fixed ticket #80 -> added a RESTful handler that returns the latest used revision of the storage

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