line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Shared::Fixture::Wikibase::Datatype::Lexeme::Wikidata::DogCzechNoun; |
2
|
|
|
|
|
|
|
|
3
|
16
|
|
|
16
|
|
2045559
|
use base qw(Wikibase::Datatype::Lexeme); |
|
16
|
|
|
|
|
196
|
|
|
16
|
|
|
|
|
8012
|
|
4
|
16
|
|
|
16
|
|
126
|
use strict; |
|
16
|
|
|
|
|
41
|
|
|
16
|
|
|
|
|
357
|
|
5
|
16
|
|
|
16
|
|
82
|
use warnings; |
|
16
|
|
|
|
|
42
|
|
|
16
|
|
|
|
|
445
|
|
6
|
|
|
|
|
|
|
|
7
|
16
|
|
|
16
|
|
8305
|
use Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular; |
|
16
|
|
|
|
|
56
|
|
|
16
|
|
|
|
|
582
|
|
8
|
16
|
|
|
16
|
|
6992
|
use Test::Shared::Fixture::Wikibase::Datatype::Sense::Wikidata::Dog; |
|
16
|
|
|
|
|
51
|
|
|
16
|
|
|
|
|
513
|
|
9
|
16
|
|
|
16
|
|
7400
|
use Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::GrammaticalGender::Masculine; |
|
16
|
|
|
|
|
51
|
|
|
16
|
|
|
|
|
501
|
|
10
|
16
|
|
|
16
|
|
106
|
use Wikibase::Datatype::Value::Monolingual; |
|
16
|
|
|
|
|
35
|
|
|
16
|
|
|
|
|
2175
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our $VERSION = 0.31; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
15
|
14
|
|
|
14
|
1
|
15034
|
my $class = shift; |
16
|
|
|
|
|
|
|
|
17
|
14
|
|
|
|
|
148
|
my @params = ( |
18
|
|
|
|
|
|
|
'forms' => [ |
19
|
|
|
|
|
|
|
Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular->new, |
20
|
|
|
|
|
|
|
], |
21
|
|
|
|
|
|
|
'id' => 'L469', |
22
|
|
|
|
|
|
|
'language' => 'Q9056', |
23
|
|
|
|
|
|
|
'lastrevid' => 1428556087, |
24
|
|
|
|
|
|
|
'lexical_category' => 'Q1084', |
25
|
|
|
|
|
|
|
'lemmas' => [ |
26
|
|
|
|
|
|
|
Wikibase::Datatype::Value::Monolingual->new( |
27
|
|
|
|
|
|
|
'language' => 'cs', |
28
|
|
|
|
|
|
|
'value' => 'pes', |
29
|
|
|
|
|
|
|
), |
30
|
|
|
|
|
|
|
], |
31
|
|
|
|
|
|
|
'modified' => '2022-06-24T12:42:10Z', |
32
|
|
|
|
|
|
|
'ns' => 146, |
33
|
|
|
|
|
|
|
'page_id' => 54393954, |
34
|
|
|
|
|
|
|
'senses' => [ |
35
|
|
|
|
|
|
|
Test::Shared::Fixture::Wikibase::Datatype::Sense::Wikidata::Dog->new, |
36
|
|
|
|
|
|
|
], |
37
|
|
|
|
|
|
|
'statements' => [ |
38
|
|
|
|
|
|
|
Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::GrammaticalGender::Masculine->new, |
39
|
|
|
|
|
|
|
], |
40
|
|
|
|
|
|
|
'title' => 'Lexeme:L469', |
41
|
|
|
|
|
|
|
); |
42
|
|
|
|
|
|
|
|
43
|
14
|
|
|
|
|
141
|
my $self = $class->SUPER::new(@params); |
44
|
|
|
|
|
|
|
|
45
|
14
|
|
|
|
|
284
|
return $self; |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=pod |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=encoding utf8 |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 NAME |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Test::Shared::Fixture::Wikibase::Datatype::Lexeme::Wikidata::DogCzechNoun - Test instance for Wikidata form. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 SYNOPSIS |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
use Test::Shared::Fixture::Wikibase::Datatype::Lexeme::Wikidata::DogCzechNoun; |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Lexeme::Wikidata::DogCzechNoun->new; |
65
|
|
|
|
|
|
|
my $forms_ar = $obj->forms; |
66
|
|
|
|
|
|
|
my $id = $obj->id; |
67
|
|
|
|
|
|
|
my $language = $obj->language; |
68
|
|
|
|
|
|
|
my $lastrevid = $obj->lastrevid; |
69
|
|
|
|
|
|
|
my $lemmas_ar = $obj->lemmas; |
70
|
|
|
|
|
|
|
my $lexical_category = $obj->lexical_category; |
71
|
|
|
|
|
|
|
my $modified = $obj->modified; |
72
|
|
|
|
|
|
|
my $ns = $obj->ns; |
73
|
|
|
|
|
|
|
my $page_id = $obj->page_id; |
74
|
|
|
|
|
|
|
my $senses_ar = $obj->senses; |
75
|
|
|
|
|
|
|
my $statements_ar = $obj->statements; |
76
|
|
|
|
|
|
|
my $title = $obj->title; |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 METHODS |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head2 C<new> |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Lexeme::Wikidata::DogCzechNoun->new(%params); |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Constructor. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Returns instance of object. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 C<forms> |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
my $forms_ar = $obj->forms; |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Get forms. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Returns reference to array with Wikibase::Datatype::Form instances. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head2 C<id> |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
my $id = $obj->id; |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Get id. |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
Returns string. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head2 C<language> |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
my $language = $obj->language; |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Get language. |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
Returns string with QID. |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head2 C<lastrevid> |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
my $lastrevid = $obj->lastrevid; |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Get last revision ID. |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
Returns string. |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head2 C<lemmas> |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
my $lemmas_ar = $obj->lemmas; |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Get lemmas. |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
Returns reference to array with Wikibase::Datatype::Value::Monolingual instances. |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head2 C<lexical_category> |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
my $lexical_category = $obj->lexical_category; |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
Get lexical category. |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
Returns string with QID. |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head2 C<modified> |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
my $modified = $obj->modified; |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
Get date of modification. |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
Returns string. |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=head2 C<ns> |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
my $ns = $obj->ns; |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
Get namespace. |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
Returns number. |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=head2 C<page_id> |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
my $page_id = $obj->page_id; |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
Get page id. |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
Returns number. |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
=head2 C<senses> |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
my $senses_ar = $obj->senses; |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
Get senses. |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
Returns reference to array with Wikibase::Datatype::Sense instances. |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=head2 C<statements> |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
my $statements_ar = $obj->statements; |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
Get statements. |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
Returns reference to array with Wikibase::Datatype::Statement instances. |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
=head2 C<title> |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
my $title = $obj->title; |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
Get title. |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
Returns string. |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
=head1 EXAMPLE |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=for comment filename=fixture_create_and_print_lexeme_wd_dog_czech_noun.pl |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
use strict; |
189
|
|
|
|
|
|
|
use warnings; |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
use Test::Shared::Fixture::Wikibase::Datatype::Lexeme::Wikidata::DogCzechNoun; |
192
|
|
|
|
|
|
|
use Unicode::UTF8 qw(encode_utf8); |
193
|
|
|
|
|
|
|
use Wikibase::Datatype::Print::Lexeme; |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
# Object. |
196
|
|
|
|
|
|
|
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Lexeme::Wikidata::DogCzechNoun->new; |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
# Print out. |
199
|
|
|
|
|
|
|
print encode_utf8(scalar Wikibase::Datatype::Print::Lexeme::print($obj)); |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
# Output: |
202
|
|
|
|
|
|
|
# Title: Lexeme:L469 |
203
|
|
|
|
|
|
|
# Lemmas: pes (cs) |
204
|
|
|
|
|
|
|
# Language: Q9056 |
205
|
|
|
|
|
|
|
# Lexical category: Q1084 |
206
|
|
|
|
|
|
|
# Statements: |
207
|
|
|
|
|
|
|
# P5185: Q499327 (normal) |
208
|
|
|
|
|
|
|
# References: |
209
|
|
|
|
|
|
|
# { |
210
|
|
|
|
|
|
|
# P248: Q53919 |
211
|
|
|
|
|
|
|
# P214: 113230702 |
212
|
|
|
|
|
|
|
# P813: 7 December 2013 (Q1985727) |
213
|
|
|
|
|
|
|
# } |
214
|
|
|
|
|
|
|
# Senses: |
215
|
|
|
|
|
|
|
# Id: L469-S1 |
216
|
|
|
|
|
|
|
# Glosses: |
217
|
|
|
|
|
|
|
# domesticated mammal related to the wolf (en) |
218
|
|
|
|
|
|
|
# psovitá šelma chovaná jako domácí zvíře (cs) |
219
|
|
|
|
|
|
|
# Statements: |
220
|
|
|
|
|
|
|
# P18: Canadian Inuit Dog.jpg (normal) |
221
|
|
|
|
|
|
|
# P5137: Q144 (normal) |
222
|
|
|
|
|
|
|
# Forms: |
223
|
|
|
|
|
|
|
# Id: L469-F1 |
224
|
|
|
|
|
|
|
# Representation: pes (cs) |
225
|
|
|
|
|
|
|
# Grammatical features: Q110786, Q131105 |
226
|
|
|
|
|
|
|
# Statements: |
227
|
|
|
|
|
|
|
# P898: pɛs (normal) |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
=head1 DEPENDENCIES |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
L<Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular>, |
232
|
|
|
|
|
|
|
L<Test::Shared::Fixture::Wikibase::Datatype::Sense::Wikidata::Dog>, |
233
|
|
|
|
|
|
|
L<Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::GrammaticalGender::Masculine>, |
234
|
|
|
|
|
|
|
L<Wikibase::Datatype::Lexeme>, |
235
|
|
|
|
|
|
|
L<Wikibase::Datatype::Value::Monolingual>. |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
=head1 SEE ALSO |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
=over |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
=item L<Wikibase::Datatype> |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
Wikibase datatypes. |
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
=item L<Wikibase::Datatype::Lexeme> |
246
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
Wikibase lexeme datatype. |
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
=back |
250
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
=head1 REPOSITORY |
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
L<https://github.com/michal-josef-spacek/Wikibase-Datatype> |
254
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
=head1 AUTHOR |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
Michal Josef Špaček L<mailto:skim@cpan.org> |
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
L<http://skim.cz> |
260
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
262
|
|
|
|
|
|
|
|
263
|
|
|
|
|
|
|
© 2020-2023 Michal Josef Špaček |
264
|
|
|
|
|
|
|
|
265
|
|
|
|
|
|
|
BSD 2-Clause License |
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
=head1 VERSION |
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
0.31 |
270
|
|
|
|
|
|
|
|
271
|
|
|
|
|
|
|
=cut |