Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jargon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Arial
austria
authorsFile
availableLanguages
bangladesh
belgium
bermuda
bg
Expand Down
1 change: 1 addition & 0 deletions queries/countries.rq
Original file line number Diff line number Diff line change
Expand Up @@ -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.' '')
Expand Down
41 changes: 41 additions & 0 deletions queries/generators/bangladesh.rq
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions views.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading