I am currently working on a databased BRAIN.
when you ask a question ie "what is the currency of AMERICA" then hal will RETURN "the currency of AMERICA is:", "DOLLARS"
here i have built these types of functions ie: currencys, populations, capitals, locations, etc.
These informations were retrieved from the cia FACTBOOK.
as the information is stored and retrieved from a database the QUERYS are SQL based.
five SIMULAR WAYS to ask the same QUESTION are linked to a singlar SQL query. as in the capitals function in the hal.
the SAME CAN BE DONE with QUESTION AND ANSWER FILES (QABRAIN)
the QUESTION
(typical file contents)
WHAT IS THE CAPITAL OF AMERICA
@WASHINGTON
WHAT IS A CAT
@AN ANIMAL
although this does not always work as if the questions are all simular then hal may retrieve the WRONG LINE OF INFORMATION.
This is why we need to be able to read data from Database tables instead of these type of QABRAIN files.
In my home project i have Built Hidden labels on my SHELL where the Fields of the database can be attacthed to. this enables me to retreive the data FROM the SQL QUERY to the labels then to a variable then in to the script as data.