PREFIX owl: <http://www.w3.org/2002/07/owl#>

DELETE {
  ?s owl:imports $ONTOLOGY_SERIES .
} INSERT {
  ?s owl:imports $ONTOLOGY_VERSION .
} WHERE {
  ?s a owl:Ontology .
  ?s owl:imports $ONTOLOGY_SERIES .
}