PREFIX : PREFIX rdf: PREFIX xsd: SELECT ?s WHERE { ?s :p ?v . FILTER(datatype(xsd:integer(?v)) = xsd:integer) . }