Remove empty administrative units (#341)

This commit is contained in:
Claire Lovisa
2023-10-20 15:17:15 +02:00
committed by GitHub
parent 36e638c262
commit ad20c5efb2

View File

@@ -0,0 +1,16 @@
DELETE {
GRAPH ?h {
?s ?p ?o .
}
} WHERE {
GRAPH ?g {
?s a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
?p ?o .
FILTER NOT EXISTS {
?s ?np ?no .
FILTER (?np NOT IN (<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://mu.semte.ch/vocabularies/core/uuid>) )
}
}
BIND(?g as ?h)
}