You can trick the Jess parser into using "leads to" as a slot identifier by
escaping the space with a backslash, so:

(deftemplate temp (slot leads\ to))
(bind ?f (assert (temp (leads\ to "confusion"))))
(modify ?f (leads\ to "sore eyes"))
etc.


On Wed, Oct 29, 2008 at 7:57 AM, Uiratan Cavalcante <[EMAIL PROTECTED]>wrote:

> Hi,
>
> I have an ontology in Protégé with a slot defined as "leads to".
>
> When i try tro use it, like in:
>
> (make-instance of "Specific Goal" (name ?ObjetivoEspecifico) (leads to
> ?objg))
>
> Obviously i got error, becouse its blank space.
>
> Looking for a away to solve my problem i tried sym-cat, but get errors too.
>
>
> Jess reported an error in routine make-instance
>        while executing (make-instance of "Specific Goal" (name
> ?ObjetivoEspecifico) (call (sym-cat "leads to") ?objg))
>        while executing (bind ?esp (make-instance of "Specific Goal" (name
> ?ObjetivoEspecifico) (call (sym-cat "leads to") ?objg)))
>        while executing defrule MAIN::criar-objetivos
>        while executing (run).
>  Message: Protege slot not found: call.
>  Program text: ( run )  at line 1.
>
>
> Is there a away to use this slot definition without change it?
>
> Best regards,
>
>
> --
> Uiratan Cavalcante              +55 (98) 8138-9212
> TI/TRT-16-MA    (Manhã)     +55 (98) 2109-9430    http://www.trt16.gov.br
> GESEC/UFMA   (Tarde)      +55 (98) 2109-8297    http://gesec.deinf.ufma.br
> São Luís - MA - Brazil
>
>
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> (use your own address!) List problems? Notify [EMAIL PROTECTED]

Reply via email to