PREFIX : <http://example.org/ns#> PREFIX a: <http://example.org/ns2#> SELECT * WHERE { : a: :a . : : : . }