Not (query directive)
From WandoraWiki
(Difference between revisions)
Line 6: | Line 6: | ||
Not(WhereDirective directive) | Not(WhereDirective directive) | ||
+ | |||
+ | == Examples == | ||
+ | |||
+ | importPackage(org.wandora.query2); | ||
+ | importPackage(org.wandora.topicmap); | ||
+ | new Instances().where( | ||
+ | new Not(new IsOfType("http://www.wandora.org/core/associationtype")) | ||
+ | ) | ||
+ | |||
+ | This selects all instances of the input topic which are not instances of association type. | ||
[[Category:Query directives]] | [[Category:Query directives]] |
Revision as of 10:47, 21 August 2009
Description
Returns rows which do not satisfy the inner filtering directive.
Constructor
Not(WhereDirective directive)
Examples
importPackage(org.wandora.query2); importPackage(org.wandora.topicmap); new Instances().where(
new Not(new IsOfType("http://www.wandora.org/core/associationtype"))
)
This selects all instances of the input topic which are not instances of association type.