Or (query directive)

From WandoraWiki
Jump to: navigation, search

Description

Includes rows which satisfy at least one of inner filtering directive.

Constructor

Or(Directive d1,Directive d2,...)

Examples

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

This gets all instances of the input topic that are also instances of either association type or content type.

Personal tools