Instances (query directive)

From WandoraWiki
Jump to: navigation, search

Description

Gets all instances of the active column value of input.

Constructor

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())
Personal tools