Re: [greenstone-users] Transfer Metadata from greenstone burnt CD/ fromoriginally compiled corrupted metadata

From richard
DateTue, 27 Feb 2007 10:05:31 +1300
Subject Re: [greenstone-users] Transfer Metadata from greenstone burnt CD/ fromoriginally compiled corrupted metadata
In-Reply-To (f7e0cbc10702250524r571736a2v32491213184b614d-mail-gmail-com)
Hi Shah,

If the CD had the archives directory in your collection directory you could use that, but as that is unlikely, the only relatively useful way you could get the metadata from the burnt cd collection would be to get the .ldb or .bdb file from it and use the db2txt utiltity which comes with greenstone to convert the gdbm database to a text form, which could then be converted into an xml form for import back into greenstone.

You would have to write a program to convert the text output from gdbm to xml, perhaps in perl, and this would be perhaps not a trivial undertaking.

gdbm database file location:

/gsdl/collect/<yourcollectionfolder>/index/text/<yourcollectionfolder>.ldb or .bdb

db2txt utility location:

on windows:
/gsdl/bin/windows/db2txt.exe

on linux:
/gsdl/bin/linux/db2txt

This is a clunky but possible solution.

One way to not reimport your entire collection every time you add new data would be to use lucene as your indexer, which supports incremental building. You cant do this entirely from the GLI, you need to use the command line, and you need to add -incremental options to import.pl and buildcol.pl. For more information see:

http://greenstone.sourceforge.net/wiki/index.php/Building_Greenstone_collections#How_do_I_build_my_collection_incrementally.3F

Good luck,


Richard.
--
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.com
www.dlconsulting.com





shaheen shah wrote:
Hi Folks,

In line with the previous Question of Ms. Fox,

  1. Is there any way that I can get the metadata from a CD already burnt with greenstone data
           or from the original source, but with data corrupted (it got corrupted during power failure!)
    
     2.   Anyway not to go through the whole process of compilation (400 MB takes about 2hrs or more) AFTER i add new data?



Please do reply; I had asked this question before but ddnt get an answer,
Katherine Don, madam, may be U cud give me some help here :)


Regards

Shaheen
 B'lore


_______________________________________________ greenstone-users mailing list greenstone-users@list.scms.waikato.ac.nz https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users