File: test.xtm

package info (click to toggle)
libxtm-perl 0.36-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,524 kB
  • ctags: 398
  • sloc: perl: 21,621; makefile: 37
file content (131 lines) | stat: -rw-r--r-- 3,806 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0"?>
<topicMap id="test"
          xmlns       = 'http://www.topicmaps.org/xtm/1.0/'
          xmlns:xlink = 'http://www.w3.org/1999/xlink'>

<!--

 Test map, boring.

-->

<topic id="tt-type1">
  <baseName>
     <scope><topicRef xlink:href="http://www.topicmaps.org/xtm/language.xtm#en"/></scope>
     <baseNameString>The Type</baseNameString>
  </baseName>
  <baseName>
     <scope><topicRef xlink:href="http://www.topicmaps.org/xtm/language.xtm#de"/></scope>
     <baseNameString>der Typ</baseNameString>
   </baseName>
  <occurrence>
     <instanceOf><topicRef xlink:href="#tt-website"/></instanceOf>
     <resourceRef xlink:href="http://www.someexample.com.au/path?xxx=yyy&amp;aaa=bbb"/> 
  </occurrence>
</topic>

<topic id="tt-type2">
   <baseName>
      <scope><topicRef xlink:href="http://www.topicmaps.org/xtm/language.xtm#en"/></scope>
      <baseNameString>The Type 2</baseNameString>
   </baseName>
</topic>

<topic id="t-topic1">
  <instanceOf><topicRef xlink:href="#tt-type1"/></instanceOf>
   <baseName>
      <scope><topicRef xlink:href="http://www.topicmaps.org/xtm/language.xtm#en"/></scope>
      <baseNameString>Topic one</baseNameString>
   </baseName>
   <baseName>
      <scope><topicRef xlink:href="http://www.topicmaps.org/xtm/language.xtm#de"/></scope>
      <baseNameString>Topic eins</baseNameString>
   </baseName>
</topic>

<topic id="t-topic2">
  <instanceOf><topicRef xlink:href="#tt-type1"/></instanceOf>
  <baseName>
     <baseNameString>Topic2</baseNameString>
  </baseName>
  <baseName>
     <scope><topicRef xlink:href="http://www.topicmaps.org/xtm/language.xtm#en"/></scope>
     <baseNameString>Topic two</baseNameString>
  </baseName>
</topic>


<topic id="t-topic3">
  <instanceOf><topicRef xlink:href="#tt-type1"/></instanceOf>
  <instanceOf><topicRef xlink:href="#tt-type2"/></instanceOf>
  <baseName>
     <baseNameString>Topic3</baseNameString>
  </baseName>
  <baseName>
     <scope><topicRef xlink:href="http://www.topicmaps.org/xtm/language.xtm#de"/></scope>
     <baseNameString>Topic drei</baseNameString>
  </baseName>
  <occurrence>
     <instanceOf><topicRef xlink:href="#tt-website"/></instanceOf>
     <resourceRef xlink:href="http://www.someexample.com.au/"/> 
  </occurrence>
   <occurrence>
      <instanceOf><topicRef xlink:href="#tt-description"/></instanceOf>
      <resourceData>any text will do</resourceData>
   </occurrence>
</topic>

<topic id="t-topic4">
  <baseName>
     <baseNameString>Topic4</baseNameString>
  </baseName>
  <occurrence>
     <instanceOf><topicRef xlink:href="#tt-website"/></instanceOf>
     <resourceRef xlink:href="http://www.somemoreexample.com.au/"/> 
  </occurrence>
</topic>

<association>
  <instanceOf>
    <topicRef xlink:href="#at-is-associated-with"/>
  </instanceOf>
  <member>
     <roleSpec><topicRef xlink:href="#tt-brother"/></roleSpec>
     <topicRef xlink:href="#t-topic3"/>
  </member>
  <member>
     <roleSpec><topicRef xlink:href="#tt-sister"/></roleSpec>
     <topicRef xlink:href="#t-topic4"/>
  </member>
</association>

<association>
  <instanceOf>
    <topicRef xlink:href="#at-is-associated-with"/>
  </instanceOf>
  <member>
     <roleSpec><topicRef xlink:href="#tt-brother"/></roleSpec>
     <topicRef xlink:href="#t-topic2"/>
  </member>
  <member>
     <roleSpec><topicRef xlink:href="#tt-sister"/></roleSpec>
     <topicRef xlink:href="#t-topic4"/>
  </member>
</association>

<association>
  <member>
     <roleSpec><topicRef xlink:href="#tt-brother"/></roleSpec>
     <topicRef xlink:href="#t-topic1"/>
  </member>
  <member>
     <roleSpec><topicRef xlink:href="#tt-sister"/></roleSpec>
     <topicRef xlink:href="#t-topic2"/>
  </member>
</association>

<mergeMap xlink:href="file:maps/test2.xtm">
  <topicRef xlink:href="#scope-dope"/>
</mergeMap>

</topicMap>