PREFIX : PREFIX foaf: DELETE { ?a foaf:knows [] . } INSERT { ?a foaf:knows [] . } WHERE { ?a foaf:name "Alan" . ?a foaf:knows [] . }