From: Bret C. <bre...@ya...> - 2004-08-19 18:52:55
|
Kal, I would have been tempted to think what I've just found is a bug, but my past experiences have shown that the only bugs to be encountered are - the flu that I can't seem to permanently fight off - me - bugging you about something that either turns out not to be a problem or that has an easy solution in retrospect. ;> Nevertheless, if you could take a look at the attached, it would be appreciated. Bret --- Kal Ahmed <ka...@te...> wrote: > Hi Bret, > > For the query: > > select $ASSOC, $ROLE1, $ROLE2 from > association-role($ASSOC, $ROLE1), > role-player($ROLE1, AT1), > association-role($ASSOC, $ROLE2), > role-player($ROLE2, AT2)? > > I tried this with a simple topic map and it parsed > correctly. Perhaps > there is something in the topic map. Can you make a > minimal case topic > map that fails on this query - if you can let me > have such a topic map > for my testing, that would be a great help. > > For the query: > > select $ASSOC, $ROLE1, $ROLE2 from > association-role($ASSOC, $ROLE1), > role-player($ROLE1, AT1), > association-role($ASSOC, $ROLE2), > role-player($ROLE2, AT2), > type($ASSOC, activity_dependency) | > type($ASSOC, activity_responsibility)? > > The OR part needs to be wrapped in curly braces, so > rewrite it as: > > select $ASSOC, $ROLE1, $ROLE2 from > association-role($ASSOC, $ROLE1), > role-player($ROLE1, AT1), > association-role($ASSOC, $ROLE2), > role-player($ROLE2, AT2), > { type($ASSOC, activity_dependency) | > type($ASSOC, activity_responsibility) } ? > > and it should parse correctly. > > Cheers, > > Kal > > On Mon, 2004-08-16 at 21:35, Bret Cohen wrote: > > Kal, > > > > While you were on vacation, I did some testing of > > Tolog queries in TMNav & TM4J & sent the results > to > > tm4j-users. For some of my results Christoph > suggested > > Tolog may have a bug which I should report, so I'm > > resending the part of my results that relate to > this. > > > > Bret > > -- > Kal Ahmed <ka...@te...> > techquila > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |