PREFIX rdfs: PREFIX rdf: PREFIX : SELECT ?x ?t ?m { ?x ?p ?any . ?any rdf:type ?t . ?any rdfs:member ?m }