Skip to content

Commit

Permalink
🇮🇪 Add Ireland
Browse files Browse the repository at this point in the history
  • Loading branch information
RVA2869 committed Dec 1, 2024
1 parent 67a2849 commit 62c35b8
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ intendedAudience:
- gb
- ch
- cm
- ie

scope:
- government
Expand Down
1 change: 1 addition & 0 deletions queries/countries.rq
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ WHERE {
(wd:Q1028 'Morocco' 'morocco' 'Current content includes ministries, embassies, regions, provinces and prefectures.' '')
(wd:Q39 'Switzerland' 'switzerland' 'Current content includes federal ministries, cantons and municipalities.' '')
(wd:Q1009 'Cameroon' 'cameroon' 'Current content includes ministries, regions, senate, lower house and supreme court.' '')
(wd:Q27 'Ireland' 'ireland' 'Current content includes departments of state.' '')

(wd:Q145 'United Kingdom' 'united-kingdom' 'Current content includes ministerial departments.' 'Scotland|scotland')
(wd:Q22 'Scotland' 'united-kingdom/scotland' 'Executive agencies, local authorities, NHS boards, NDPBs, courts, public corporations, tribunals, parole boards, Queen\'s printer, non-ministerial government departments, commissioners, ombudsmen and Health and social care partnerships.' '')
Expand Down
33 changes: 33 additions & 0 deletions queries/generators/ireland.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# expected_result_count: 18
SELECT DISTINCT
?qid
?orgLabel
?orgDescription
?type
?typeLabel
?country
?cofog
WHERE {
BIND(wd:Q27 AS ?country)

VALUES ?type {
wd:Q5260540 # Department of State (18)
}

?org wdt:P31 ?type ;
wdt:P17 ?country .

MINUS { ?org wdt:P576 [] }
MINUS { ?org wdt:P1366 [] }
MINUS { ?org wdt:P3999 [] }

OPTIONAL {
?org wdt:P9798/wdt:P279* ?cofog .
MINUS { ?cofog wdt:P279 [] }
}

BIND(REPLACE(STR(?org), "http://www.wikidata.org/entity/", "") AS ?qid)

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,ga". }
}
ORDER BY ?type ?topic
3 changes: 3 additions & 0 deletions views.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ views:
- output: "cameroon/{{qid}}/index.html"
query: "generators/cameroon.rq"
template: "org.html"
- output: "ireland/{{qid}}/index.html"
query: "generators/ireland.rq"
template: "org.html"

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

0 comments on commit 62c35b8

Please sign in to comment.