# STRDT(str, datatype URI) makes a datatyped literal PREFIX ex: SELECT ?c WHERE { ?a ?b ?c FILTER ( STRDT(?c, ex:DT) = "val"^^ex:DT ) }