Skip to content

Instantly share code, notes, and snippets.

@jindrichmynarz
Created October 9, 2014 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jindrichmynarz/f1113d409b5ac9938a2b to your computer and use it in GitHub Desktop.
Save jindrichmynarz/f1113d409b5ac9938a2b to your computer and use it in GitHub Desktop.
PREFIX pc: <http://purl.org/procurement/public-contracts#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
DELETE {
?s ?p ?o .
}
WHERE {
{
SELECT DISTINCT ?p
WHERE {
GRAPH pc: {
?p rdfs:range xsd:date .
}
}
}
?s ?p ?o .
BIND (xsd:date(?o) AS ?test)
FILTER (!BOUND(?test))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment