Merge pull request #413 from lblod/enhancement/remove-empty-literals

Enhancement/remove empty literals
This commit is contained in:
Dachamelemon
2024-04-17 10:06:19 +02:00
committed by GitHub

View File

@@ -0,0 +1,20 @@
DELETE {
GRAPH ?g {
?s ?p ?o .
}
}
WHERE {
VALUES ?g {
<http://mu.semte.ch/graphs/administrative-unit>
<http://mu.semte.ch/graphs/worship-service>
<http://mu.semte.ch/graphs/public>
<http://mu.semte.ch/graphs/privacy-centric-graph>
<http://mu.semte.ch/graphs/worship-privacy-centric-graph>
}
graph ?g {
?s ?p ?o
FILTER (isLiteral(?o))
FILTER regex(str(?o), "^\\s*$")
}
}