pyaiml21.graphmaster.sqlite_gm.SqLiteGraphMaster¶
- class pyaiml21.graphmaster.sqlite_gm.SqLiteGraphMaster(bot_config: pyaiml21.botconfig.config.BotConfig, conn: sqlite3.Connection, policy: Union[str, Callable[[Any, Any], Any]] = 'keep_last')[source][source]¶
Store the template nodes in the sqlite database.
For more details on the graphmaster, please refer to the
GraphMasterimplementation.The constructor expects a sqlite3.Connection object, it is the responsibility of the user to make sure the connection stays open during the lifetime of the graphmaster.
Methods
add_pattern_tagAdd pattern tag to the known tags of this graphmaster.
dumpStore the graphmaster into the specified file.
generate_htmlStore graphmaster to html file.
loadLoad the graphmaster from the file, after it was saved using dump.
Load template from the database.
matchFind the matching Pattern Path.
saveSave the category into the graphmaster.
Save obj to the database.
sizeReturn the number of AIML categories.
validateValidate the category, check its syntax.
vocabularyImplement <vocabulary> tag.
Attributes
THATTOPIC