4.1.2. Queries

With the query builder you can create complex searches across multiple lexica. To create a query, go to the Search tab in the top frame of the Workspace module. In the Queries tab, in the left frame you will find a list of the queries available in the Workspace. Initially this list is empty. Click on the icon to create a new query. In the pop up window, add a name for the query and if you want also add a description. Subsequently, define the lexicon for the query and the search condition(s). Once you save it, your new query will appear in the query list. Select it and click on the magnifying glass below the left frame to run it. The results of the query will be shown in a new tab.

An example of a query

Figure 4.2. An example of a query


You can expand your query by adding more constraints to it. If you want to define a second constraint of your query, decide first what its relation is going to be with the first query constraint: either the AND relation or the OR relation.

In case you want the AND relation: select the data category node of the query and click the icon. Specify the data category and a search condition. The second query constraints will now be sub-ordinate to the first one (in the query tree, the second constraint will be the child of the first one since it will select the smaller parts of the results set returned by its parent constraint).

In case you want the OR relation: select the lexicon node of the query, and click the icon. Specify the data category and a search condition. The new condition will now be co-ordinate to the first one (both constraints will be siblings to each other in the query tree).

The AND and OR relations in the tree structure

Figure 4.3. The AND and OR relations in the tree structure


By adding more lexica to your query, uou can also search in multiple lexica at the same time.

Save your created query either from the File> Save menu or by moving away from it in the query list.

To delete a whole query or to remove one of its elements, select it and click on the icon below the selected element frame.