PREFIX : PREFIX foaf: INSERT { ?b foaf:knows ?a . } WHERE { ?a foaf:knows ?b . } ; DELETE { ?a foaf:knows ?b . } WHERE { ?a foaf:knows ?b . }