The TUNES Wiki
James Michael DuPont
mdupont777@yahoo.com
Wed Jan 1 02:51:02 2003
--0-706681270-1041418233=:45069
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hey,
here is the first version of the wiki dumper,
it reads the wiki pages from the cvs and dumps the perl objects into
files.
STUCTURE : here are the data types of the exisiting wiki nodes
Now, someone can tell me how to transform this in cliki format,
otherwise I can dump it into rdf/xml for you.
#'ID' name of page
#'date' date of page edit
#'host' hostname of the page edit
#'agent' client used (lynx and w3c mode are used!)
#'convert' either the value "tabs" or null, how do we handle tabs
in the "text"
#'text' body of page
#'rev' revision number
# links to other projects/pages, I did not dead link check them
# 'r1' => 55
# 'r2' => 16,
# 'r3' => 3,
#'backlinks' names to other pages, or pages that reference this
Attachments :
TUNES.perl - Here is an example for the TUNEs node
dumpwiki.pl - a multilated version of Use Mod Wikis file readered,
hacked to dump the files.
mike
=====
James Michael DuPont
http://introspector.sourceforge.net/
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--0-706681270-1041418233=:45069
Content-Type: application/octet-stream; name="TUNES.perl"
Content-Transfer-Encoding: base64
Content-Description: TUNES.perl
Content-Disposition: attachment; filename="TUNES.perl"
JFZBUjEgPSB7CiAgICAgICAgICAnSUQnID0+ICdUVU5FUycsCiAgICAgICAg
ICAnY29udmVydCcgPT4gJ3RhYnMnLAogICAgICAgICAgJ2RhdGUnID0+ICdT
ZXB0ZW1iZXIgOSwgMjAwMicsCiAgICAgICAgICAnaG9zdCcgPT4gJ3I3OGgx
MDAucmVzLmdhdGVjaC5lZHUnLAogICAgICAgICAgJ3RleHQnID0+ICcJXCdc
JyJUVU5FUyBpcyBhIFVzZWZ1bCwgTmV2ZXJ0aGVsZXNzIEV4cGVkaWVudCBT
eXN0ZW0iXCdcJyAoUmlkZWF1KQ0KDQpcJ1wnXCdXaGF0IGlzIHRoZSBUdW5l
cyBQcm9qZWN0P1wnXCdcJyAgDQoNClR1b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ls
aW5nTGlzdHMgVHVuZXNQYXR0ZXJucyBEZXNpZ25UcmVuZHMgVHVuZXNTdWJQ
cm9qZWN0cyBUT0RPICAgRE5TIElSQyBEb2N1bWVudHNQYWdlICBDb3B5Umln
aHQgQ2hhdFpvbmUgIExhbmd1YWdlRGVzaWduICBUdW5lc1dpa2kgUHJvamVj
dE5hbWluZyBUdW5lc0xlYXJuaW5nTG91bmdlIEdTTVAgVHVuZXNTcGVjIFR1
bmVzSGFyZHdhcmUgVHVuZXNVSScsCiAgICAgICAgICAncjEnID0+ICdodHRw
Oi8vd3d3LmZzZi5vcmcnCiAgICAgICAgfTsK
--0-706681270-1041418233=:45069
Content-Type: application/x-perl; name="dumpwiki.pl"
Content-Transfer-Encoding: base64
Content-Description: dumpwiki.pl
Content-Disposition: attachment; filename="dumpwiki.pl"
IyEgcGVybCAKdXNlIERhdGE6OkR1bXBlcjsKdXNlIHN0cmljdDsKdXNlIHdh
cm5pbmdzOwoKIyBjb2RlIHNoYW1lbGVzc2x5IGNvcGllZCBmcm9tIHVzZSBt
b2Qgd2lraSBhbmQgb3RoZXJzIGJ5IG1kdXBvbnQ3NzdAeWFob28uY29tCgpt
eSAkUGFnZURpciA9Ii9ob21lL21kdXBvbnQvZGV2ZWxvcG1lbnQvdHVuZXMv
dHVuZXMtY3ZzL1R1bmVzV2lraSI7Cm15ICRGUyAgPSAiXHhiMyI7ICAgICAg
IyBUaGUgRmllbGQgc2VwYXJhdG9yCgpzdWIgR2V0UGFnZUZpbGUgewogIG15
ICgkaWQpID0gQF87CgogIHJldHVybiAkUGFnZURpciAuICIvJGlkLmRiIjsK
fQoKc3ViIFJlYWRGaWxlIHsKICBteSAoJGZpbGVOYW1lKSA9IEBfOwogIG15
ICgkZGF0YSk7CiAgbG9jYWwgJC8gPSB1bmRlZjsgICAjIFJlYWQgY29tcGxl
dGUgZmlsZXMKCiAgaWYgKG9wZW4oSU4sICI8JGZpbGVOYW1lIikpIHsKICAg
ICRkYXRhPTxJTj47C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5kYiIpOwoKZm9yIG15ICRmaWxlIChAZmlsZXMpCnsKICAgICRm
aWxlID1+IHMvLitcLy8vOwogICAgJGZpbGUgPX4gcy8uZGIkLy87CiAgICBt
eSAkcGFnZSA9ICBCcm93c2VQYWdlICgkZmlsZSApOwoKICAgIAogICAgb3Bl
biBPVVQsIj4kUGFnZURpci9kdW1wLyRmaWxlLnBlcmwiIG9yIGRpZTsKCgog
ICAgIydJRCcgICAgIG5hbWUgb2YgcGFnZQogICAgIydkYXRlJyAgIGRhdGUg
b2YgcGFnZQogICAgIydob3N0JyAgIGhvc3RuYW1lCiAgICAjJ3RleHQnICAg
Ym9keSBvZiBwYWdlCiAgICAjJ2FnZW50JyAgY2xpZW50CiAgICAjJ3Jldicg
ICAgcmV2aXNpb24gbnVtYmVyCiAgICAjICAgICdjb252ZXJ0JyA9PiB0YWJz
IG9yIG5vdAoKICAgICMgbGlua3MgdG8gb3RoZXIgcHJvamVjdHMKICAgICMg
ICAgJ3IxJyA9PiA1NQogICAgIyAgICAncjInID0+IDE2LAogICAgIyAgICAn
cjMnID0+IDMsCgogICAgIydiYWNrbGlua3MnICBsaW5rcyB0byBvdGhlciBw
YWdlcywgb3IgcGFnZXMgdGhhdCByZWZlcmVuY2UgdGhpcwoKICAgIHByaW50
IE9VVCBEdW1wZXIoJHBhZ2UpOwogICAgY2xvc2UgT1VUOwp9Cg==
--0-706681270-1041418233=:45069--