Skip to content
Merged
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 @@ -201,6 +201,7 @@ ph
philippines
platformLabel
png
poland
portugal
pre
printf
Expand Down
1 change: 1 addition & 0 deletions queries/countries.rq
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ WHERE {
(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:Q36 'Poland' 'poland' 'Current content includes central government agencies, ministries, voivodeships, marshal\'s offices of voivodeships, voivodeship sejmiks, embassies, permanent missions and consulates generals.' '')

(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
32 changes: 32 additions & 0 deletions queries/generators/poland.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# expected_result_count: 240
SELECT DISTINCT
?qid
?orgLabel
?orgDescription
?type
?typeLabel
?country
WHERE {
BIND(wd:Q36 AS ?country)
{
VALUES ?type {
wd:Q9367288 # central government agency of Poland (34)
wd:Q6866556 # ministry of Poland (19)
wd:Q150093 # voivodeship of Poland (16)
wd:Q9367292 # marshal's office of voivodeship (16)
wd:Q675911 # voivodeship sejmik (16)
}
?org wdt:P31 ?type .
?org wdt:P17 ?country .
} UNION { VALUES ?type {
wd:Q2360219 # permanent mission (11)
wd:Q3917681 # embassy (95)
wd:Q372690 # consulate general (33)
}
?org wdt:P31 ?type; wdt:P137 ?country .}
MINUS { ?org wdt:P576 [] }
MINUS { ?org wdt:P1366 pq:P582 }
BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,mul,pl" }
}
ORDER BY ?typeLabel ?orgLabel
3 changes: 3 additions & 0 deletions views.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ views:
- output: "eswatini/{{qid}}/index.html"
query: "generators/eswatini.rq"
template: "org.html"
- output: "poland/{{qid}}/index.html"
query: "generators/poland.rq"
template: "org.html"

- output: "united-kingdom/{{qid}}/index.html"
query: "generators/united-kingdom.rq"
Expand Down
Loading