SubjectIdentifiers (query directive)
From WandoraWiki
(Difference between revisions)
Latest revision as of 12:44, 21 August 2009
[edit] Description
Returns all subject identifiers of the input topic.
[edit] Constructor
SubjectIdentifiers()
[edit] 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()) )