Merge pull request #38 from lblod/migration/rename-location

Migration to rename the fused locations and remove additional label in Bestuurseenheid
This commit is contained in:
Sam Van Campenhout
2021-09-03 16:06:47 +02:00
committed by GitHub
2 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
DELETE {
GRAPH ?g {
?bestuurseenheid rdfs:label ?label .
}
} INSERT {
GRAPH ?g {
?bestuurseenheid skos:prefLabel ?label .
}
} WHERE {
GRAPH ?g {
?bestuurseenheid a besluit:Bestuurseenheid ;
rdfs:label ?label .
}
}

View File

@@ -0,0 +1,44 @@
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX prov: <http://www.w3.org/ns/prov#>
DELETE {
GRAPH ?g {
?aalter rdfs:label ?label .
}
} INSERT {
GRAPH ?g {
?aalter rdfs:label "Aalter (voor fusie)" .
}
} WHERE {
GRAPH ?g {
?aalter a prov:Location ;
rdfs:label ?label .
VALUES ?aalter {
<http://data.lblod.info/id/werkingsgebieden/7a7daa48e9e6449358cf96be6c7b30466648d31236e56b8958fae7d53e2308b8>
}
}
}
;
DELETE {
GRAPH ?g {
?deinze rdfs:label ?label .
}
} INSERT {
GRAPH ?g {
?deinze rdfs:label "Deinze (voor fusie)" .
}
} WHERE {
GRAPH ?g {
?deinze a <http://www.w3.org/ns/prov#Location> ;
rdfs:label ?label .
VALUES ?deinze {
<http://data.lblod.info/id/werkingsgebieden/a567b3fdb462a8513ffeeff0188317003c5bbb7debb8f1ea9245b83e1d43b437>
}
}
}