pepper.brain.basic_brain module

class pepper.brain.basic_brain.BasicBrain(address='http://localhost:7200/repositories/leolani', clear_all=False, quiet=False)[source]

Bases: object

clean_local_memory()[source]
clear_brain()[source]

Clear all data from the brain :return: response status

count_friends()[source]

Count number of people I have talked to :return:

count_statements()[source]

Count statements or ‘facts’ in the brain :return:

get_best_friends()[source]

Get names of the 5 people I have talked to the most :return:

get_classes()[source]

Get classes or types in social ontology :return:

get_instance_of_type(instance_type)[source]

Get instances of a certain class type :param instance_type: name of class in ontology :return:

get_labels_and_classes()[source]

Get classes in social ontology :return:

get_my_friends()[source]

Get names of people I have talked to :return:

get_predicates()[source]

Get predicates in social ontology :return:

get_triples_with_predicate(predicate)[source]

Get triples that contain this predicate :param predicate: :return:

get_type_of_instance(label)[source]

Get types of a certain instance identified by its label :param label: label of instance :return:

upload_ontology()[source]

Upload ontology :return: response status

when_last_chat_with(actor_label)[source]

Get time value for the last time I chatted with this person :param actor_label: name of person :return: