Import from mediawiki XML?

I'm just wondering how to import mediawiki XML and turning it into a wikitools drupal system. This should theoretically be simple, but I'm not sure where to begin.

Login to post comments

cross post to rss and aggregation group?

bonobo's picture
bonobo - Wed, 2008-06-04 18:47

I'd make a stab at doing this via a custom parser for the FeedAPI --

Folks in the rss and aggregation group could speak to the wisdom (or lack thereof) of this approach in more detail.

Cheers,

Bill

FunnyMonkey
Tools for Teachers


Thanks, I'm not at all

Flying Drupalist - Fri, 2008-06-06 02:43

Thanks, I'm not at all familiar with FeedAPI and I'll look into it right away. At the same time though, some sort of outline of neccessary steps would be nice to have. And we can put it into a book too.


Getwiki module

christefano's picture
christefano - Fri, 2008-06-06 04:06

Check out http://hyrme.com/node/10 for a module that pulls Wikipedia entries into Drupal.


Thanks for the link to the

Flying Drupalist - Sun, 2008-08-17 16:55

Thanks for the link to the getwiki christefano, the hyrme site also discusses his way of importing, a perl script?

I've checked out FeedAPI, and it's complicated. I'm hoping there's an easier way to do this.


Didn't see this post earlier...

Alex UA's picture
Alex UA - Sun, 2008-08-17 22:03

We did a mediawiki integration for unicef using the mediawiki xml api and feedapi/feedapi element mapper a few months back. Let me see if I can get my partners Jody (aka lynn) to post about the experience.

I don't know that there really is an easier way to do it- mediawiki sure doesn't make it easy to interact with their software- and without the api I don't know how you'd be able to gather the info you'd want to display. We looked in a bunch of other directions, but the api seems like the only good path to go, and feedapi is probably the easiest way you're going to get there (though I don't mean to say it will be easy).

Alex Urevick-Ackelsberg
ZivTech: Illuminating Technology


you have a feedapi-based parser for mediawiki XML?

bonobo's picture
bonobo - Sun, 2008-08-17 22:35

That's the grail!

I'd LOVE to see that!

Cheers,

Bill

FunnyMonkey
Tools for Teachers


Sure...

Alex UA's picture
Alex UA - Mon, 2008-08-18 03:01

If Jody doesn't get a chance to post by DrupalCon we can show you there...

Alex Urevick-Ackelsberg
ZivTech: Illuminating Technology


MediaWiki importation

val_cirad-gdo - Thu, 2009-08-13 11:13

Hi!

I had the same problem: I wanted to import several MediaWiki into my Drupal
site. I looked arround the web and found nothing interesting to do the job. So
I wrote my own "Media Wiki Importer" and I publish it here "as is". It's not a
module, just the guide lines on how to proceed to import a MediaWiki content
into Drupal and it includes the required source PHP code. I hope it'll help
some people like me. I'm not saying it works perfectly but it did for my stuff
and it can be used by others to create their own importer.
You can find it there:

http://southgreen.cirad.fr/sites/all/files/mediawiki2drupal.zip