Compare commits

...

5 Commits

Author SHA1 Message Date
Claire Lovisa
16fc4b3a5b Fix change event 2022-04-15 09:17:54 +02:00
Claire Lovisa
289eb375a5 Fix missing original organization 2022-04-14 16:23:12 +02:00
Claire Lovisa
7b160e40de Add migration to fix resulting organization 2022-04-14 15:37:02 +02:00
Claire Lovisa
148a3f3ca7 Fix change event resulting org and statuses 2022-04-14 13:41:33 +02:00
Claire Lovisa
5aaa45c186 Add migration to remove some bedinaren 2022-04-14 10:56:11 +02:00
5 changed files with 139 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
DELETE {
GRAPH ?g {
<http://data.lblod.info/id/besturenVanDeEredienst/fed2ed3a65993012a7e768f1d75be8bc>
<http://data.lblod.info/vocabularies/erediensten/wordtBediendDoor> ?position .
?position ?pposition ?oposition .
?role ?prole ?orole .
?contactPoint ?pcontactPoint ?ocontactPoint .
?address ?paddress ?oaddress .
}
} WHERE {
GRAPH ?g {
<http://data.lblod.info/id/besturenVanDeEredienst/fed2ed3a65993012a7e768f1d75be8bc>
<http://data.lblod.info/vocabularies/erediensten/wordtBediendDoor> ?position .
?position ?pposition ?oposition .
?role <http://www.w3.org/ns/org#holds> ?position ;
?prole ?orole .
OPTIONAL {
?role <http://schema.org/contactPoint> ?contactPoint .
?contactPoint ?pcontactPoint ?ocontactPoint .
OPTIONAL {
?contactPoint <http://www.w3.org/ns/locn#address> ?address .
?address ?paddress ?oaddress .
}
}
}
}

View File

@@ -0,0 +1,42 @@
# Update status of the bestuurseenheden as well as the resulting status of the change event
PREFIX regorg: <http://www.w3.org/ns/regorg#>
PREFIX lblodOrg: <http://lblod.data.gift/vocabularies/organisatie/>
DELETE {
GRAPH ?g {
<http://data.lblod.info/id/besturenVanDeEredienst/6180d2f3e76d711b9bb0ce5881c5b57d>
regorg:orgStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . # Actief
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/620E5CFB5747C883CA1D2ED7>
lblodOrg:resulterendeStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . # Actief
<http://data.lblod.info/id/besturenVanDeEredienst/2b871d9f7cf6bec8c2732a8901f23788>
regorg:orgStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/620E5CFA5747C883CA1D2ED6>
lblodOrg:resulterendeStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
}
} INSERT {
GRAPH ?g {
<http://data.lblod.info/id/besturenVanDeEredienst/6180d2f3e76d711b9bb0ce5881c5b57d>
regorg:orgStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/620E5CFB5747C883CA1D2ED7>
lblodOrg:resulterendeStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
<http://data.lblod.info/id/besturenVanDeEredienst/2b871d9f7cf6bec8c2732a8901f23788>
regorg:orgStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . # Actief
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/620E5CFA5747C883CA1D2ED6>
lblodOrg:resulterendeStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . # Actief
}
} WHERE {
GRAPH ?g {
<http://data.lblod.info/id/besturenVanDeEredienst/6180d2f3e76d711b9bb0ce5881c5b57d>
regorg:orgStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . # Actief
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/620E5CFB5747C883CA1D2ED7>
lblodOrg:resulterendeStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . # Actief
<http://data.lblod.info/id/besturenVanDeEredienst/2b871d9f7cf6bec8c2732a8901f23788>
regorg:orgStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/620E5CFA5747C883CA1D2ED6>
lblodOrg:resulterendeStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
}
}

View File

@@ -0,0 +1,18 @@
PREFIX org: <http://www.w3.org/ns/org#>
DELETE {
GRAPH ?g {
<http://data.lblod.info/id/veranderingsgebeurtenissen/620E5CF95747C883CA1D2ED5>
org:resultingOrganization <http://data.lblod.info/id/besturenVanDeEredienst/6180d2f3e76d711b9bb0ce5881c5b57d> .
}
} INSERT {
GRAPH ?g {
<http://data.lblod.info/id/veranderingsgebeurtenissen/620E5CF95747C883CA1D2ED5>
org:resultingOrganization <http://data.lblod.info/id/besturenVanDeEredienst/2b871d9f7cf6bec8c2732a8901f23788> .
}
} WHERE {
GRAPH ?g {
<http://data.lblod.info/id/veranderingsgebeurtenissen/620E5CF95747C883CA1D2ED5>
org:resultingOrganization <http://data.lblod.info/id/besturenVanDeEredienst/6180d2f3e76d711b9bb0ce5881c5b57d> .
}
}

View File

@@ -0,0 +1,8 @@
PREFIX org: <http://www.w3.org/ns/org#>
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
<http://data.lblod.info/id/veranderingsgebeurtenissen/620E5CF95747C883CA1D2ED5>
org:originalOrganization <http://data.lblod.info/id/besturenVanDeEredienst/6180d2f3e76d711b9bb0ce5881c5b57d> .
}
}

View File

@@ -0,0 +1,36 @@
# Update status of the bestuurseenheden as well as the resulting status of the change event
PREFIX regorg: <http://www.w3.org/ns/regorg#>
PREFIX lblodOrg: <http://lblod.data.gift/vocabularies/organisatie/>
DELETE {
GRAPH ?g {
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/620E5CFB5747C883CA1D2ED7>
lblodOrg:resulterendeStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . # Actief
<http://data.lblod.info/id/besturenVanDeEredienst/2b871d9f7cf6bec8c2732a8901f23788>
regorg:orgStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/620E5CFA5747C883CA1D2ED6>
lblodOrg:resulterendeStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
}
} INSERT {
GRAPH ?g {
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/620E5CFB5747C883CA1D2ED7>
lblodOrg:resulterendeStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
<http://data.lblod.info/id/besturenVanDeEredienst/2b871d9f7cf6bec8c2732a8901f23788>
regorg:orgStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . # Actief
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/620E5CFA5747C883CA1D2ED6>
lblodOrg:resulterendeStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . # Actief
}
} WHERE {
GRAPH ?g {
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/620E5CFB5747C883CA1D2ED7>
lblodOrg:resulterendeStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . # Actief
<http://data.lblod.info/id/besturenVanDeEredienst/2b871d9f7cf6bec8c2732a8901f23788>
regorg:orgStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/620E5CFA5747C883CA1D2ED6>
lblodOrg:resulterendeStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
}
}