PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?p ?name WHERE { ?p a foaf:Person ; foaf:name ?name . }