line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lingua::Thesaurus::IO::Jurivoc; |
2
|
4
|
|
|
4
|
|
2334
|
use Moose; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
29
|
|
3
|
|
|
|
|
|
|
extends 'Lingua::Thesaurus::IO::LivelinkCollectionServer'; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
has '_rel_types' => (is => 'ro', |
6
|
|
|
|
|
|
|
documentation => "default reltypes for Jurivoc " |
7
|
|
|
|
|
|
|
. "(thesaurus for Swiss Tribunal Federal", |
8
|
|
|
|
|
|
|
default => sub { { |
9
|
|
|
|
|
|
|
# rel description reverse is_external |
10
|
|
|
|
|
|
|
# === =========== ======= =========== |
11
|
|
|
|
|
|
|
USE => ['Use' => UF => undef], |
12
|
|
|
|
|
|
|
UF => ['Used For' => USE => undef], |
13
|
|
|
|
|
|
|
USA => ['Use AND' => UFA => undef], |
14
|
|
|
|
|
|
|
UFA => ['Used For AND' => USA => undef], |
15
|
|
|
|
|
|
|
BT => ['Broad Term' => NT => undef], |
16
|
|
|
|
|
|
|
NT => ['Narrow Term' => BT => undef], |
17
|
|
|
|
|
|
|
RT => ['Related Term' => RT => undef], |
18
|
|
|
|
|
|
|
SN => ['Scope Note' => undef , 1 ], |
19
|
|
|
|
|
|
|
COM => ['Commentaire' => undef , 1 ], |
20
|
|
|
|
|
|
|
SA => ['See also' => undef , 1 ], |
21
|
|
|
|
|
|
|
}}); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=encoding ISO8859-1 |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Lingua::Thesaurus::IO::Jurivoc - Thesaurus IO class for "Jurivoc", the Swiss thesaurus for justice |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 DESCRIPTION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
The Swiss Supreme Court (a.k.a "Tribunal Fédéral") maintains a multi-lingual |
36
|
|
|
|
|
|
|
thesaurus called B<Jurivoc>, containing terms related to justice. |
37
|
|
|
|
|
|
|
This is published at |
38
|
|
|
|
|
|
|
L<http://www.bger.ch/fr/index/juridiction/jurisdiction-inherit-template/jurisdiction-jurivoc-home.htm>. |
39
|
|
|
|
|
|
|
Thesaurus files are dumped from a database called "Livelink Collection Server" |
40
|
|
|
|
|
|
|
(formerly known as "Basis Plus"). |
41
|
|
|
|
|
|
|
The format is quite similar to ISO 2788, but with a few variations. |
42
|
|
|
|
|
|
|
Hence the present class inherits from |
43
|
|
|
|
|
|
|
L<Lingua::Thesaurus::IO::LivelinkCollectionServer>. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Relations in Jurivoc are slightly different from default |
46
|
|
|
|
|
|
|
relations in LivelinkCollectionServer thesauri : |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
rel description reverse is_external |
49
|
|
|
|
|
|
|
=== =========== ======= =========== |
50
|
|
|
|
|
|
|
[USE => 'Use' => UF => undef], |
51
|
|
|
|
|
|
|
[UF => 'Used For' => USE => undef], |
52
|
|
|
|
|
|
|
[USA => 'Use AND' => UFA => undef], |
53
|
|
|
|
|
|
|
[UFA => 'Used For AND' => USA => undef], |
54
|
|
|
|
|
|
|
[BT => 'Broad Term' => NT => undef], |
55
|
|
|
|
|
|
|
[NT => 'Narrow Term' => BT => undef], |
56
|
|
|
|
|
|
|
[RT => 'Related Term' => RT => undef], |
57
|
|
|
|
|
|
|
[SN => 'Scope Note' => undef , 1 ], |
58
|
|
|
|
|
|
|
[COM => 'Commentaire' => undef , 1 ], |
59
|
|
|
|
|
|
|
[SA\d* => 'See also' => undef , 1 ], |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 TODO |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
- implement multiligual translations (GER, FRE, IT) |
65
|
|
|
|
|
|
|
!! PROBL: inverse relation is not absolute; depends on the input file |