| 1 |
<!-- $Id: Query_By_Example.html,v 1.4 1999/04/29 16:17:03 fw Exp $ --> |
| 2 |
<head> |
| 3 |
<title>Query_By_Example</title> |
| 4 |
</head> |
| 5 |
|
| 6 |
<BODY BGCOLOR=#ffffff> |
| 7 |
|
| 8 |
|
| 9 |
<h2>Query_By_Example</h2> |
| 10 |
|
| 11 |
Query By Example is the simplest query interface available in |
| 12 |
ACEDB. See help for the <A HREF="Query_Builder.html">Query |
| 13 |
Builder</a>, the <A HREF="Query.html">Query Commands window</a>, and |
| 14 |
the <A HREF="Table_Maker.html">TableMaker</a> to learn more about |
| 15 |
other search tools. Help is also available for the <A |
| 16 |
HREF="Query_syntax.html"> query language</a> itself but you can use |
| 17 |
Query By Example without understanding it.<p> |
| 18 |
|
| 19 |
Based upon a fill-in-the-blank and toggle-button style of entry, Query |
| 20 |
By Example allows the user to fill in values in a class model-display. |
| 21 |
These values are then used in a conjunctive query command to retrieve |
| 22 |
data objects from the database.<p> |
| 23 |
|
| 24 |
This window can be used in conjunction with or independently of the <A |
| 25 |
HREF="Query.html">Query Commands window</a>. Query results appear in a |
| 26 |
<A HREF="KeySet.html">KeySet window</a>.<p> |
| 27 |
|
| 28 |
to execute a query formed in this window, use the <strong>Search |
| 29 |
Locally</strong> button. |
| 30 |
|
| 31 |
<h3>Buttons (above horizontal line)</h3> |
| 32 |
|
| 33 |
<ul> |
| 34 |
|
| 35 |
<li><strong>Quit</strong>: Exits the window. |
| 36 |
|
| 37 |
<li><strong>Help</strong>: Invokes this section of the help file. |
| 38 |
|
| 39 |
<li><strong>Clear</strong>: Clears the entry boxes and redraws the |
| 40 |
window from scratch. |
| 41 |
|
| 42 |
<li><strong>New KeySet</strong>: Calls up a new, blank keyset window. |
| 43 |
|
| 44 |
<li><strong>Command Edit</strong>: Call up the Query Commands window. |
| 45 |
|
| 46 |
<li><strong>Search Locally</strong>: Execute the current query and put |
| 47 |
the found and selected objects in the Key Set. |
| 48 |
|
| 49 |
<li><strong>Undo</strong>: Cancels the last command and redisplays the |
| 50 |
previous Keyset (selection list). |
| 51 |
|
| 52 |
</ul> |
| 53 |
|
| 54 |
<h3>Boxes and Controls (above horizontal line)</h3> |
| 55 |
|
| 56 |
<ul> |
| 57 |
|
| 58 |
<li><strong>"From" Selector</strong>: Actually a menu (activate by |
| 59 |
right mouse button), this allows the user to use the current keyset as |
| 60 |
the base for a query or to use the current class shown. Simple |
| 61 |
clicking of the left mouse button will "step" through the menu |
| 62 |
selections. |
| 63 |
|
| 64 |
<li><strong>"Class" Selector</strong>: Actually a menu (activate by |
| 65 |
right mouse button), this allows the class being currently shown to be |
| 66 |
changed to any class in the database. Simple clicking of the left |
| 67 |
mouse button will "step" through the menu selections. As your do so |
| 68 |
the items below the horizontal line will change, reflecting the |
| 69 |
structure of each class you visit. |
| 70 |
|
| 71 |
<li><strong>ITEM NAME</strong>: This is a text entru box which can be |
| 72 |
filled in to query for particular names of items within the current |
| 73 |
class. |
| 74 |
|
| 75 |
</ul> |
| 76 |
|
| 77 |
<h3>Menu items:</h3> |
| 78 |
|
| 79 |
In addition the the above functions, the Menu has the following |
| 80 |
options:<p> |
| 81 |
|
| 82 |
<ul> |
| 83 |
|
| 84 |
<li><strong>Print</strong>: prepares a Post Script file in |
| 85 |
./PS which you can then print on your local laser printer |
| 86 |
(specified by ACEDB_LPR). |
| 87 |
|
| 88 |
<li><strong>Refresh</strong>: Redraws the window. |
| 89 |
|
| 90 |
<li><strong>Query Builder</strong>: Same as the Builder Button. Call |
| 91 |
up the Query Builder window. |
| 92 |
|
| 93 |
<li><strong>Query Command Edit</strong>: Same as Command Edit Button. |
| 94 |
Call up the Query Commands window. |
| 95 |
|
| 96 |
<li><strong>AND, OR </strong>: The various tags and fields are |
| 97 |
connected via the conjunctions AND (&) and OR (|) as selected on |
| 98 |
the menu. Use the Query Builder window to view the composed query |
| 99 |
command. |
| 100 |
|
| 101 |
<li><strong>Show Full Description</strong>: Calls up the metadata |
| 102 |
associated with the last picked (left mouse button) label or entry-box |
| 103 |
on the display. |
| 104 |
|
| 105 |
<li><strong>Show Long Description</strong>: Calls up the ?LongText |
| 106 |
metadata associated with the last picked (left mouse button) label or |
| 107 |
entry-box on the display. |
| 108 |
|
| 109 |
<li><strong>Search Locally</strong>: Same as Search Locally Button. |
| 110 |
Execute the current query and put the found and selected objects in |
| 111 |
the Keyset (selection list). |
| 112 |
|
| 113 |
<li><strong>Undo Search</strong>: Same as Undo Button: Cancels the |
| 114 |
last command and redisplays the previous Keyset (selection list). |
| 115 |
|
| 116 |
</ul> |
| 117 |
|
| 118 |
|
| 119 |
<h3>Below the Horizontal Line</h3> |
| 120 |
|
| 121 |
What you see below the horizontal line depends on which class you are |
| 122 |
querying. All the tags and fields in a class will be represented.<p> |
| 123 |
|
| 124 |
<strong>Fields</strong> are represented by the green text entry boxes. |
| 125 |
Activate an entry box by picking it (click with the left mouse |
| 126 |
button). It turns yellow (dark grey on monochrome) and all |
| 127 |
keyboard-input will then enter into that box. Simply pick and edit a |
| 128 |
box for it to be folded into the current query command. |
| 129 |
Sub-conditions, such as "< 100.1", "> fred", and "!= gene21" are |
| 130 |
allowed in these lines. For the numeric entries, the user will |
| 131 |
receive a warning that the syntax is not numeric, which can be ignored |
| 132 |
at the user's choice.<p> |
| 133 |
|
| 134 |
When you press carriage-return (CR), the entry is processed for |
| 135 |
correctness and, if the <A HREF="Query.html">Query Commands window</a> |
| 136 |
is up, you will see a formed query on the current query command |
| 137 |
line.<p> |
| 138 |
|
| 139 |
Click the Search Locally button to search. Each time you click here |
| 140 |
you will execute whatever query you have built.<p> |
| 141 |
|
| 142 |
<strong>Tags</strong> are the labels adjacent to the fields. You can |
| 143 |
search for the presence of a tag (rather than the contents of its |
| 144 |
field) in a boolean exists/does_not_exist fashion. Clicking once on |
| 145 |
the tag specifies it must be present. It will be highlighted. Clicking |
| 146 |
again deselects the tag.<p> |
| 147 |
|
| 148 |
<h3>Other Information</h3> |
| 149 |
|
| 150 |
<strong>Scope</strong>: The query commands will modify the active |
| 151 |
Keyset (selection list). To select another key set, pick it once or |
| 152 |
use the New KeySet command.<p> |
| 153 |
|
| 154 |
<strong>Query Commands Display</strong>: If the Query Commands window |
| 155 |
is open, the syntax formed by the Query-By-Example window will be |
| 156 |
shown on a command edit line there.<p> |
| 157 |
|
| 158 |
<strong>Note to curators</strong>: If you Read Models and update the |
| 159 |
models, you may have to restart the ACEDB program for the correct QBE |
| 160 |
display to appear.<p> |
| 161 |
|
| 162 |
to <a href="TOC.html">Table of Contents</a><p> |
| 163 |
|
| 164 |
last edited: July 1994<p> |
| 165 |
|
| 166 |
</BODY> |