RE: [jade-develop] Ontology


Subject: RE: [jade-develop] Ontology
From: Caire Giovanni (Giovanni.Caire@TILAB.COM)
Date: Wed Aug 21 2002 - 13:50:06 MET DST


Hi,
 
There are two errors in msg.setContent("LOG :message \"JADE\" ")
1) It should be msg.setContent("(LOG :message \"JADE\")")
Nothe the ()
2) The SL language does not allow to use an expression with named slots, i.e. an expression like
(Type :slot1-name slot1-val :slot2-name slot2-type ...)
at the first level of a message content. That is expressions with named slots can only be used within an expression with un-named slots.
 
Bye
 
Giovanni

-----Original Message-----
From: Alexander Osherenko [mailto:a.ocherenko@gmx.de]
Sent: mercoledì 21 agosto 2002 12.02
To: JADE
Subject: [jade-develop] Ontology

Hello!
 
I'm building my ontology and send a message in this ontology filling it before with the fillMsgContent command.
 
When I receive this message in another agent I get problems in the extractMsgContent command.
 
I'm filtering messages with the MatchOntology and MatchLanguage commands. To debug the message contents I explicitly set the contents:
 
msg.setContent("LOG :message \"JADE\" ")
List l = extractMsgContent(msg);
 
The last command produces a SL0Parser exception: Something like - "found :message, expected (, "STRING_LITERAL" ".
 
I've tried to work with the string ("LOG \"JADE\" ", but the parser wants the slot "message".
 
Any suggestions?
 
Alexander
 

Hi,
 
There are two errors in msg.setContent("LOG :message \"JADE\" ")
1) It should be msg.setContent("(LOG :message \"JADE\")")
Nothe the ()
2) The SL language does not allow to use an expression with named slots, i.e. an expression like
(Type :slot1-name slot1-val :slot2-name slot2-type ...)
at the first level of a message content. That is expressions with named slots can only be used within an expression with un-named slots.
 
Bye
 
Giovanni 
-----Original Message-----
From: Alexander Osherenko [mailto:a.ocherenko@gmx.de]
Sent: mercoledì 21 agosto 2002 12.02
To: JADE
Subject: [jade-develop] Ontology

Hello!
 
I'm building my ontology and send a message in this ontology filling it before with the fillMsgContent command.
 
When I receive this message in another agent I get problems in the extractMsgContent command.
 
I'm filtering messages with the MatchOntology and MatchLanguage commands. To debug the message contents I explicitly set the contents:
 
msg.setContent("LOG :message \"JADE\" ")
List l = extractMsgContent(msg);
 
The last command produces a SL0Parser exception: Something like - "found :message, expected (, "STRING_LITERAL" ".
 
I've tried to work with the string ("LOG \"JADE\" ", but the parser wants the slot "message".
 
Any suggestions?
 
Alexander
 



This archive was generated by hypermail 2a22 : Wed Aug 21 2002 - 13:50:12 MET DST