wikiprep MediaWiki::DumpFile namespace

I am trying to use wikiprep with support of MediaWiki::DumpFile to parse wikipedia dump.

The problem is it doesn't work.

wikiprep -format composite -compress -f enwiki.xml.0001.gz Can't locate object method "namespaces" via package "MediaWiki::DumpFile::Pages" at /usr/local/share/perl5/MediaWiki/DumpFile/ line 148.

But I do have namespaces.

... <siteinfo> <sitename>Wikipedia</sitename> <dbname>enwiki</dbname> <base></base> <generator>MediaWiki 1.25wmf23</generator> <case>first-letter</case> <namespaces> <namespace key="-2" case="first-letter">Media</namespace> ...

I don't understand how to run this parser.

Category:perl Views:17 Time:2018-07-10

Related post

  • change mediawiki namespaces? 2009-03-19

    Is there a way to reassign or change the core namespaces of mediawiki? For example, I'm having difficulty linking to a page I want to call "Template" because mediawiki has a namespace already for Template. I'd like to re-assign the mediawiki "templat

  • Parsing Wiki XML Dumps ver0.4 just got tough 2010-06-05

    I am trying to parse Wikipedia XML Dump using "Parse-MediaWikiDump-1.0.4" along with "" script. I guess this script works fine with ver0.3 Wiki XML Dumps but not with the latest ver0.4 Dumps. I get the following error. Can't locate object

  • XML Pull Parser implementation in Perl? 2010-06-30

    Just as the title asks: are there any XML pull parser implementations in a Perl library? I looked at XML::TokeParser, but it's nine years old! I'm sure there's something out there that is functional? --------------Solutions------------- Check out XML

  • How do I copy pages from Wikipedia using some script? 2011-04-13

    I need pages of cities in my country from Wikipedia for use in my website. For example for New York there'll one main page about the city. So if I've a list of cities how do I download the pages? It is going to be 1000's of cities. I've also heard th

  • mediawiki 1.16.5: Load javascript for a specific namespace 2011-11-22

    I am developing an extension for Mediawiki which is based on another extension (developed in-house) that will not work above with a Mediawiki installation with a version superior 1.16.5 . I need to include javascript in pages belonging to a specific

  • Semantic Mediawiki 1.8.0 does not show page properties in custom namespace 2013-08-30

    I'm running Semantic Mediawiki version 1.8 (in a version 1.20.2 Mediawiki). Extensions installed: Semantic Drilldown (1.2.5), Semantic Forms (2.5.1), Semantic Forms Input (0.7), Semantic Internal Objects (0.7.1). My goal is generating a training over

  • MediaWiki: Default template per namespace for created pages 2011-03-03

    Is there a way to have a default (something I were to assign) template to a namespace that a new page is created in? For instance, you create a new namespace called "Test Namespace". How do I assign that Namespace a "default" template. Now, from now

  • Is there an easy way to make a pleasing mediawiki table? 2009-01-28

    I use a MediaWiki instance on a thumb drive to keep track of a ton of stuff. In the past, I've been in a hurry so I haven't had the chance to look for a nice way to make tables, so this syntax has served my purposes well: {| border=1 ... |} Now I wan

  • In Mediawiki is there a way to force a group of pages to have a particular skin? 2009-05-12

    The reason I am keen to do this is that we have a wiki which works great, but I would like to store help pages for an internal application in the wiki and link to those pages direct from the app. Although we wouldn't have concerns with people seeing

  • Transclude a category in MediaWiki 2009-06-26

    I'm not quite sure if this is possible in MediaWiki. I've got several categories, each containing a few pages. If you open a category page you'll see the contents of the category that usualy consists of these three parts: A user defined text (which c

  • mediawiki: getting the pages in a given category 2009-07-15

    using the mediawiki API, I can list the pages in a given category. For example: returns: <?xml version="1.0"?> <api> <query> <ca

  • Run mediawiki userOptions script without SSH 2009-12-29

    I'm trying to run the userOptions script for MediaWiki to add a new namespace to the default search namespaces for all existing users. Unfortunately, I don't have shell access to my hosting provider, and to be honest I'm really not at home with using

  • How can I add per page permissions to a user in MediaWiki? 2010-04-20

    In MediaWiki, how can a user be given permission to edit only certain pages? This way, the administrator can create a page for the user and the user will be able to edit this particular page only. --------------Solutions------------- I think you're l

  • Wikipedia (MediaWiki) URI encoding scheme 2010-10-06

    Folks, Anybody knows how Wikipedia or MediaWiki in general, encode the URI according to the title? It's not normal URI encoding, " "s are replaced with "_"s and single quotations are not encoded and things like that. Any reference on that? Cheers Par

  • Exclude pages from Mediawiki recent changes 2011-02-03

    Does anyone know how to exclude pages from the Recent Changes page in mediawiki? I have a testing page where users can play with syntax and formatting etc. but don't want every little change to show up on the recent changes page. thanks -------------

  • Adding namespace declaration to existing XML with Groovy+Smooks 2011-02-23

    I'm writing this groovy script that runs inside Smooks and edits an XML. I'm trying to add xsi:nil="true" to the empty fields and the problem I'm having is that the xsi namespace declaration isn't added to the root field. Here's what I tried: element

  • Apache rewrite rule with proxy flag fail to work for mediawiki service 2011-05-30

    I have a local apache httpd hosting a mediawiki service that listen to port 3300. The service may access in my LAN via http://mylan:3300/wiki/ I configure my internet router to add a port forwarding entry to the mylan:3300. I may then access to the w

  • MediaWiki 1.16.0 - In phpmyadmin select the current articles 2011-06-07

    I'm trying to get all articles that are the current/latest articles in Mediawiki 1.16.0. I need to do this in phpMyadmin and make a dump from those results. my SQL: SELECT page.page_title, page.page_latest , revision.rev_id, revision.rev_text_id , te

  • Mediawiki disable Talk pages from public viewing 2011-07-02

    I recently started using Mediawiki and I am currently on version 1.17. I would like to disable Talk namespace pages from viewing from public. I already disabled UserCreation as I would like only me to edit the pages. So, I am basically using it as a

  • Get random SVG image using MediaWiki API 2011-07-19

    Is it possible to use the MediaWiki API to return a random image? If so can I specify a filetype such as SVG? --------------Solutions------------- Random, yes; by file type, no. If you know that the image namespace is 6, then you can use: http://comm

  • MediaWiki variant tabs 2011-11-10

    Anyone knows how to get the variant tabs to work as actual tabs and not as a drop down? This is how has it: and this is how I have it on my page: and I've tried everything I found and searched everywhere I could thi

  • MediaWiki: check if current page is an article page 2011-12-06

    I'm working on an extension for MediaWiki. I want to add a tab to the article pages only -- not for edit, history, talk or any other special page. So far, I've achieved by checking that both the namespace (for "Special:whatever" pages) and the action

  • Remove MediaWiki Pages Before a Certain Date 2012-01-12

    I have a rather large MediaWiki database, and I'd like to remove all the pages that haven't been edited since a certain date. The wiki in question consists of a cut of Wikipedia that was imported when we first created the wiki, and a load of pages we

  • mediawiki: is there a way to automatically create redirect pages that redirect to the current page? 2012-03-16

    My hobby is writing up stuff on a personal wiki site: Currently using mediawiki (although I often regret having chosen it, since I need per page access control.) Often I create pages that define several terms or concepts on the

  • Redirecting Mediawiki User Page and User Talk page to external url 2013-09-11

    I have mediawiki installed inside folder and I also have phpbb installed in the root like I already have user profile pages in my phpbb installation and the urls to those pages are like:

Copyright (C), All Rights Reserved.

processed in 0.134 (s). 11 q(s)