line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package TM::PSI; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=pod |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
TM::PSI - Topic Maps, PSI (published subject identifiers) |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 DESCRIPTION |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
This package provides predefined subjects, all of which will be preloaded in B map which is |
12
|
|
|
|
|
|
|
instantiated with the L package hierarchy. When the subjects are defined also their relationship |
13
|
|
|
|
|
|
|
are kept here (example: I). |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
Every such subject is defined by its |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=over |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=item B-
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
The internal identifier, which does not really mean much. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=item B |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
The subject indicator(s), which is ultimately B which identifies any of the subjects here. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=back |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
B: For none of the subjects declared here a subject address exists. All concepts are |
30
|
|
|
|
|
|
|
TM-related concepts. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
The subjects are sorted: |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=over |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=item B-related |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
These are the minimal subjects which make a map what it is. Examples are C and |
39
|
|
|
|
|
|
|
its related role (type) C and C, and C and its related |
40
|
|
|
|
|
|
|
roles. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item B-related (XTM things) |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
These are the additional concepts which are mandated by TMDM. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item B-related |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Here are more concepts which are needed by the AsTMa= language(s), such as C or |
49
|
|
|
|
|
|
|
C. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item B-related |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Here are more concepts which are needed by TMQL. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=back |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
To learn about these predefined concepts, you can do one of the following |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
use TM::PSI; |
60
|
|
|
|
|
|
|
warn Dumper ($TM::PSI::core, $TM::PSI::topicmaps_inc, $TM::PSI::astma_inc, $TM::PSI::tmql_inc); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 Taxonometry |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Two association types are predefined by the standard(s): C and C. Together |
65
|
|
|
|
|
|
|
with these roles are defined C, C and C, C, respectively. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
The TM::* suite of packages has these not only built in, but also works under the assumption that |
68
|
|
|
|
|
|
|
these association types and also the roles B be subclassed themselves. This means that no |
69
|
|
|
|
|
|
|
map is allowed to use, say, C as a subclass of C. The costs |
70
|
|
|
|
|
|
|
of this constraint is quite small compared to the performance benefits. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
our $core = { # this makes the TM::Store work |
75
|
|
|
|
|
|
|
mid2iid => { |
76
|
|
|
|
|
|
|
# 'assertion' => \ 'http://psi.tm.bond.edu.au/pxtm/1.0/#assertion', |
77
|
|
|
|
|
|
|
'assertion-type' => [ 'http://psi.tm.bond.edu.au/pxtm/1.0/#assertion-type' ], |
78
|
|
|
|
|
|
|
'is-subclass-of' => [ 'http://psi.topicmaps.org/sam/1.0/#supertype-subtype', |
79
|
|
|
|
|
|
|
'http://www.topicmaps.org/xtm/#psi-superclass-subclass' ], |
80
|
|
|
|
|
|
|
'isa' => [ 'http://psi.topicmaps.org/sam/1.0/#type-instance', |
81
|
|
|
|
|
|
|
'http://www.topicmaps.org/xtm/core.xtm#class-instance' ], |
82
|
|
|
|
|
|
|
'class' => [ 'http://psi.topicmaps.org/sam/1.0/#type', |
83
|
|
|
|
|
|
|
'http://www.topicmaps.org/xtm/core.xtm#class' ], |
84
|
|
|
|
|
|
|
'instance' => [ 'http://psi.topicmaps.org/sam/1.0/#instance', |
85
|
|
|
|
|
|
|
'http://www.topicmaps.org/xtm/core.xtm#instance' ], |
86
|
|
|
|
|
|
|
'superclass' => [ 'http://psi.topicmaps.org/sam/1.0/#supertype', |
87
|
|
|
|
|
|
|
'http://www.topicmaps.org/xtm/#psi-superclass' ], |
88
|
|
|
|
|
|
|
'subclass' => [ 'http://psi.topicmaps.org/sam/1.0/#subtype', |
89
|
|
|
|
|
|
|
'http://www.topicmaps.org/xtm/#psi-subclass' ], |
90
|
|
|
|
|
|
|
'scope' => [ 'http://psi.tm.bond.edu.au/pxtm/1.0/#scope' ], |
91
|
|
|
|
|
|
|
'us' => [ 'http://psi.tm.bond.edu.au/pxtm/1.0/#psi-universal-scope' ], |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
'topicmap' => [ 'http://psi.tm.bond.edu.au/pxtm/1.0/#psi-topicmap' ], |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
}, |
96
|
|
|
|
|
|
|
assertions => [ |
97
|
|
|
|
|
|
|
[ 'isa', [ 'class', 'instance' ], [ 'scope', 'us' ] ], |
98
|
|
|
|
|
|
|
[ 'isa', [ 'class', 'instance' ], [ 'assertion-type', 'isa' ] ], |
99
|
|
|
|
|
|
|
[ 'isa', [ 'class', 'instance' ], [ 'assertion-type', 'is-subclass-of' ] ], |
100
|
|
|
|
|
|
|
[ 'is-subclass-of', [ 'subclass', 'superclass' ], [ 'assertion-type', 'class' ] ], |
101
|
|
|
|
|
|
|
], |
102
|
|
|
|
|
|
|
}; |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
our $topicmaps_inc = { |
105
|
|
|
|
|
|
|
mid2iid => { |
106
|
|
|
|
|
|
|
'xtm-topic' => [ 'http://www.topicmaps.org/xtm/1.0/#psi-topic' ], |
107
|
|
|
|
|
|
|
'association' => [ 'http://psi.topicmaps.org/sam/1.0/#association', |
108
|
|
|
|
|
|
|
'http://www.topicmaps.org/xtm/1.0/#psi-association' ], |
109
|
|
|
|
|
|
|
'sort' => [ 'http://psi.topicmaps.org/sam/1.0/#sort', |
110
|
|
|
|
|
|
|
'http://www.topicmaps.org/xtm/#psi-sort' ], |
111
|
|
|
|
|
|
|
'display' => [ 'http://psi.topicmaps.org/sam/1.0/#display', |
112
|
|
|
|
|
|
|
'http://www.topicmaps.org/xtm/#psi-display' ], |
113
|
|
|
|
|
|
|
'characteristic' => [ 'http://psi.tm.bond.edu.au/pxtm/1.0/characteristic'], |
114
|
|
|
|
|
|
|
'unique-characteristic' => [ 'http://psi.topicmaps.org/sam/1.0/#unique-characteristic'], |
115
|
|
|
|
|
|
|
'xtm-psi-occurrence' => [ 'http://www.topicmaps.org/xtm/1.0/#psi-occurrence' ], |
116
|
|
|
|
|
|
|
'variant' => [ 'http://psi.topicmaps.org/sam/1.0/#variant'], |
117
|
|
|
|
|
|
|
'occurrence' => [ 'http://psi.topicmaps.org/sam/1.0/#occurrence', |
118
|
|
|
|
|
|
|
'http://www.topicmaps.org/xtm/1.0/#psi-occurrence' ], |
119
|
|
|
|
|
|
|
'association-role' => [ 'http://psi.topicmaps.org/sam/1.0/#association-role' ], |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
'name' => [ 'http://psi.tm.bond.edu.au/pxtm/1.0/name' ], |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
}, |
124
|
|
|
|
|
|
|
assertions => [ |
125
|
|
|
|
|
|
|
[ 'is-subclass-of', [ 'subclass', 'superclass' ], [ 'characteristic', 'association' ] ], |
126
|
|
|
|
|
|
|
[ 'is-subclass-of', [ 'subclass', 'superclass' ], [ 'occurrence', 'characteristic' ] ], |
127
|
|
|
|
|
|
|
[ 'is-subclass-of', [ 'subclass', 'superclass' ], [ 'unique-characteristic', 'characteristic' ] ], |
128
|
|
|
|
|
|
|
[ 'is-subclass-of', [ 'subclass', 'superclass' ], [ 'name', 'characteristic' ] ], |
129
|
|
|
|
|
|
|
], |
130
|
|
|
|
|
|
|
}; |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
our $astma_inc = { |
133
|
|
|
|
|
|
|
mid2iid => { |
134
|
|
|
|
|
|
|
'thing' => [ 'http://virtual.cvut.cz/kifb/en/concepts/_entity.html' ], |
135
|
|
|
|
|
|
|
'value' => [ 'http://psi.tm.bond.edu.au/astma/2.0/#value' ], |
136
|
|
|
|
|
|
|
'ontology' => [ 'http://psi.tm.bond.edu.au/astma/2.0/#ontology' ], |
137
|
|
|
|
|
|
|
'implementation' => [ 'http://psi.tm.bond.edu.au/astma/2.0/#implementation' ], |
138
|
|
|
|
|
|
|
'template' => [ 'http://psi.tm.bond.edu.au/astma/2.0/#template' ], |
139
|
|
|
|
|
|
|
'return' => [ 'http://psi.tm.bond.edu.au/astma/2.0/#return' ], |
140
|
|
|
|
|
|
|
'body' => [ 'http://psi.tm.bond.edu.au/astma/2.0/#body' ], |
141
|
|
|
|
|
|
|
}, |
142
|
|
|
|
|
|
|
assertions => [ |
143
|
|
|
|
|
|
|
], |
144
|
|
|
|
|
|
|
}; |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
our $tmql_inc = { |
147
|
|
|
|
|
|
|
mid2iid => { |
148
|
|
|
|
|
|
|
# 'function' => [ 'http://www.isotopicmaps.org/tmql/#function' ], |
149
|
|
|
|
|
|
|
}, |
150
|
|
|
|
|
|
|
assertions => [ |
151
|
|
|
|
|
|
|
], |
152
|
|
|
|
|
|
|
}; |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=pod |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
=head2 Infrastructure Concepts |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
To make the whole machinery work, every topic map must contain infrastructure topics such as |
159
|
|
|
|
|
|
|
C, C etc. They are topics like the topics a user may put into the map. While |
160
|
|
|
|
|
|
|
this is the right thing to do, in practical situation you often will want to filter out these |
161
|
|
|
|
|
|
|
I. You can always get a list of these via |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
@@@ fix docu @@@@@ |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
$tm->mids (keys %{$TM::PSI::topicmaps->{mid2iid}}); |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=cut |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
use constant { |
171
|
36
|
|
|
|
|
6519
|
TOPICMAP => 'http://psi.tm.bond.edu.au/pxtm/1.0/#psi-topicmap', |
172
|
|
|
|
|
|
|
US => 'us' |
173
|
36
|
|
|
36
|
|
37575
|
}; |
|
36
|
|
|
|
|
77
|
|
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=pod |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
=head1 SEE ALSO |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
L |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
=head1 AUTHOR INFORMATION |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
Copyright 200[1-68], Robert Barta , All rights reserved. |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
186
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
http://www.perl.com/perl/misc/Artistic.html |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=cut |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
our $VERSION = '0.18'; |
193
|
|
|
|
|
|
|
our $REVISION = '$Id: PSI.pm,v 1.28 2006/11/29 10:31:15 rho Exp $'; |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
1; |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
__END__ |