![]() |
| ||||||||||
Creating Complex Queries |
|
Creating a complex query is a multi-step process, though isn't difficult once the general concept is understood. Basically, there are four stages that one can go through in creating a complex query: Formulating the idea, entering it in, viewing the results, and revising the query (if necessary). Formulate an ideaMore accurately, this step should probably be called "Translating an idea into terminology that maps onto the Biozon data representation." This is the step where an idea is formulated into concrete terms that can be entered in a search form. There are essentially two dimensions to this task. The first is deciding which objects are to be part of the query. This includes deciding what object is the focus of the query (i.e. the object that you are searching for) and deciding how objects in the query will relate to other objects. A representation of the various objects in Biozon can be found here. A line in the graph means that the objects are related somehow. The second dimension is deciding what values certain attributes of the relevant objects should be, which serve as constraints when doing a search. For example, one may want a Structure to have a resolution less than two angstroms, or maybe a protein that is defined as being kinase-like, or an enzyme family that has an EC number of 1.2.3.4. Descriptions of searchable attributes are listed in each object's search form . Further discussion on query formulation can be found in our section on Formulating a query in detail. Enter in the queryThere are two distinct "modes of operation" when entering a query, which translate directly to the two dimensions of formulating a query: selecting objects to be part of the query and imposing values on these objects' attributes. Indeed, the first step of entering in a query is selecting an object to search for, since complex searches are oriented towards a single return type. Selecting that object will immediately bring forth a form showing all of its searchable attributes, into which one is expected to enter any constraints on that particular object. From that point, one is presented with a choice to continue the query, run it, save it (currently saving is turned off), or reset the form. Selecting the Continue option gives the ability to add new objects to the search.
Adding objects to search
Adding an object to a search involves selecting an object already
existing in a search and selecting a new object that is to be related
to it.
Finishing the queryThe process of building a query continues in this fashion until the query is run. It can be run by hitting the "run query" button at the bottom of a search form or by selecting the "run query" link in the query summary. Selecting the link in the query summary will run only query steps that have been previously completed. Underneath the link it displays which steps will be run to alleviate any ambiguity. Whenever an object's search form is displayed on screen, use the controls at the bottom of the screen, otherwise the current object and form values will be omitted. The controls present in the query summary only apply to its contents. View the resultsAfter running the query, a result set will show the results of the query and allow navigation to their profile pages. At this stage, poring through the results should hopefully yield the information desired from the query. If not, we provide a way to revise the query. Revising the query
At any point in creating a query or viewing its results, elements of
the query may be revised or deleted. On the left side of the query
status indicator there are links labeled "revise" and
"delete". Notice that "add object" is not a revision option displayed on the query status indicator. Adding objects happens in the query building process. If a query has already run and adding new objects to the query is desired, then the way to do so is by entering query building mode. In order to do that, select 'revise' for some object to bring up a query form, then immediately select 'continue', which will keep that object unchanged and will present the menu for adding objects to the query. The process from that point is unchanged |
Also see |
| ©2005 Biozon.org | Contact us | Feedback |
Biozon.org is based at Stanford University | Home With support from |