PREFIX ex: <http://example.com/ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

DELETE  {

ex:pete a ex:Person.
ex:fluffy a ex:Animal.

ex:a a ex:Person.
ex:b a ex:Animal.
ex:c a ex:Person.
ex:d a ex:Animal.

}


INSERT  {


ex:pete a ex:Animal.
ex:fluffy a ex:Person.

ex:a a ex:Animal.
ex:b a ex:Person.
ex:c a ex:Animal.
ex:d a ex:Person.

}

where {?a ?B ?c}