diff --git a/config/migrations-triggering-indexing/2024/20241203144827-mergers-2025-update-organisation-status.sparql b/config/migrations-triggering-indexing/2024/20241203144827-mergers-2025-update-organisation-status.sparql new file mode 100644 index 00000000..26bda0ce --- /dev/null +++ b/config/migrations-triggering-indexing/2024/20241203144827-mergers-2025-update-organisation-status.sparql @@ -0,0 +1,102 @@ +PREFIX regorg: + +DELETE { + GRAPH ?g { + ?org regorg:orgStatus ?oldStatus. + } +} INSERT { + GRAPH ?g { + ?org regorg:orgStatus . + } +} WHERE { + GRAPH ?g { + ?org regorg:orgStatus ?oldStatus. + } + VALUES ?g { + + } + VALUES ?org { + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + } +} +; +DELETE { + GRAPH ?g { + ?org regorg:orgStatus ?oldStatus. + } +} INSERT { + GRAPH ?g { + ?org regorg:orgStatus . + } +} WHERE { + GRAPH ?g { + ?org regorg:orgStatus ?oldStatus. + } + VALUES ?g { + + } + VALUES ?org { + + + + + + + + + + + + + + } +} diff --git a/config/migrations/2024/20241203112740-mergers-2025-add-merge-change-events/20241203112740-mergers-2025-add-merge-change-events-results-are-new-organisations.sparql b/config/migrations/2024/20241203112740-mergers-2025-add-merge-change-events/20241203112740-mergers-2025-add-merge-change-events-results-are-new-organisations.sparql new file mode 100644 index 00000000..56c8d642 --- /dev/null +++ b/config/migrations/2024/20241203112740-mergers-2025-add-merge-change-events/20241203112740-mergers-2025-add-merge-change-events-results-are-new-organisations.sparql @@ -0,0 +1,178 @@ +PREFIX org: +PREFIX dct: +PREFIX ch: +PREFIX lblodOrg: +PREFIX ext: +PREFIX mu: +PREFIX regorg: + +# This migration add merger change events for municipalities and OCMWs for which +# the resulting active organisation is a new, different resource. + +## Mergers involving two original organisations +INSERT { + GRAPH { + ?changeEvent a org:ChangeEvent; + mu:uuid ?uuidChangeEvent; + org:resultingOrganization ?resultingOrg; + dct:date "2025-01-01"^^xsd:dateTime; + dct:description ?description; + org:originalOrganization ?firstOrgToMerge; + org:originalOrganization ?secondOrgToMerge; + lblodOrg:veranderingsgebeurtenisResultaat ?changeEventFirstNotActiveResult; + lblodOrg:veranderingsgebeurtenisResultaat ?changeEventSecondNotActiveResult; + lblodOrg:veranderingsgebeurtenisResultaat ?changeEventActiveResult; + ch:typeWijziging . # Merger + + ?changeEventFirstNotActiveResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidChangeEventFirstNotActiveResult; + ext:resultingOrganization ?firstOrgToMerge; + lblodOrg:resulterendeStatus . # not active + + ?changeEventSecondNotActiveResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidChangeEventSecondNotActiveResult; + ext:resultingOrganization ?secondOrgToMerge; + lblodOrg:resulterendeStatus . # not active + + ?changeEventActiveResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidChangeEventActiveResult; + ext:resultingOrganization ?resultingOrg; + lblodOrg:resulterendeStatus . # active + } +} WHERE { + VALUES (?firstOrgToMerge ?secondOrgToMerge ?resultingOrg) { + # Nazareth (municipality) + De Pinte (municipality) = Nazareth-De Pinte (municipality) + ( + + ) + # Nazareth (OCMW) + De Pinte (OCMW) = Nazareth-De Pinte (OCMW) + ( + + ) + + # Melle (municipality) + Merelbeke (municipality) = Merelbeke-Melle (municipality) + ( + + ) + # Melle (OCMW) + Merelbeke (OCMW) = Merelbeke-Melle (OCMW) + ( + + ) + } + + VALUES ?g { + + + } + + GRAPH ?g { + ?firstOrgToMerge skos:prefLabel ?labelFirstOrg. + ?secondOrgToMerge skos:prefLabel ?labelSecondOrg. + ?resultingOrg skos:prefLabel ?labelResultingOrg; + org:classification ?classification. + } + + GRAPH { + ?classification skos:prefLabel ?classificationResultingOrg. + } + + BIND(CONCAT("Fusie tussen ", ?labelFirstOrg," en ", ?labelSecondOrg, " resulteert in ", ?classificationResultingOrg, " ", ?labelResultingOrg) as ?description) + + BIND(SHA256(CONCAT(STR(?firstOrgToMerge), STR(?secondOrgToMerge), STR(?resultingOrg),"fusieChangeEvent")) AS ?uuidChangeEvent) + BIND(IRI(CONCAT("http://data.lblod.info/id/veranderingsgebeurtenissen/", STR(?uuidChangeEvent))) AS ?changeEvent) + + BIND(SHA256(CONCAT(STR(?firstOrgToMerge),"fusieChangeEventFirstNotActiveResult")) AS ?uuidChangeEventFirstNotActiveResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventFirstNotActiveResult))) AS ?changeEventFirstNotActiveResult) + + BIND(SHA256(CONCAT(STR(?secondOrgToMerge),"fusieChangeEventSecondNotActiveResult")) AS ?uuidChangeEventSecondNotActiveResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventSecondNotActiveResult))) AS ?changeEventSecondNotActiveResult) + + + BIND(SHA256(CONCAT(STR(?firstOrgToMerge), STR(?secondOrgToMerge), STR(?resultingOrg),"fusieChangeEventActiveResult")) AS ?uuidChangeEventActiveResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventActiveResult))) AS ?changeEventActiveResult) +} +; +## Mergers involving three original organisations +INSERT { + GRAPH { + ?changeEvent a org:ChangeEvent; + mu:uuid ?uuidChangeEvent; + org:resultingOrganization ?resultingOrg; + dct:date "2025-01-01"^^xsd:dateTime; + dct:description ?description; + org:originalOrganization ?firstOrgToMerge; + org:originalOrganization ?secondOrgToMerge; + org:originalOrganization ?thirdOrgToMerge; + lblodOrg:veranderingsgebeurtenisResultaat ?changeEventFirstNotActiveResult; + lblodOrg:veranderingsgebeurtenisResultaat ?changeEventSecondNotActiveResult; + lblodOrg:veranderingsgebeurtenisResultaat ?changeEventThirdNotActiveResult; + lblodOrg:veranderingsgebeurtenisResultaat ?changeEventActiveResult; + ch:typeWijziging . # Merger + + ?changeEventFirstNotActiveResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidChangeEventFirstNotActiveResult; + ext:resultingOrganization ?firstOrgToMerge; + lblodOrg:resulterendeStatus . # not active + + ?changeEventSecondNotActiveResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidChangeEventSecondNotActiveResult; + ext:resultingOrganization ?secondOrgToMerge; + lblodOrg:resulterendeStatus . # not active + + ?changeEventThirdNotActiveResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidChangeEventThirdNotActiveResult; + ext:resultingOrganization ?thirdOrgToMerge; + lblodOrg:resulterendeStatus . # not active + + ?changeEventActiveResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidChangeEventActiveResult; + ext:resultingOrganization ?resultingOrg; + lblodOrg:resulterendeStatus . # active + } +} WHERE { + VALUES (?firstOrgToMerge ?secondOrgToMerge ?thirdOrgToMerge ?resultingOrg) { + # Beveren (municipality) + Kruibeke (municipality) + Zwijndrecht (municipality) = Beveren-Kruibeke-Zwijndrecht (municipality) + ( ) + # Beveren (OCMW) + Kruibeke (OCMW) + Zwijndrecht (OCMW) = Beveren-Kruibeke-Zwijndrecht (OCMW) + ( ) + + # Galmaarden (municipality) + Gooik (municipality) + Herne (municipality) = Pajottegem (municipality) + ( ) + # Galmaarden (OCMW) + Gooik (OCMW) + Herne (OCMW) = Pajottegem (OCMW) + ( ) + } + + VALUES ?g { + + + } + + GRAPH ?g { + ?firstOrgToMerge skos:prefLabel ?labelFirstOrg. + ?secondOrgToMerge skos:prefLabel ?labelSecondOrg. + ?thirdOrgToMerge skos:prefLabel ?labelThirdOrg. + ?resultingOrg skos:prefLabel ?labelResultingOrg; + org:classification ?classification. + } + + GRAPH { + ?classification skos:prefLabel ?classificationResultingOrg. + } + + BIND(CONCAT("Fusie tussen ", ?labelFirstOrg, ", ", ?labelSecondOrg," en ", ?labelThirdOrg, " resulteert in ", ?classificationResultingOrg, " ", ?labelResultingOrg) as ?description) + + BIND(SHA256(CONCAT(STR(?firstOrgToMerge), STR(?secondOrgToMerge), STR(?thirdOrgToMerge), STR(?resultingOrg),"fusieChangeEvent")) AS ?uuidChangeEvent) + BIND(IRI(CONCAT("http://data.lblod.info/id/veranderingsgebeurtenissen/", STR(?uuidChangeEvent))) AS ?changeEvent) + + BIND(SHA256(CONCAT(STR(?firstOrgToMerge),"fusieChangeEventFirstNotActiveResult")) AS ?uuidChangeEventFirstNotActiveResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventFirstNotActiveResult))) AS ?changeEventFirstNotActiveResult) + + BIND(SHA256(CONCAT(STR(?secondOrgToMerge),"fusieChangeEventSecondNotActiveResult")) AS ?uuidChangeEventSecondNotActiveResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventSecondNotActiveResult))) AS ?changeEventSecondNotActiveResult) + + BIND(SHA256(CONCAT(STR(?thirdOrgToMerge),"fusieChangeEventThirdNotActiveResult")) AS ?uuidChangeEventThirdNotActiveResult) . + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventThirdNotActiveResult))) AS ?changeEventThirdNotActiveResult) + + BIND(SHA256(CONCAT(STR(?resultingOrg),"fusieChangeEventActiveResult")) AS ?uuidChangeEventActiveResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventActiveResult))) AS ?changeEventActiveResult) +} diff --git a/config/migrations/2024/20241203112740-mergers-2025-add-merge-change-events/20241203141834-mergers-2025-add-merge-change-events-results-are-existing-organisations.sparql b/config/migrations/2024/20241203112740-mergers-2025-add-merge-change-events/20241203141834-mergers-2025-add-merge-change-events-results-are-existing-organisations.sparql new file mode 100644 index 00000000..b361b9d9 --- /dev/null +++ b/config/migrations/2024/20241203112740-mergers-2025-add-merge-change-events/20241203141834-mergers-2025-add-merge-change-events-results-are-existing-organisations.sparql @@ -0,0 +1,118 @@ +PREFIX org: +PREFIX dct: +PREFIX ch: +PREFIX lblodOrg: +PREFIX ext: +PREFIX mu: + +# This migration adds merger change events for municipalities and OCMWs for +# which the resulting active organisation is one of the original organisations. +INSERT { + GRAPH { + ?changeEvent a org:ChangeEvent; + mu:uuid ?uuidChangeEvent; + org:resultingOrganization ?resultingOrg; + dct:date "2025-01-01"^^xsd:dateTime; + dct:description ?description; + org:originalOrganization ?resultingOrg; + org:originalOrganization ?notActiveOrganisation; + lblodOrg:veranderingsgebeurtenisResultaat ?changeEventNotActiveResult; + lblodOrg:veranderingsgebeurtenisResultaat ?changeEventActiveResult; + ch:typeWijziging . # Merger + + ?changeEventNotActiveResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidChangeEventNotActiveResult; + ext:resultingOrganization ?notActiveOrganisation; + lblodOrg:resulterendeStatus . # not active + + ?changeEventActiveResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidChangeEventActiveResult; + ext:resultingOrganization ?resultingOrg; + lblodOrg:resulterendeStatus . # Active + } +} WHERE { + VALUES (?notActiveOrganisation ?resultingOrg) { + # Hoeselt (municipality) + Bilzen (municipality) = Bilzen (municipality) + ( + ) + # Hoeselt (OCMW) + Bilzen (OCMW) = Bilzen (OCMW) + ( + ) + + # Borgloon (municipality) + Tongeren (municipality) = Tongeren (municipality) + ( + ) + # Borgloon (OCMW) + Tongeren (OCMW) = Tongeren (OCMW) + ( + ) + + # Tessenderlo (municipality) + Ham (municipality) = Ham (municipality) + ( + ) + # Tessenderlo (OCMW) + Ham (OCMW) = Ham (OCMW) + ( + ) + + # Kortessem (municipality) + Hasselt (municipality) = Hasselt (municipality) + ( + ) + # Kortessem (OCMW) + Hasselt (OCMW) = Hasselt (OCMW) + ( + ) + + # Wachtebeke (municipality) + Lochristi (municipality) = Lochristi (municipality) + ( + ) + # Wachtebeke (OCMW) + Lochristi (OCMW) = Lochristi (OCMW) + ( + ) + + # Moerbeke (municipality) + Lokeren (municipality) = Lokeren (municipality) + ( + ) + # Moerbeke (OCMW) + Lokeren (OCMW) = Lokeren (OCMW) + ( + ) + + # Meulebeke (municipality) + Tielt (municipality) = Tielt (municipality) + ( + ) + # Meulebeke (OCMW) + Tielt (OCMW) = Tielt (OCMW) + ( + ) + + # Ruiselede (municipality) + Wingene (municipality) = Wingene (municipality) + ( + ) + # Ruiselede (OCMW) + Wingene (OCMW) = Wingene (OCMW) + ( + ) + } + + VALUES ?g { + + + } + + GRAPH ?g { + ?notActiveOrganisation skos:prefLabel ?labelNotActiveOrganisation. + ?resultingOrg skos:prefLabel ?labelResultingOrg; + org:classification ?classification. + } + + GRAPH { + ?classification skos:prefLabel ?classificationResultingOrg. + } + + BIND(CONCAT("Fusie tussen ", ?labelResultingOrg," en ", ?labelNotActiveOrganisation, " resulteert in ", ?classificationResultingOrg, " ", ?labelResultingOrg) as ?description) + + BIND(SHA256(CONCAT(STR(?notActiveOrganisation), STR(?resultingOrg),"fusieChangeEvent")) AS ?uuidChangeEvent) + BIND(IRI(CONCAT("http://data.lblod.info/id/veranderingsgebeurtenissen/", STR(?uuidChangeEvent))) AS ?changeEvent) + + BIND(SHA256(CONCAT(STR(?notActiveOrganisation),"fusieChangeEventNotActiveResult")) AS ?uuidChangeEventNotActiveResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventNotActiveResult))) AS ?changeEventNotActiveResult) + + + BIND(SHA256(CONCAT(STR(?notActiveOrganisation), STR(?resultingOrg),"fusieChangeEventActiveResult")) AS ?uuidChangeEventActiveResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventActiveResult))) AS ?changeEventActiveResult) +} diff --git a/config/migrations/2024/20241203112740-mergers-2025-add-merge-change-events/20241203164934-mergers-2025-antwerp-and-borsbeek.sparql b/config/migrations/2024/20241203112740-mergers-2025-add-merge-change-events/20241203164934-mergers-2025-antwerp-and-borsbeek.sparql new file mode 100644 index 00000000..33d323ca --- /dev/null +++ b/config/migrations/2024/20241203112740-mergers-2025-add-merge-change-events/20241203164934-mergers-2025-antwerp-and-borsbeek.sparql @@ -0,0 +1,137 @@ +PREFIX org: +PREFIX dct: +PREFIX ch: +PREFIX lblodOrg: +PREFIX ext: +PREFIX mu: + +# Add merger change event for Borsbeek (municipality) + Antwerpen (municipality) = Borsbeek (district) + Antwerpen (municipality) +INSERT { + GRAPH { + ?changeEvent a org:ChangeEvent; + mu:uuid ?uuidChangeEvent; + ch:typeWijziging ; # Merger + dct:date "2025-01-01"^^xsd:dateTime; + dct:description ?description; + org:originalOrganization ?borsbeekMunicipality; + org:originalOrganization ?antwerpMunicipality; + org:resultingOrganization ?borsbeekDistrict; + org:resultingOrganization ?antwerpMunicipality; + lblodOrg:veranderingsgebeurtenisResultaat ?borsbeekMunicipalityResult; + lblodOrg:veranderingsgebeurtenisResultaat ?borsbeekDistrictResult; + lblodOrg:veranderingsgebeurtenisResultaat ?antwerpMunicipalityResult. + + ?borsbeekMunicipalityResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidBorsbeekMunicipalityResult; + lblodOrg:resulterendeStatus ; # not active + ext:resultingOrganization ?borsbeekMunicipality. + + ?borsbeekDistrictResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidBorsbeekDistrictResult; + lblodOrg:resulterendeStatus ; # Active + ext:resultingOrganization ?borsbeekDistrict. + + ?antwerpMunicipalityResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidAntwerpMunicipalityResult; + lblodOrg:resulterendeStatus ; # Active + ext:resultingOrganization ?antwerpMunicipality. + } +} WHERE { + VALUES (?borsbeekMunicipality ?antwerpMunicipality ?borsbeekDistrict) { + ( # Borsbeek (municipality) + # Antwerpen (municipality) + ) # Borsbeek (district) + } + + VALUES ?g { + + + } + + GRAPH ?g { + ?antwerpMunicipality skos:prefLabel ?antwerpMunicipalityLabel; + org:classification ?antwerpClassification. + + ?borsbeekMunicipality skos:prefLabel ?borsbeekMunicipalityLabel. + + + } + + GRAPH { + ?borsbeekDistrict skos:prefLabel ?borsbeekDistrictLabel; + org:classification ?borsbeekDistrictClassification. + } + + GRAPH { + ?antwerpClassification skos:prefLabel ?antwerpClassificationLabel. + ?borsbeekDistrictClassification skos:prefLabel ?borsbeekDistrictClassificationLabel. + } + + BIND(CONCAT("Fusie tussen ", ?borsbeekMunicipalityLabel," en ", ?antwerpMunicipalityLabel, " resulteert in ", ?borsbeekDistrictClassificationLabel, " ", ?borsbeekDistrictLabel, " en ", ?antwerpClassificationLabel, " ", ?antwerpMunicipalityLabel) as ?description) + + BIND(SHA256(CONCAT(STR(?borsbeekMunicipality), STR(?antwerpMunicipality), STR(?borsbeekDistrict),"fusieChangeEvent")) AS ?uuidChangeEvent) + BIND(IRI(CONCAT("http://data.lblod.info/id/veranderingsgebeurtenissen/", STR(?uuidChangeEvent))) AS ?changeEvent) + + BIND(SHA256(CONCAT(STR(?borsbeekMunicipality),"mergerBorsbeekMunicipalityChangeEventResult")) AS ?uuidBorsbeekMunicipalityResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidBorsbeekMunicipalityResult))) AS ?borsbeekMunicipalityResult) + + BIND(SHA256(CONCAT(STR(?borsbeekDistrict),"mergerBorsbeekDistrictChangeEventResult")) AS ?uuidBorsbeekDistrictResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidBorsbeekDistrictResult))) AS ?borsbeekDistrictResult) + + BIND(SHA256(CONCAT(STR(?antwerpMunicipality),"mergerAntwerpMunicipalityChangeEventResult")) AS ?uuidAntwerpMunicipalityResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidAntwerpMunicipalityResult))) AS ?antwerpMunicipalityResult) +} +; +# Add merger change event for Borsbeek (OCMW) + Antwerp (OCMW) = Antwerp (OCMW) +INSERT { + GRAPH { + ?changeEvent a org:ChangeEvent; + mu:uuid ?uuidChangeEvent; + org:resultingOrganization ?resultingOrg; + dct:date "2025-01-01"^^xsd:dateTime; + dct:description ?description; + org:originalOrganization ?resultingOrg; + org:originalOrganization ?notActiveOrganisation; + lblodOrg:veranderingsgebeurtenisResultaat ?changeEventNotActiveResult; + lblodOrg:veranderingsgebeurtenisResultaat ?changeEventActiveResult; + ch:typeWijziging . # Merger + + ?changeEventNotActiveResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidChangeEventNotActiveResult; + ext:resultingOrganization ?notActiveOrganisation; + lblodOrg:resulterendeStatus . # not active + + ?changeEventActiveResult a lblodOrg:VeranderingsgebeurtenisResultaat; + mu:uuid ?uuidChangeEventActiveResult; + ext:resultingOrganization ?resultingOrg; + lblodOrg:resulterendeStatus . # Active + } +} WHERE { + VALUES (?notActiveOrganisation ?resultingOrg) { + # Borsbeek (OCMW) + Antwerp (OCMW) = Antwerp (OCMW) + ( + ) + } + + GRAPH { + ?notActiveOrganisation skos:prefLabel ?labelNotActiveOrganisation. + ?resultingOrg skos:prefLabel ?labelResultingOrg; + org:classification ?classification. + } + + GRAPH { + ?classification skos:prefLabel ?classificationResultingOrg. + } + + BIND(CONCAT("Fusie tussen ", ?labelResultingOrg," en ", ?labelNotActiveOrganisation, " resulteert in ", ?classificationResultingOrg, " ", ?labelResultingOrg) as ?description) + + BIND(SHA256(CONCAT(STR(?notActiveOrganisation), STR(?resultingOrg),"fusieChangeEvent")) AS ?uuidChangeEvent) + BIND(IRI(CONCAT("http://data.lblod.info/id/veranderingsgebeurtenissen/", STR(?uuidChangeEvent))) AS ?changeEvent) + + BIND(SHA256(CONCAT(STR(?notActiveOrganisation),"fusieChangeEventNotActiveResult")) AS ?uuidChangeEventNotActiveResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventNotActiveResult))) AS ?changeEventNotActiveResult) + + + BIND(SHA256(CONCAT(STR(?notActiveOrganisation), STR(?resultingOrg),"fusieChangeEventActiveResult")) AS ?uuidChangeEventActiveResult) + BIND(IRI(CONCAT("http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/", STR(?uuidChangeEventActiveResult))) AS ?changeEventActiveResult) +}