cleanup custom booleans

This commit is contained in:
Boris De Vloed
2023-09-19 14:48:09 +02:00
parent c3b6abc321
commit 0e54bf206a

View File

@@ -0,0 +1,17 @@
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
DELETE {
GRAPH ?g {
?s ?p ?o .
}
} INSERT {
GRAPH ?g {
?s ?p ?newLiteral .
}
} WHERE {
GRAPH ?g {
?s ?p ?o .
FILTER (datatype(?o) = <http://mu.semte.ch/vocabularies/typed-literals/boolean>)
BIND (STRDT(STR(?o), xsd:boolean) AS ?newLiteral)
}
}