Skip to content

Commit 9fa541a

Browse files
committed
🇳🇱 Add Dutch inspectorates
Improved sorting so those with bound label only are not mixed.
1 parent f75bfad commit 9fa541a

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

queries/countries.rq

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ WHERE {
2020
(wd:Q117 'Ghana' 'ghana' 'Current content includes regions and districts.' '')
2121
(wd:Q183 'Germany' 'germany' 'Current content includes ministries, agencies abroad, federated states and governmental districts.' '')
2222
(wd:Q258 'South Africa' 'south-africa' 'Current content includes departments, independent constitutional bodies, provinces and municipalities.' '')
23-
(wd:Q55 'Netherlands' 'netherlands' 'Current content includes ministries, courts, water boards, the Kings cabinet, provinces and municipalities.' '')
23+
(wd:Q55 'Netherlands' 'netherlands' 'Current content includes ministries, courts, inspectorates, water boards, the Kings cabinet, provinces and municipalities.' '')
2424
(wd:Q664 'New Zealand' 'new-zealand' 'Current content includes public service departments, departmental agencies, wānangas, state-owned enterprises, regional councils, territorial authorities, autonomous crown entities, independent crown entities and crown research institutes.' '')
2525
(wd:Q33 'Finland' 'finland' 'Current content includes ministries, regions, municipalities and agencies abroad.' '')
2626
(wd:Q212 'Ukraine' 'ukraine' 'Current content includes ministries and first level administrative units.' '')

queries/generators/netherlands.rq

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# expected_result_count: 414
1+
# expected_result_count: 429
22
SELECT DISTINCT
33
?qid
44
?orgLabel
@@ -36,6 +36,10 @@ WHERE {
3636
?org wdt:P31 wd:Q947233 . # high council of the state (6)
3737
BIND("High Council of State" AS ?typeLabel)
3838
}
39+
UNION {
40+
?org wdt:P31 wd:Q138643360 . # inspectorates (15)
41+
BIND("Inspectorate" AS ?typeLabel)
42+
}
3943

4044
MINUS { ?org wdt:P576 [] . MINUS { ?item rdf:type wdno:P576 } }
4145
MINUS { ?org wdt:P1366 [] }
@@ -62,4 +66,4 @@ WHERE {
6266

6367
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,nl,mul" }
6468
}
65-
ORDER BY ?type ?orgLabel
69+
ORDER BY ?type ?typeLabel ?orgLabel

0 commit comments

Comments
 (0)