Unique (query directive)

From WandoraWiki
Jump to: navigation, search

Description

Removes duplicate rows from the result of inner query.

Constructor

Unique(Directive directive)

Examples

Following example gets the union of instances and subclasses but removes duplicate rows.

importPackage(org.wandora.query2);
importPackage(org.wandora.topicmap);
new Unique(
  new Union(
    new Instances(),
    new Players(XTMPSI.SUPERCLASS_SUBCLASS,XTMPSI.SUBCLASS)
    .whereInputIs(XTMPSI.SUPERCLASS).as("#DEFAULT")
  )
)
Personal tools