Fixed data type filter so that it works correctly with SPARQL endpoints.