* Fix dev mandatarissen without persons * Extend migration to mandatarissen without type Fortunately they all seemed to have a start date, so I used this predicate to get all the mandatarissen without a type and delete them.
39 lines
760 B
SPARQL
39 lines
760 B
SPARQL
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
|
|
PREFIX org: <http://www.w3.org/ns/org#>
|
|
|
|
DELETE {
|
|
GRAPH ?g {
|
|
?mandaat ?pmandaat ?omandaat .
|
|
}
|
|
} WHERE {
|
|
VALUES ?g {
|
|
<http://mu.semte.ch/graphs/worship-service>
|
|
<http://mu.semte.ch/graphs/administrative-unit>
|
|
}
|
|
|
|
GRAPH ?g {
|
|
?mandaat mandaat:isBestuurlijkeAliasVan ?person ;
|
|
?pmandaat ?omandaat .
|
|
}
|
|
|
|
FILTER NOT EXISTS { ?person ?pperson ?operson . }
|
|
}
|
|
;
|
|
DELETE {
|
|
GRAPH ?g {
|
|
?mandaat ?pmandaat ?omandaat .
|
|
}
|
|
} WHERE {
|
|
VALUES ?g {
|
|
<http://mu.semte.ch/graphs/worship-service>
|
|
<http://mu.semte.ch/graphs/administrative-unit>
|
|
}
|
|
|
|
GRAPH ?g {
|
|
?mandaat mandaat:start ?start ;
|
|
?pmandaat ?omandaat .
|
|
}
|
|
|
|
FILTER NOT EXISTS { ?mandaat a ?type . }
|
|
}
|