From starred@tiscalinet.it Thu Nov 22 19:19:44 2001
Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.53])
	by swi.psy.uva.nl (8.10.2+Sun/8.11.2) with ESMTP id fAMIJif25037
	for <prolog@swi.psy.uva.nl>; Thu, 22 Nov 2001 19:19:44 +0100 (MET)
Received: from tiscalinet.it (151.24.189.204) by smtp3.libero.it (6.0.032)
        id 3BD43E2500989155 for prolog@swi.psy.uva.nl; Thu, 22 Nov 2001 19:19:44 +0100
Message-ID: <3BFD4258.5060405@tiscalinet.it>
Date: Thu, 22 Nov 2001 19:22:16 +0100
From: Armando Stellato <starred@tiscalinet.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1
X-Accept-Language: en-us
MIME-Version: 1.0
To: SWI Mailing List <prolog@swi.psy.uva.nl>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [SWIPL] aaahhhhhhhhhhhhhhhhhhhhhh!!!!!!!!!!!!!!!!!! nonsense!!!!!!!!

  argh!!! look at this!!!

handle_msg(Coordinator,ask_words(Ontology,CONCEPT)) :-

/*1*/
linguistic_agents:ag_IdCard(Coordinator,[coordinator,[]]),
/*2*/
write('Concept is: '),write_ln(CONCEPT),
/*3*/
Ontology:find_Words(CONCEPT,Bag_of_Words),
/*4*/
write(Bag_of_Words).


Ok, don't even try to understand what it does.
Just know that:

row1: check if message-sender Coordinator is what he claims to be

row2: i write CONCEPT to see if no problem has occurred (it has to be a
number), this row is not strictly necessary

row3: use module Ontology procedure find_Words to extract a list of
synonyms related to CONCEPT (that it'll be Bag_of_Words).

row4: write(Bag_of_Words). don't think you need explanations  [;-)]


Ok,when my agent system works, i got this result on the shell:

ReadyList is: $stream(1998822)
Msg from Agent: Reiser@localhost. ReadStream: $stream(1998822)
Msg read is: ask_words(wordnet_track_hound, 102443613)
Concept is: 102443613
[]
ok
Where the '[]' is a empty list, this should mean there are no lexicals,
but i know there are, and that my system "teorically" works fine, infact
(and this is absurd!!!), if i manually write on the shell:

handle_msg(['Reiser',localhost],ask_words(wordnet_track_hound, 102443613)).

I got:

Concept is: 102443613
[circuit_board, circuit_card, board, card]

that is the right result!!!!!!!!



there's no way why it works this way, the system runs the same predicate
that i've manually written in the shell...but it gives no result (empty
list)....i fear it may be some low-level bug....

Any Hint???

Bye,

Armando




