# Which literals have a datatype and which are errors.

PREFIX : <http://example/> 
PREFIX  xsd:    <http://www.w3.org/2001/XMLSchema#>

SELECT ?x
{ ?x :p ?v . 
  FILTER( datatype(?v) != <http://example/NotADataTypeIRI> ) 
}
