removed empty literals and uris

This commit is contained in:
Elias Papanikitas
2024-04-09 09:49:41 +02:00
parent dc842b7c6b
commit 27f240f25c
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
DELETE {
GRAPH ?g {
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?type ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuid .
}
}
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 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?type ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuid .
FILTER NOT EXISTS {
FILTER (?p != <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>)
FILTER (?p != <http://mu.semte.ch/vocabularies/core/uuid>)
?s ?p ?o .
}
}
}

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(?o = " " || ?o = "")
}
}