PREFIX rdf: PREFIX foaf: CONSTRUCT { _:a rdf:subject ?s ; rdf:predicate ?p ; rdf:object ?o . } WHERE { ?s ?p ?o . }