RE: [jade-develop] Using SL variable gives: Schema is not compatible,Bug or Misunderstood?


Subject: RE: [jade-develop] Using SL variable gives: Schema is not compatible,Bug or Misunderstood?
From: Eelco Aartsen (eelco_aartsen@yahoo.com)
Date: Mon Feb 24 2003 - 13:38:29 MET


Hi Caire,

Thanks, this works, result:
((iota ?x (Has (sequence (Prop :propName Weight :propValue
?x)))))

Bye
Eelco
 --- Caire Giovanni <Giovanni.Caire@TILAB.COM> wrote: > Hi,
>
> if the PROP slot of the HAS predicate has cardinality >
> 1, it means that it is an aggregate slot --> the correct
> form is
>
> (iota ?x (Has (sequence (Prop :propName Weight :propValue
> ?x)) (Item ...
>
> Attached you find a sample code to create such a content.
>
> Bye
>
> Giovanni
> <<Abs.java>>
> > ----------
> > From: Eelco Aartsen[SMTP:eelco_aartsen@yahoo.com]
> > Sent: luned́ 24 febbraio 2003 11.09
> > To: jade-develop@sharon.cselt.it
> > Subject: [jade-develop] Using SL variable gives:
> Schema is not compatible,Bug or Misunderstood?
> >
> > I've got an ontology :
> > - ITEM(type, id)
> > - PROP(name, value)
> > - HAS(ITEM, PROP)
> > So it's very much the same as the CD-store, with ITEM
> and
> > PRICE, except that my Item can have multiple PROP's.
> >
> > I want to create a message with a query like:
> > ((iota ?x (Has (Prop :propName Weight :propValue ?x)
> (Item
> > :itemId "12" :itemType Container))))
> >
> > But this only works when PROP has a cardinality of one.
> > Giving it a multiple cardinality gives the following
> error
> > calling the fillContent(msg, absIota):
> >
> > jade.content.onto.OntologyException: Schema
> > jade.content.schema.ConceptSchema-Prop for element
> (Prop
> > :propValue (Variable :ValueType propValue :Name x)
> > :propName Weight) is not compatible with schema
> > jade.content.schema.AggregateSchema-set for slot prop
> >
> > Do I do something wrong or is this a bug?
> >
> > Thanks
> > Eelco
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.com
> > _______________________________________________
> > jade-develop mailing list
> > jade-develop@sharon.cselt.it
> > http://sharon.cselt.it/mailman/listinfo/jade-develop
> > UNSUBSCRIBE INSTRUCTIONS AT
> http://jade.cselt.it/mailing.htm#unsubscribe
> >
>
>
>
====================================================================
> CONFIDENTIALITY NOTICE
> This message and its attachments are addressed solely to
> the persons
> above and may contain confidential information. If you
> have received
> the message in error, be informed that any use of the
> content hereof
> is prohibited. Please return it immediately to the sender
> and delete
> the message. Should you have any questions, please
> contact us by
> replying to MailAdmin@tilab.com. Thank you
>
====================================================================
>

> ATTACHMENT part 2 application/octet-stream name=Abs.java
 

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
_______________________________________________
jade-develop mailing list
jade-develop@sharon.cselt.it
http://sharon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe



This archive was generated by hypermail 2a22 : Mon Feb 24 2003 - 13:35:57 MET