AllTopics (query directive)
Returns all topics of the topic map.
Note that retrieving all topics of a large topic map can be very costly operation in terms of time. Thus whenever possible, try to avoid using this directive. If you for example want all topics that are instances of some other topic, instead of using something like new AllTopics().where(new IsOfType(a)) use new Instances().from(a).
importPackage(org.wandora.query2); new BaseName().from(new AllTopics().as("#topic")) .where("#DEFAULT","=",null)
This finds all topics in the topic map which do not have a base name.