I get something when using this: (? @A A (db a1 +Similarity @A @X) (show @X))

{3At} (+Similarity)
   value 4040
   a2 {2b2}
   a1 {2la}
 @A={2la} @X={3At}{3Ai} (+Similarity)
   value 3750
   a2 {2kq}
   a1 {2la}
 @A={2la} @X={3Ai}-> NIL

Does that help in understanding why the original OR generator isn't working?

/Henrik


On Fri, Oct 31, 2008 at 1:01 PM, Alexander Burger <[EMAIL PROTECTED]> wrote:
> Hi Henrik,
>
>> I try: (? (db 'a1 '+Similarity A @X) (show @X)) (I assumed you forgot
>> the quotes above or maybe they're not needed?), and: (? (db a1
>
> Ah, that won't work. Pilog does not evaluate the argument as Lisp does.
> It wants to do pattern matching.
>
> So the 'A' in the above query will never match (besides, as you
> suspected, the quotes). Please try:
>
>   (? @A A (db a1 +Similarity @A @X) (show @X))
>
> or perhaps - if you know that 'A' is the object {MyA} - directly
>
>   (? (db a1 +Similarity {MyA} @X) (show @X))
>
> Cheers,
> - Alex
> --
> UNSUBSCRIBE: mailto:[EMAIL PROTECTED]
>
-- 
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Reply via email to