Instances (query directive)
From WandoraWiki
		(Difference between revisions)
		
		
| Line 6: | Line 6: | ||
Instances()  | Instances()  | ||
| + | |||
| + | == Examples ==  | ||
| + | |||
| + | ''Instances'' directive simply alone returns all instances of the input topic.  | ||
| + | |||
| + |  importPackage(org.wandora.query2);  | ||
| + |  new Instances()  | ||
| + | |||
| + | Following example gets all instances of the content type topic.  | ||
| + | |||
| + |  importPackage(org.wandora.query2);  | ||
| + |  new Instances().from("http://www.wandora.org/core/contenttype")  | ||
| + | |||
| + | Following example gets all instances of all types of the input topic. In a sense, the sister topics of the input topic.  | ||
| + | |||
| + |  importPackage(org.wandora.query2);  | ||
| + |  new Instances().from(new Types())  | ||
[[Category:Query directives]]  | [[Category:Query directives]]  | ||
Latest revision as of 11:21, 21 August 2009
[edit] Description
Gets all instances of the active column value of input.
[edit] Constructor
Instances()
[edit] Examples
Instances directive simply alone returns all instances of the input topic.
importPackage(org.wandora.query2); new Instances()
Following example gets all instances of the content type topic.
importPackage(org.wandora.query2);
new Instances().from("http://www.wandora.org/core/contenttype")
Following example gets all instances of all types of the input topic. In a sense, the sister topics of the input topic.
importPackage(org.wandora.query2); new Instances().from(new Types())