| 1 |
<!-- $Id: Table_Maker.html,v 1.6 1999/04/29 16:17:07 fw Exp $ --> |
| 2 |
<head> |
| 3 |
<title>Table_Maker</title> |
| 4 |
</head> |
| 5 |
|
| 6 |
<BODY BGCOLOR=#ffffff> |
| 7 |
|
| 8 |
<h2>TableMaker: Definition Window</h2> |
| 9 |
|
| 10 |
The TableMaker is used to construct relational tables of object names |
| 11 |
and field values and underlies the construction of <A |
| 12 |
HREF="Multi_Map.html">MultiMaps</a> (see below). It is closely related |
| 13 |
to the other query tools: <A HREF="Query.html">Query Commands</a>, <A |
| 14 |
HREF="Query_By_Example.html">Query by Example</a>, and the <A |
| 15 |
HREF="Query_Builder.html">Query Builder</a>.<p> |
| 16 |
|
| 17 |
The TableMaker differs from other query tools in that you can use it |
| 18 |
to display tags and values from within an object. The other tools |
| 19 |
return only the names of objects that satisfy the query. Any |
| 20 |
object names that appear will be clickable.<p> |
| 21 |
|
| 22 |
TableMaker uses three windows: the definition window, which allows you |
| 23 |
to define your table; the data window, which displays the table once |
| 24 |
it is calculated; and the MultiMap window, which is created by |
| 25 |
pressing the map button in the data window. This help document covers |
| 26 |
the definition window only. Separate help is available for the <A |
| 27 |
HREF="Table_Maker_Data.html">data window</a> and <A |
| 28 |
HREF="Multi_Map.html">MultiMap</a>.<p> |
| 29 |
|
| 30 |
Once a table is constructed, its definition can be stored in the |
| 31 |
directory ./wquery as **.def. Although you can edit the def file by |
| 32 |
hand, we recommend that you edit it via the interface.<p> |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
<h3>Menu items and Buttons in the Definition Window</h3> |
| 37 |
|
| 38 |
<ul> |
| 39 |
|
| 40 |
<li><strong>Quit</strong>: destroys the window. |
| 41 |
|
| 42 |
<li><strong>Help</strong>: displays this help page. |
| 43 |
|
| 44 |
<li><strong>Print</strong>: prepares a Post Script file in $ACEDB/PS |
| 45 |
which you can print to your local laser printer. |
| 46 |
|
| 47 |
<li><strong>Save</strong>: Saves the present set of definitions into |
| 48 |
the file Directory/FileName.qry if you have write access to Directory. |
| 49 |
The ending .def is added automatically. |
| 50 |
|
| 51 |
<li><strong>Load</strong>: Loads the file Directory/FileName.def if it |
| 52 |
exists. |
| 53 |
|
| 54 |
<li><strong>Search Whole Class</strong>: If you have just changed the |
| 55 |
definitions, initiates a search of the whole database according to |
| 56 |
your definitions and display the results. Else redisplays the same |
| 57 |
data. In particular, modifying the width of a column or its visible/hidden |
| 58 |
status does not initiate a new search. |
| 59 |
|
| 60 |
<li><strong>Search Active KeySet</strong>: Initiates a search of the |
| 61 |
objects enumerated in the active KeySet according to your definitions |
| 62 |
and displays the results. Using KeySets often speeds up information |
| 63 |
retrieval considerably--see <A HREF="KeySet.html">help on KeySets</a> |
| 64 |
for more details. |
| 65 |
|
| 66 |
<li><strong>Create definition</strong>: Creates space for a new |
| 67 |
column definition. See below. |
| 68 |
|
| 69 |
<li><strong>Suppress definition</strong>: Removes the active |
| 70 |
definition. You activate a definition by picking one of its boxes, for |
| 71 |
example the hidden/visible button. BUG: It may happen that the |
| 72 |
From/Right_of value is not correctly modified in the columns |
| 73 |
following the one you suppressed, please verify. |
| 74 |
|
| 75 |
</ul> |
| 76 |
|
| 77 |
<h3>Definition Window Features and Controls</h3> |
| 78 |
|
| 79 |
<ul> |
| 80 |
|
| 81 |
<li><strong>Number (left of "Title")</strong>: column number. Used |
| 82 |
in the "From/Right_of" field of the other definitions (explained |
| 83 |
below). |
| 84 |
|
| 85 |
<li><strong>Title box</strong>: Edit after picking it with left |
| 86 |
mouse button. Fill this in if you want a label to appear above the |
| 87 |
column in the data window. Press enter to validate. |
| 88 |
|
| 89 |
<li><strong>Width box</strong>: Edit after picking it with the left |
| 90 |
mouse button. Indicates the width of the column of data when |
| 91 |
displayed. Press return to fix the value. You may have to adjust this |
| 92 |
value to display particularly wide columns. |
| 93 |
|
| 94 |
<li><strong>Visible/Hidden button</strong>: Toggle with the left mouse |
| 95 |
button by picking or directly with the right mouse button and a |
| 96 |
pull-down menu. Hiding a column's definition means the corresponding |
| 97 |
data will not show in the data window. This will reduce the number of |
| 98 |
columns of the data display, but most probably, also the number of |
| 99 |
lines. For example, if you show a paper in column 1, and its authors |
| 100 |
in column 2, you will get as many lines as authors. But by hiding |
| 101 |
author, you keep only one line. |
| 102 |
|
| 103 |
<li><strong>Optional/Mandatory button</strong>: Toggle with the left |
| 104 |
mouse button by picking or directly with the right mouse button and a |
| 105 |
pull-down menu. If a column's definition is mandatory, only the lines |
| 106 |
satisfying it will be kept. This restriction applies even if the |
| 107 |
corresponding definition is hidden. |
| 108 |
|
| 109 |
<li><strong>Class field</strong>: In column 1, Class is a pull-down |
| 110 |
menu which can be activated with the left or the right mouse button. |
| 111 |
It lists all the visible classes, but you should only select a |
| 112 |
B-class (i.e., one that can be displayed in a text window). When you |
| 113 |
then press the Search Whole Class button, only the corresponding |
| 114 |
class will be explored. For subsequent columns, this box is usually |
| 115 |
filled in for you, except if you want to see the Next_Tag (see |
| 116 |
below). |
| 117 |
|
| 118 |
<li><strong>From</strong>/Right_of button: Tells the system from |
| 119 |
where it should recover the data for a particular column. By |
| 120 |
default, one is extracting the values from the objects listed in |
| 121 |
column one. But you may want to navigate further (join in |
| 122 |
relational language). For example: Select class Paper in column 1. |
| 123 |
In column 2 select: From 1, Author. Then in column 3: From 2: |
| 124 |
e_mail. This will give the e_mail of the Authors of the Papers of |
| 125 |
column 1. |
| 126 |
|
| 127 |
<li>From/<strong>Right_of button</strong>: Right_of 3 tells the system to look |
| 128 |
for a field right of the entry listed in column 3, extracted from |
| 129 |
the same object as column 3. For example. I can expand the above |
| 130 |
table by a column 4: From 1: Page-Int (first page of paper), then |
| 131 |
Right_of 4: Int to get the last page (assuming a model "Page Int Int") |
| 132 |
|
| 133 |
|
| 134 |
<li><strong>Tag button</strong>: Clicking brings up the <A |
| 135 |
HREF="Tag-Chooser.html">tag chooser window</a> showing the model of |
| 136 |
the class for the column you are defining. Double pick an entry |
| 137 |
there. Your active definition will change to reflect your choice. The |
| 138 |
text box adjacent to the Tag button will show a query, and the Class |
| 139 |
box will show the kind of element you chose. |
| 140 |
|
| 141 |
<blockquote> |
| 142 |
|
| 143 |
Note: there are six basic kinds of elements to pick from in the tag |
| 144 |
chooser. <strong>Integers</strong>, <strong>floats</strong>, |
| 145 |
<strong>text</strong>, and <strong>dates</strong> are all |
| 146 |
values. Links to other objects are <strong>classes</strong>. Finally, |
| 147 |
there are <strong>tags</strong>. Your choice determines what the |
| 148 |
TableMaker data window will display for the object being defined in |
| 149 |
the corresponding column:<p> |
| 150 |
|
| 151 |
If you pick a <var>value</var>, the TableMaker data window will |
| 152 |
display that value, if field is filled in.<p> |
| 153 |
|
| 154 |
If you pick a <var>class</var>, the data window will display the name |
| 155 |
of that object, if field is filled in.<p> |
| 156 |
|
| 157 |
If you pick a <var>tag</var>, the data window will display that tag, |
| 158 |
if it is used.<p> |
| 159 |
|
| 160 |
Ordinarily you accept what the TableMaker fills in for the Tag text |
| 161 |
entry box and the Class box (unless you are familiar with the details |
| 162 |
of <A HREF="Query_syntax.html">query syntax</a>). However, if you |
| 163 |
picked a tag that is immediately to the left of a group of tags, you |
| 164 |
may want to pull down the Class box menu and select Next_Tag. This |
| 165 |
will direct the TableMaker to retrieve the adjacent tag or tags (if |
| 166 |
used) and display them in the table.<p> |
| 167 |
|
| 168 |
</blockquote> |
| 169 |
|
| 170 |
<li><strong>Condition field</strong>: is applied to objects for a |
| 171 |
particular column. For example, the condition A* for Locus objects |
| 172 |
would pass only loci whose names started with the character A. |
| 173 |
Inside the condition box, %number will refer to the value of a |
| 174 |
previous column. So the condition %4 > %3 will ensure that the |
| 175 |
number listed in column 4 is larger than the one in column 3. |
| 176 |
|
| 177 |
%%digit refer to external parameters substituted when reading the |
| 178 |
definition file. This is useful in non-graphic mode since it allows |
| 179 |
you to call parameterisable tables. |
| 180 |
|
| 181 |
</ul> |
| 182 |
|
| 183 |
The query system is applied twice in every definition: first, for the |
| 184 |
tag field, to select the piece of data you want; second, for the |
| 185 |
condition field, applied to the picked object or value.<p> |
| 186 |
|
| 187 |
to <a href="TOC.html">Table of Contents</a><p> |
| 188 |
|
| 189 |
to help for the <A HREF="Table_Maker_Data.html">data window</a> and <A |
| 190 |
HREF="Multi_Map.html">MultiMap</a>.<p> |
| 191 |
|
| 192 |
last edited: March 95<p> |
| 193 |
|
| 194 |
</BODY> |