From 9fa541a0fd4e677fdc6d059ce46aff52d8e386c2 Mon Sep 17 00:00:00 2001 From: Jan Ainali Date: Thu, 12 Mar 2026 09:03:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=87=B3=F0=9F=87=B1=20Add=20Dutch=20inspec?= =?UTF-8?q?torates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Improved sorting so those with bound label only are not mixed. --- queries/countries.rq | 2 +- queries/generators/netherlands.rq | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/queries/countries.rq b/queries/countries.rq index 64618030413..290eb253352 100644 --- a/queries/countries.rq +++ b/queries/countries.rq @@ -20,7 +20,7 @@ WHERE { (wd:Q117 'Ghana' 'ghana' 'Current content includes regions and districts.' '') (wd:Q183 'Germany' 'germany' 'Current content includes ministries, agencies abroad, federated states and governmental districts.' '') (wd:Q258 'South Africa' 'south-africa' 'Current content includes departments, independent constitutional bodies, provinces and municipalities.' '') - (wd:Q55 'Netherlands' 'netherlands' 'Current content includes ministries, courts, water boards, the Kings cabinet, provinces and municipalities.' '') + (wd:Q55 'Netherlands' 'netherlands' 'Current content includes ministries, courts, inspectorates, water boards, the Kings cabinet, provinces and municipalities.' '') (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.' '') (wd:Q33 'Finland' 'finland' 'Current content includes ministries, regions, municipalities and agencies abroad.' '') (wd:Q212 'Ukraine' 'ukraine' 'Current content includes ministries and first level administrative units.' '') diff --git a/queries/generators/netherlands.rq b/queries/generators/netherlands.rq index 1f01f371e88..d2014553814 100644 --- a/queries/generators/netherlands.rq +++ b/queries/generators/netherlands.rq @@ -1,4 +1,4 @@ -# expected_result_count: 414 +# expected_result_count: 429 SELECT DISTINCT ?qid ?orgLabel @@ -36,6 +36,10 @@ WHERE { ?org wdt:P31 wd:Q947233 . # high council of the state (6) BIND("High Council of State" AS ?typeLabel) } + UNION { + ?org wdt:P31 wd:Q138643360 . # inspectorates (15) + BIND("Inspectorate" AS ?typeLabel) + } MINUS { ?org wdt:P576 [] . MINUS { ?item rdf:type wdno:P576 } } MINUS { ?org wdt:P1366 [] } @@ -62,4 +66,4 @@ WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "en,nl,mul" } } -ORDER BY ?type ?orgLabel +ORDER BY ?type ?typeLabel ?orgLabel