SubjectIdentifiers (query directive)

From WandoraWiki
Revision as of 12:44, 21 August 2009 by Olli (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Returns all subject identifiers of the input topic.

Constructor

SubjectIdentifiers()

Examples

You can use SubjectIdentifiers directive alone to simply get the subject identifiers of the input topic

importPackage(org.wandora.query2);
new SubjectIdentifiers()

Following example gets the base name of the input topic or the first subject identifier if it doesn't have a base name.

importPackage(org.wandora.query2);
new If(
  new BaseName().where("#DEFAULT","!=",null),
  new BaseName(),
  new First(new SubjectIdentifiers())
)
Personal tools