diff --git a/jargon.txt b/jargon.txt index 9059fea46b4..51bb4edb183 100644 --- a/jargon.txt +++ b/jargon.txt @@ -11,6 +11,7 @@ Arial austria authorsFile availableLanguages +bangladesh belgium bermuda bg diff --git a/queries/countries.rq b/queries/countries.rq index 14d43d52651..c6b8b3a5637 100644 --- a/queries/countries.rq +++ b/queries/countries.rq @@ -54,6 +54,7 @@ WHERE { (wd:Q229 'Cyprus' 'cyprus' 'Current content includes ministries, deputy ministries, government departments, government agencies, districts and municipalities.' '') (wd:Q17 'Japan' 'japan' 'Current content includes ministries, prefectures, embassies and permanent missions.' '') (wd:Q219 'Bulgaria' 'bulgaria' 'Current content includes ministries, state agencies, executive agencies, administrative structures, oblasts, municipalities, kmetstvos, municipal districts and specialized local administrations.' '') + (wd:Q902 'Bangladesh' 'bangladesh' 'Current content includes ministries, ministerial divisions, divisions, districts, upazilas, embassies, permanent missions, high commissions and assistant high commissions.' '') (wd:Q1050 'Eswatini' 'eswatini' 'Current content includes ministries, agencies abroad, regions and tinkhundla' '') (wd:Q145 'United Kingdom' 'united-kingdom' 'Current content includes ministerial departments.' 'Scotland|scotland') diff --git a/queries/generators/bangladesh.rq b/queries/generators/bangladesh.rq new file mode 100644 index 00000000000..4a2fb0a2ac7 --- /dev/null +++ b/queries/generators/bangladesh.rq @@ -0,0 +1,41 @@ +# expected_result_count: 698 +SELECT DISTINCT + ?qid + ?orgLabel + ?orgDescription + ?type + ?typeLabel + ?country +WHERE { + BIND(wd:Q902 AS ?country) + + { # agencies with country set to Bangladesh + VALUES ?type { + wd:Q121295309 # ministry of Bangladesh (39) + wd:Q121295885 # ministerial divisions (26) + wd:Q878040 # divisions of Bangladesh (8) + wd:Q152732 # districts of Bangladesh (64) + wd:Q620471 # upazila of Bangladesh (495) + } + ?org wdt:P31 ?type . + ?org wdt:P17 ?country . + } UNION { + # Bangladesh agencies which does not necessarily have country set to Sweden + VALUES ?type { + wd:Q2360219 # permanent missions (4) + wd:Q3917681 # embassies (45) + wd:Q12143816 # high commissions (13) + wd:Q73088858 # assistant High Commissions (4) + } + + ?org wdt:P31 ?type; wdt:P137 ?country . + } + + MINUS { ?org wdt:P576 [] } + MINUS { ?org wdt:P1366 [] } + + BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid) + + SERVICE wikibase:label { bd:serviceParam wikibase:language "en,mul,bn" } +} +ORDER BY ?typeLabel ?orgLabel diff --git a/views.yaml b/views.yaml index 9082d107bb8..e08642824ee 100644 --- a/views.yaml +++ b/views.yaml @@ -168,6 +168,8 @@ views: - output: "bulgaria/{{qid}}/index.html" query: "generators/bulgaria.rq" template: "org.html" + - output: "bangladesh/{{qid}}/index.html" + query: "generators/bangladesh.rq" - output: "eswatini/{{qid}}/index.html" query: "generators/eswatini.rq" template: "org.html"