Author image Pablo Fischer
and 1 contributors

NAME

AI::ExpertSystem::Advanced::KnowledgeDB::YAML - YAML Knowledge DB driver

DESCRIPTION

A YAML knowledge database driver.

It reads a given YAML file and looks for the rules hash key. All of the elements of rules (causes and goals) are copied to the rules hash key of AI::ExpertSystem::Advanced::KnowledgeDB::Base.

If no rules are found then it ends unsuccessfully.

It also looks for any available questions under the questions hash key, however if no questions are found then they are not copied :-)

Attributes

filename

YAML file path to read

AUTHOR

Pablo Fischer (pablo@pablo.com.mx).

COPYRIGHT

Copyright (C) 2010 by Pablo Fischer.

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