reality 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,37 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'reality'
3
+ s.version = '0.0.1'
4
+ s.authors = ['Victor Shepelev']
5
+ s.email = 'zverok.offline@gmail.com'
6
+ s.homepage = 'https://github.com/molibdenum-99/reality'
7
+
8
+ s.summary = 'Simple and easy proxy to real-life knowledge.'
9
+ s.description = <<-EOF
10
+ Reality provides access to knowledge about real world (like geography,
11
+ history, people, movies and so on) by the means of Wikipedia and
12
+ other open data sources.
13
+ EOF
14
+ s.licenses = ['MIT']
15
+
16
+ s.files = `git ls-files`.split($RS).reject do |file|
17
+ file =~ /^(?:
18
+ spec\/.*
19
+ |Gemfile
20
+ |Rakefile
21
+ |\.rspec
22
+ |\.gitignore
23
+ |\.rubocop.yml
24
+ |\.travis.yml
25
+ )$/x
26
+ end
27
+ s.require_paths = ["lib"]
28
+ s.bindir = 'bin'
29
+ s.executables << 'reality'
30
+
31
+ s.add_dependency 'infoboxer', '>= 0.2.2'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3'
34
+ s.add_development_dependency 'rspec-its', '~> 1'
35
+ s.add_development_dependency 'vcr'
36
+ s.add_development_dependency 'webmock'
37
+ end
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'bundler/setup'
4
+ require 'mediawiktory'
5
+
6
+ out = File.open('data/infoboxes.txt', 'w')
7
+
8
+ w = MediaWiktory::Client.new('https://en.wikipedia.org/w/api.php')
9
+ res = w.query.list(prefixsearch: {search: 'Template:Infobox ', limit: 100}).perform
10
+ out.puts res.raw.query.prefixsearch.map(&:title)
11
+ while res.continue?
12
+ cont = res.raw.continue.psoffset
13
+ p cont
14
+ res = w.query.list(prefixsearch: {search: 'Template:Infobox ', limit: 100, offset: cont}).perform
15
+ out.puts res.raw.query.prefixsearch.map(&:title)
16
+ end
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'bundler/setup'
4
+ require 'infoboxer'
5
+ require 'yaml'
6
+
7
+ File.write 'data/countries.yaml',
8
+ Infoboxer.wp.get('List of countries').
9
+ tables.first.
10
+ templates(name: 'flag').fetch('1').
11
+ map(&:text).uniq.sort.
12
+ to_yaml
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'bundler/setup'
4
+ require 'infoboxer'
5
+ require 'yaml'
6
+
7
+ countries = Infoboxer.wp.
8
+ get('List of countries by continent').
9
+ sections.first.
10
+ sections.tables.lookup(:Wikilink, :bold?).
11
+ reject{|l| l.link == 'India'}. # as of 28.12, India page is broken
12
+ follow
13
+
14
+ File.write 'script/out/categories.txt',
15
+ countries.categories.map(&:link).group_by(&:itself).sort.
16
+ map{|cat, group| "#{cat}: #{group.count}"}.join("\n")
@@ -0,0 +1,27 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ require 'nokogiri'
4
+ require 'progress_bar'
5
+ require 'faraday'
6
+ require_relative 'lib/faraday_naive_cache'
7
+
8
+ client = Faraday.new('https://tools.wmflabs.org/templatecount/') do |builder|
9
+ builder.use Faraday::NaiveCache
10
+ builder.adapter Faraday.default_adapter
11
+ end
12
+
13
+ links = File.read('data/infoboxes.txt').split("\n").
14
+ reject{|l| l.include?('/')}.
15
+ map{|l| l.sub('Template:', '')}
16
+
17
+ bar = ProgressBar.new(links.count)
18
+
19
+ out = File.open('data/infoboxes_freq.txt', 'w')
20
+
21
+ links.each do |l|
22
+ u = "index.php?lang=en&name=%s" % URI.escape(l.gsub(' ', '_'))
23
+ doc = Nokogiri::HTML(client.get(u).body)
24
+ t = doc.search('h3').detect{|h| h.text == 'Number of transclusions'}.next_element.text.to_i
25
+ out.puts "#{l}: #{t}"
26
+ bar.increment!
27
+ end
@@ -0,0 +1,40 @@
1
+ require 'addressable/uri'
2
+ require 'json'
3
+
4
+ module Faraday
5
+ class NaiveCache < Middleware
6
+ BASE_PATH = 'tmp/cache' # FIXME, obviously
7
+
8
+ def call(env)
9
+ if response = from_cache(env[:url])
10
+ env[:response] = response
11
+ else
12
+ @app.call(env).on_complete do |env|
13
+ to_cache(env[:url], env)
14
+ end
15
+ end
16
+ end
17
+
18
+ private
19
+
20
+ def from_cache(url)
21
+ path = cached_path(url)
22
+ File.exists?(path) ? Response.new(JSON.parse(File.read(path))) : nil
23
+ end
24
+
25
+ def to_cache(url, env)
26
+ env.body = env.body.force_encoding('UTF-8')
27
+
28
+ path = cached_path(url)
29
+ FileUtils.mkdir_p File.dirname(path)
30
+ File.write path, env.to_hash.to_json
31
+ end
32
+
33
+ def cached_path(url)
34
+ uri = Addressable::URI.parse(url)
35
+ filename = [uri.path, uri.query].compact.join('?').gsub(/[?\/&]/, '-')
36
+ filename = '_root_' if filename.empty?
37
+ File.join(BASE_PATH, uri.host, filename)
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,619 @@
1
+ Category:1627 establishments in the British Empire: 1
2
+ Category:1632 establishments in the British Empire: 1
3
+ Category:1649 establishments in the French colonial empire: 1
4
+ Category:1763 establishments in the British Empire: 1
5
+ Category:1776 establishments in the United States: 1
6
+ Category:1818 establishments in South America: 1
7
+ Category:1831 establishments in Belgium: 1
8
+ Category:1867 establishments in Canada: 1
9
+ Category:1888 establishments in the British Empire: 1
10
+ Category:1922 establishments in Ireland: 1
11
+ Category:1923 establishments in Turkey: 1
12
+ Category:1948 establishments in Asia: 1
13
+ Category:1948 establishments in Israel: 1
14
+ Category:1949 establishments in Laos: 1
15
+ Category:1951 establishments in Africa: 1
16
+ Category:1960 disestablishments in France: 1
17
+ Category:1960 establishments in Niger: 1
18
+ Category:1965 establishments in Asia: 1
19
+ Category:1965 establishments in the Gambia: 1
20
+ Category:1981 establishments in North America: 1
21
+ Category:1990s establishments in the Republic of Macedonia: 1
22
+ Category:1991 establishments in Ukraine: 1
23
+ Category:2006 establishments in Montenegro: 1
24
+ Category:660 BC: 1
25
+ Category:6th-century BC establishments: 1
26
+ Category:6th-century BC establishments in Asia: 1
27
+ Category:Afghanistan: 1
28
+ Category:Afrikaans-speaking countries and territories: 2
29
+ Category:Albania: 1
30
+ Category:Albanian-speaking countries and territories: 1
31
+ Category:Algeria: 1
32
+ Category:Andean Community: 4
33
+ Category:Andorra: 1
34
+ Category:Angola: 1
35
+ Category:Antigua and Barbuda: 1
36
+ Category:Apostolic sees: 1
37
+ Category:Arabian Peninsula: 5
38
+ Category:Arabic-speaking countries and territories: 25
39
+ Category:Archipelagoes of the Atlantic Ocean: 2
40
+ Category:Archipelagoes of the Indian Ocean: 2
41
+ Category:Archipelagoes of the Mediterranean Sea: 1
42
+ Category:Archipelagoes of the Pacific Ocean: 7
43
+ Category:Areas of traditional spread of Ukrainians and Ukrainian language: 2
44
+ Category:Argentina: 1
45
+ Category:Armenia: 1
46
+ Category:Armenian-speaking countries and territories: 1
47
+ Category:Articles containing Arabic-language text: 1
48
+ Category:Articles containing video clips: 4
49
+ Category:Articles in Wikipedia Primary School Project SSAJRP: 1
50
+ Category:Articles with inconsistent citation formats: 1
51
+ Category:Asia: 1
52
+ Category:Associated states of the United States: 3
53
+ Category:Australia: 1
54
+ Category:Austria: 1
55
+ Category:Azerbaijan: 1
56
+ Category:Azerbaijani-speaking countries and territories: 1
57
+ Category:BRICS nations: 4
58
+ Category:Bahrain: 1
59
+ Category:Balkans: 6
60
+ Category:Baltic states: 3
61
+ Category:Bangladesh: 1
62
+ Category:Bantu countries and territories: 19
63
+ Category:Barbados: 1
64
+ Category:Belarus: 1
65
+ Category:Belgium: 1
66
+ Category:Belize: 1
67
+ Category:Benelux: 2
68
+ Category:Bengal: 1
69
+ Category:Bengali-speaking countries and territories: 1
70
+ Category:Benin: 1
71
+ Category:Berber-speaking countries and territories: 3
72
+ Category:Bhutan: 1
73
+ Category:Blood diamonds: 1
74
+ Category:Bolivia: 1
75
+ Category:Borneo: 1
76
+ Category:Bosnia and Herzegovina: 1
77
+ Category:Bosnian-speaking countries and territories: 1
78
+ Category:Botswana: 1
79
+ Category:Brazil: 1
80
+ Category:British Islands: 1
81
+ Category:British Western Pacific Territories: 4
82
+ Category:Brunei: 1
83
+ Category:Bulgaria: 1
84
+ Category:Burkina Faso: 1
85
+ Category:Burundi: 1
86
+ Category:Cambodia: 1
87
+ Category:Cameroon: 1
88
+ Category:Canada: 1
89
+ Category:Cape Verde: 1
90
+ Category:Capitals in Asia: 1
91
+ Category:Capitals in Europe: 2
92
+ Category:Caroline Islands Archipelago: 2
93
+ Category:Caspian littoral states: 5
94
+ Category:Catholic pilgrimage sites: 1
95
+ Category:Catholicism in Europe: 1
96
+ Category:Caucasus: 3
97
+ Category:Central Africa: 1
98
+ Category:Central African Republic: 1
99
+ Category:Central African countries: 11
100
+ Category:Central Asian countries: 9
101
+ Category:Central Europe: 11
102
+ Category:Chad: 1
103
+ Category:Chile: 1
104
+ Category:China: 1
105
+ Category:Chinese-speaking countries and territories: 2
106
+ Category:Christian terminology: 1
107
+ Category:City-states: 4
108
+ Category:Collective recipients of the George Cross: 1
109
+ Category:Colombia: 1
110
+ Category:Colonial government in the West Indies: 1
111
+ Category:Commonwealth monarchies: 6
112
+ Category:Commonwealth realms: 1
113
+ Category:Commonwealth republics: 31
114
+ Category:Communist states: 4
115
+ Category:Comoros: 1
116
+ Category:Comoros archipelago: 1
117
+ Category:Constitutional monarchies: 34
118
+ Category:Constitutional republics: 1
119
+ Category:Costa Rica: 1
120
+ Category:Countries completely surrounded by only one country: 3
121
+ Category:Countries in Africa: 53
122
+ Category:Countries in Asia: 1
123
+ Category:Countries in Central America: 7
124
+ Category:Countries in Europe: 49
125
+ Category:Countries in Oceania: 13
126
+ Category:Countries in South America: 12
127
+ Category:Countries in the Caribbean: 20
128
+ Category:Countries that are enclaves of Italy: 2
129
+ Category:Croatia: 1
130
+ Category:Croatian-speaking countries and territories: 2
131
+ Category:Cuba: 1
132
+ Category:Cyprus: 1
133
+ Category:Czech Republic: 1
134
+ Category:Czech-speaking countries and territories: 1
135
+ Category:Danish-speaking countries and territories: 1
136
+ Category:Democratic Republic of the Congo: 1
137
+ Category:Denmark: 1
138
+ Category:Developing 8 Countries member states: 7
139
+ Category:Diarchies: 3
140
+ Category:Djibouti: 1
141
+ Category:Dominica: 1
142
+ Category:Dominican Republic: 1
143
+ Category:Duchy of Luxembourg: 1
144
+ Category:Dukedoms: 1
145
+ Category:Dutch-speaking countries and territories: 2
146
+ Category:E7 nations: 6
147
+ Category:East African countries: 7
148
+ Category:East Asian countries: 6
149
+ Category:East Timor: 1
150
+ Category:Eastern Bloc: 1
151
+ Category:Eastern Europe: 9
152
+ Category:Eastern Mediterranean: 7
153
+ Category:Economic Community of West African States: 14
154
+ Category:Ecuador: 1
155
+ Category:Education in São Tomé and Príncipe: 1
156
+ Category:Egypt: 1
157
+ Category:El Salvador: 1
158
+ Category:Emirates: 2
159
+ Category:Enclaves and exclaves: 3
160
+ Category:English-speaking countries and territories: 56
161
+ Category:Equatorial Guinea: 1
162
+ Category:Erasmus Prize winners: 1
163
+ Category:Eritrea: 1
164
+ Category:Estonia: 1
165
+ Category:Ethiopia: 1
166
+ Category:Ethnic Azerbaijani people: 1
167
+ Category:Eurasia: 2
168
+ Category:Eurasian Steppe: 2
169
+ Category:Extinct volcanoes: 1
170
+ Category:Extractive Industries Transparency Initiative: 1
171
+ Category:Federal constitutional republics: 9
172
+ Category:Federal countries: 11
173
+ Category:Federal republics: 7
174
+ Category:Federated States of Micronesia: 1
175
+ Category:Fertile Crescent: 5
176
+ Category:Fiji: 1
177
+ Category:Finland: 1
178
+ Category:Finnish-speaking countries and territories: 1
179
+ Category:Foreign relations of the Palestinian National Authority: 1
180
+ Category:Former British colonies: 26
181
+ Category:Former British protectorates: 3
182
+ Category:Former Danish colonies: 1
183
+ Category:Former Dutch colonies: 2
184
+ Category:Former English colonies: 5
185
+ Category:Former French colonies: 11
186
+ Category:Former German colonies: 5
187
+ Category:Former Italian colonies: 1
188
+ Category:Former Japanese colonies: 3
189
+ Category:Former Norwegian colonies: 1
190
+ Category:Former Portuguese colonies: 9
191
+ Category:Former Spanish colonies: 24
192
+ Category:Former colonies in Africa: 1
193
+ Category:Former confederations: 1
194
+ Category:Former empires: 1
195
+ Category:Former kingdoms: 1
196
+ Category:Former monarchies of Asia: 1
197
+ Category:Former monarchies of Europe: 1
198
+ Category:Former monarchies of South America: 1
199
+ Category:Former socialist republics: 1
200
+ Category:France: 1
201
+ Category:French Caribbean: 1
202
+ Category:French West Africa: 1
203
+ Category:French-speaking countries and territories: 38
204
+ Category:G15 nations: 16
205
+ Category:G20 nations: 17
206
+ Category:G7 nations: 7
207
+ Category:G8 nations: 8
208
+ Category:Gabon: 1
209
+ Category:Geography of Botswana: 1
210
+ Category:Geography of Rome: 1
211
+ Category:Georgia (country): 1
212
+ Category:German-speaking countries and territories: 7
213
+ Category:Germanic countries and territories: 9
214
+ Category:Germany: 1
215
+ Category:Ghana: 1
216
+ Category:Government of the Kingdom of the Netherlands: 1
217
+ Category:Greater Antilles: 4
218
+ Category:Greece: 1
219
+ Category:Grenada: 1
220
+ Category:Guatemala: 1
221
+ Category:Guinea: 1
222
+ Category:Guinea-Bissau: 1
223
+ Category:Gulf of Aden: 1
224
+ Category:Gulf of Guinea: 1
225
+ Category:Gulf of Mexico: 1
226
+ Category:Guyana: 1
227
+ Category:Haiti: 1
228
+ Category:Hebrew words and phrases: 1
229
+ Category:Hindustani-speaking countries and territories: 2
230
+ Category:Historical Hindu kingdoms: 1
231
+ Category:Holy See: 2
232
+ Category:Holy cities: 1
233
+ Category:Honduras: 1
234
+ Category:Horn African countries: 4
235
+ Category:Horn of Africa: 4
236
+ Category:Hotspot volcanoes: 1
237
+ Category:Hungary: 1
238
+ Category:Iberian Peninsula: 1
239
+ Category:Iceland: 1
240
+ Category:Indonesia: 1
241
+ Category:Inner Asia: 1
242
+ Category:International islands: 1
243
+ Category:Iran: 1
244
+ Category:Iranian Plateau: 4
245
+ Category:Iraq: 1
246
+ Category:Islamic republics: 5
247
+ Category:Islamic states: 9
248
+ Category:Island countries: 46
249
+ Category:Islands of Africa: 5
250
+ Category:Islands of Asia: 1
251
+ Category:Islands of Barbados: 1
252
+ Category:Islands of Dominica: 1
253
+ Category:Islands of Europe: 1
254
+ Category:Islands of Iceland: 1
255
+ Category:Islands of Macaronesia: 1
256
+ Category:Islands of Madagascar: 1
257
+ Category:Islands of Mauritius: 1
258
+ Category:Islands of Oceania: 1
259
+ Category:Islands of Saint Lucia: 1
260
+ Category:Islands of the Indian Ocean: 4
261
+ Category:Islands of the North Atlantic Ocean: 1
262
+ Category:Israel: 1
263
+ Category:Italian-speaking countries and territories: 6
264
+ Category:Italy: 1
265
+ Category:Ivory Coast: 1
266
+ Category:Jamaica: 1
267
+ Category:Japan: 1
268
+ Category:Jordan: 1
269
+ Category:Kazakhstan: 1
270
+ Category:Kenya: 1
271
+ Category:Kievan Rus': 1
272
+ Category:Kingdom of the Netherlands: 1
273
+ Category:Kingdoms: 4
274
+ Category:Kiribati: 1
275
+ Category:Korea: 1
276
+ Category:Korean-speaking countries and territories: 2
277
+ Category:Kuwait: 1
278
+ Category:Kyrgyzstan: 1
279
+ Category:Landforms of South Asia: 1
280
+ Category:Landlocked countries: 43
281
+ Category:Laos: 1
282
+ Category:Largest cities of Europe templates: 1
283
+ Category:Latin America: 3
284
+ Category:Latvia: 1
285
+ Category:Least developed countries: 49
286
+ Category:Lebanon: 1
287
+ Category:Lesotho: 1
288
+ Category:Lesser Antilles: 8
289
+ Category:Levant: 6
290
+ Category:Liberal democracies: 86
291
+ Category:Liberia: 1
292
+ Category:Libya: 1
293
+ Category:Liechtenstein: 1
294
+ Category:Lithuania: 1
295
+ Category:Luxembourg: 1
296
+ Category:Madagascar: 1
297
+ Category:Maghrebi countries: 3
298
+ Category:Malawi: 1
299
+ Category:Malay-speaking countries and territories: 4
300
+ Category:Malaysia: 1
301
+ Category:Maldives: 1
302
+ Category:Mali: 1
303
+ Category:Malta: 1
304
+ Category:Marshall Islands: 1
305
+ Category:Massalian colonies: 1
306
+ Category:Mauritania: 1
307
+ Category:Mauritius: 1
308
+ Category:Mediterranean islands: 2
309
+ Category:Melanesia: 4
310
+ Category:Member states of Mercosur: 4
311
+ Category:Member states of NATO: 27
312
+ Category:Member states of OPEC: 13
313
+ Category:Member states of the African Union: 52
314
+ Category:Member states of the Arab League: 21
315
+ Category:Member states of the Association of Southeast Asian Nations: 10
316
+ Category:Member states of the Caribbean Community: 13
317
+ Category:Member states of the Commonwealth of Independent States: 9
318
+ Category:Member states of the Commonwealth of Nations: 51
319
+ Category:Member states of the Community of Portuguese Language Countries: 9
320
+ Category:Member states of the Cooperation Council for the Arab States of the Gulf: 5
321
+ Category:Member states of the Council of Europe: 47
322
+ Category:Member states of the Dutch Language Union: 2
323
+ Category:Member states of the European Union: 27
324
+ Category:Member states of the Organisation internationale de la Francophonie: 43
325
+ Category:Member states of the Organisation of Islamic Cooperation: 55
326
+ Category:Member states of the South Asian Association for Regional Cooperation: 7
327
+ Category:Member states of the Union for the Mediterranean: 38
328
+ Category:Member states of the Union of South American Nations: 12
329
+ Category:Member states of the United Nations: 192
330
+ Category:Members of the Unrepresented Nations and Peoples Organization: 5
331
+ Category:Mesopotamia: 2
332
+ Category:Mexico: 1
333
+ Category:Micronesia: 5
334
+ Category:Middle Eastern countries: 17
335
+ Category:Military dictatorships: 3
336
+ Category:Miocene volcanism: 1
337
+ Category:Modern Turkic states: 6
338
+ Category:Moldova: 1
339
+ Category:Monaco: 1
340
+ Category:Monarchies of Europe: 2
341
+ Category:Monarchies of North America: 1
342
+ Category:Mongol states: 1
343
+ Category:Mongolia: 1
344
+ Category:Montenegro: 1
345
+ Category:Morocco: 1
346
+ Category:Mount Everest: 1
347
+ Category:Mozambique: 1
348
+ Category:Mozambique Channel: 1
349
+ Category:Muslim-majority countries: 44
350
+ Category:Myanmar: 1
351
+ Category:NUTS 1 statistical regions of the European Union: 4
352
+ Category:NUTS 2 statistical regions of the European Union: 3
353
+ Category:NUTS 3 statistical regions of the European Union: 1
354
+ Category:Namibia: 1
355
+ Category:Nauru: 1
356
+ Category:Near Eastern countries: 9
357
+ Category:Nepal: 1
358
+ Category:Nepali-speaking countries and territories: 2
359
+ Category:New Zealand: 1
360
+ Category:Newar: 1
361
+ Category:Nicaragua: 1
362
+ Category:Niger: 1
363
+ Category:Nigeria: 1
364
+ Category:Nordic countries: 5
365
+ Category:North African countries: 6
366
+ Category:North Asian countries: 1
367
+ Category:North Korea: 1
368
+ Category:Northeast Asian countries: 4
369
+ Category:Northern Europe: 10
370
+ Category:Norway: 1
371
+ Category:Nuclear-free zones: 1
372
+ Category:Oman: 1
373
+ Category:Pakistan: 1
374
+ Category:Pakistan Movement: 1
375
+ Category:Palau: 1
376
+ Category:Palestine (region): 1
377
+ Category:Palestine Liberation Organization: 1
378
+ Category:Palestinian nationalism: 1
379
+ Category:Panama: 1
380
+ Category:Papua New Guinea: 1
381
+ Category:Paraguay: 1
382
+ Category:Pashto-speaking countries and territories: 2
383
+ Category:Països Catalans: 1
384
+ Category:Peninsulas of Asia: 1
385
+ Category:Pentarchy: 1
386
+ Category:Persian-speaking countries and territories: 3
387
+ Category:Peru: 1
388
+ Category:Philippines: 1
389
+ Category:Phoenician colonies: 1
390
+ Category:Physiographic provinces: 1
391
+ Category:Plateaus of India: 1
392
+ Category:Poland: 1
393
+ Category:Political engineering by coup: 2
394
+ Category:Political entities in the Land of Israel: 1
395
+ Category:Politics of the Kingdom of the Netherlands: 1
396
+ Category:Polynesia: 4
397
+ Category:Populated coastal places: 1
398
+ Category:Populated places established in 1647: 1
399
+ Category:Port cities of the Mediterranean Sea: 1
400
+ Category:Portugal: 1
401
+ Category:Portuguese colonisation in Africa: 1
402
+ Category:Portuguese colonization of the Americas: 1
403
+ Category:Portuguese-speaking countries and territories: 8
404
+ Category:Post–Russian Empire states: 1
405
+ Category:Prince-Bishoprics: 1
406
+ Category:Principalities: 3
407
+ Category:Pyrenees: 1
408
+ Category:Qatar: 1
409
+ Category:Reparations for slavery: 1
410
+ Category:Republic of Ireland: 1
411
+ Category:Republic of Macedonia: 1
412
+ Category:Republic of the Congo: 1
413
+ Category:Republics: 114
414
+ Category:Requests for audio pronunciation (Arabic): 1
415
+ Category:Requests for audio pronunciation (Azerbaijani): 1
416
+ Category:Requests for audio pronunciation (Berber): 1
417
+ Category:Roman Catholic Church in Europe: 1
418
+ Category:Romance countries and territories: 11
419
+ Category:Romania: 1
420
+ Category:Romanian-speaking countries and territories: 2
421
+ Category:Russia: 1
422
+ Category:Russian-speaking countries and territories: 10
423
+ Category:Rwanda: 1
424
+ Category:Saint Kitts and Nevis: 1
425
+ Category:Saint Lucia: 1
426
+ Category:Saint Vincent and the Grenadines: 1
427
+ Category:Samoa: 1
428
+ Category:San Marino: 1
429
+ Category:Saudi Arabia: 1
430
+ Category:Saudi Arabia articles needing attention: 1
431
+ Category:Scandinavia: 3
432
+ Category:Senegal: 1
433
+ Category:Serbia: 1
434
+ Category:Serbia templates: 1
435
+ Category:Serbian-speaking countries and territories: 2
436
+ Category:Seychelles: 1
437
+ Category:Sierra Leone: 1
438
+ Category:Singapore: 1
439
+ Category:Single-party states: 7
440
+ Category:Slavic countries and territories: 12
441
+ Category:Slovak-speaking countries and territories: 1
442
+ Category:Slovakia: 1
443
+ Category:Slovenia: 1
444
+ Category:Socialist states: 4
445
+ Category:Solomon Islands: 1
446
+ Category:Solomon Islands (archipelago): 1
447
+ Category:Somalia: 1
448
+ Category:South Africa: 1
449
+ Category:South Asian countries: 7
450
+ Category:South Korea: 1
451
+ Category:South Sudan: 1
452
+ Category:Southeast Africa: 8
453
+ Category:Southeast Asian countries: 11
454
+ Category:Southeastern Europe: 10
455
+ Category:Southern Africa: 2
456
+ Category:Southern Europe: 7
457
+ Category:Southern Levant: 3
458
+ Category:Southwestern Europe: 3
459
+ Category:Spain: 1
460
+ Category:Spanish Caribbean: 2
461
+ Category:Spanish East Indies: 4
462
+ Category:Spanish-speaking countries and territories: 21
463
+ Category:Sri Lanka: 1
464
+ Category:State of Palestine: 1
465
+ Category:States and territories established in 1278: 1
466
+ Category:States and territories established in 1297: 1
467
+ Category:States and territories established in 1565: 1
468
+ Category:States and territories established in 1709: 1
469
+ Category:States and territories established in 1747: 1
470
+ Category:States and territories established in 1768: 1
471
+ Category:States and territories established in 1776: 1
472
+ Category:States and territories established in 1804: 1
473
+ Category:States and territories established in 1810: 1
474
+ Category:States and territories established in 1811: 2
475
+ Category:States and territories established in 1813: 1
476
+ Category:States and territories established in 1814: 1
477
+ Category:States and territories established in 1815: 2
478
+ Category:States and territories established in 1816: 1
479
+ Category:States and territories established in 1818: 1
480
+ Category:States and territories established in 1821: 7
481
+ Category:States and territories established in 1822: 1
482
+ Category:States and territories established in 1825: 2
483
+ Category:States and territories established in 1830: 2
484
+ Category:States and territories established in 1840: 1
485
+ Category:States and territories established in 1842: 1
486
+ Category:States and territories established in 1844: 1
487
+ Category:States and territories established in 1847: 1
488
+ Category:States and territories established in 1861: 1
489
+ Category:States and territories established in 1866: 1
490
+ Category:States and territories established in 1867: 1
491
+ Category:States and territories established in 1871: 1
492
+ Category:States and territories established in 1878: 1
493
+ Category:States and territories established in 1898: 1
494
+ Category:States and territories established in 1902: 1
495
+ Category:States and territories established in 1903: 1
496
+ Category:States and territories established in 1905: 1
497
+ Category:States and territories established in 1908: 1
498
+ Category:States and territories established in 1910: 1
499
+ Category:States and territories established in 1911: 1
500
+ Category:States and territories established in 1912: 1
501
+ Category:States and territories established in 1917: 1
502
+ Category:States and territories established in 1918: 5
503
+ Category:States and territories established in 1922: 2
504
+ Category:States and territories established in 1923: 1
505
+ Category:States and territories established in 1929: 1
506
+ Category:States and territories established in 1932: 2
507
+ Category:States and territories established in 1943: 1
508
+ Category:States and territories established in 1944: 1
509
+ Category:States and territories established in 1946: 3
510
+ Category:States and territories established in 1947: 1
511
+ Category:States and territories established in 1948: 4
512
+ Category:States and territories established in 1949: 4
513
+ Category:States and territories established in 1951: 1
514
+ Category:States and territories established in 1953: 1
515
+ Category:States and territories established in 1955: 1
516
+ Category:States and territories established in 1956: 3
517
+ Category:States and territories established in 1957: 1
518
+ Category:States and territories established in 1958: 1
519
+ Category:States and territories established in 1960: 17
520
+ Category:States and territories established in 1961: 2
521
+ Category:States and territories established in 1962: 7
522
+ Category:States and territories established in 1963: 2
523
+ Category:States and territories established in 1964: 3
524
+ Category:States and territories established in 1965: 3
525
+ Category:States and territories established in 1966: 4
526
+ Category:States and territories established in 1968: 4
527
+ Category:States and territories established in 1970: 2
528
+ Category:States and territories established in 1971: 5
529
+ Category:States and territories established in 1973: 1
530
+ Category:States and territories established in 1974: 3
531
+ Category:States and territories established in 1975: 7
532
+ Category:States and territories established in 1976: 2
533
+ Category:States and territories established in 1977: 1
534
+ Category:States and territories established in 1978: 3
535
+ Category:States and territories established in 1979: 3
536
+ Category:States and territories established in 1980: 2
537
+ Category:States and territories established in 1981: 2
538
+ Category:States and territories established in 1983: 1
539
+ Category:States and territories established in 1984: 1
540
+ Category:States and territories established in 1986: 2
541
+ Category:States and territories established in 1988: 1
542
+ Category:States and territories established in 1990: 3
543
+ Category:States and territories established in 1991: 16
544
+ Category:States and territories established in 1993: 3
545
+ Category:States and territories established in 1994: 1
546
+ Category:States and territories established in 1997: 1
547
+ Category:States and territories established in 2002: 1
548
+ Category:States and territories established in 2006: 2
549
+ Category:States and territories established in 2011: 1
550
+ Category:States and territories established in 301: 1
551
+ Category:States and territories established in 681: 1
552
+ Category:States and territories established in 751: 1
553
+ Category:States and territories established in 802: 1
554
+ Category:States and territories established in 862: 1
555
+ Category:States and territories established in 872: 1
556
+ Category:States and territories established in the 6th century BC: 1
557
+ Category:States and territories established in the 7th century BC: 1
558
+ Category:States of the Confederation of the Rhine: 1
559
+ Category:States of the German Confederation: 2
560
+ Category:States of the Holy Roman Empire: 1
561
+ Category:Sudan: 1
562
+ Category:Sultanates: 2
563
+ Category:Superpowers: 1
564
+ Category:Suriname: 1
565
+ Category:Swahili-speaking countries and territories: 7
566
+ Category:Swaziland: 1
567
+ Category:Sweden: 1
568
+ Category:Swedish-speaking countries and territories: 2
569
+ Category:Switzerland: 1
570
+ Category:Syria: 1
571
+ Category:São Tomé and Príncipe: 1
572
+ Category:Tajikistan: 1
573
+ Category:Tamil-speaking countries and territories: 2
574
+ Category:Tanzania: 1
575
+ Category:Territories under military occupation: 1
576
+ Category:Thailand: 1
577
+ Category:The Bahamas: 1
578
+ Category:The Gambia: 1
579
+ Category:Theocracies: 1
580
+ Category:Timor: 1
581
+ Category:Togo: 1
582
+ Category:Tonga: 1
583
+ Category:Trinidad and Tobago: 1
584
+ Category:Tunisia: 1
585
+ Category:Turkey: 1
586
+ Category:Turkmenistan: 1
587
+ Category:Tuvalu: 1
588
+ Category:Two-state solution: 1
589
+ Category:Uganda: 1
590
+ Category:Ukraine: 1
591
+ Category:Ukrainian-speaking countries and territories: 2
592
+ Category:United Arab Emirates: 1
593
+ Category:United Kingdom: 1
594
+ Category:United Nations General Assembly observers: 2
595
+ Category:United States: 1
596
+ Category:Urdu-speaking countries and territories: 1
597
+ Category:Uruguay: 1
598
+ Category:Uzbekistan: 1
599
+ Category:Vanuatu: 1
600
+ Category:Vatican City: 1
601
+ Category:Venezuela: 1
602
+ Category:Vietnam: 1
603
+ Category:Vietnamese-speaking countries and territories: 1
604
+ Category:Volcanic arc islands: 2
605
+ Category:Volcanic arcs: 1
606
+ Category:Volcanoes of Mauritius: 1
607
+ Category:West African countries: 16
608
+ Category:Western Asia: 16
609
+ Category:Western Asian countries: 20
610
+ Category:Western Europe: 15
611
+ Category:World Digital Library related: 32
612
+ Category:World Heritage Sites in Vatican City: 1
613
+ Category:World War II sites: 4
614
+ Category:Year of establishment unknown: 1
615
+ Category:Yemen: 1
616
+ Category:Yucatán Peninsula: 1
617
+ Category:Zambia: 1
618
+ Category:Zealandia (continent): 1
619
+ Category:Zimbabwe: 1