Robert Barta > TM-Corpus-0.07 > TM::Corpus::MLDBM

Download:
TM-Corpus-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.03   Source   Latest Release: TM-Corpus-0.11

NAME ^

TM::Corpus::MLDBM - Topic Maps, MLDBM backed document corpus

SYNOPSIS ^

    # see TM::Corpus
    # it is the same interface & procedure, you only
    # use TM::Corpus::MLDBM instead of TM::Corpus

ABSTRACT ^

This package connects a topic map instance and a document corpus into one container. All document portions (not the topic map itself) will be made persistent in a MLDBM database.

DESCRIPTION ^

This subclass of TM::Corpus exposes the same functionality as its mother class. The only difference is that all document aspects (not the topic map underlying) are stored persistently.

Obviously when you harvest documents off the Internet this will take significant resources, especially when the map is rich and points to many external documents. In order to safe resources, you can use this class as an in-place replacement to TM::Corpus. As a consequence all harvested documents will remain until you remove them explicitely.

NOTE: Only when the object goes out of scope (actually the destructor is invoked), then you can be certain that all content has been sync'ed out to disk.

INTERFACE ^

Constructor

The constructor accepts a hash as parameter with the following keys:

file (default: none)

Name of a (.dbm) file in the local file system where the MLDBM is stored. If it does not exist, it will be created silently.

SEE ALSO ^

TM::Corpus::MLDBM, TM::Corpus::SearchAble

COPYRIGHT AND LICENSE ^

Copyright 200[8] by Robert Barta, <drrho@cpan.org>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.