Hi,
I'm working on a XML representation of Wikipedia articles [[meta:Wikipedia DTD]] - the XML export function [[XML import and export]] is a step forward to this but I do not understand what the element "restrictions" may contain:
So what is the purpose of table 'cur_restrictions'? Are there any other restrictions but 'sysop' or why it is not just a boolean value?
Some bugs and wishes for the next update of SpecialExport.php: - add an XML header ("<?xml version='1.0' encoding='UTF-8'?>") - replace the attribute 'xml:ns' with something like 'interwiki' or 'language'. Please avoid attributes starting with 'xml:'. 'xml:lang' is not the best choice neither since there are MediaWikis like wiktionary and meta that does corespondent to languages. - include 'cur_counter'
BTW: What about the new namespaces 8 => "MediaWiki", 9 => "MediaWiki_talk" ??
Thank's Jakob Voss
P.S: The statistics page is one posibility to include a reference to the developers more publically - like the "most active wikipedians". Perhaps there is a way to get some CVS stats out of sourceforge into the wikipedia growth overview.
On Dec 1, 2003, at 10:29, jakob.voss@s1999.tu-chemnitz.de wrote:
Hi,
I'm working on a XML representation of Wikipedia articles [[meta:Wikipedia DTD]]
- the XML export function [[XML import and export]] is a step forward
to this but I do not understand what the element "restrictions" may contain:
So what is the purpose of table 'cur_restrictions'? Are there any other restrictions but 'sysop' or why it is not just a boolean value?
It's a comma-separated list of tags which may be present in a user's user_rights field (again, as a comma-separated list of tags). I don't think the software fully supports this model yet (as we don't use anything more complex that "" / "sysop" on Wikipedia) but that's the theory.
Some bugs and wishes for the next update of SpecialExport.php:
- add an XML header ("<?xml version='1.0' encoding='UTF-8'?>")
Hmm, yes that was supposed to be there. Must have forgot...
- replace the attribute 'xml:ns' with something like 'interwiki' or
'language'. Please avoid attributes starting with 'xml:'. 'xml:lang' is not the best choice neither since there are MediaWikis like wiktionary and meta that does corespondent to languages.
xml:ns??? That's really supposed to be xml:lang! And it's only meant for the language. If it's ever something other than a language code, let me know, cause that would be a bug. It should be pumping in the value of $wgLangCode, which is what we send out as the Content-Language and the LANG attribute on the HTML element in our web page output.
- include 'cur_counter'
cur_counter is not an attribute of a wiki page.
BTW: What about the new namespaces 8 => "MediaWiki", 9 => "MediaWiki_talk" ??
These are for the interface string editing.
-- brion vibber (brion @ pobox.com)
On Dec 1, 2003, at 13:16, Brion Vibber wrote:
Some bugs and wishes for the next update of SpecialExport.php:
- add an XML header ("<?xml version='1.0' encoding='UTF-8'?>")
Hmm, yes that was supposed to be there. Must have forgot...
Fixed.
xml:ns??? That's really supposed to be xml:lang! And it's only meant for the language.
Fixed.
- include 'cur_counter'
cur_counter is not an attribute of a wiki page.
To clarify: the hit counter is an attribute of the _site_ which (loosely) tracks one particular page. Like the cache update timestamps, it may be in the 'cur' table but it's not intrinsic to the wiki page. (Also it's disabled on Wikipedia and may eventually get dropped.)
-- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org