Last modified: 2005-08-16 23:48:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5143, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3143 - dumps now make it difficult to get the namespace information for articles
dumps now make it difficult to get the namespace information for articles
Status: RESOLVED DUPLICATE of bug 2674
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-14 10:47 UTC by Sam Hocevar
Modified: 2005-08-16 23:48 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Hocevar 2005-08-14 10:47:34 UTC
Since the dumps switched to XML format, it has become difficult to get
the namespace of a given article, because it now needs to be guessed from
the article name and requires a dozen UTF-8 string comparisons.

Please provide the namespace through a <namespace> entity, if possible.
Comment 1 Ævar Arnfjörð Bjarmason 2005-08-15 09:28:42 UTC
The namespace is provided in the <namespaces> element which is a subelement of
the <siteinfo> element, however having it as a number inside each <page> would
be nice.
Comment 2 Zigger 2005-08-15 23:10:45 UTC
See also bug 2674.
Comment 3 El 2005-08-16 08:38:11 UTC
(In reply to comment #1)
> The namespace is provided in the <namespaces> element which is a subelement of
> the <siteinfo> element, however having it as a number inside each <page> would
> be nice.

But please don't store the namespaces as both prefix and number. That would only
increase the dump sizes. Besides, one doesn't need 'a dozen UTF-8 string
comparisons'
to get the numbers. In Perl I use a hash variable: $nsnr{$nsstring}
Comment 4 Brion Vibber 2005-08-16 23:48:27 UTC

*** This bug has been marked as a duplicate of 2674 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links