ZWI file format

The ZWI files contain Wikitext of the final revision of Wiki article, all historic revisions (compressed), embedded media and ready-to use XHTML/HTML files. The ZWI files are compact (zipped) and sharable via network. They can be also uploaded to this editor again for corrections. ZWI files also include full history of article, starting from its creation and the names of the users who made changes in the article. The Wikitext uses the DokuWiki syntax and can easily be converted to Markdown and other formats.

When you edit an wiki article, one can download the ZWI file using the button “DOWNLOAD ZWI FILE” (below the editor area). One can also upload this article back for further corrections.

The ZWI files have the extension “*.zwi”. You can unzip *.zwi file and study it. A typical ZWI file has the following structure:

The file metadata.json indicates wich file is primary source of all derivative formats. For Dokuwiki installation, the primary file is “article.dokuwiki”, while article.mediawiki, article.html, article.xhtml are files after internal conversion.

In addition, the ZWI file has the following directories:

where the “namespace” is the article namespace (“encyclosphere” for Encyclosphere) and “title” is the actual title.

The format includes a mechanism to check its integrity. Since the ZWI file contains the full history since its creation, all changes can be reverted back.

S.Chekanov 2021/03/17 01:18