| 1 |
<!-- $Id: Query_Builder.html,v 1.4 1999/04/29 16:17:02 fw Exp $ --> |
| 2 |
<head> |
| 3 |
<title>Query_Builder</title> |
| 4 |
</head> |
| 5 |
|
| 6 |
<BODY BGCOLOR=#ffffff> |
| 7 |
|
| 8 |
<h2>Query_Builder</h2> |
| 9 |
|
| 10 |
The interface in this window is a little complex but offers great |
| 11 |
power. It is more difficult to use than <A |
| 12 |
HREF="Query_By_Example.html">Query By Example</a> but simpler than the |
| 13 |
<A HREF="Query.html">Query Commands window</a>. Help is also available |
| 14 |
for the <A HREF="Query_syntax.html">query language</a> itself. Query |
| 15 |
answers are always displayed in <A HREF="KeySet.html">KeySet |
| 16 |
windows</a>, which have special properties.<p> |
| 17 |
|
| 18 |
You can fill in the text entry boxes or use the pop-up menus |
| 19 |
associated with each box. Also, if you pick the black triangles, then |
| 20 |
you will get a BLOCKING, scrollable selector to choose from a long |
| 21 |
list of choices. BLOCKING means you must dismiss this window with the |
| 22 |
Cancel button or menu item, or by double-clicking to select a choice.<p> |
| 23 |
|
| 24 |
The first text entry box (next to "Find and select") specifies what |
| 25 |
class you are seaching WITHIN.<p> |
| 26 |
|
| 27 |
The condition (next to "where") is specified as follows, from left to |
| 28 |
right: the leftmost box is the attribute (item name, tags) that you |
| 29 |
are matching to. The second box is the operator (less than, equals, |
| 30 |
text). The third box is the value you are matching to the attribute. |
| 31 |
The rightmost box is a conjunction that allows you to specify |
| 32 |
additional conditions. These will appear below the original "where" |
| 33 |
line.<p> |
| 34 |
|
| 35 |
|
| 36 |
<h3>User Entry Box Details</h3> |
| 37 |
|
| 38 |
<ul> |
| 39 |
|
| 40 |
<li><strong>Class Box ("Find and select")</strong>: This box first |
| 41 |
appears with the default "ANY CLASS" showing. Use this box to select |
| 42 |
the class you are searching within. This entry determines the list of |
| 43 |
possible attributes in the Attributes ("where") box.<p> |
| 44 |
|
| 45 |
<li><strong>Pre-Class Box</strong>: This box is hidden by default and |
| 46 |
appears next to the word "from" if you select the "Show More" option |
| 47 |
on the menu. Use this box for Secondary/indirect queries. This allows |
| 48 |
you to construct queries of the form "From the Clone class, find and |
| 49 |
select the related Loci, where the Genes meet the conditions |
| 50 |
such-and-such".<p> |
| 51 |
|
| 52 |
<li><strong>Attribute Box ("where")</strong>: Use this box to specify |
| 53 |
the attributes within a class that you wish to test for. On both the |
| 54 |
Selector and the Popup menu for the Attribute Box, you may see the |
| 55 |
choice "USE TAG CHOOSER" which calls up a model-display for the |
| 56 |
current class. Double-click on a tag label to choose a tag within this |
| 57 |
context. |
| 58 |
|
| 59 |
<li><strong>Condition Box (second box on line beginning with |
| 60 |
"where")</strong>: This box presents a list of operators which will be |
| 61 |
applied to the attribute: |
| 62 |
|
| 63 |
<ul> |
| 64 |
|
| 65 |
<li>Some operators (exists, does not exist) do not take any arguments. |
| 66 |
In the top set of choices on the pop-up menu, "contains", "begins |
| 67 |
with", and "ends with" merely combine wildcards (such as "?" and "*") |
| 68 |
with the equality operator. |
| 69 |
|
| 70 |
<li>Equality and inequality can be tested for using the middle set of |
| 71 |
choices on the pop-up menu. |
| 72 |
|
| 73 |
<li>The bottom set of choices allows you to query on the number of |
| 74 |
instances of data (a REPEAT list) associated with the current |
| 75 |
Attribute in the data objects.<p> |
| 76 |
|
| 77 |
</ul> |
| 78 |
|
| 79 |
<li><strong>Value Box (third box from right on "where" line)</strong>: |
| 80 |
Later, this may supply more hints as metadata becomes available. |
| 81 |
Currently, enter the arguments for the comparisons used in the |
| 82 |
Conditions box here. "?" (single character) and "*" (0 or more |
| 83 |
characters) are valid wildcards. Quoted strings are accepted.<p> |
| 84 |
|
| 85 |
<li><strong>Conjunction Box: (last box, far right, on "where" |
| 86 |
line)</strong>: Use this box to form conjunctive query conditions, to |
| 87 |
use the "#" (and-submodel) function, and to demark the end of a query |
| 88 |
with the special word "END".<p> |
| 89 |
|
| 90 |
</ul> |
| 91 |
|
| 92 |
<h3>Buttons</h3> |
| 93 |
|
| 94 |
Most of the button and main menu commands are the same as the <A |
| 95 |
HREF="Query.html">Query Commands window</a>.<p> |
| 96 |
|
| 97 |
<ul> |
| 98 |
|
| 99 |
<li><strong>Quit</strong>: Quits this window with an option to save |
| 100 |
your current file of commands, provided you have given a file name. |
| 101 |
|
| 102 |
<li><strong>Help</strong>: Invokes this section of the help file. |
| 103 |
|
| 104 |
<li><strong>Print</strong>: Print this window to a postscript file and |
| 105 |
send to printer (ACEDB_LPR). |
| 106 |
|
| 107 |
<li><strong>Clear</strong>: Clears all the user-entry boxes on the |
| 108 |
window. |
| 109 |
|
| 110 |
<li><strong>New KeySet</strong>: Calls up a new, blank <A |
| 111 |
HREF="KeySet.html">KeySet window</a> ("Query Builder Answer"). |
| 112 |
|
| 113 |
<li><strong>By Example</strong>: Call up the <A |
| 114 |
HREF="Query_By_Example.html">Query-by-example window</a>. |
| 115 |
|
| 116 |
<li><strong>Command Edit</strong>: Call up the <A |
| 117 |
HREF="Query.html">Query Commands window</a>. |
| 118 |
|
| 119 |
<li><strong>Search Locally</strong>: Execute the current query and put |
| 120 |
the found and selected objects in a <A HREF="KeySet.html">KeySet |
| 121 |
window</a> ("Query Builder Answer"). |
| 122 |
|
| 123 |
<li><strong>Undo</strong>: Cancels the last command and redisplays the |
| 124 |
answer (if any) to the previous query in the <A |
| 125 |
HREF="KeySet.html">KeySet window</a> ("Query Builder Answer"). |
| 126 |
|
| 127 |
</ul> |
| 128 |
|
| 129 |
<h3>Menu items:</h3> |
| 130 |
|
| 131 |
In addition to the commands above, the Menu have the following |
| 132 |
options:<p> |
| 133 |
|
| 134 |
<ul> |
| 135 |
|
| 136 |
<li><strong>Print Window</strong>: Same as Print button. Prepares a |
| 137 |
Post Script file in ./PS which you can then print on your local laser |
| 138 |
printer (specified by ACEDB_LPR). |
| 139 |
|
| 140 |
<li><strong>Refresh</strong>: Redraws the window. |
| 141 |
|
| 142 |
<li><strong>Clear Entries</strong>: Same as Clear Button: Clears all |
| 143 |
the user-entry boxes on the window. |
| 144 |
|
| 145 |
<li><strong>Show More [Less]</strong>: For more advanced users, this |
| 146 |
option will display (hide in case of Show Less) a box allowing the |
| 147 |
user to choose a different class from which to begin a query. ALL |
| 148 |
DATA is default. Otherwise, a query can begin from a class or |
| 149 |
subclass. A subclass of a class consists of objects with a particular |
| 150 |
attribute. The subclass is named as a distinct class and may appear |
| 151 |
on the main menu. |
| 152 |
|
| 153 |
<li><strong>Query By Example</strong>: Same as By Example Button. |
| 154 |
Call up the <A HREF="Query_By_Example.html">Query-by-example |
| 155 |
window</a>. |
| 156 |
|
| 157 |
<li><strong>Query Command Edit</strong>: Same as Command Edit Button. |
| 158 |
Call up the <A HREF="Query.html">Query Commands window</a>. |
| 159 |
|
| 160 |
<li><strong>Search Locally</strong>: Same as Search Locally Button. |
| 161 |
Execute the current query and put the found and selected objects in |
| 162 |
the Keyset (selection list). |
| 163 |
|
| 164 |
<li><strong>Undo Search</strong>: Same as Undo Button: Cancels the |
| 165 |
last command and redisplays the previous Keyset (selection list). |
| 166 |
|
| 167 |
</ul> |
| 168 |
|
| 169 |
|
| 170 |
<h3>Other details</h3> |
| 171 |
|
| 172 |
<strong>Query Builder (User Entry Boxes)</strong>: |
| 173 |
You activate an entry box by picking it (click with the left |
| 174 |
mouse button). It turns yellow (dark grey on monochrome) |
| 175 |
and all keyboard-input will then enter into that box.<p> |
| 176 |
|
| 177 |
Use the right mouse button to bring up pop-up menus containing |
| 178 |
appropriate choices for each user-entry box.<p> |
| 179 |
|
| 180 |
Not all functionality of the query language is implemented in the |
| 181 |
query builder.<p> |
| 182 |
|
| 183 |
Adjacent to some boxes is a triangle that can be clicked on with the |
| 184 |
mouse. This will activate a selector menu with a scroll bar. This is |
| 185 |
very useful in cases where the popup menu is too long fit on the |
| 186 |
screen. "Cancel" must be pressed (button) or chosen (popup menu on |
| 187 |
selector window) or a selection must be made (double-click on an |
| 188 |
entry) to dismiss.<p> |
| 189 |
|
| 190 |
<strong>Scope</strong>: The query commands modify the active Keyset |
| 191 |
(selection list). To select another key set, pick it once or use the |
| 192 |
New KeySet option on the menu.<p> |
| 193 |
|
| 194 |
<strong>Query Commands Display</strong>: If the <A |
| 195 |
HREF="Query.html">Query Commands window</a> is open, the syntax formed |
| 196 |
by the Query Builder will be shown on a command edit line there.<p> |
| 197 |
|
| 198 |
to <a href="TOC.html">Table of Contents</a><p> |
| 199 |
</pre> |
| 200 |
|
| 201 |
last edited: July 1994<p> |
| 202 |
|
| 203 |
</BODY> |