.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Parse::MediaWikiDump 3pm" .TH Parse::MediaWikiDump 3pm "2022-10-14" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Parse::MediaWikiDump \- Tools to process MediaWiki dump files .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use Parse::MediaWikiDump; \& \& $pmwd = Parse::MediaWikiDump\->new; \& \& $pages = $pmwd\->pages(\*(Aqpages\-articles.xml\*(Aq); \& $revisions = $pmwd\->revisions(\*(Aqpages\-articles.xml\*(Aq); \& $links = $pmwd\->links(\*(Aqlinks.sql\*(Aq); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This software suite provides the tools needed to process the contents of the \s-1XML\s0 page dump files and the \s-1SQL\s0 based links dump file. .SH "STATUS" .IX Header "STATUS" This software is being \s-1RETIRED\s0 \- MediaWiki::DumpFile is the official successor to Parse::MediaWikiDump and includes a compatibility library called MediaWiki::DumpFile::Compat that is 100% \s-1API\s0 compatible and is a near perfect standin for this module. It is faster in all instances where it counts and is actively maintained. Any undocumented deviation of MediaWiki::DumpFile::Compat from Parse::MediaWikiDump is considered a bug and will be fixed. .SS "Migration" .IX Subsection "Migration" Please begin using MediaWiki::DumpFile::Compat immediately as a replacement for this module. There will be no more features added to this software suite and bugs may not be fixed. Parse::MediaWikiDump::Pages used to check the version of the dump file it is parsing and reject versions it does not know about; this behavior has been removed. The parser will now continue in this instance and hope for the best. This way this software will continue to run into the future with out requiring further adjustment for as long as the upstream fileformat remains compatible. .PP In the event there is an unfixable bug or the dump file format changes in an incompatible way the Parse::MediaWikiDump module as a whole wil be replaced with a stub that brings in MediaWiki::DumpFile::Compat \- this may never need to happen but it is the plan for when it does. Migrating on your terms instead of being forced to if this happens is suggested. .SH "USAGE" .IX Header "USAGE" This module is a factory class that allows you to create instances of the individual parser objects. .ie n .IP "$pmwd\->pages" 4 .el .IP "\f(CW$pmwd\fR\->pages" 4 .IX Item "$pmwd->pages" Returns a Parse::MediaWikiDump::Pages object capable of parsing an article \s-1XML\s0 dump file with one revision per each article. .ie n .IP "$pmwd\->revisions" 4 .el .IP "\f(CW$pmwd\fR\->revisions" 4 .IX Item "$pmwd->revisions" Returns a Parse::MediaWikiDump::Revisions object capable of parsing an article \s-1XML\s0 dump file with multiple revisions per each article. .ie n .IP "$pmwd\->links" 4 .el .IP "\f(CW$pmwd\fR\->links" 4 .IX Item "$pmwd->links" Returns a Parse::MediaWikiDump::Links object capable of parsing an article links \s-1SQL\s0 dump file. .SS "General" .IX Subsection "General" All parser creation invocations require a location of source data to parse; this argument can be either a filename or a reference to an already open filehandle. This entire software suite will \fBdie()\fR upon errors in the file or if internal inconsistencies have been detected. If this concerns you then you can wrap the portion of your code that uses these calls with \fBeval()\fR. .SH "AUTHOR" .IX Header "AUTHOR" This module was created, documented, and is maintained by Tyler Riddle . .PP Fix for bug 36255 \*(L"Parse::MediaWikiDump::page::namespace may return a string which is not really a namespace\*(R" provided by Amir E. Aharoni. .SH "BUGS" .IX Header "BUGS" Please report any bugs or feature requests to \&\f(CW\*(C`bug\-parse\-mediawikidump@rt.cpan.org\*(C'\fR, or through the web interface at . I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. .SS "Known Bugs" .IX Subsection "Known Bugs" No known bugs at this time. .SH "COPYRIGHT & LICENSE" .IX Header "COPYRIGHT & LICENSE" Copyright 2005 Tyler Riddle, all rights reserved. .PP This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.