The document discusses using a flexible XML database called TNTBase to preview changes and refactorings to ontologies. TNTBase allows editing ontologies through "virtual documents" that define editable XML views of ontology content. This enables refactoring ontologies by previewing the effects of changes like extracting subclasses into a new module before making the changes live. The document provides examples of refactoring an ontology in this way and describes the underlying library functions that power the refactoring previews.