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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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