/usr/share/perl5/TM/Axes.pm is in libtm-perl 1.56-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | package TM::Axes;
our $VERSION = '0.2';
=pod
=head1 NAME
TM::Axes - Topic Maps, Axes for TM::match*
=head1 DESCRIPTION
The L<TM> module offers the method C<match> (and friends) to query assertions in a TM data
structure. While there is a generic search specification, it will be too slow. Instead some axes
have been implemented specifically. These are listed below.
=head1 SEARCH SPECIFICATIONS
Automatically generated from TM (1.54)
=over
=item Code:<empty>
returns all assertions
=item Code:anyid
return all assertions where a given toplet appears somehow
'anyid' => 'the toplet'
=item Code:aplayer.arole.bplayer.brole.type
return all assertions of a given type where a given toplet plays a given role and there exist another given role with another given toplet as player
'bplayer' => 'the player for the brole',
'aplayer' => 'the player toplet for the arole',
'arole' => 'the role toplet (incl subclasses) for the aplayer',
'type' => 'the type of the assertion',
'brole' => 'the other role toplet (incl subclasses)'
=item Code:aplayer.arole.brole.type
return all assertions of a given type where a given toplet plays a given role and there exist another given role
'aplayer' => 'the player toplet for the arole',
'arole' => 'the role toplet (incl subclasses) for the aplayer',
'type' => 'the type of the assertion',
'brole' => 'the other role toplet (incl subclasses)'
=item Code:char.irole
deprecated: return all assertions which are characteristics for a given toplet
'irole' => 'the toplet for which characteristics are sought',
'char' => '1'
=item Code:char.topic
return all assertions which are characteristics for a given toplet
'topic' => 'the toplet for which characteristics are sought',
'char' => '1'
=item Code:char.topic.type
return all assertions which are a characteristic of a given type for a given topic
'topic' => 'the toplet for which these characteristics are sought',
'char' => '1',
'type' => 'type of characteristic'
=item Code:char.type
return all assertions which are characteristics for some given type
'char' => '1',
'type' => 'the characteristic type'
=item Code:char.type.value
return all assertions which are characteristics for some topic of a given value for some given type
'value' => 'the value for which all characteristics are sought',
'char' => '1',
'type' => 'the characteristic type'
=item Code:char.value
return all assertions which are characteristics for some topic of a given value
'value' => 'the value for which all characteristics are sought',
'char' => '1'
=item Code:class.type
returns all assertions where there are instances of a given toplet
'class' => 'which toplet should be the class',
'type' => 'isa'
=item Code:instance.type
returns all assertions where there are classes of a given toplet
'type' => 'isa',
'instance' => 'which toplet should be the instance'
=item Code:iplayer
return all assertions where a given toplet is a player
'iplayer' => 'the player toplet'
=item Code:iplayer.irole
return all assertions where a given toplet is a player of a given role
'iplayer' => 'the player toplet',
'irole' => 'the role toplet (incl subclasses)'
=item Code:iplayer.irole.type
return all assertions of a given type where a given toplet is a player of a given role
'iplayer' => 'the player toplet',
'irole' => 'the role toplet (incl subclasses)',
'type' => 'the type of the assertion'
=item Code:iplayer.type
return all assertions of a given type where a given toplet is a player
'iplayer' => 'the player toplet',
'type' => 'the type of the assertion'
=item Code:irole
return all assertions where there is a given role
'irole' => 'the role toplet (incl subclasses)'
=item Code:irole.type
return all assertions of a given type where there is a given role
'irole' => 'the role toplet (incl subclasses)',
'type' => 'the type of the assertion'
=item Code:lid
return one particular assertions with a given ID
'lid' => 'the ID of the assertion'
=item Code:nochar
returns all associations (so no names or occurrences)
'nochar' => '1'
=item Code:subclass.type
returns all assertions where there are subclasses of a given toplet
'subclass' => 'which toplet should be the superclass',
'type' => 'is-subclass-of'
=item Code:superclass.type
returns all assertions where there are superclasses of a given toplet
'superclass' => 'which toplet should be the subclass',
'type' => 'is-subclass-of'
=item Code:type
return all assertions with a given type
'type' => 'the type of the assertion'
=back
=head1 SEE ALSO
L<TM>
=head1 COPYRIGHT AND LICENSE
Copyright 200[8] by Robert Barta, E<lt>drrho@cpan.orgE<gt>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl
itself.
=cut
1;
|