49 lines
1.7 KiB
SPARQL
49 lines
1.7 KiB
SPARQL
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
|
|
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
|
|
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
|
|
PREFIX generiek: <https://data.vlaanderen.be/ns/generiek#>
|
|
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
|
|
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
|
|
PREFIX regorg: <http://www.w3.org/ns/regorg#>
|
|
|
|
INSERT {
|
|
GRAPH <http://mu.semte.ch/graphs/worship-service> {
|
|
?orgaanInTime a besluit:Bestuursorgaan ;
|
|
mu:uuid ?uuidOrgaanInTime ;
|
|
mandaat:bindingStart "2029-04-01T00:00:00"^^xsd:dateTime ;
|
|
mandaat:bindingEinde "2032-03-31T00:00:00"^^xsd:dateTime ;
|
|
generiek:isTijdspecialisatieVan ?bestuursorgaan .
|
|
}
|
|
}
|
|
WHERE {
|
|
GRAPH <http://mu.semte.ch/graphs/worship-service> {
|
|
VALUES ?type {
|
|
ere:BestuurVanDeEredienst
|
|
ere:CentraalBestuurVanDeEredienst
|
|
}
|
|
|
|
?bestuurseenheid a ?type .
|
|
|
|
FILTER NOT EXISTS {
|
|
?bestuurseenheid regorg:orgStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> .
|
|
}
|
|
|
|
?bestuursorgaan besluit:bestuurt ?bestuurseenheid .
|
|
|
|
FILTER NOT EXISTS {
|
|
?missingOrgaanInTime generiek:isTijdspecialisatieVan ?bestuursorgaan .
|
|
?missingOrgaanInTime mandaat:bindingStart ?start .
|
|
FILTER CONTAINS(STR(?start), "2029")
|
|
}
|
|
|
|
FILTER NOT EXISTS {
|
|
?missingOrgaanInTime generiek:isTijdspecialisatieVan ?bestuursorgaan .
|
|
?missingOrgaanInTime mandaat:bindingEinde ?end .
|
|
FILTER CONTAINS(STR(?end), "2032")
|
|
}
|
|
}
|
|
|
|
BIND(MD5(CONCAT(?bestuurseenheid, ?bestuursorgaan, "2029-2032")) as ?uuidOrgaanInTime)
|
|
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursorganen/", ?uuidOrgaanInTime)) AS ?orgaanInTime)
|
|
}
|