From: Kal A. <ka...@te...> - 2005-11-19 11:01:29
|
Hi Dandan, Looking at the query, I think the problem might be that $ROLE2 is not a bound variable. The /= predicate requires that both variables are bound to an object when it is evaluated. I think that you might actually have intended $ROLE1 /= $ROLE. Also I don't think the parser will allow a space between the $ an the variable name - so you must write $ROLE1 and not $ ROLE1 (though that might just be an email formatting error!) Cheers, Kal > -----Original Message----- > From: tm4...@li... [mailto:tm4j-users- > ad...@li...] On Behalf Of Wang, Dandan > Sent: 18 November 2005 17:39 > To: tm4...@li... > Cc: c_f...@us... > Subject: [TM4J-users] About Tolog Query > > Hi Everyone, > > I'm trying to run the following Tolog Query in the TMNav Window, But it > got some exceptions. > > select $T1,$T2 from > > role-player($ROLE,$T1), > > association-role($ASSOC,$ROLE1), association- > role($ASSOC,$ROLE1), > > role-player($ROLE,$T2), type($ASSOC, x1122ljt3i-2bd), > > $ ROLE1 /= $ROLE2, $T1/=$T2 ? > > ("x1122ljt3i-2bd" is the association type id) > > The problem may come from the last line of this query -- ROLE1 /= > ROLE2, $T1 /= $T2 ? the "/=" predicate. > Because whenI tried to run the query without the last line., it got some > resultsets. > > Does anyone know how to overcome this problem? Or is that becuase TMNav > tolog query does not support this kind of predicates? > > I appreciate... > > > Dandan > > > > |