MediaWiki XML

Last modified by Admin on 2017/12/11 00:05

cogFilter stream extension to parse a MediaWiki XML package
Recommended
TypeJAR
CategoryFilter
Developed by

Thomas Mortagne

Active Installs39
Rating
Rate!
1 Votes
LicenseGNU Lesser General Public License 2.1
Installable with the Extension Manager

Description

Filter stream extension to parse a MediaWiki XML package

Supported input

XML export

The Filter take in input a XML file as defined in https://www.mediawiki.org/wiki/Help:Export#Export_format.

Files

The XML file contain the wiki pages but MediaWiki also store files on the filesystem. You can directly use the folder in which MediaWiki store its files.

Import a MediaWiki export in an XWiki instance

prepareconvert.png

After you have completed these steps, click the "Convert" button. After that, you will see the conversion progress.

Advanced use

Import everything in a specific wiki/space

By default the importer try convert as much as possible MediaWiki naming into XWiki naming. That means that all the page located in default MediaWiki namespace will end up in XWiki Main space for example.

If you make all the imported pages go in a specific wiki or space you  can use the property "Parent". Indicate the reference of the entity. For example for the wiki with the id mywiki use wiki:mywiki and for the space MediaWiki in wiki with id mywiki you can use space:MediaWiki:MediaWiki. It does not need to already exist.

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.

Dependencies

Dependencies for this extension (org.xwiki.contrib.mediawiki:mediawiki-xml 1.9):

Tags:
Created by Thomas Mortagne on 2016/06/30 16:52
    

Get Connected