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