When a SPARQL update is performed, the ontology is converted to an RDF model where the update is executed. Then a new ontology is parsed from the RDF. The new ontology should adopt the OWLDocumentFormat from the input ontology. This would allow the prefixes defined in the input ontology to carry through.