diff --git a/jargon.txt b/jargon.txt index 510be6b5d97..db1d097d7d3 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 03fdc4ad076..216a879e999 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:Q145 'United Kingdom' 'united-kingdom' 'Current content includes ministerial departments.' 'Scotland|scotland') (wd:Q22 'Scotland' 'united-kingdom/scotland' 'Current content includes executive agencies, executive non-departmental public bodies, advisory non-departmental public bodies, non-ministerial offices,local authorities, NHS boards, courts, public corporations, tribunals, parole boards, King\'s printer, commissioners, ombudsmen, Health and social care partnerships and government of 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 bc4dd80a782..f01c8ca4814 100644 --- a/views.yaml +++ b/views.yaml @@ -168,6 +168,9 @@ views: - output: "bulgaria/{{qid}}/index.html" query: "generators/bulgaria.rq" template: "org.html" + - output: "bangladesh/{{qid}}/index.html" + query: "generators/bangladesh.rq" + template: "org.html" - output: "united-kingdom/{{qid}}/index.html" query: "generators/united-kingdom.rq"