Hi cj91-3 (what a nice name ;));
On Oct 28, 2009, at 10:15 PM, cj91-3 wrote:
Hi Everyone,
New to XWiki and we're trying to come up with a migration strategy.
Our old
wiki is an ancient version of moinmoin.
We can develop a file parser for the old moinmoin documents on the
filesystem quite easily. The syntax to XWiki is similar, so a couple
of
regexes will have the conversion process underway. We're not really
concerned with preserving the wiki history, although that would be
nice.
The big problem is, how do we load the pages into XWiki? Is there a
webservice or some sort of API for XAR files available?
We're working on a wiki importer that would set up the basic
infrastructure for importing content from other wikis. However this is
not ready yet. If you're interested, see
-
http://gsoc.myxwiki.org/xwiki/bin/view/Import+Export+other+wikis/Import+Exp…
-
http://gsoc.myxwiki.org/xwiki/bin/view/WikiImporter+SNAPSHOT-1/0
-
http://gsoc.myxwiki.org/xwiki/bin/view/Import+Export+other+wikis/Wiki+Impor…
Right now you have 3 options:
- Option 1: You put your script inside a wiki page (in groovy, ruby,
jython, or velocity) and access your existing data remotely using any
remote access provided by moinmoin
- Option 2: You convert on the filesystem with a script and use the
XWiki XMLRPC or REST APIs to save the content in XWiki pages. For more
details about the API see:
--
http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPC
--
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI
Or the WebDAV API, which is even simpler to use, although it only allows
the page content to be set, but I guess this is not a problem, since I
think moinmoin doesn't have page objects.
--
- Option 3: You convert on the filesystem with a
script and generate a
XAR. A XAR is simply a zip file with the pages in XML and a
package.xml descriptor file. Then you import this XAR into your wiki
IMO Option 2 or option 3 are the simplest.
For examples of scripts written for other wikis:
-
http://code.xwiki.org/xwiki/bin/view/Extensions/ImportContentByXARExtension
-
http://code.xwiki.org/xwiki/bin/view/Extensions/DokuwikiToXWiki2Extension
-
http://code.xwiki.org/xwiki/bin/view/Extensions/JSPWikiToXWikiExtension
-
http://code.xwiki.org/xwiki/bin/view/Extensions/MediaWiki2XWikiExtension
Hope it helps,
-Vincent