Merge pull request #122 from lblod/fix/incident-handlings

Adds migrations to fix wrong data
This commit is contained in:
claire-lovisa
2022-03-30 09:48:23 +02:00
committed by GitHub
5 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
PREFIX dct: <http://purl.org/dc/terms/>
DELETE {
GRAPH ?g {
<http://data.lblod.info/id/veranderingsgebeurtenissen/6217A27A5747C883CA1D34E9> dct:date "2018-06-09"^^xsd:date .
}
} INSERT {
GRAPH ?g {
<http://data.lblod.info/id/veranderingsgebeurtenissen/6217A27A5747C883CA1D34E9> dct:date "2018-06-15"^^xsd:date .
}
} WHERE {
GRAPH ?g {
<http://data.lblod.info/id/veranderingsgebeurtenissen/6217A27A5747C883CA1D34E9> dct:date "2018-06-09"^^xsd:date .
}
}

View File

@@ -0,0 +1,15 @@
PREFIX dct: <http://purl.org/dc/terms/>
DELETE {
GRAPH ?g {
<http://data.lblod.info/id/veranderingsgebeurtenissen/61F92B8D51BFC225E4ECF307> dct:date "2021-02-04"^^xsd:date .
}
} INSERT {
GRAPH ?g {
<http://data.lblod.info/id/veranderingsgebeurtenissen/61F92B8D51BFC225E4ECF307> dct:date "2022-02-04"^^xsd:date .
}
} WHERE {
GRAPH ?g {
<http://data.lblod.info/id/veranderingsgebeurtenissen/61F92B8D51BFC225E4ECF307> dct:date "2021-02-04"^^xsd:date .
}
}

View File

@@ -0,0 +1,19 @@
DELETE {
GRAPH ?g {
<http://data.lblod.info/id/representatieveOrganen/bf83abb71bd810ad1ebe05ac8cb72a1c>
<http://www.w3.org/ns/adms#identifier> ?identifier .
?identifier
<https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator> ?structuredIdentifier ;
?pidentifier ?oidentifier .
?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier .
}
} WHERE {
GRAPH ?g {
<http://data.lblod.info/id/representatieveOrganen/bf83abb71bd810ad1ebe05ac8cb72a1c>
<http://www.w3.org/ns/adms#identifier> ?identifier .
?identifier
<https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator> ?structuredIdentifier ;
?pidentifier ?oidentifier .
?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier .
}
}

View File

@@ -0,0 +1,38 @@
DELETE {
GRAPH ?g {
<http://data.lblod.info/id/eredienstbestuursorganen/3c07a7f0db44632737d1657ea9035e9f>
<http://www.w3.org/ns/org#hasPost> ?post .
?post ?ppost ?opost .
?role <http://www.w3.org/ns/org#holds> ?post ;
<http://schema.org/contactPoint> ?contactPoint ;
?prole ?orole .
?contactPoint <http://www.w3.org/ns/locn#address> ?address ;
?pcontactPoint ?ocontactPoint .
?address ?paddress ?oaddress .
}
} WHERE {
GRAPH ?g {
<http://data.lblod.info/id/eredienstbestuursorganen/3c07a7f0db44632737d1657ea9035e9f>
<http://www.w3.org/ns/org#hasPost> ?post .
?post ?ppost ?opost .
?role <http://www.w3.org/ns/org#holds> ?post ;
?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,38 @@
DELETE {
GRAPH ?g {
<http://data.lblod.info/id/centralebestuursorganen/d2b5a4e1a4e66c9e0319f4704c96bf4c>
<http://www.w3.org/ns/org#hasPost> ?post .
?post ?ppost ?opost .
?role <http://www.w3.org/ns/org#holds> ?post ;
<http://schema.org/contactPoint> ?contactPoint ;
?prole ?orole .
?contactPoint <http://www.w3.org/ns/locn#address> ?address ;
?pcontactPoint ?ocontactPoint .
?address ?paddress ?oaddress .
}
} WHERE {
GRAPH ?g {
<http://data.lblod.info/id/centralebestuursorganen/d2b5a4e1a4e66c9e0319f4704c96bf4c>
<http://www.w3.org/ns/org#hasPost> ?post .
?post ?ppost ?opost .
?role <http://www.w3.org/ns/org#holds> ?post ;
?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 .
}
}
}
}