IsOfType (query directive)

From WandoraWiki
Jump to: navigation, search

Description

Includes rows where the active column value is an instance of the specified type.

Constructor

IsOfType(TopicOperand si) - Checks against a topic with the specified subject identifier

Examples

importPackage(org.wandora.query2);
importPackage(org.wandora.topicmap);
new Instances().where(
  new IsOfType("http://www.wandora.org/core/associationtype")
)

This selects all instances of the input topic that are also instances of association type.

Personal tools