Not (query directive)
From WandoraWiki
(Difference between revisions)
(→Examples) |
|||
Line 9: | Line 9: | ||
== Examples == | == Examples == | ||
− | importPackage(org.wandora.query2); | + | importPackage(org.wandora.query2); |
− | importPackage(org.wandora.topicmap); | + | importPackage(org.wandora.topicmap); |
− | new Instances().where( | + | 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. | This selects all instances of the input topic which are not instances of association type. | ||
[[Category:Query directives]] | [[Category:Query directives]] |
Latest revision as of 10:47, 21 August 2009
[edit] Description
Returns rows which do not satisfy the inner filtering directive.
[edit] Constructor
Not(WhereDirective directive)
[edit] 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.