forked from emijrp/wikidata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.descriptions.py
2874 lines (2805 loc) · 125 KB
/
common.descriptions.py
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2017-2019 emijrp <emijrp@gmail.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import random
import re
import sys
import time
import urllib.parse
import pwb
import pywikibot
from wikidatafun import *
"""
#filter by language
SELECT ?item
WHERE {
?item wdt:P31 wd:Q101352 .
FILTER NOT EXISTS { ?item wdt:P31 wd:Q4167410 } .
OPTIONAL { ?item schema:description ?itemDescription. FILTER(LANG(?itemDescription) = "ca"). }
FILTER (!BOUND(?itemDescription))
}
#all surnames
SELECT ?item
WHERE {
?item wdt:P31 wd:Q101352 .
FILTER NOT EXISTS { ?item wdt:P31 wd:Q4167410 } .
}
"""
#family
#genus
#species
#proteins https://query.wikidata.org/bigdata/namespace/wdq/sparql?query=SELECT%20%3FitemDescription%20(COUNT(%3Fitem)%20AS%20%3Fcount)%0AWHERE%20%7B%0A%09%3Fitem%20wdt%3AP279%20wd%3AQ8054.%0A%20%20%20%20%3Fitem%20schema%3Adescription%20%22mammalian%20protein%20found%20in%20Mus%20musculus%22%40en.%0A%20%20%20%20OPTIONAL%20%7B%20%3Fitem%20schema%3Adescription%20%3FitemDescription.%20FILTER(LANG(%3FitemDescription)%20%3D%20%22es%22).%20%20%7D%0A%09FILTER%20(BOUND(%3FitemDescription))%0A%7D%0AGROUP%20BY%20%3FitemDescription%0AORDER%20BY%20DESC(%3Fcount)
def genQuery(p31='', desc='', desclang=''):
if not p31 or not desc or not desclang:
print('Error genQuery', p31, desc, desclang)
sys.exit()
query = [
"""
SELECT ?item
WHERE {
?item wdt:P31 wd:%s ;
wdt:P31 ?instance .
?item schema:description "%s"@%s.
}
GROUP BY ?item
HAVING(COUNT(?instance) = 1)
""" % (p31, desc, desclang)
]
return query
def genQueriesByCountry(p31='', desc='', desclang=''):
queries = {}
queries[desc.replace('~', 'Afghanistan')] = genQuery(p31=p31, desc=desc.replace('~', 'Afghanistan'), desclang=desclang)
queries[desc.replace('~', 'Angola')] = genQuery(p31=p31, desc=desc.replace('~', 'Angola'), desclang=desclang)
queries[desc.replace('~', 'Armenia')] = genQuery(p31=p31, desc=desc.replace('~', 'Armenia'), desclang=desclang)
queries[desc.replace('~', 'Australia')] = genQuery(p31=p31, desc=desc.replace('~', 'Australia'), desclang=desclang)
queries[desc.replace('~', 'Bangladesh')] = genQuery(p31=p31, desc=desc.replace('~', 'Bangladesh'), desclang=desclang)
queries[desc.replace('~', 'Belarus')] = genQuery(p31=p31, desc=desc.replace('~', 'Belarus'), desclang=desclang)
queries[desc.replace('~', 'Belgium')] = genQuery(p31=p31, desc=desc.replace('~', 'Belgium'), desclang=desclang)
queries[desc.replace('~', 'Benin')] = genQuery(p31=p31, desc=desc.replace('~', 'Benin'), desclang=desclang)
queries[desc.replace('~', 'Bolivia')] = genQuery(p31=p31, desc=desc.replace('~', 'Bolivia'), desclang=desclang)
queries[desc.replace('~', 'Bosnia and Herzegovina')] = genQuery(p31=p31, desc=desc.replace('~', 'Bosnia and Herzegovina'), desclang=desclang)
queries[desc.replace('~', 'Botswana')] = genQuery(p31=p31, desc=desc.replace('~', 'Botswana'), desclang=desclang)
queries[desc.replace('~', 'Brazil')] = genQuery(p31=p31, desc=desc.replace('~', 'Brazil'), desclang=desclang)
queries[desc.replace('~', 'Brunei')] = genQuery(p31=p31, desc=desc.replace('~', 'Brunei'), desclang=desclang)
queries[desc.replace('~', 'Bulgaria')] = genQuery(p31=p31, desc=desc.replace('~', 'Bulgaria'), desclang=desclang)
queries[desc.replace('~', 'Burkina Faso')] = genQuery(p31=p31, desc=desc.replace('~', 'Burkina Faso'), desclang=desclang)
queries[desc.replace('~', 'Canada')] = genQuery(p31=p31, desc=desc.replace('~', 'Canada'), desclang=desclang)
queries[desc.replace('~', 'Chile')] = genQuery(p31=p31, desc=desc.replace('~', 'Chile'), desclang=desclang)
queries[desc.replace('~', 'Colombia')] = genQuery(p31=p31, desc=desc.replace('~', 'Colombia'), desclang=desclang)
queries[desc.replace('~', 'Croatia')] = genQuery(p31=p31, desc=desc.replace('~', 'Croatia'), desclang=desclang)
queries[desc.replace('~', 'Cuba')] = genQuery(p31=p31, desc=desc.replace('~', 'Cuba'), desclang=desclang)
queries[desc.replace('~', 'Cyprus')] = genQuery(p31=p31, desc=desc.replace('~', 'Cyprus'), desclang=desclang)
queries[desc.replace('~', 'Democratic Republic of the Congo')] = genQuery(p31=p31, desc=desc.replace('~', 'Democratic Republic of the Congo'), desclang=desclang)
queries[desc.replace('~', 'Equatorial Guinea')] = genQuery(p31=p31, desc=desc.replace('~', 'Equatorial Guinea'), desclang=desclang)
queries[desc.replace('~', 'Ethiopia')] = genQuery(p31=p31, desc=desc.replace('~', 'Ethiopia'), desclang=desclang)
queries[desc.replace('~', 'Fiji')] = genQuery(p31=p31, desc=desc.replace('~', 'Fiji'), desclang=desclang)
queries[desc.replace('~', 'Gabon')] = genQuery(p31=p31, desc=desc.replace('~', 'Gabon'), desclang=desclang)
queries[desc.replace('~', 'Germany')] = genQuery(p31=p31, desc=desc.replace('~', 'Germany'), desclang=desclang)
queries[desc.replace('~', 'Ghana')] = genQuery(p31=p31, desc=desc.replace('~', 'Ghana'), desclang=desclang)
queries[desc.replace('~', 'Guyana')] = genQuery(p31=p31, desc=desc.replace('~', 'Guyana'), desclang=desclang)
queries[desc.replace('~', 'India')] = genQuery(p31=p31, desc=desc.replace('~', 'India'), desclang=desclang)
queries[desc.replace('~', 'Indonesia')] = genQuery(p31=p31, desc=desc.replace('~', 'Indonesia'), desclang=desclang)
queries[desc.replace('~', 'Iran')] = genQuery(p31=p31, desc=desc.replace('~', 'Iran'), desclang=desclang)
queries[desc.replace('~', 'Japan')] = genQuery(p31=p31, desc=desc.replace('~', 'Japan'), desclang=desclang)
queries[desc.replace('~', 'Latvia')] = genQuery(p31=p31, desc=desc.replace('~', 'Latvia'), desclang=desclang)
queries[desc.replace('~', 'Lebanon')] = genQuery(p31=p31, desc=desc.replace('~', 'Lebanon'), desclang=desclang)
queries[desc.replace('~', 'Lithuania')] = genQuery(p31=p31, desc=desc.replace('~', 'Lithuania'), desclang=desclang)
queries[desc.replace('~', 'Malaysia')] = genQuery(p31=p31, desc=desc.replace('~', 'Malaysia'), desclang=desclang)
queries[desc.replace('~', 'Mexico')] = genQuery(p31=p31, desc=desc.replace('~', 'Mexico'), desclang=desclang)
queries[desc.replace('~', 'Mozambique')] = genQuery(p31=p31, desc=desc.replace('~', 'Mozambique'), desclang=desclang)
queries[desc.replace('~', 'New Zealand')] = genQuery(p31=p31, desc=desc.replace('~', 'New Zealand'), desclang=desclang)
queries[desc.replace('~', 'North Korea')] = genQuery(p31=p31, desc=desc.replace('~', 'North Korea'), desclang=desclang)
queries[desc.replace('~', 'Norway')] = genQuery(p31=p31, desc=desc.replace('~', 'Norway'), desclang=desclang)
queries[desc.replace('~', 'Pakistan')] = genQuery(p31=p31, desc=desc.replace('~', 'Pakistan'), desclang=desclang)
queries[desc.replace('~', "People's Republic of China")] = genQuery(p31=p31, desc=desc.replace('~', "People's Republic of China"), desclang=desclang)
queries[desc.replace('~', 'Poland')] = genQuery(p31=p31, desc=desc.replace('~', 'Poland'), desclang=desclang)
queries[desc.replace('~', 'Portugal')] = genQuery(p31=p31, desc=desc.replace('~', 'Portugal'), desclang=desclang)
queries[desc.replace('~', 'Republic of the Congo')] = genQuery(p31=p31, desc=desc.replace('~', 'Republic of the Congo'), desclang=desclang)
queries[desc.replace('~', 'Romania')] = genQuery(p31=p31, desc=desc.replace('~', 'Romania'), desclang=desclang)
queries[desc.replace('~', 'Russia')] = genQuery(p31=p31, desc=desc.replace('~', 'Russia'), desclang=desclang)
queries[desc.replace('~', 'Serbia')] = genQuery(p31=p31, desc=desc.replace('~', 'Serbia'), desclang=desclang)
queries[desc.replace('~', 'Sierra Leone')] = genQuery(p31=p31, desc=desc.replace('~', 'Sierra Leone'), desclang=desclang)
queries[desc.replace('~', 'Slovakia')] = genQuery(p31=p31, desc=desc.replace('~', 'Slovakia'), desclang=desclang)
queries[desc.replace('~', 'South Africa')] = genQuery(p31=p31, desc=desc.replace('~', 'South Africa'), desclang=desclang)
queries[desc.replace('~', 'South Sudan')] = genQuery(p31=p31, desc=desc.replace('~', 'South Sudan'), desclang=desclang)
queries[desc.replace('~', 'Spain')] = genQuery(p31=p31, desc=desc.replace('~', 'Spain'), desclang=desclang)
queries[desc.replace('~', 'Sweden')] = genQuery(p31=p31, desc=desc.replace('~', 'Sweden'), desclang=desclang)
queries[desc.replace('~', 'Taiwan')] = genQuery(p31=p31, desc=desc.replace('~', 'Taiwan'), desclang=desclang)
queries[desc.replace('~', 'Turkey')] = genQuery(p31=p31, desc=desc.replace('~', 'Turkey'), desclang=desclang)
queries[desc.replace('~', 'the Central African Republic')] = genQuery(p31=p31, desc=desc.replace('~', 'the Central African Republic'), desclang=desclang)
queries[desc.replace('~', 'the Philippines')] = genQuery(p31=p31, desc=desc.replace('~', 'the Philippines'), desclang=desclang)
queries[desc.replace('~', 'the United Kingdom')] = genQuery(p31=p31, desc=desc.replace('~', 'the United Kingdom'), desclang=desclang)
queries[desc.replace('~', 'United States of America')] = genQuery(p31=p31, desc=desc.replace('~', 'United States of America'), desclang=desclang)
queries[desc.replace('~', 'Ukraine')] = genQuery(p31=p31, desc=desc.replace('~', 'Ukraine'), desclang=desclang)
queries[desc.replace('~', 'Uganda')] = genQuery(p31=p31, desc=desc.replace('~', 'Uganda'), desclang=desclang)
queries[desc.replace('~', 'Uruguay')] = genQuery(p31=p31, desc=desc.replace('~', 'Uruguay'), desclang=desclang)
queries[desc.replace('~', 'Venezuela')] = genQuery(p31=p31, desc=desc.replace('~', 'Venezuela'), desclang=desclang)
queries[desc.replace('~', 'Vietnam')] = genQuery(p31=p31, desc=desc.replace('~', 'Vietnam'), desclang=desclang)
queries[desc.replace('~', 'Zambia')] = genQuery(p31=p31, desc=desc.replace('~', 'Zambia'), desclang=desclang)
return queries
def genTranslationsByCountryCore(desc='', desclang=''):
translations = {
'bay in ~': {
'en': 'bay in ~',
'es': 'bahía de ~',
},
'bight in ~': {
'en': 'bight in ~',
'es': 'ancón de ~',
},
'cape in ~': {
'en': 'cape in ~',
'es': 'cabo de ~',
},
'cave in ~': {
'en': 'cave in ~',
'es': 'cueva de ~',
},
'dune in ~': {
'en': 'dune in ~',
'es': 'duna de ~',
},
'glacier in ~': {
'en': 'glacier in ~',
'es': 'glaciar de ~',
},
'hill in ~': {
'en': 'hill in ~',
'es': 'colina de ~',
},
'island in ~': {
'en': 'island in ~',
'es': 'isla de ~',
},
'lagoon in ~': {
'en': 'lagoon in ~',
'es': 'laguna de ~',
},
'lake in ~': {
'en': 'lake in ~',
'es': 'lago de ~',
},
'mine in ~': {
'en': 'mine in ~',
'es': 'mina de ~',
},
'mountain in ~': {
'en': 'mountain in ~',
'es': 'montaña de ~',
},
'plain in ~': {
'en': 'plain in ~',
'es': 'llanura de ~',
},
'reef in ~': {
'en': 'reef in ~',
'es': 'arrecife de ~',
},
'reservoir in ~': {
'en': 'reservoir in ~',
'es': 'embalse de ~',
},
'river in ~': {
'en': 'river in ~',
'es': 'río de ~',
},
'road in ~': {
'en': 'road in ~',
'es': 'carretera de ~',
},
'spring in ~': {
'en': 'spring in ~',
'es': 'manantial de ~',
},
'stream in ~': {
'en': 'stream in ~',
'es': 'arroyo de ~',
},
'swamp in ~': {
'en': 'swamp in ~',
'es': 'pantano de ~',
},
'valley in ~': {
'en': 'valley in ~',
'es': 'valle de ~',
},
'watercourse in ~': {
'en': 'watercourse in ~',
'es': 'curso de agua de ~',
},
}
return translations[desc][desclang]
def genTranslationsByCountry(desc=''):
translations = {}
translations[desc.replace('~', 'Afghanistan')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Afghanistan'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Afganistán'),
}
translations[desc.replace('~', 'Angola')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Angola'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Angola'),
}
translations[desc.replace('~', 'Armenia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Armenia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Armenia'),
}
translations[desc.replace('~', 'Australia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Australia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Australia'),
}
translations[desc.replace('~', 'Bangladesh')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Bangladesh'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Bangladesh'),
}
translations[desc.replace('~', 'Belarus')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Belarus'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Bielorrusia'),
}
translations[desc.replace('~', 'Belgium')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Belgium'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Bélgica'),
}
translations[desc.replace('~', 'Benin')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Benin'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Benín'),
}
translations[desc.replace('~', 'Bolivia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Bolivia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Bolivia'),
}
translations[desc.replace('~', 'Bosnia and Herzegovina')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Bosnia and Herzegovina'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Bosnia y Herzegovina'),
}
translations[desc.replace('~', 'Botswana')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Botswana'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Botsuana'),
}
translations[desc.replace('~', 'Brazil')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Brazil'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Brasil'),
}
translations[desc.replace('~', 'Brunei')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Brunei'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Brunéi'),
}
translations[desc.replace('~', 'Bulgaria')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Bulgaria'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Bulgaria'),
}
translations[desc.replace('~', 'Burkina Faso')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Burkina Faso'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Burkina Faso'),
}
translations[desc.replace('~', 'Canada')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Canada'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Canadá'),
}
translations[desc.replace('~', 'Chile')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Chile'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Chile'),
}
translations[desc.replace('~', 'Colombia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Colombia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Colombia'),
}
translations[desc.replace('~', 'Croatia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Croatia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Croacia'),
}
translations[desc.replace('~', 'Cuba')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Cuba'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Cuba'),
}
translations[desc.replace('~', 'Cyprus')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Cyprus'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Chipre'),
}
translations[desc.replace('~', 'Democratic Republic of the Congo')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Democratic Republic of the Congo'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'República Democrática del Congo'),
}
translations[desc.replace('~', 'Equatorial Guinea')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Equatorial Guinea'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Guinea Ecuatorial'),
}
translations[desc.replace('~', 'Ethiopia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Ethiopia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Etiopía'),
}
translations[desc.replace('~', 'Fiji')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Fiji'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Fiji'),
}
translations[desc.replace('~', 'Gabon')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Gabon'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Gabón'),
}
translations[desc.replace('~', 'Germany')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Germany'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Alemania'),
}
translations[desc.replace('~', 'Ghana')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Ghana'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Ghana'),
}
translations[desc.replace('~', 'Guyana')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Guyana'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Guyana'),
}
translations[desc.replace('~', 'India')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'India'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'la India'),
}
translations[desc.replace('~', 'Indonesia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Indonesia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Indonesia'),
}
translations[desc.replace('~', 'Iran')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Iran'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Irán'),
}
translations[desc.replace('~', 'Japan')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Japan'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Japón'),
}
translations[desc.replace('~', 'Latvia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Latvia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Letonia'),
}
translations[desc.replace('~', 'Lebanon')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Lebanon'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Líbano'),
}
translations[desc.replace('~', 'Lithuania')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Lithuania'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Lituania'),
}
translations[desc.replace('~', 'Malaysia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Malaysia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Malasia'),
}
translations[desc.replace('~', 'Mexico')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Mexico'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'México'),
}
translations[desc.replace('~', 'Mozambique')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Mozambique'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Mozambique'),
}
translations[desc.replace('~', 'New Zealand')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'New Zealand'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Nueva Zelanda'),
}
translations[desc.replace('~', 'North Korea')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'North Korea'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Corea del Norte'),
}
translations[desc.replace('~', 'Norway')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Norway'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Noruega'),
}
translations[desc.replace('~', 'Pakistan')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Pakistan'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Pakistán'),
}
translations[desc.replace('~', "People's Republic of China")] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', "People's Republic of China"),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'la República Popular China'),
}
translations[desc.replace('~', 'Poland')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Poland'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Polonia'),
}
translations[desc.replace('~', 'Portugal')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Portugal'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Portugal'),
}
translations[desc.replace('~', 'Republic of the Congo')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Republic of the Congo'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'República del Congo'),
}
translations[desc.replace('~', 'Romania')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Romania'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Rumanía'),
}
translations[desc.replace('~', 'Russia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Russia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Rusia'),
}
translations[desc.replace('~', 'Serbia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Serbia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Serbia'),
}
translations[desc.replace('~', 'Sierra Leone')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Sierra Leone'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Sierra Leona'),
}
translations[desc.replace('~', 'Slovakia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Slovakia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Eslovaquia'),
}
translations[desc.replace('~', 'South Africa')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'South Africa'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Sudáfrica'),
}
translations[desc.replace('~', 'South Sudan')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'South Sudan'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Sudán del Sur'),
}
translations[desc.replace('~', 'Spain')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Spain'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'España'),
}
translations[desc.replace('~', 'Sweden')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Sweden'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Suecia'),
}
translations[desc.replace('~', 'Taiwan')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Taiwan'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Taiwán'),
}
translations[desc.replace('~', 'Turkey')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Turkey'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Turquía'),
}
translations[desc.replace('~', 'the Central African Republic')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'the Central African Republic'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'República Centroafricana'),
}
translations[desc.replace('~', 'the Philippines')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'the Philippines'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Filipinas'),
}
translations[desc.replace('~', 'the United Kingdom')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'the United Kingdom'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Reino Unido'),
}
translations[desc.replace('~', 'United States of America')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'United States of America'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Estados Unidos'),
}
translations[desc.replace('~', 'Ukraine')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Ukraine'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Ucrania'),
}
translations[desc.replace('~', 'Uganda')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Uganda'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Uganda'),
}
translations[desc.replace('~', 'Uruguay')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Uruguay'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Uruguay'),
}
translations[desc.replace('~', 'Venezuela')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Venezuela'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Venezuela'),
}
translations[desc.replace('~', 'Vietnam')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Vietnam'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Vietnam'),
}
translations[desc.replace('~', 'Zambia')] = {
'en': genTranslationsByCountryCore(desc=desc, desclang='en').replace('~', 'Zambia'),
'es': genTranslationsByCountryCore(desc=desc, desclang='es').replace('~', 'Zambia'),
}
return translations
def main():
fixthiswhenfound = { #fix (overwrite) old, wrong or poor translations
'chemical compound': {
'nl': ['chemische stof'], #https://www.wikidata.org/w/index.php?title=Q27165025&type=revision&diff=486050731&oldid=466952438
},
'family name': {
'sq': ['mbiemri'], #because "mbiemri" = "the family name"
},
'species of insect': {
'sq': ['specie e insekteve'], #https://github.com/emijrp/wikidata/pull/47
},
'television series': {
'es': ['television series'], #https://www.wikidata.org/w/index.php?title=Q1043980&oldid=837349507
},
'village in China': {
'bn': ['চীনের গ্রাম'], #https://www.wikidata.org/w/index.php?title=User_talk:Emijrp&diff=prev&oldid=510797889
'fi': ['kiinalainen kylä'], #https://www.wikidata.org/w/index.php?title=User_talk:Emijrp&diff=468197059&oldid=463649230
'id': ['desa di Cina'],
},
'Wikimedia category': {
'arz': ['ويكيبيديا:تصنيف'],
'be': ['катэгарызацыя'], #https://www.wikidata.org/w/index.php?title=User:Emijrp/Wikimedia_project_pages_matrix&diff=next&oldid=500158307
'be-tarask': ['Катэгорыя', 'Вікіпэдыя:Катэгорыя'],#https://www.wikidata.org/w/index.php?title=User:Emijrp/Wikimedia_project_pages_matrix&diff=next&oldid=500158307
'es': ['categoría de Wikipedia'],
'mk': ['категорија на Википедија'],
'uk': ['Категорії', 'категорія в проекті Вікімедіа'], #https://www.wikidata.org/w/index.php?title=User_talk%3AEmijrp&type=revision&diff=527336622&oldid=525302741
},
'Wikimedia disambiguation page': {
'bn': ['উইকিমিডিয়া দ্ব্যর্থতা নিরসন পাতা'],
'el': ['σελίδα αποσαφήνισης'],#https://www.wikidata.org/w/index.php?title=Q29449981&diff=prev&oldid=567203989
'es': ['desambiguación de Wikipedia'],
'fy': ['Betsjuttingsside'], #https://www.wikidata.org/w/index.php?title=User:Emijrp/Wikimedia_project_pages_matrix&curid=30597789&diff=499110338&oldid=498167178
'id': ['halaman disambiguasi'],
'tg': ['саҳифаи ибҳомзудоии Викимаълумот'], #https://www.wikidata.org/w/index.php?title=Topic:Ts4qkooukddjcuq9&topic_showPostId=ts4rax4ro9brqqgj#flow-post-ts4rax4ro9brqqgj
'tt': ['Википедия:Күп мәгънәле мәкаләләр'],
'uk': ['сторінка значень в проекті Вікімедіа'],
},
'Wikimedia list article': {
'et': ['Vikipeedia:Loend', 'Vikipeedia loend'], #https://www.wikidata.org/w/index.php?title=Q13406463&diff=next&oldid=588159017
'id': ['Wikipedia:Daftar'], #https://www.wikidata.org/w/index.php?title=Q13406463&diff=745905758&oldid=745029653
'tg': ['саҳифае, ки аз рӯйхат иборат аст'], #https://www.wikidata.org/w/index.php?title=Q13406463&diff=prev&oldid=498154491
'uk': ['сторінка-список в проекті Вікімедіа'], #https://www.wikidata.org/w/index.php?title=Q13406463&diff=617531932&oldid=606446211
},
'Wikimedia template': {
'be': ['шаблон Вікіпедыя'],
'be-tarask': ['шаблён Вікіпэдыя'],
'eu': ['Wikimediarako txantiloia'], #https://www.wikidata.org/w/index.php?title=Q11266439&type=revision&diff=469566880&oldid=469541605
'id': ['templat Wikipedia'],
'nb': ['Wikipedia mal'],
'nn': ['Wikipedia mal'],
'pl': ['szablon Wikipedii'],
'sq': ['Wikipedia stampa'],
'sv': ['Wikipedia mall'],
'sw': ['kigezo Wikipedia'],
'tg': ['Шаблони Викимедиа', 'шаблон Википедиа'], #https://www.wikidata.org/w/index.php?title=Q11266439&diff=prev&oldid=498153879
'tr': ['şablon Vikipedi'],
'uk': ['шаблон Вікіпедії', 'шаблон проекту Вікімедіа'],
'yo': ['àdàkọ Wikipedia'],
'vi': ['bản mẫu Wikipedia'],
},
'Wikinews article': {
'nl': ['Wikinews-artikel'],
},
}
translations = {
'asteroid': { #Q3863
'af': 'asteroïde',
'an': 'asteroide',
'ar': 'كويكب',
'as': 'গ্ৰহাণু',
'ast': 'asteroide',
'az': 'asteroid',
'azb': 'گزگنچه',
'ba': 'Астероид',
'bar': 'Asteroid',
'be': 'астэроід',
'be-tarask': 'астэроід',
'bg': 'астероид',
'bho': 'एस्टेरॉइड्स',
'bjn': 'asteruid',
'bn': 'গ্রহাণু',
'br': 'asteroidenn',
'bs': 'Asteroid',
'ca': 'asteroide',
'ce': 'Астероид',
'chr': 'ᏅᏯ ᏧᎳᎬᎭᎸᏓ',
'ckb': 'گەڕەستێرۆچکە',
'cs': 'asteroid',
'cv': 'астероид',
'cy': 'asteroid',
'da': 'asteroide',
'de': 'Asteroid',
'el': 'αστεροειδής',
'eml': 'Asteròid',
'en': 'asteroid',
'en-ca': 'asteroid',
'en-gb': 'asteroid',
'eo': 'asteroido',
'es': 'asteroide',
'et': 'asteroid',
'eu': 'asteroide',
'fa': 'سیارک',
'fi': 'asteroidi',
'fr': 'astéroïde',
'fy': 'asteroïde',
'ga': 'astaróideach',
'gd': 'astaroid',
'gl': 'asteroide',
'gn': 'Mbyjaveve',
'gsw': 'Asteroid',
'gv': 'roltageagh',
'he': 'אסטרואיד',
'hi': 'क्षुद्रग्रह',
'hif': 'Chhota tara',
'hr': 'asteroidi',
'hsb': 'Asteroid',
'ht': 'astewoyid',
'hu': 'kisbolygó',
'hy': 'աստերոիդ',
'ia': 'asteroide',
'id': 'asteroid',
'ilo': 'asteroid',
'io': 'asteroido',
'is': 'Smástirni',
'it': 'asteroide',
'ja': '小惑星',
'jam': 'Astaraid',
'jbo': 'cmaplini',
'jv': 'asteroid',
'ka': 'მცირე ცთომილები',
'kaa': 'Asteroid',
'kab': 'Azungur',
'kk': 'астероид',
'ko': '소행성',
'krc': 'Астероид',
'ksh': 'Asteroid',
'ku': 'asteroîd',
'ky': 'астероид',
'la': 'asteroides',
'lb': 'Asteroid',
'lez': 'астероид',
'lmo': 'Asteroide',
'lo': 'ດາວເຄາະນ້ອຍ',
'lt': 'Asteroidas',
'lv': 'asteroīds',
'lzh': '小行星',
'min': 'asteroid',
'mk': 'астероид',
'ml': 'ഛിന്നഗ്രഹം',
'mr': 'लघुग्रह',
'ms': 'asteroid',
'mt': 'asterojde',
'mwl': 'asteróide',
'my': 'ဥက္ကာပျံ',
'nan': 'sió-he̍k-chheⁿ',
'nap': 'asteroide',
'nb': 'asteroide',
'nds': 'Asteroid',
'nl': 'asteroïde',
'nn': 'asteroide',
'oc': 'asteroïde',
'or': 'ଗ୍ରହାଣୁ',
'os': 'Астероид',
'pa': 'ਨਿੱਕਾ ਗ੍ਰਹਿ',
'pam': 'asteroid',
'pms': 'Asteròid',
'pnb': 'تارے ورگا',
'pt': 'asteroide',
'pt-br': 'asteroide',
'ro': 'Asteroid',
'ru': 'астероид',
'rue': 'астероід',
'sah': 'Астероид',
'scn': 'astiròidi',
'sco': 'asteroid',
'sgs': 'Asteruoids',
'sh': 'asteroid',
'si': 'ග්රහක',
'sk': 'asteroid',
'sl': 'asteroid',
'sq': 'asteroid',
'sr': 'астероид',
'su': 'Astéroid',
'sv': 'asteroid',
'sw': 'asteroidi',
'ta': 'சிறுகோள்',
'tg': 'Сайёрак',
'th': 'ดาวเคราะห์น้อย',
'tk': 'Asteroid',
'tl': 'asteroyd',
'tr': 'Asteroit',
'tt': 'астероид',
'tt-cyrl': 'астероид',
'tyv': 'Астероид',
'uk': 'астероїд',
'ur': 'نجمانی',
'vi': 'tiểu hành tinh',
'vls': 'Asteroïde',
'war': 'Asteroyd',
'wuu': '小行星',
'xmf': 'ასტეროიდი',
'yi': 'אסטערויד',
'yue': '小行星',
'zh': '小行星',
'zh-cn': '小行星',
'zh-hans': '小行星',
'zh-hant': '小行星',
'zh-hk': '小行星',
'zh-mo': '小行星',
'zh-my': '小行星',
'zh-sg': '小行星',
},
'chemical compound': { #Q11173
'af': 'chemiese verbinding',
'an': 'compuesto quimico',
'ar': 'مركب كيميائي',
'ast': 'compuestu químicu',
'be': 'хімічнае злучэнне',
'be-tarask': 'хімічнае злучэньне',
'bg': 'химично съединение',
'bn': 'রাসায়নিক যৌগ',
'ca': 'compost químic',
'cs': 'chemická sloučenina',
'cy': 'cyfansoddyn cemegol',
'da': 'kemisk forbindelse',
'de': 'chemische Verbindung',
'de-ch': 'chemische Verbindung',
'el': 'χημική ένωση',
'en': 'chemical compound',
'en-ca': 'chemical compound',
'en-gb': 'chemical compound',
'eo': 'kemia kombinaĵo',
'es': 'compuesto químico',
'et': 'keemiline ühend',
'eu': 'konposatu kimiko',
'fr': 'composé chimique',
'fy': 'gemyske ferbining',
'gl': 'composto químico',
'he': 'תרכובת',
'hy': 'քիմիական միացություն',
'ia': 'composito chimic',
'id': 'senyawa kimia',
'io': 'kemiala kompozajo',
'it': 'composto chimico',
'la': 'compositum chemicum',
'lb': 'chemesch Verbindung',
'lv': 'ķīmisks savienojums',
'mk': 'хемиско соединение',
'nb': 'kjemisk forbindelse',
'nl': 'chemische verbinding',
'nn': 'kjemisk sambinding',
'oc': 'component quimic',
'pl': 'związek chemiczny',
'pt': 'composto químico',
'pt-br': 'composto químico',
'ro': 'compus chimic',
'ru': 'химическое соединение',
'scn': 'cumpostu chìmicu',
'sk': 'chemická zlúčenina',
'sq': 'komponim kimik',
'uk': 'хімічна сполука',
'yue': '化合物',
'zh': '化合物',
'zh-cn': '化合物',
'zh-hans': '化合物',
'zh-hant': '化合物',
'zh-hk': '化合物',
'zh-mo': '化合物',
'zh-sg': '化合物',
'zh-tw': '化合物',
},
'douar in Morocco': { #Q23925393
'de': 'douar in Marokko',
'en': 'douar in Morocco',
'es': 'douar de Marruecos',
'fr': 'douar marocain',
'nl': 'douar in Marokko',
},
'encyclopedic article': { #Q17329259
'ar': 'مقالة موسوعية',
'ast': 'artículu enciclopédicu',
'be': 'энцыклапедычны артыкул',
'bn': 'বিশ্বকোষীয় নিবন্ধ',
'ca': 'article enciclopèdic',
'cs': 'encyklopedický článek',
'da': 'encyklopædiartikel',
'de': 'enzyklopädischer Artikel',
'el': 'λήμμα εγκυκλοπαίδειας',
'en': 'encyclopedic article',
'eo': 'enciklopedia artikolo',
'es': 'artículo de enciclopedia',
'et': 'entsüklopeedia artikkel',
'eu': 'entziklopedia artikulu',
'fi': 'tietosanakirja-artikkeli',
'fr': "article d'encyclopédie",
'frc': "article d'encyclopédie",
'fy': 'ensyklopedysk artikel',
'gl': 'artigo enciclopédico',
'he': 'ערך אנציקלופדי',
'hy': 'հանրագիտարանային հոդված',
'hu': 'enciklopédia-szócikk',
'id': 'artikel ensiklopedia',
'io': 'enciklopediala artiklo',
'it': 'voce enciclopedica',
'ja': '百科事典の記事',
'ka': 'ენციკლოპედიური სტატია',
'lt': 'enciklopedinis straipsnis',
'lv': 'enciklopēdisks raksts',
'mk': 'енциклопедиска статија',
'nb': 'encyklopedisk artikkel',
'nl': 'encyclopedisch artikel',
'nn': 'ensyklopedisk artikkel',
'pl': 'artykuł w encyklopedii',
'pt-br': 'artigo enciclopédico',
'ro': 'articol enciclopedic',
'ru': 'энциклопедическая статья',
'sl': 'enciklopedični članek',
'sq': 'artikull enciklopedik',
'sr': 'енциклопедијски чланак',
'sr-ec': 'енциклопедијски чланак',
'sr-el': 'enciklopedijski članak',
'sv': 'encyklopedisk artikel',
'tg': 'мақолаи энсиклопедӣ',
'tg-cyrl': 'мақолаи энсиклопедӣ',
'tt': 'энциклопедик мәкалә',
'tt-cyrl': 'энциклопедик мәкалә',
'uk': 'енциклопедична стаття',
'zh': '条目',
'zh-hans': '百科全书条目',
},
'entry in Dictionary of National Biography': {
'en': 'entry in Dictionary of National Biography',
'es': 'entrada del Dictionary of National Biography',
},
'extrasolar planet': {
'af': 'eksoplaneet',
'ast': 'planeta estrasolar',
'az': 'ekzoplanet',
'be': 'Экзапланета',
'be-tarask': 'Экзаплянэта',
'bg': 'Екзопланета',
'bn': 'বহির্গ্রহ',
'br': 'Ezplanedenn',
'bs': 'vansolarna planeta',
'ca': 'planeta extrasolar',
'cs': 'exoplaneta',
'cv': 'Экзопланета',
'de': 'extrasolarer Planet',
'en': 'extrasolar planet',
'en-ca': 'extrasolar planet',
'en-gb': 'extrasolar planet',
'es': 'planeta extrasolar',
'fi': 'eksoplaneetta',
'fr': 'exoplanète',
'gl': 'planeta extrasolar',
'it': 'pianeta extrasolare',
'nb': 'eksoplanet',
'nl': 'exoplaneet',
'pt': 'exoplaneta',
'pt-br': 'exoplaneta',
'wuu': '太阳系外行星',
'yue': '太陽系外行星',
'zh': '太陽系外行星',
},
#more families https://query.wikidata.org/#SELECT %3FitemDescription (COUNT(%3Fitem) AS %3Fcount)%0AWHERE {%0A%09%3Fitem wdt%3AP31 wd%3AQ16521.%0A %3Fitem wdt%3AP105 wd%3AQ35409.%0A %23%3Fitem schema%3Adescription "family of insects"%40en.%0A OPTIONAL { %3Fitem schema%3Adescription %3FitemDescription. FILTER(LANG(%3FitemDescription) %3D "en"). }%0A%09FILTER (BOUND(%3FitemDescription))%0A}%0AGROUP BY %3FitemDescription%0AORDER BY DESC(%3Fcount)
'family of crustaceans': {
'en': 'family of crustaceans',
'es': 'familia de crustáceos',
'et': 'koorikloomade sugukond',
'he': 'משפחה של סרטנאים',
'io': 'familio di krustacei',
'ro': 'familie de crustacee',
},
'family of insects': {
'bn': 'কীটপতঙ্গের পরিবার',
'en': 'family of insects',
'es': 'familia de insectos',
'et': 'putukate sugukond',
'fr': 'famille d\'insectes',
'he': 'משפחה של חרקים',
'io': 'familio di insekti',
'ro': 'familie de insecte',
},
'family of molluscs': {
'bn': 'মলাস্কার পরিবার',
'en': 'family of molluscs',
'es': 'familia de moluscos',
'et': 'limuste sugukond',
'he': 'משפחה של רכיכות',
'io': 'familio di moluski',
'ro': 'familie de moluște',
},
'family of plants': {
'bn': 'উদ্ভিদের পরিবার',
'cy': 'teulu o blanhigion',
'en': 'family of plants',
'es': 'familia de plantas',
'et': 'taimesugukond',
'he': 'משפחה של צמחים',
'io': 'familio di planti',
'ro': 'familie de plante',
},
'galaxy': {
'ast': 'galaxa',
'ca': 'galàxia',
'en': 'galaxia',
'eo': 'galaksio',
'es': 'galaxy',
'fr': 'galaxie',
'gl': 'galaxia',
'pt': 'galáxia',
},
'genus of algae': {
'ar': 'جنس من الطحالب',
'bn': 'শৈবালের গণ',
'en': 'genus of algae',
'es': 'género de algas',
'et': 'vetikaperekond',
'gl': 'xénero de algas',
'he': 'סוג של אצה',
'id': 'genus alga',
'io': 'genero di algi',
'nb': 'algeslekt',
'nn': 'algeslekt',
'ro': 'gen de alge',
'sq': 'gjini e algave',
},
'genus of amphibians': {
'ar': 'جنس من البرمائيات',
'bn': 'উভচর প্রাণীর গণ',
'en': 'genus of amphibians',
'es': 'género de anfibios',
'et': 'kahepaiksete perekond',
'fr': "genre d'amphibiens",
'he': 'סוג של דו־חיים',
'id': 'genus amfibi',
'io': 'genero di amfibii',
'it': 'genere di anfibi',
'nb': 'amfibieslekt',
'nn': 'amfibieslekt',
'ro': 'gen de amfibieni',
'ru': 'род амфибий',
'sq': 'gjini e amfibeve',
},
'genus of arachnids': {
'ar': 'جنس من العنكبوتيات',
'bn': 'অ্যারাকনিডের গণ',
'ca': "gènere d'aràcnids",
'en': 'genus of arachnids',
'es': 'género de arañas',
'et': 'ämblikulaadsete perekond',
'fr': "genre d'araignées",
'he': 'סוג של עכביש',
'id': 'genus arachnida',
'io': 'genero di aranei',
'it': 'genere di ragni',
'nb': 'edderkoppslekt',
'nn': 'edderkoppslekt',
'ro': 'gen de arahnide',
},
'genus of birds': {
'ar': 'جنس من الطيور',
'bn': 'পাখির গণ',
'ca': "gènere d'ocells",
'cy': 'genws o adar',
'en': 'genus of birds',
'es': 'género de aves',
'et': 'linnuperekond',
'fr': "genre d'oiseaux",
'gl': 'xénero de aves',
'he': 'סוג של ציפור',
'id': 'genus burung',
'io': 'genero di uceli',
'it': 'genere di uccelli',
'ro': 'gen de păsări',
'sq': 'gjini e zogjve',
},
'genus of fishes': {
'ar': 'جنس من الأسماك',
'bn': 'মাছের গণ',
'en': 'genus of fishes',
'es': 'género de peces',
'et': 'kalade perekond',
'fr': 'genre de poissons',
'he': 'סוג של דג',
'id': 'genus ikan',
'io': 'genero di fishi',
'it': 'genere di pesci',
'nb': 'fiskeslekt',
'nn': 'fiskeslekt',
'pt': 'género de peixes',
'pt-br': 'gênero de peixes',
'ro': 'gen de pești',