$ ./the_semantic_db_console.py Welcome! sa: h q, quit, exit : quit the agent. h, help : print this message context : print current context name context string : set current context to string dump : print current context dump multi : print context list load file.sw : load file.sw save file.sw : save current context to file.sw save multi file.sw : save context list to file.sw files : show the available .sw files create inverse : create inverse for current context create multi inverse : create inverse for all context in context list x = foo: bah : set x (the default ket) to |foo: bah> s, store : set x to the result of the last computation . : repeat last computation if none of the above : process_input_line(C,line,x) sa: files bot-bella.sw bot-emma.sw bot-madison.sw bot-personality-data.sw friends.sw frog.sw methanol.sw simple-molecules.sw sa: load bot-bella.sw loading sw file: bot-bella.sw sa: load bot-emma.sw loading sw file: bot-emma.sw sa: load bot-madison.sw loading sw file: bot-madison.sw sa: dump ---------------------------------------- |context> => |context: bot profile> supported-ops |bot: Bella> => |op: name> + |op: mother> + |op: father> + |op: birth-sign> + |op: number-siblings> + |op: wine-preference> + |op: favourite-fruit> + |op: favourite-music> + |op: favourite-play> + |op: hair-colour> + |op: eye-colour> + |op: where-live> + |op: favourite-holiday-spot> + |op: make-of-car> + |op: religion> + |op: personality-type> + |op: current-emotion> + |op: bed-time> name |bot: Bella> => |Bella> mother |bot: Bella> => |Mia> father |bot: Bella> => |William> birth-sign |bot: Bella> => |birth-sign: Cancer> number-siblings |bot: Bella> => |number: 1> wine-preference |bot: Bella> => |wine: Merlot> favourite-fruit |bot: Bella> => |fruit: pineapples> favourite-music |bot: Bella> => |music: genre: punk> favourite-play |bot: Bella> => |play: Endgame> hair-colour |bot: Bella> => |hair-colour: gray> eye-colour |bot: Bella> => |eye-colour: hazel> where-live |bot: Bella> => |location: Sydney> favourite-holiday-spot |bot: Bella> => |location: Paris> make-of-car |bot: Bella> => |car: Porsche> religion |bot: Bella> => |religion: Christianity> personality-type |bot: Bella> => |personality-type: the guardian> current-emotion |bot: Bella> => |emotion: fear> bed-time |bot: Bella> => |time: 8pm> supported-ops |bot: Emma> => |op: name> + |op: mother> + |op: father> + |op: birth-sign> + |op: number-siblings> + |op: wine-preference> + |op: favourite-fruit> + |op: favourite-music> + |op: favourite-play> + |op: hair-colour> + |op: eye-colour> + |op: where-live> + |op: favourite-holiday-spot> + |op: make-of-car> + |op: religion> + |op: personality-type> + |op: current-emotion> + |op: bed-time> name |bot: Emma> => |Emma> mother |bot: Emma> => |Madison> father |bot: Emma> => |Nathan> birth-sign |bot: Emma> => |birth-sign: Capricorn> number-siblings |bot: Emma> => |number: 4> wine-preference |bot: Emma> => |wine: Pinot Noir> favourite-fruit |bot: Emma> => |fruit: oranges> favourite-music |bot: Emma> => |music: genre: hip hop> favourite-play |bot: Emma> => |play: No Exit> hair-colour |bot: Emma> => |hair-colour: red> eye-colour |bot: Emma> => |eye-colour: gray> where-live |bot: Emma> => |location: New York> favourite-holiday-spot |bot: Emma> => |location: Taj Mahal> make-of-car |bot: Emma> => |car: BMW> religion |bot: Emma> => |religion: Taoism> personality-type |bot: Emma> => |personality-type: the visionary> current-emotion |bot: Emma> => |emotion: kindness> bed-time |bot: Emma> => |time: 2am> supported-ops |bot: Madison> => |op: name> + |op: mother> + |op: father> + |op: birth-sign> + |op: number-siblings> + |op: wine-preference> + |op: favourite-fruit> + |op: favourite-music> + |op: favourite-play> + |op: hair-colour> + |op: eye-colour> + |op: where-live> + |op: favourite-holiday-spot> + |op: make-of-car> + |op: religion> + |op: personality-type> + |op: current-emotion> + |op: bed-time> name |bot: Madison> => |Madison> mother |bot: Madison> => |Mia> father |bot: Madison> => |Ian> birth-sign |bot: Madison> => |birth-sign: Cancer> number-siblings |bot: Madison> => |number: 6> wine-preference |bot: Madison> => |wine: Pinot Noir> favourite-fruit |bot: Madison> => |fruit: pineapples> favourite-music |bot: Madison> => |music: genre: blues> favourite-play |bot: Madison> => |play: Death of a Salesman> hair-colour |bot: Madison> => |hair-colour: red> eye-colour |bot: Madison> => |eye-colour: amber> where-live |bot: Madison> => |location: Vancouver> favourite-holiday-spot |bot: Madison> => |location: Uluru> make-of-car |bot: Madison> => |car: Bugatti> religion |bot: Madison> => |religion: Islam> personality-type |bot: Madison> => |personality-type: the performer> current-emotion |bot: Madison> => |emotion: indignation> bed-time |bot: Madison> => |time: 10:30pm> ---------------------------------------- sa: x = bot: Emma sa: name |Emma> sa: father |Nathan> sa: mother |Madison> sa: age In context "bot profile": I have no knowledge of the "age" operator applied to "bot: Emma". |> sa: bed-time |time: 2am> sa: eye-colour |eye-colour: gray> sa: where-live |location: New York> sa: religion |religion: Taoism> sa: religion |bot: Madison> |religion: Islam> sa: religion |bot: Bella> |religion: Christianity> sa: where-live |bot: Bella> |location: Sydney> sa: x = bot: Bella sa: father |William> sa: hair-colour |hair-colour: gray> sa: eye-colour |eye-colour: hazel> sa: favourite-wine In context "bot profile": I have no knowledge of the "favourite-wine" operator applied to "bot: Bella". |> sa: wine-preference |wine: Merlot> sa: wine-prefernce |bot: Emma> In context "bot profile": I have no knowledge of the "wine-prefernce" operator applied to "bot: Emma". |> sa: wine-preference |bot: Emma> |wine: Pinot Noir> sa: x = bot: Madison sa: hungry In context "bot profile": I have no knowledge of the "hungry" operator applied to "bot: Madison". |> sa: hungry |bot: Madison> => |starving> sa: hungry |starving> sa: age In context "bot profile": I have no knowledge of the "age" operator applied to "bot: Madison". |> sa: age |bot: Madison> => |age: 23> sa: age |age: 23> sa: age |bot: Emma> => |age: 29> sa: age |age: 23> sa: friends |bot: Madison> => |bot: Emma> sa: |bot: Madison> sa: friends |bot: Emma> sa: friends |bot: Madison> +=> |bot: Bella> sa: friends |bot: Emma> + |bot: Bella> sa: name |Madison> sa: age friends In context "bot profile": I have no knowledge of the "age" operator applied to "bot: Bella". |age: 29> sa: age |bot: Bella> => |age: 31> sa: age friends |age: 29> + |age: 31> sa: dump ---------------------------------------- |context> => |context: bot profile> supported-ops |bot: Bella> => |op: name> + |op: mother> + |op: father> + |op: birth-sign> + |op: number-siblings> + |op: wine-preference> + |op: favourite-fruit> + |op: favourite-music> + |op: favourite-play> + |op: hair-colour> + |op: eye-colour> + |op: where-live> + |op: favourite-holiday-spot> + |op: make-of-car> + |op: religion> + |op: personality-type> + |op: current-emotion> + |op: bed-time> + |op: age> name |bot: Bella> => |Bella> mother |bot: Bella> => |Mia> father |bot: Bella> => |William> birth-sign |bot: Bella> => |birth-sign: Cancer> number-siblings |bot: Bella> => |number: 1> wine-preference |bot: Bella> => |wine: Merlot> favourite-fruit |bot: Bella> => |fruit: pineapples> favourite-music |bot: Bella> => |music: genre: punk> favourite-play |bot: Bella> => |play: Endgame> hair-colour |bot: Bella> => |hair-colour: gray> eye-colour |bot: Bella> => |eye-colour: hazel> where-live |bot: Bella> => |location: Sydney> favourite-holiday-spot |bot: Bella> => |location: Paris> make-of-car |bot: Bella> => |car: Porsche> religion |bot: Bella> => |religion: Christianity> personality-type |bot: Bella> => |personality-type: the guardian> current-emotion |bot: Bella> => |emotion: fear> bed-time |bot: Bella> => |time: 8pm> age |bot: Bella> => |age: 31> supported-ops |bot: Emma> => |op: name> + |op: mother> + |op: father> + |op: birth-sign> + |op: number-siblings> + |op: wine-preference> + |op: favourite-fruit> + |op: favourite-music> + |op: favourite-play> + |op: hair-colour> + |op: eye-colour> + |op: where-live> + |op: favourite-holiday-spot> + |op: make-of-car> + |op: religion> + |op: personality-type> + |op: current-emotion> + |op: bed-time> + |op: age> name |bot: Emma> => |Emma> mother |bot: Emma> => |Madison> father |bot: Emma> => |Nathan> birth-sign |bot: Emma> => |birth-sign: Capricorn> number-siblings |bot: Emma> => |number: 4> wine-preference |bot: Emma> => |wine: Pinot Noir> favourite-fruit |bot: Emma> => |fruit: oranges> favourite-music |bot: Emma> => |music: genre: hip hop> favourite-play |bot: Emma> => |play: No Exit> hair-colour |bot: Emma> => |hair-colour: red> eye-colour |bot: Emma> => |eye-colour: gray> where-live |bot: Emma> => |location: New York> favourite-holiday-spot |bot: Emma> => |location: Taj Mahal> make-of-car |bot: Emma> => |car: BMW> religion |bot: Emma> => |religion: Taoism> personality-type |bot: Emma> => |personality-type: the visionary> current-emotion |bot: Emma> => |emotion: kindness> bed-time |bot: Emma> => |time: 2am> age |bot: Emma> => |age: 29> supported-ops |bot: Madison> => |op: name> + |op: mother> + |op: father> + |op: birth-sign> + |op: number-siblings> + |op: wine-preference> + |op: favourite-fruit> + |op: favourite-music> + |op: favourite-play> + |op: hair-colour> + |op: eye-colour> + |op: where-live> + |op: favourite-holiday-spot> + |op: make-of-car> + |op: religion> + |op: personality-type> + |op: current-emotion> + |op: bed-time> + |op: hungry> + |op: age> + |op: friends> name |bot: Madison> => |Madison> mother |bot: Madison> => |Mia> father |bot: Madison> => |Ian> birth-sign |bot: Madison> => |birth-sign: Cancer> number-siblings |bot: Madison> => |number: 6> wine-preference |bot: Madison> => |wine: Pinot Noir> favourite-fruit |bot: Madison> => |fruit: pineapples> favourite-music |bot: Madison> => |music: genre: blues> favourite-play |bot: Madison> => |play: Death of a Salesman> hair-colour |bot: Madison> => |hair-colour: red> eye-colour |bot: Madison> => |eye-colour: amber> where-live |bot: Madison> => |location: Vancouver> favourite-holiday-spot |bot: Madison> => |location: Uluru> make-of-car |bot: Madison> => |car: Bugatti> religion |bot: Madison> => |religion: Islam> personality-type |bot: Madison> => |personality-type: the performer> current-emotion |bot: Madison> => |emotion: indignation> bed-time |bot: Madison> => |time: 10:30pm> hungry |bot: Madison> => |starving> age |bot: Madison> => |age: 23> friends |bot: Madison> => |bot: Emma> + |bot: Bella> ---------------------------------------- sa: save bots.sw saving current context to: bots.sw sa: friends |bot: Emma> + |bot: Bella> sa: s stored: |bot: Emma> + |bot: Bella> sa: |bot: Emma> + |bot: Bella> sa: age |age: 29> + |age: 31> sa: eye-colour |eye-colour: gray> + |eye-colour: hazel> sa: hair-colour |hair-colour: red> + |hair-colour: gray> sa: religion |religion: Taoism> + |religion: Christianity> sa: where-live |location: New York> + |location: Sydney> sa: bed-time |time: 2am> + |time: 8pm> sa: mother |Madison> + |Mia> sa: birth-sign |birth-sign: Capricorn> + |birth-sign: Cancer> sa: favourite-fruit |fruit: oranges> + |fruit: pineapples> sa: number-siblings |number: 4> + |number: 1> sa: favourite-music |music: genre: hip hop> + |music: genre: punk> sa: favourie-play In context "bot profile": I have no knowledge of the "favourie-play" operator applied to "bot: Emma". In context "bot profile": I have no knowledge of the "favourie-play" operator applied to "bot: Bella". |> sa: favourite-play |play: No Exit> + |play: Endgame> sa: make-of-car |car: BMW> + |car: Porsche> sa: personality-type |personality-type: the visionary> + |personality-type: the guardian> sa: father |Nathan> + |William> sa: