Ngā tūemi rite: Prolog programming for artificial intelligence