You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that's wrong
(a) //tm:subject / tm:subject [. isa tm:name]
(b) //tm:subject / tm:name
(a) and (b) should deliver the same results. (b) works with TMQL4J, (a) doesn't.
"tm:subject" is a kind of wildcard since everything is an instance of
tm:subject, so (a) should effectively do something like this:
for topic in topicmap.getTopics():
for child in topic.getChildren():
if (child instanceof tm:subject) and (child instanceof tm:name):
yield child
The query optimizer may remove the "child instanceof tm:subject" check since
everything is an instance of tm:subject, though.
Original issue reported on code.google.com by
[email protected]
on 2 May 2011 at 12:36The text was updated successfully, but these errors were encountered: