Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab12f4e15b | ||
|
|
d0473d35a2 | ||
|
|
09fbb2d06a | ||
|
|
3b6a5f8c44 | ||
|
|
88226a9038 | ||
|
|
f8a5935004 | ||
|
|
cdf4417ca5 | ||
|
|
5a318a99fe | ||
|
|
f36e2ba706 | ||
|
|
f41430b699 | ||
|
|
422e92a343 | ||
|
|
b5a7eb1755 | ||
|
|
a3478e997c | ||
|
|
7aa969c17b |
@@ -0,0 +1,18 @@
|
||||
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX org: <http://www.w3.org/ns/org#>
|
||||
|
||||
DELETE {
|
||||
GRAPH ?g {
|
||||
?changeEventResult org:organization ?organization .
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH ?g {
|
||||
?changeEventResult ext:resultingOrganization ?organization .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH ?g {
|
||||
?changeEventResult a <http://lblod.data.gift/vocabularies/organisatie/VeranderingsgebeurtenisResultaat> ;
|
||||
org:organization ?organization .
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
# cf 20220110100000-secondary-contacts.sparql for context.
|
||||
# In case it's not a secondary contactpoint (a contactpoint without an address if multiple contact points exist for one entity/mandataris)
|
||||
PREFIX locn: <http://www.w3.org/ns/locn#>
|
||||
PREFIX schema: <http://schema.org/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||
?contactPoint
|
||||
schema:contactType "Primary"
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||
?contactPoint
|
||||
a schema:ContactPoint.
|
||||
FILTER NOT EXISTS {
|
||||
?contactPoint
|
||||
schema:contactType "Secondary"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
PREFIX locn: <http://www.w3.org/ns/locn#>
|
||||
PREFIX schema: <http://schema.org/>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||
?secondary
|
||||
schema:contactType "Secondary"
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||
?primary
|
||||
a schema:ContactPoint;
|
||||
locn:address ?a1;
|
||||
schema:telephone ?t1.
|
||||
?mandataris schema:contactPoint ?primary, ?secondary.
|
||||
?secondary
|
||||
schema:telephone ?t2.
|
||||
FILTER NOT EXISTS {
|
||||
?secondary locn:address ?a2.
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
DELETE {
|
||||
GRAPH ?g {
|
||||
?representatieveOrgaan <http://www.w3.org/ns/org#linkedTo> ?bestuur .
|
||||
?bestuur ?pbestuur ?obestuur .
|
||||
?primarySite ?pprimarySite ?oprimarySite .
|
||||
?address ?paddress ?oaddress .
|
||||
?contactPoint ?pcontactPoint ?ocontactPoint .
|
||||
?identifier ?pidentifier ?oidentifier .
|
||||
?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH ?g {
|
||||
VALUES ?bestuur {
|
||||
<http://data.lblod.info/id/centraleBesturenVanDeEredienst/6167E3E2375CFC000A0007C2>
|
||||
<http://data.lblod.info/id/centraleBesturenVanDeEredienst/616FE419375CFC000A000893>
|
||||
}
|
||||
|
||||
?representatieveOrgaan <http://www.w3.org/ns/org#linkedTo> ?bestuur .
|
||||
|
||||
?bestuur <http://www.w3.org/ns/org#hasPrimarySite> ?primarySite ;
|
||||
<http://www.w3.org/ns/adms#identifier> ?identifier ;
|
||||
?pbestuur ?obestuur .
|
||||
|
||||
?primarySite <https://data.vlaanderen.be/ns/organisatie#bestaatUit> ?address ;
|
||||
<http://www.w3.org/ns/org#siteAddress> ?contactPoint ;
|
||||
?pprimarySite ?oprimarySite .
|
||||
|
||||
?address ?paddress ?oaddress .
|
||||
|
||||
?contactPoint ?pcontactPoint ?ocontactPoint .
|
||||
|
||||
?identifier <https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator> ?structuredIdentifier ;
|
||||
?pidentifier ?oidentifier .
|
||||
|
||||
?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier .
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
PREFIX dct: <http://purl.org/dc/terms/>
|
||||
|
||||
DELETE {
|
||||
GRAPH ?g {
|
||||
<http://data.lblod.info/id/veranderingsgebeurtenissen/61F90CAF51BFC225E4ECF2CA> dct:date "2021-11-28"^^xsd:date .
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH ?g {
|
||||
<http://data.lblod.info/id/veranderingsgebeurtenissen/61F90CAF51BFC225E4ECF2CA> dct:date "2021-12-20"^^xsd:date .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH ?g {
|
||||
<http://data.lblod.info/id/veranderingsgebeurtenissen/61F90CAF51BFC225E4ECF2CA> dct:date "2021-11-28"^^xsd:date .
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
PREFIX dct: <http://purl.org/dc/terms/>
|
||||
PREFIX regorg: <http://www.w3.org/ns/regorg#>
|
||||
|
||||
DELETE {
|
||||
GRAPH ?g {
|
||||
<http://data.lblod.info/id/veranderingsgebeurtenissen/61F92B0A51BFC225E4ECF2FF>
|
||||
dct:date "2021-02-04"^^xsd:date .
|
||||
<http://data.lblod.info/id/besturenVanDeEredienst/2a75e67f9a8aacf52896944c59b09eb0>
|
||||
regorg:orgStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . # Actief
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH ?g {
|
||||
<http://data.lblod.info/id/veranderingsgebeurtenissen/61F92B0A51BFC225E4ECF2FF>
|
||||
dct:date "2022-02-04"^^xsd:date .
|
||||
<http://data.lblod.info/id/besturenVanDeEredienst/2a75e67f9a8aacf52896944c59b09eb0>
|
||||
regorg:orgStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
|
||||
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH ?g {
|
||||
<http://data.lblod.info/id/veranderingsgebeurtenissen/61F92B0A51BFC225E4ECF2FF>
|
||||
dct:date "2021-02-04"^^xsd:date .
|
||||
<http://data.lblod.info/id/besturenVanDeEredienst/2a75e67f9a8aacf52896944c59b09eb0>
|
||||
regorg:orgStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> .
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
# Splitting the query in two because of execution time
|
||||
|
||||
## Links to the bestuur
|
||||
|
||||
|
||||
|
||||
DELETE {
|
||||
GRAPH ?g {
|
||||
?representatieveOrgaan <http://www.w3.org/ns/org#linkedTo> ?bestuur .
|
||||
?orgaanInTijd ?porgaanInTijd ?oorgaanInTijd .
|
||||
?orgaan ?porgaan ?oorgaan .
|
||||
?betrokken ?pbetrokken ?obetrokken .
|
||||
?eenheid <http://data.lblod.info/vocabularies/erediensten/betrokkenBestuur> ?betrokken .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH ?g {
|
||||
VALUES ?bestuur {
|
||||
<http://data.lblod.info/id/besturenVanDeEredienst/6183A207375CFC000A000933>
|
||||
<http://data.lblod.info/id/besturenVanDeEredienst/61AE0A9B3C1A230C43B44FFF>
|
||||
}
|
||||
|
||||
?representatieveOrgaan <http://www.w3.org/ns/org#linkedTo> ?bestuur .
|
||||
|
||||
OPTIONAL {
|
||||
?orgaanInTijd <http://data.vlaanderen.be/ns/besluit#bestuurt> ?bestuur ;
|
||||
?porgaanInTijd ?oorgaanInTijd .
|
||||
|
||||
?orgaan <https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan> ?orgaanInTijd ;
|
||||
?porgaan ?oorgaan .
|
||||
}
|
||||
|
||||
OPTIONAL {
|
||||
?betrokken <http://www.w3.org/ns/org#organization> ?bestuur ;
|
||||
?pbetrokken ?obetrokken .
|
||||
?eenheid <http://data.lblod.info/vocabularies/erediensten/betrokkenBestuur> ?betrokken .
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
## Links from the bestuur
|
||||
|
||||
DELETE {
|
||||
GRAPH ?g {
|
||||
?bestuur ?pbestuur ?obestuur .
|
||||
?primarySite ?pprimarySite ?oprimarySite .
|
||||
?address ?paddress ?oaddress .
|
||||
?contactPoint ?pcontactPoint ?ocontactPoint .
|
||||
?identifier ?pidentifier ?oidentifier .
|
||||
?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH ?g {
|
||||
VALUES ?bestuur {
|
||||
<http://data.lblod.info/id/besturenVanDeEredienst/6183A207375CFC000A000933>
|
||||
<http://data.lblod.info/id/besturenVanDeEredienst/61AE0A9B3C1A230C43B44FFF>
|
||||
}
|
||||
|
||||
?bestuur <http://www.w3.org/ns/org#hasPrimarySite> ?primarySite ;
|
||||
<http://www.w3.org/ns/adms#identifier> ?identifier ;
|
||||
?pbestuur ?obestuur .
|
||||
|
||||
?primarySite <https://data.vlaanderen.be/ns/organisatie#bestaatUit> ?address ;
|
||||
<http://www.w3.org/ns/org#siteAddress> ?contactPoint ;
|
||||
?pprimarySite ?oprimarySite .
|
||||
|
||||
?address ?paddress ?oaddress .
|
||||
|
||||
?contactPoint ?pcontactPoint ?ocontactPoint .
|
||||
|
||||
?identifier <https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator> ?structuredIdentifier ;
|
||||
?pidentifier ?oidentifier .
|
||||
|
||||
?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier .
|
||||
}
|
||||
}
|
||||
11
config/migrations/20220120100418-remove-old-reasons.sparql
Normal file
11
config/migrations/20220120100418-remove-old-reasons.sparql
Normal file
@@ -0,0 +1,11 @@
|
||||
DELETE {
|
||||
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||
?s ?p ?o
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||
?s a <http://mu.semte.ch/vocabularies/ext/ReasonCode>;
|
||||
?p ?o.
|
||||
}
|
||||
}
|
||||
37
config/migrations/20220120101318-insert-new-reasons.sparql
Normal file
37
config/migrations/20220120101318-insert-new-reasons.sparql
Normal file
@@ -0,0 +1,37 @@
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
||||
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
|
||||
|
||||
INSERT DATA {
|
||||
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||
<http://data.lblod.info/id/information-request-reason/3aeec145-acf3-4b6e-9c00-5b8e285736e0> a ext:ReasonCode,
|
||||
skos:Concept;
|
||||
mu:uuid "3aeec145-acf3-4b6e-9c00-5b8e285736e0";
|
||||
skos:prefLabel "Aanmaken van een persoon".
|
||||
|
||||
<http://data.lblod.info/id/information-request-reason/3beec145-acf3-4b6e-9c00-5b8e285736e1> a ext:ReasonCode,
|
||||
skos:Concept;
|
||||
mu:uuid "3beec145-acf3-4b6e-9c00-5b8e285736e1";
|
||||
skos:prefLabel "In het kader van administratief toezicht".
|
||||
|
||||
<http://data.lblod.info/id/information-request-reason/3beec145-acf3-4b6e-9c00-5b8e285736e2> a ext:ReasonCode,
|
||||
skos:Concept;
|
||||
mu:uuid "3beec145-acf3-4b6e-9c00-5b8e285736e2";
|
||||
skos:prefLabel "In het kader van een screeningsdossier".
|
||||
|
||||
<http://data.lblod.info/id/information-request-reason/3beec145-acf3-4b6e-9c00-5b8e285736e3> a ext:ReasonCode,
|
||||
skos:Concept;
|
||||
mu:uuid "3beec145-acf3-4b6e-9c00-5b8e285736e3";
|
||||
skos:prefLabel "In het kader van een erkenningsdossier".
|
||||
|
||||
<http://data.lblod.info/id/information-request-reason/3beec145-acf3-4b6e-9c00-5b8e285736e4> a ext:ReasonCode,
|
||||
skos:Concept;
|
||||
mu:uuid "3beec145-acf3-4b6e-9c00-5b8e285736e4";
|
||||
skos:prefLabel "In het kader van een wijzigingsdossier".
|
||||
|
||||
<http://data.lblod.info/id/information-request-reason/3beec145-acf3-4b6e-9c00-5b8e285736e5> a ext:ReasonCode,
|
||||
skos:Concept;
|
||||
mu:uuid "3beec145-acf3-4b6e-9c00-5b8e285736e5";
|
||||
skos:prefLabel "In het kader van een informatie-uitwisseling (cfr. protocol) met een overheidsinstelling".
|
||||
}
|
||||
}
|
||||
@@ -58,7 +58,7 @@
|
||||
"attributes": {},
|
||||
"relationships": {
|
||||
"resulting-organization": {
|
||||
"predicate": "org:organization",
|
||||
"predicate": "ext:resultingOrganization",
|
||||
"target": "organizations",
|
||||
"cardinality": "one"
|
||||
},
|
||||
|
||||
@@ -210,6 +210,10 @@
|
||||
"website": {
|
||||
"type": "uri",
|
||||
"predicate": "foaf:page"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"predicate": "schema:contactType"
|
||||
}
|
||||
},
|
||||
"relationships": {
|
||||
@@ -311,7 +315,7 @@
|
||||
"inverse": true
|
||||
},
|
||||
"change-event-results": {
|
||||
"predicate": "org:organization",
|
||||
"predicate": "ext:resultingOrganization",
|
||||
"target": "change-event-results",
|
||||
"cardinality": "many",
|
||||
"inverse": true
|
||||
|
||||
@@ -158,7 +158,7 @@ services:
|
||||
restart: always
|
||||
logging: *default-logging
|
||||
frontend:
|
||||
image: lblod/frontend-contact-hub:1.5.0
|
||||
image: lblod/frontend-contact-hub:1.6.0
|
||||
volumes:
|
||||
- ./config/frontend/add-x-frame-options-header.conf:/config/add-x-frame-options.conf
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user