![]() |
||||||||||||||||
Querying - Standard Query Form
|
||||||||||||||||
Standard Query Form
|
||||||||||||||||
Use this page to define a query, using up to four datafields. You can specify any relationship between the datafields and define a view to display the results.
More about the Standard Query Form.
|
||||||||||||||||
Standard Query Form - Tasks |
||||||||||||||||
Create a QueryBefore using the query form you must already have selected the databanks you want to search.
Note:You can search up to 4 different data fields at a time using this form. You can also use Boolean operators within a single field to combine search terms and create more advanced searches.
Tip:To find out more information about a data field, click the Tip:To use subentries in your search, choose one or more datafields of subentry type.
|
||||||||||||||||
Standard Query Form - Worked Examples |
||||||||||||||||
Create a QueryThis example demonstrates a search of the EMBL databank for entries having amylase in the description field and bacillus sp in the organism field that have been updated since Jan 1st 2000. They will be viewed using the default view. If you have not already done so, go to the Select Databanks To Search page (Select Databanks tab) and select the EMBL databank.
|
||||||||||||||||
![]()
|
||||||||||||||||
Figure 3.1 Standard Query Form showing a query for EMBL for entries containing the word, amylase, in the Description field, with bacillus sp in the Organism Name field that were added to the databank after January 1, 2002. Create a Subentry Query
Searching for Entries which Reference Papers that include those by Smith and by JonesIn this example entries will be retrieved from SWISS-PROT that reference papers by Smith and Jones. For an entry to be retrieved there must be papers whose authors include Smith and Jones, but Smith and Jones need not be co-authors of the same paper. If you have not already done so, go to the Select Databanks To Search page and select the databank you wish to search, e.g. SWISS-PROT.
|
||||||||||||||||
![]()
|
||||||||||||||||
Figure 3.2 Standard Query Form showing a query for entries, using the Reference:Authors subentry fields.
|
||||||||||||||||
![]()
|
||||||||||||||||
Figure 3.3 Query Result page showing the results of a query for entries, using the Reference:Authors subentry fields, using two separate text boxes to search on the Standard Query Form.Tip:Using two separate text boxes for the subentries search retrieves all entries containing references by Smith, and by Jones, including those where there are no papers which were co-authored by Smith and Jones. Figure 3.4 shows an entry from the above search.
|
||||||||||||||||
![]()
|
||||||||||||||||
Figure 3.4 Entry page showing that some entries reference only papers that are not co-authored by Smith & Jones. (SWISS-PROT accession number P46161.)Tip:In effect, this search looks for reference subentries that contain smith or jones. It then takes the entries for each of the references matching the criteria, to create two lists of entries: one for smith and one for jones. It then combines those, seeking only those which are in both lists.
Searching for Entries which Reference Papers that are Co-authored by Smith & JonesIn the above example, entries were retrieved that referenced papers by Smith and Jones, but without concern for whether Smith & Jones were co-authors of any papers. If you wish to search for entries that reference papers that are always co-authored by Smith & Jones, you should modify your search, so that rather than searching in two separate text boxes on the Standard Query Form, you search for both authors in a single text box. If you have not already done so go to the Select Databanks To Search page and select the databank you wish to search, e.g. SWISS-PROT.
|
||||||||||||||||
![]()
|
||||||||||||||||
Figure 3.5 Standard Query Form showing a query for entries, using the Reference:Authors subentry fields, searching for papers which are co-authored by Smith & Jones.
|
||||||||||||||||
![]()
|
||||||||||||||||
Figure 3.6 Query Result page showing the results of a query for entries, using the Reference:Authors subentry fields, using a single text box with two search terms, to search on the Standard Query Form.Note:In effect, this search looks for reference subentries that contain smith or jones. It then combines these to create a list of those that contain both Smith and Jones in a single reference subentry. It then takes the entries for each of the references matching the criteria. This creates a single list of entries, which contain references to papers which are co-authored by Smith and Jones.
Searching for Subentries which Reference Papers that are Co-authored by Smith & JonesIf you wish to retrieve the subentry fields that are found, rather than the parent entries, the searches can be repeated with the retrieve entries of type set to Reference.
|
||||||||||||||||
![]()
|
||||||||||||||||
Figure 3.7 Standard Query Form showing a query for subentries, using the Reference:Authors fields.Note:This search will retrieve the subentries that match the criteria rather than the parent entries. Otherwise, the search behaves similarly to the above, so that searching for the two terms in a single text box, combined with & will produce reference subentries that contain only co-authored papers, whilst searching for the two terms using separate text boxes will produce reference subentries which contain papers by both authors, but will not check whether they are co-authors.
|
||||||||||||||||
![]()
|
||||||||||||||||
Figure 3.8 Query Result page showing the results of a query for subentries, using the Reference:Authors subentry fields, using the Standard Query Form. |
||||||||||||||||
Standard Query Form - FAQs |
||||||||||||||||
Search for More Than One TermUse subsequent rows of the table to choose further datafields (which may be the same as the first) and enter your search terms beside them. Alternatively, if you want to search for more than one thing within any particular field, you can use the boolean operators (&, |, !) to combine two or more entries within a given text box. This is particularly useful for subentries.
Search for a PhraseEnter your phrase within a single text box.
Select a Search Field
|
||||||||||||||||
![]()
|
||||||||||||||||
How Do I Define How My Search Terms are Combined?Use the Boolean operators in the combine searches with drop-down list to combine terms in separate rows. Alternatively, type them into the text boxes between your search terms. The available operators are:
Multiple terms can be combined using brackets, e.g. to search for entries whose Organism Name field contains rat or mouse, but not bovine, you could type: (rat | mouse) ! bovine
|
||||||||||||||||
Standard Query Form - Reference |
||||||||||||||||
![]()
|
||||||||||||||||
Figure 3.9 Standard Query Form. Getting to the Standard Query FormThis page can be reached by any of the following methods:
Using the Standard Query Form - Options Area
Search ...
|
||||||||||||||||
|
||||||||||||||||
This shows a list of the databanks that will be searched when the query is submitted. The databanks to be searched are selected from the Select Databanks To Search page (see section 3.1 "Select Databanks To Search Page", p. 22).
Submit Query
Click the
Use Wildcards
By default this box is ticked and wildcards are appended to all search words automatically. If wildcards are not to be appended, untick the check box.
Combine Searches WithThe query terms will have a relationship with each other that is either inclusive or exclusive. Using the drop-down list you can choose the way your search terms are combined.
Number of Entries to Display per PageThis drop-down list allows you to specify the maximum number of entries to be listed per page of results. When the number of entries is greater than this value, entries will be spread over two or more pages.
ExtendedThe Extended Query form link displays the Extended Query Form. This allows a query to be continued using the Extended Query Form without having to reselect the databank(s).
Make Default Query PageThis option does not usually appear unless the Extended Query Form has been set as the default. The check box can be ticked to make the Standard Query Form into the default used for queries. Making this the default Query Form means that if the Query tab is clicked, the Standard Query Form is used, rather than the Extended Query Form. A query must be submitted for this to take effect.
Using the Standard Query Form - Data Area
Submit Query
Click one of the
Field Information
Clicking on one of the
DatafieldThe upper left-hand side of the Data Area contains drop-down lists. These allow a datafield to be selected for searching, from a list of those available for the current query. There are four such lists, allowing a query to use up to four datafields.
Search TextThe upper right-hand side of the Data Area contains text boxes in which a search term can be entered. It is possible to search for more than one term in each text box, using the operators, & (AND), | (OR) and ! (BUTNOT), to indicate how the terms should be related. There are four such text boxes, allowing a query to use up to four datafields.
Retrieve Entries of TypeThis option allows you to choose whether to retrieve entire entries or subentries, such as references, features or counters. It is useful when searching subentries. See also "Subentries" in chapter 3, "Querying with SRS", of the SRS User Guide.
View Results UsingA predefined view can be used to display the results of a search. This is chosen using the drop-down list, which contains the built-in views, and any views created during the current project (see section 5.1 "View Manager Page 1", p. 70).
Create Your Own ViewIf none of the predefined views shows everything that is required, it is possible to specify the datafields to be used to display the results of the current query. You can choose whether you want the view to be a table or list view, by selecting the required option. The default is a table view. The sequence format can also be specified.
The view is created when the query is performed, i.e. when one of the Note:This custom view is not saved and is only available for the query with which it was created.
Other Information
|
||||||||||||||||
![]() |