-
Notifications
You must be signed in to change notification settings - Fork 4
/
1.4.5-bestuursorganen-end-earlier-than-effective-end-of-position.rq
93 lines (83 loc) · 2.87 KB
/
1.4.5-bestuursorganen-end-earlier-than-effective-end-of-position.rq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX locn: <http://www.w3.org/ns/locn#>
PREFIX schema: <http://schema.org/>
PREFIX regorg: <http://www.w3.org/ns/regorg#>
PREFIX person: <http://www.w3.org/ns/person#>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
PREFIX dbpedia: <http://dbpedia.org/ontology/>
PREFIX adms: <http://www.w3.org/ns/adms#>
PREFIX euro: <http://data.europa.eu/m8g/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX organisatie: <https://data.vlaanderen.be/ns/organisatie#>
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
PREFIX generiek: <https://data.vlaanderen.be/ns/generiek#>
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
PREFIX lblodlg: <https://data.lblod.info/vocabularies/leidinggevenden/>
PREFIX dc_terms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX euvoc: <http://publications.europa.eu/ontology/euvoc#>
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>
PREFIX code: <http://lblod.data.gift/vocabularies/organisatie/>
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?bestuur ?label ?typeEredienst ?provincie ?bestuursOrgaan ?parentBestuursOrgaan ?role ?einde ?mandatarisEndDate ?mandatarisGeplandeEinddatumAanstelling
FROM <http://mu.semte.ch/graphs/organisatieportaal>
WHERE {
?bestuur
a ?type;
regorg:orgStatus/skos:prefLabel "Actief".
?bestuur ^besluit:bestuurt ?parentBestuursOrgaan.
?bestuursOrgaan generiek:isTijdspecialisatieVan ?parentBestuursOrgaan.
?bestuursOrgaan
org:hasPost ?post.
?post
org:role/skos:prefLabel ?role.
?mandataris
org:holds ?post;
ere:geplandeEinddatumAanstelling ?mandatarisGeplandeEinddatumAanstelling.
OPTIONAL {
?mandataris mandaat:einde ?mandatarisEndDate .
}
?bestuursOrgaan mandaat:bindingEinde ?einde.
FILTER(?einde > now())
FILTER (?einde < ?mandatarisGeplandeEinddatumAanstelling || ?einde < ?mandatarisEndDate)
OPTIONAL {
?bestuur
skos:prefLabel
?label
}
OPTIONAL {
?bestuur
ere:typeEredienst
?typeEredienstUri.
OPTIONAL {
?typeEredienstUri
skos:prefLabel
?typeEredienst.
}
}
OPTIONAL {
?bestuur
org:hasPrimarySite
?primarySite.
OPTIONAL {
?primarySite
organisatie:bestaatUit
?sa.
OPTIONAL {
?sa
locn:adminUnitL2
?provincie.
}
}
}
FILTER (?type IN (
<http://data.lblod.info/vocabularies/erediensten/CentraalBestuurVanDeEredienst>,
<http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst>
))
}