1 2 3 4 5
PREFIX : <http://example.org/> SELECT ?s WHERE { ?s a :B . FILTER((!(?s = <a> || ?s = <b> || ?s = <unknown>))) . }