pepper.brain.long_term_memory module¶
-
class
pepper.brain.long_term_memory.
LongTermMemory
(address='http://localhost:7200/repositories/leolani', clear_all=False)[source]¶ Bases:
pepper.brain.basic_brain.BasicBrain
-
experience
(utterance)[source]¶ Main function to interact with if an experience is coming into the brain. Takes in a structured utterance containing parsed experience, transforms them to triples, and posts them to the triple store :param utterance: Structured data of a parsed experience :return: json response containing the status for posting the triples, and the original statement
-
query_brain
(utterance)[source]¶ Main function to interact with if a question is coming into the brain. Takes in a structured parsed question, transforms it into a query, and queries the triple store for a response :param utterance: Structured data of a parsed question :return: json response containing the results of the query, and the original question
-
update
(utterance, reason_types=False)[source]¶ Main function to interact with if a statement is coming into the brain. Takes in an Utterance containing a parsed statement as a Triple, transforms them to linked data, and posts them to the triple store :param utterance: Contains all necessary information regarding a statement just made. :type utterance: Utterance
Returns: thoughts – Contains information about conflicts, novelty, gaps and overlaps that the statement produces given the data in the triple store Return type: Thoughts
-