US7849074B2 - Annotation of query components - Google Patents

Annotation of query components Download PDF

Info

Publication number
US7849074B2
US7849074B2 US12023829 US2382908A US7849074B2 US 7849074 B2 US7849074 B2 US 7849074B2 US 12023829 US12023829 US 12023829 US 2382908 A US2382908 A US 2382908A US 7849074 B2 US7849074 B2 US 7849074B2
Authority
US
Grant status
Grant
Patent type
Prior art keywords
query
searching
annotation
components
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active, expires
Application number
US12023829
Other versions
US20080126327A1 (en )
Inventor
Richard D. Dettinger
Cale T. Rath
Richard J. Stevens
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Grant date

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/30Information retrieval; Database structures therefor ; File system structures therefor
    • G06F17/30286Information retrieval; Database structures therefor ; File system structures therefor in structured data stores
    • G06F17/30386Retrieval requests
    • G06F17/30389Query formulation
    • G06F17/30398Query predicate definition using graphical user interfaces, including menus and forms

Abstract

Methods, systems, and articles of manufacture that may be used to create and share annotations for query components, such as query conditions, in an effort to share domain knowledge, are provided. The annotations may be created by users with particular domain knowledge and may contain information useful to other users when building queries including the annotated query components. An annotation may indicate a particular format or syntax for an associated query component. In some cases, a replacement to the associated query component is suggested.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

This is a divisional of co-pending U.S. patent application Ser. No. 10/645,123 filed Aug. 21, 2003, which is herein incorporated by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to the field of data entry and retrieval and, more particularly, to a method and system for annotating query components, such as query conditions, in an effort to share domain knowledge and facilitate building queries that retrieve desired data.

2. Description of the Related Art

Databases are computerized information storage and retrieval systems. A relational database management system is a computer database management system (DBMS) that uses relational techniques for storing and retrieving data. The most prevalent type of database is the relational database, a tabular database in which data is defined so that it can be reorganized and accessed in a number of different ways. A distributed database is one that can be dispersed or replicated among different points in a network. An object-oriented programming database is one that is congruent with the data defined in object classes and subclasses.

Regardless of the particular architecture, in a DBMS, a requesting entity (e.g., an application or the operating system) demands access to a specified database by issuing a database access request. Such requests may include, for instance, simple catalog lookup requests or transactions and combinations of transactions that operate to read, change and add specified records in the database. These requests are made using high-level query languages such as the Structured Query Language (SQL). Illustratively, SQL is used to make interactive queries for getting information from and updating a database such as International Business Machines' (IBM) DB2, Microsoft's SQL Server, and database products from Oracle, Sybase, and Computer Associates. The term “query” denominates a set of commands for retrieving data from a stored database. Generally speaking, queries take the form of a command language that let programmers and programs perform variety of operations on data, such as select, insert, update, find out the location of data, and so forth.

One problem facing programmers (or more generally any user building a query) is that databases tend to grow relatively brittle (inflexible) over time, which may increase the difficulties in crafting queries that retrieve a complete set of desired results. In other words, as business enterprise insert their own data, change data structures or formats, add features, and attempt to retire applications that once used the data or support older “legacy” applications, data may exist in the system in more than one format. For example, names may be entered in all capital letters sometimes (but not always), local area codes may be specified in some cases (but NULL in others), and employee IDs may be displayed in one format and stored in another format.

As a result, conventional queries rigidly adhering to a single data format may not return all the data that was desired. As an example, the following query condition:
where last_name=‘Smith’
returns no matches if all last names are capitalized. Similarly, the following query condition:
where demographic.area_code=‘507’
returns only partial results if some records have area codes included in telephone numbers, while others do not. Unfortunately, it may not be as apparent to a user that the query has returned only partial results as it would be if no results were returned at all. In other words, it may be very difficult to even recognize this type of problem.
Finally, the following query:
where employee_id=‘18-203-3243’
will return no results if the common format for employee IDs are stored internally without hyphens (e.g., as 182033243). Thus, users that do not realize this problem may be working with incorrect results.

On the other hand, users that do become aware of this problem may learn to craft queries designed to retrieve the data in whatever format (or combination of formats) it may exist. For example, an individual user may craft queries logically OR'ing query conditions targeting the same data, but in different formats, such as:
where last_name=‘Smith’ OR last_name=‘SMITH’
in an attempt to retrieve all desired data, regardless of the format. However, while this may work for the individual user, if the underlying problem is not reported and/or the potential solution shared, other users may continue to build queries that return incorrect results.

Accordingly, there is a need for a method and system for sharing knowledge regarding query construction, with the possibility of error resolution, for example via automated query modifications.

SUMMARY OF THE INVENTION

The present invention generally is directed to methods, systems, and articles of manufacture for annotating query components, for example, in an effort to share information that may facilitate building queries that retrieve desired data.

One embodiment provides method of capturing information useful in the building of queries. The method generally includes receiving an indication of a selected query component, providing an interface allowing a user to create an annotation to associate with the selected query component, and storing the annotation with a reference to the selected query component.

Another embodiment provides a method of sharing information useful in the building of queries. The method generally includes monitoring one or more query components specified for use in a query, searching for annotations associated with the one or more query components, and providing an indication of one or more annotations, if found, associated with the one or more query components.

Another embodiment provides a computer-readable medium containing a program for annotating query components. When executed by a processor, the program performs operations generally including receiving an indication of one or more selected query component, providing an interface allowing a user to create an annotation to associate with the selected query component, and storing the annotation with a reference to the selected query component.

Another embodiment provides a system for sharing information useful in building queries. The system generally includes an annotation database for storing annotations, a query building interface allowing users to build queries by specifying query components, and an annotation system allowing users to create and display annotations associated with query components used in building queries.

BRIEF DESCRIPTION OF THE DRAWINGS

So that the manner in which the above recited features, advantages and objects of the present invention are attained and can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments thereof which are illustrated in the appended drawings.

It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.

FIG. 1 is an exemplary computing environment in which embodiments of the present invention may be utilized.

FIGS. 2A-2C illustrate relational views of software components according to one embodiment of the present invention.

FIGS. 3A and 3B are flow charts illustrating exemplary operations for capturing and sharing annotations for query components according to one embodiment of the present invention.

FIGS. 4A-4E illustrate exemplary graphical user interface (GUI) screens in accordance with one embodiment of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The present invention provides methods, systems, and articles of manufacture that may be used to create and share annotations for query components, such as query conditions, in an effort to share domain knowledge. The annotations may be created by users with particular domain knowledge and may contain information useful to other users when building queries including the annotated query components. As an example, an annotation may indicate a particular format or syntax an associated query component should take. For some embodiments, a replacement to the associated query component may also be suggested.

As used herein, the term query component generally refers to any identifiable portion of a query, such as a query condition, a group of conditions, a particular value used in a query condition, specified query results, formatting thereof, as well as an entire query. As used herein, the term annotation generally refers to any type of descriptive information and may exist in various forms, including textual annotations (descriptions, revisions, clarifications, comments, instructions, etc.), graphical annotations (pictures, symbols, etc.), sound clips, etc. While an annotation may exist in any or all of these forms, to facilitate understanding, embodiments of the present invention may be described below with reference to textual annotations as a particular, but not limiting, example of an annotation.

Further, as used herein, the term user may generally apply to any entity utilizing the annotation system described herein, such as a person (e.g., an individual) interacting with an application program or an application program itself, for example, performing automated tasks. While the following description may often refer to a graphical user interface (GUI) intended to present information to and receive information from a person, it should be understood that in many cases, the same functionality may be provided through a non-graphical user interface, such as a command line and, further, similar information may be exchanged with a non-person user via a programming interface.

In one embodiment of the present invention, a data model may be implemented as a data repository abstraction component containing a collection of abstract representations of physical fields of a searchable database (hereinafter “logical fields”). Thus, this data abstraction model provides a logical view of the underlying database, allowing the user to generate “abstract” queries against the data warehouse without requiring direct knowledge of its underlying physical properties. A runtime component (e.g., a query execution component) performs translation of abstract queries (generated based on the data abstraction model) into a form that can be used against a particular physical data representation.

While the data abstraction model is generally designed to facilitate query building by insulating the user from many details of the underlying data (particular formatting, organization, etc.), there may still be situations where domain knowledge of the underlying data may be useful for generating queries. Thus, capturing and sharing such domain knowledge as annotations for query components, as described herein, may be useful even when working with a data abstraction model.

The concepts of data abstraction and abstract queries are described in detail in the commonly owned, co-pending application Ser. No. 10/083,075, entitled “Improved Application Portability And Extensibility Through Database Schema And Query Abstraction,” filed Feb. 26, 2002, herein incorporated by reference in its entirety. While the data abstraction model described herein provides one or more embodiments of the invention, persons skilled in the art will recognize that the concepts provided herein can be implemented without such a data abstraction model while still providing the same or similar results.

One embodiment of the invention is implemented as a program product for use with a computer system such as, for example, the computer system 100 shown in FIG. 1 and described below. The program(s) of the program product defines functions of the embodiments (including the methods described herein) and can be contained on a variety of signal-bearing media. Illustrative signal-bearing media include, but are not limited to: (i) information permanently stored on non-writable storage media (e.g., read-only memory devices within a computer such as CD-ROM disks readable by a CD-ROM drive); (ii) alterable information stored on writable storage media (e.g., floppy disks within a diskette drive or hard-disk drive); or (iii) information conveyed to a computer by a communications medium, such as through a computer or telephone network, including wireless communications. The latter embodiment specifically includes information downloaded from the Internet and other networks. Such signal-bearing media, when carrying computer-readable instructions that direct the functions of the present invention, represent embodiments of the present invention.

In general, the routines executed to implement the embodiments of the invention, may be part of an operating system or a specific application, component, program, module, object, or sequence of instructions. The software of the present invention typically is comprised of a multitude of instructions that will be translated by the native computer into a machine-readable format and hence executable instructions. Also, programs are comprised of variables and data structures that either reside locally to the program or are found in memory or on storage devices. In addition, various programs described hereinafter may be identified based upon the application for which they are implemented in a specific embodiment of the invention. However, it should be appreciated that any particular nomenclature that follows is used merely for convenience, and thus the invention should not be limited to use solely in any specific application identified and/or implied by such nomenclature

An Exemplary Environment

FIG. 1 shows an exemplary networked computer system 100, in which embodiments of the present invention may be utilized. For example, embodiments of the present invention may be implemented as a program product for use with the system 100 (e.g., as part of a query building interface 122, query execution runtime component 150, and/or annotation system 140) to allow the capture and exchange of information useful in building queries. Queries may be generated via the query building interface 122 and may target data stored in an application data store 156. As will be described in greater detail below, annotations made, via the annotation system 140, may contain information regarding the targeted data (e.g., a particular format, organization, and content of the targeted data).

As illustrated in FIG. 1, the system 100 generally includes client computers 102 and at least one server computer 104, connected via a network 126. In general, the network 126 may be a local area network (LAN) and/or a wide area network (WAN). In a particular embodiment, the network 126 is the Internet. For other embodiments, however, the methods described herein may be performed on a single (e.g., non-networked) computer system.

As illustrated, the client computers 102 generally include a Central Processing Unit (CPU) 110 connected via a bus 130 to a memory 112, storage 114, an input device 116, an output device 119, and a network interface device 118. The input device 116 can be any device to give input to the client computer 102. For example, a keyboard, keypad, light-pen, touch-screen, track-ball, or speech recognition unit, audio/video player, and the like could be used. The output device 119 can be any device to give output to the user, e.g., any conventional display screen. Although shown separately from the input device 116, the output device 119 and input device 116 could be combined. For example, a client 102 may include a display screen with an integrated touch-screen or a display with an integrated keyboard.

The network interface device 118 may be any entry/exit device configured to allow network communications between the client 102 and the server 104 via the network 126. For example, the network interface device 118 may be a network adapter or other network interface card (NIC). If the client 102 is a handheld device, such as a personal digital assistant (PDA), the network interface device 118 may comprise any suitable wireless interface to provide a wireless connection to the network 126.

Storage 114 is preferably a Direct Access Storage Device (DASD). Although it is shown as a single unit, it could be a combination of fixed and/or removable storage devices, such as fixed disc drives, floppy disc drives, tape drives, removable memory cards, or optical storage. The memory 112 and storage 114 could be part of one virtual address space spanning multiple primary and secondary storage devices.

The memory 112 is preferably a random access memory (RAM) sufficiently large to hold the necessary programming and data structures of the invention. While the memory 112 is shown as a single entity, it should be understood that the memory 112 may in fact comprise a plurality of modules, and that the memory 112 may exist at multiple levels, from high speed registers and caches to lower speed but larger DRAM chips.

Illustratively, the memory 112 contains an operating system 124. Examples of suitable operating systems, which may be used to advantage, include Linux and Microsoft's Windows®, as well as any operating systems designed for handheld devices, such as Palm OS®, Windows® CE, and the like. More generally, any operating system supporting the functions disclosed herein may be used.

The memory 112 is also shown containing the query building interface 122, such as a browser program, that, when executed on CPU 110, provides support for building queries based on a data repository abstraction (DRA) component 148. In one embodiment, the query interface 122 includes a web-based Graphical User Interface (GUI), which allows the user to display Hyper Text Markup Language (HTML) information. More generally, however, the query interface 122 may be any program (preferably GUI-based) capable of exposing a portion of the DRA component 148 on the client 102 for use in building queries. As will be described in greater detail below, queries built using the query interface 122 may be sent to the server 104 via the network 126 to be issued against one or more databases 156.

The server 104 may be physically arranged in a manner similar to the client computer 102. Accordingly, the server 104 is shown generally comprising a CPU 131, a memory 132, and a storage device 134, coupled to one another by a bus 136. Memory 132 may be a random access memory sufficiently large to hold the necessary programming and data structures that are located on the server 104.

The server 104 is generally under the control of an operating system 138 shown residing in memory 132. Examples of the operating system 138 include IBM OS/400®, UNIX, Microsoft Windows®, and the like. More generally, any operating system capable of supporting the functions described herein may be used. As illustrated, the server 104 may be configured with an abstract query interface 146 for issuing abstract queries (e.g., received from the client application 120) against one or more of the databases 156.

In one embodiment, elements of a query are specified by a user through the query building interface 122 which may be implemented as a browser program presenting a set of GUI screens for building queries. The content of the GUI screens may be generated by one or more applications of the abstract query interface 146. In a particular embodiment, the GUI content is hypertext markup language (HTML) content which may be rendered on the client computer systems 102 with the query building interface 122. Accordingly, the memory 132 may include a Hypertext Transfer Protocol (http) server process 152 (e.g., a web server) adapted to service requests from the client computer 102. For example, the server process 152 may respond to requests to access the database(s) 156, which illustratively resides on the server 104. Incoming client requests for data from a database 156 invoke a server application which, when executed by the processor 130, perform operations necessary to access the database(s) 156. In one embodiment, the server application comprises a plurality of servlets configured to build GUI elements, which are then rendered by the query interface 122.

Components of the server computer 104 may be physically arranged in a manner similar to those of the client computer 102. For example, the server computer 104 is shown generally comprising a CPU 135, a memory 133, and a storage device 134, coupled to one another by a bus 136, which may all function as similar components described with reference to the client computer 102. The server computer 104 is generally under the control of an operating system (e.g., IBM OS/400®, UNIX, Microsoft Windows®, and the like).

As illustrated, the server computer 104 may be configured with the annotation system 140, also shown residing in memory 132. The annotation system 140 may be used to generate annotations 159 that, for some embodiments, may be stored in an annotation store 158 separate from the application data store 156. The annotations 159 may include a variety of annotations, for example, describing data in the application data store 156. The universal annotation system 111 may be any suitable type annotation system and, for some embodiments, may be similar to the universal annotation system described in the commonly owned, co-pending application Ser. No. 10/600,014, entitled “Universal Annotation System,” filed Jun. 20, 2003, herein incorporated by reference.

In addition to creating annotations for application data, the annotation system 140 may also be used to create annotations for query components 157 (e.g., portions of queries built using the query building interface 122). As will be described in greater detail below, during a subsequent query building process, if an annotated query component 157 (or a similar query component) is selected, by a user, for use in a query, a corresponding annotation (or at least an indication, thereof) may be displayed to the user.

An Exemplary Relational View

Operation of various components of the system 100 may be further described with reference to FIGS. 2A-2C. FIG. 2A illustrates a relational view of the query building interface 122, query execution runtime component 150, and annotation system 140, according to one embodiment of the invention. As shown, the abstract query interface 122 may be used to generate an abstract query 202 to be issued by the query execution runtime component 150.

As illustrated, the abstract query 202 may include a set of one or more query conditions 204 and a list of query results 236, each based on logical fields defined in the DRA component 148. As previously described, the abstract query 202 may be executed by the query execution component 150. In the exemplary abstract data model, the logical fields are defined independently of the underlying data representation being used in the DBMS 154, thereby allowing queries to be formed that are loosely coupled to the underlying data representation 214.

For example, as illustrated in FIG. 2B, the DRA component 148 includes a set of logical field specifications 216 that provide abstract representations of corresponding fields in a physical data representation 214 of data in the one or more databases 156 shown in FIG. 1. Each logical field specification 216 may include various information used to map the specified logical field to the corresponding physical field, such as field names, table names, and access methods (not shown) describing how to access and/or manipulate data from the corresponding physical field in the physical data representation 214. The physical data representation 214 may be an XML data representation 214 1, a relational data representation 214 2, or any other data representation, as illustrated by 214 N. Therefore, regardless of the actual physical data representation 214, a user may generate an abstract query 202 based on the logical fields defined by the logical field specifications 216, in order to access data stored therein.

Referring back to FIG. 2A, the query execution component 150 is generally configured to transform the abstract query 202 into a concrete query compatible with the physical data representation (e.g., an XML query, SQL query, etc), by mapping the logical fields of the expanded abstract query 202 to the corresponding physical fields of the physical data representation 214. The mapping of abstract queries to concrete queries, by the query execution component 150, is described in detail in the previously referenced co-pending application Ser. No. 10/083,075.

As illustrated, the abstract query 202 may include one or more query components, such as a query condition 204, that may be described by an annotation 159. The annotation 159 may be created by a first user, via the annotation system 140, during a first query building session, for example, in response to gaining a particular insight into the data targeted by the query. In a subsequent query building session, a second user may build a query with the same (or a similar) query condition 204. This query session may be monitored (e.g., by a component of the query building interface 122, or annotation system 140) to detect annotated query components. In response to detecting an annotated query component (e.g., the same query condition 204), the second user may be provided with an indication that a corresponding annotation 159 exists.

As illustrated in FIG. 2C, the annotation 159 may be stored in an annotation record 150. As shown, the annotation record 150 may include a reference 152 to the annotated query component. As will be described in greater detail below, the reference 152 may include any suitable information identifying the corresponding annotated query component and the reference 152 may vary in scope (e.g., referring to a particular query condition, or merely a field or instance value involved in a query condition). The annotation record 150 may also include a suggested modification 154, for example, designed to overcome common mistakes users make when building queries. Each of the components of the annotation record 150 are described in greater detail below with reference to FIGS. 3 and 4.

Annotating Query Components

FIGS. 3A and 3B illustrate exemplary operations 300 and 350 for creating and viewing an annotation for a query component, respectively, that may be performed during query building sessions. For example, the operations 300 may be performed by a first user during a first query building session while the operations 350 may be performed by a second user during a second query building session. In any case, the operations 300 and 350 may be best described with reference to the exemplary graphical user interface (GUI) screens illustrated in FIGS. 4A-4D which may be provided, for example, as components of the query building interface 122 and annotation system 140.

The operations 300 begin, at step 302, by building a query. For example, a user may build a query by specifying one or more query conditions, via the GUI screen 420 of FIG. 4A. As illustrated, the user may add and delete query conditions, listed in a Query Conditions window 424, and results listed in a Results window 426. For some embodiments, the user may be able to choose previously-saved query components, for example, comprising one or more query conditions, as described in the commonly owned, co-pending U.S. patent application entitled “SQL Query Construction Using Durable Query Components,” filed Oct. 3, 2002. In any case, as shown, the user may build a query to return a list of patients that have had heart attacks, by specifying the following query condition based on a governmental diagnostic (ICD9) code for heart attacks:
ICD9=‘410’.
However, upon execution, the query may not return all of the expected results. For example, after possibly lengthy investigation the user may realize that the ICD9 code for heart attacks had been changed from 412 to 410 and that the old code (412) may have been used for some patients.

At step 304, in an effort to share this information with subsequent users (e.g., performing similar research), the user may create an annotation for the query condition. For example, the user may select the query condition in the Query Condition window 424 and access (via an Annotate button) an annotation GUI screen 410 shown in FIG. 4B. As illustrated, the user may create a comment 414 that contains the pertinent information related to the selected query component. Further, the GUI screen 410 may also allow the user to create a suggested substitution (via button 419) that may be used to replace the annotated query component, for example, addressing common mistakes. In the illustrated example, the user may create a substitute query condition to target both the new and old ICD9 codes for heart attacks (e.g., ICD9=410 OR ICD9=412). The suggested substitution may be built using a similar query building GUI screen to that shown in FIG. 4A and may be presented to a subsequent user building a query with the annotated query component.

At step 306, the annotation is stored with a reference to the annotated query component. For example, an annotation record 150, as illustrated in FIG. 2C may be generated and stored in the annotation store. As previously described, the reference 152 to the annotated query component may comprise any suitable information to indicate the query component. As a simple example, in some cases, the reference may be an actual code portion of a query, such as the annotated query component itself (‘ICD9=410’). For other cases, however, the query component may be broken down into simpler components. For example, an annotated query component may comprise a group of query conditions, which may be decomposed into fragments corresponding to the individual query conditions that may be stored in the annotation record. Further, a user may be able to select and create an annotation for a particular instance value (e.g., with a common misspelling) or a field (for example, to clarify exactly what data is contained in the field).

For some embodiments, a user may choose to replace a particular instance value in a query component with a parameter marker, effectively changing the scope of the annotation to refer to a particular field involved in the corresponding query components. As an example, a user may generate a query to return a list of customers for a particular city, containing the following query condition:
City=‘Rochester’
which, upon execution, returns no results. Upon investigation, the user may learn that cities are stored in all capitals. Accordingly, a user may create an annotation for this query component indicating cities are stored in all upper case, as well as a suggested substitution (e.g., City=‘ROCHESTER’).

Of course, the same annotation would be useful, not only to this particularly query condition, but to any query condition involving the city field, regardless of the actual city. Rather than associate the annotation with a particular instance of the selected query component (with a reference to a specific city), the user may associate the annotation with any query condition involving the city field. This may be done, for example, by substituting a parameter marker for the particular instance value, resulting in the following condition:
City=‘?’
indicating the annotation is associated with the field, regardless of the particular instance value provided. For some embodiments, whether or not parameter markers are substituted for particular values in a query component may be configurable by a user. For example, as illustrated in FIG. 4B, the user may simply select a Parameterize check box 413, when creating the annotation, causing a parameterized version of the query component to be stored as a reference. A suggested modification may also be provided with a parameter marker, such as:
City=UPPERCASE(?)
allowing a suggested modification to be automatically generated by substituting a particular instance value for the parameter marker.

Displaying Annotations for Query Components

As previously described, annotations created for query components may be useful to users subsequently attempting to build queries based on the annotated query components. In other words, the annotations may help guide the subsequent users during the query building process (e.g., to avoid common pitfalls, data peculiarities, etc.), to get the actual query results they desire. FIG. 3B, illustrates exemplary operations 350 that may be performed, during a query building process to retrieve and display annotations to a user.

The operations 350 begin, at step 352, by monitoring one or more user-specified query components and, at step 354, annotations (if any) for the monitored query components that are retrieved. For example, as illustrated in FIG. 4C, a user may build a query to return a list of heart attack victims in their forties. During the query building process, query components (e.g., conditions, instance values, and/or fields in Conditions window 424, as well as results fields in window 426) may be monitored. For example, as new query components are added, annotation records may be searched for references to the newly added components, to determine if annotations exist for any of the specified query components. As previously described above, the types of references stored in the annotation records may vary and, therefore, the techniques used to search for annotations may vary as well.

For example, rather than search for annotations using direct text searching (e.g., to find an exact match with the specified query component), a search may be performed based on a logical meaning of the query component. In other words, a specified query component may be broken down into simpler parts and common logical rules may be applied. As an example, logical rules such as the following may be applied to find annotations for query components having the same logical meaning:
condX AND condY==condY AND condX, and
(condX AND condY) OR condZ==condZ OR (condY AND condX).
Further, references to query components that contain parameter markers, as described above, will also be searched to find annotations associated with common fields, regardless of particular instance values provided.

At step 356, annotations for the query components, or at least an indication of such, are displayed. For example, as shown in FIG. 4C, an annotation icon 425 may be displayed next to an annotated query component, indicating a corresponding annotation exists. In order to display the annotation, the user may select (e.g., click on) the annotation icon 425, resulting in the View Annotation GUI screen 430, shown in FIG. 4D, presenting the user with the annotation.

At step 358, one or more substitutions for the annotated query component are optionally suggested. For example, the suggested substitution 429 may be presented to the user, who may also be presented with the option to accept the suggested substitution 429. In some cases, the user may not accept the suggested substitution (e.g., the user may not want to retrieve heart attack victims that had an old ICD9 code).

However, at step 360, if the user does accept, the annotated query component is replaced with the suggested substitution, at step 362. For example, the user may accept via an Apply Substitution button 429, resulting in modification of the query, as shown in FIG. 4E, to include the suggested substitution 429. For some cases, rather than present the user with a choice, a query may be modified automatically to include a suggested substitution (e.g., in a manner transparent to the user), for example, just prior to executing the query. In any case, the operations 350 are exited, at step 364, only to be possibly repeated, for example, as new query components are added.

CONCLUSION

By annotating query components, valuable domain knowledge may be shared that may facilitate the query building process. For example, annotations including information regarding a particular format, organization, or content of data targeted by a query condition may prevent a user from making a common mistake. In other words, without the information presented in the annotation, the user may generate a query that does not return complete query results desired.

While the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.

Claims (14)

1. A method of sharing information useful in the building of queries, comprising:
monitoring one or more query components specified for use in a query, wherein the query is being composed in a query composition tool, wherein the one or more query components are stored and are accessible to the query composition tool;
searching for annotations associated with the one or more query components; and
providing an indication of one or more annotations, if found, associated with the one or more query components, comprising:
displaying an annotation icon proximate an annotated query component, displaying a suggested substitution for the annotated query component, allowing the user to accept the suggested substitution; and
in response to the user accepting the suggested substitution, replacing, in the query, the annotated query component with the suggested substitution.
2. The method of claim 1, further comprising, in response to a user selecting an annotation icon, displaying an annotation associated with the annotated query component.
3. The method of claim 1, wherein searching for annotations associated with the one or more query components comprises: selecting a query component; and searching annotation records for a reference to the selected query component.
4. The method of claim 3, wherein searching annotation records for a reference to the selected query component comprises applying one or more logical rules.
5. The method of claim 3, wherein searching annotation records for a reference to the selected query component comprises searching for references to fields involved in the selected query component.
6. The method of claim 5, wherein searching for references to fields involved in the selected query component comprises searching for references with parameter markers.
7. The method of claim 3, wherein searching annotation records for a reference to the selected query component comprises searching for references to a specific instance value of data.
8. A computer-readable storage medium containing a program which, when executed, performs an operation for sharing information useful in the building of queries, comprising:
monitoring one or more query components specified for use in a query, wherein the query is being composed in a query composition tool, wherein the one or more query components are stored and are accessible to the query composition tool;
responsive to detecting the monitored one or more query components, searching for annotations associated with the one or more query components; and
providing an indication of one or more annotations, if found, associated with the one or more query components, comprising:
displaying an annotation icon proximate an annotated query component, displaying a suggested substitution for the annotated query component, allowing the user to accept the suggested substitution; and in response to the user accepting, the suggested substitution, replacing, in the query, the annotated query component with the suggested substitution.
9. The computer-readable storage medium of claim 8, further comprising, in response to a user selecting an annotation icon, displaying an annotation associated with the annotated query component.
10. The computer-readable storage medium of claim 8, wherein searching for annotations associated with the one or more query components comprises:
selecting a query component; and
searching annotation records for a reference to the selected query component.
11. The computer-readable storage medium of claim 10, wherein searching annotation records for a reference to the selected query component comprises applying one or more logical rules.
12. The computer-readable storage medium of claim 10, wherein searching annotation records for a reference to the selected query component comprises searching for references to fields involved in the selected query component.
13. The computer-readable storage medium of claim 12, wherein searching for references to fields involved in the selected query component comprises searching for references with parameter markers.
14. The computer-readable storage medium of claim 10, wherein searching annotation records for a reference to the selected query component comprises searching for references to a specific instance value of data.
US12023829 2003-08-21 2008-01-31 Annotation of query components Active 2024-08-14 US7849074B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US10645123 US8239400B2 (en) 2003-08-21 2003-08-21 Annotation of query components
US12023829 US7849074B2 (en) 2003-08-21 2008-01-31 Annotation of query components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US12023829 US7849074B2 (en) 2003-08-21 2008-01-31 Annotation of query components

Publications (2)

Publication Number Publication Date
US20080126327A1 true US20080126327A1 (en) 2008-05-29
US7849074B2 true US7849074B2 (en) 2010-12-07

Family

ID=34194249

Family Applications (3)

Application Number Title Priority Date Filing Date
US10645123 Expired - Fee Related US8239400B2 (en) 2003-08-21 2003-08-21 Annotation of query components
US12023829 Active 2024-08-14 US7849074B2 (en) 2003-08-21 2008-01-31 Annotation of query components
US12023845 Expired - Fee Related US7844607B2 (en) 2003-08-21 2008-01-31 Annotation of query components

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US10645123 Expired - Fee Related US8239400B2 (en) 2003-08-21 2003-08-21 Annotation of query components

Family Applications After (1)

Application Number Title Priority Date Filing Date
US12023845 Expired - Fee Related US7844607B2 (en) 2003-08-21 2008-01-31 Annotation of query components

Country Status (1)

Country Link
US (3) US8239400B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050044098A1 (en) * 2003-08-21 2005-02-24 International Business Machines Corporation Annotation of query components
US8180787B2 (en) 2002-02-26 2012-05-15 International Business Machines Corporation Application portability and extensibility through database schema and query abstraction
US9811513B2 (en) 2003-12-09 2017-11-07 International Business Machines Corporation Annotation structure type determination
US9830361B1 (en) * 2013-12-04 2017-11-28 Google Inc. Facilitating content entity annotation while satisfying joint performance conditions

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7840547B1 (en) 2004-03-31 2010-11-23 Google Inc. Methods and systems for efficient query rewriting
US7610265B2 (en) * 2005-04-29 2009-10-27 Sap Ag Data query verification
US20070022125A1 (en) * 2005-07-20 2007-01-25 Salam Aly A Systems, methods, and computer program products for accumulating, strong, sharing, annotating, manipulating, and combining search results
US20070022111A1 (en) * 2005-07-20 2007-01-25 Salam Aly A Systems, methods, and computer program products for accumulating, storing, sharing, annotating, manipulating, and combining search results
US20070043803A1 (en) * 2005-07-29 2007-02-22 Microsoft Corporation Automatic specification of semantic services in response to declarative queries of sensor networks
US20070276825A1 (en) * 2006-04-28 2007-11-29 Dettinger Richard D Query reuse through recommend parameter flexibility
US7668860B2 (en) * 2007-04-02 2010-02-23 Business Objects Software Ltd. Apparatus and method for constructing and using a semantic abstraction for querying hierarchical data
US8250015B2 (en) * 2009-04-07 2012-08-21 Microsoft Corporation Generating implicit labels and training a tagging model using such labels
US9104991B2 (en) * 2010-07-30 2015-08-11 Bank Of America Corporation Predictive retirement toolset
US8538978B2 (en) * 2010-11-22 2013-09-17 International Business Machines Corporation Presenting a search suggestion with a social comments icon
US9348895B2 (en) 2013-05-01 2016-05-24 International Business Machines Corporation Automatic suggestion for query-rewrite rules

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5734887A (en) 1995-09-29 1998-03-31 International Business Machines Corporation Method and apparatus for logical data access to a physical relational database
US5999182A (en) 1998-05-11 1999-12-07 The Board Of Trustees Of The Leland Stanford Junior University Computational architecture for reasoning involving extensible graphical representations
US6272488B1 (en) 1998-04-01 2001-08-07 International Business Machines Corporation Managing results of federated searches across heterogeneous datastores with a federated collection object
US6484156B1 (en) 1998-09-15 2002-11-19 Microsoft Corporation Accessing annotations across multiple target media streams
US6519603B1 (en) 1999-10-28 2003-02-11 International Business Machine Corporation Method and system for organizing an annotation structure and for querying data and annotations
US6553368B2 (en) 1998-03-03 2003-04-22 Sun Microsystems, Inc. Network directory access mechanism
US6571295B1 (en) 1996-01-31 2003-05-27 Microsoft Corporation Web page annotating and processing
US20030126152A1 (en) * 2001-12-28 2003-07-03 Rajak Surendra Kumar Export engine which builds relational database directly from object model
US6594669B2 (en) 1998-09-09 2003-07-15 Hitachi, Ltd. Method for querying a database in which a query statement is issued to a database management system for which data types can be defined
US20040064447A1 (en) * 2002-09-27 2004-04-01 Simske Steven J. System and method for management of synonymic searching
US6721921B1 (en) * 2000-07-26 2004-04-13 Itm Associates Method and system for annotating documents using an independent annotation repository
US6725227B1 (en) 1998-10-02 2004-04-20 Nec Corporation Advanced web bookmark database system
US20040138946A1 (en) 2001-05-04 2004-07-15 Markus Stolze Web page annotation systems
US20040150669A1 (en) 2003-01-31 2004-08-05 Sabiers Mark L. Graphical user interface for describing the state of a managed system
US6799184B2 (en) 2001-06-21 2004-09-28 Sybase, Inc. Relational database system providing XML query support
US6956593B1 (en) * 1998-09-15 2005-10-18 Microsoft Corporation User interface for creating, viewing and temporally positioning annotations for media content
US7024425B2 (en) 2000-09-07 2006-04-04 Oracle International Corporation Method and apparatus for flexible storage and uniform manipulation of XML data in a relational database system

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6105055A (en) 1998-03-13 2000-08-15 Siemens Corporate Research, Inc. Method and apparatus for asynchronous multimedia collaboration
CN1110761C (en) * 1998-10-30 2003-06-04 国际商业机器公司 Method and apparatus for preforming sequence homology detection
US6687878B1 (en) 1999-03-15 2004-02-03 Real Time Image Ltd. Synchronizing/updating local client notes with annotations previously made by other clients in a notes database
EP1277138A4 (en) * 2000-04-04 2008-04-09 Red Hat Inc A system and method for accessing data in disparate information sources
US7203678B1 (en) * 2001-03-27 2007-04-10 Bea Systems, Inc. Reconfigurable query generation system for web browsers
US6996558B2 (en) * 2002-02-26 2006-02-07 International Business Machines Corporation Application portability and extensibility through database schema and query abstraction
US7243301B2 (en) 2002-04-10 2007-07-10 Microsoft Corporation Common annotation framework
US6954748B2 (en) * 2002-04-25 2005-10-11 International Business Machines Corporation Remote data access and integration of distributed data sources through data schema and query abstraction
US7752197B2 (en) 2002-10-03 2010-07-06 International Business Machines Corporation SQL query construction using durable query components
US7392267B2 (en) 2002-12-04 2008-06-24 International Business Machines Corporation Annotation validity using partial checksums
US20040260714A1 (en) * 2003-06-20 2004-12-23 Avijit Chatterjee Universal annotation management system
US7620648B2 (en) * 2003-06-20 2009-11-17 International Business Machines Corporation Universal annotation configuration and deployment
US8239400B2 (en) 2003-08-21 2012-08-07 International Business Machines Corporation Annotation of query components

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5734887A (en) 1995-09-29 1998-03-31 International Business Machines Corporation Method and apparatus for logical data access to a physical relational database
US6571295B1 (en) 1996-01-31 2003-05-27 Microsoft Corporation Web page annotating and processing
US6553368B2 (en) 1998-03-03 2003-04-22 Sun Microsystems, Inc. Network directory access mechanism
US6272488B1 (en) 1998-04-01 2001-08-07 International Business Machines Corporation Managing results of federated searches across heterogeneous datastores with a federated collection object
US5999182A (en) 1998-05-11 1999-12-07 The Board Of Trustees Of The Leland Stanford Junior University Computational architecture for reasoning involving extensible graphical representations
US6594669B2 (en) 1998-09-09 2003-07-15 Hitachi, Ltd. Method for querying a database in which a query statement is issued to a database management system for which data types can be defined
US6484156B1 (en) 1998-09-15 2002-11-19 Microsoft Corporation Accessing annotations across multiple target media streams
US6956593B1 (en) * 1998-09-15 2005-10-18 Microsoft Corporation User interface for creating, viewing and temporally positioning annotations for media content
US7051275B2 (en) 1998-09-15 2006-05-23 Microsoft Corporation Annotations for multiple versions of media content
US6725227B1 (en) 1998-10-02 2004-04-20 Nec Corporation Advanced web bookmark database system
US6519603B1 (en) 1999-10-28 2003-02-11 International Business Machine Corporation Method and system for organizing an annotation structure and for querying data and annotations
US20040163042A1 (en) 2000-07-26 2004-08-19 Itm Associates Method and system for annotating documents using an independent annotation repository
US6721921B1 (en) * 2000-07-26 2004-04-13 Itm Associates Method and system for annotating documents using an independent annotation repository
US7024425B2 (en) 2000-09-07 2006-04-04 Oracle International Corporation Method and apparatus for flexible storage and uniform manipulation of XML data in a relational database system
US20040138946A1 (en) 2001-05-04 2004-07-15 Markus Stolze Web page annotation systems
US6799184B2 (en) 2001-06-21 2004-09-28 Sybase, Inc. Relational database system providing XML query support
US20030126152A1 (en) * 2001-12-28 2003-07-03 Rajak Surendra Kumar Export engine which builds relational database directly from object model
US20040064447A1 (en) * 2002-09-27 2004-04-01 Simske Steven J. System and method for management of synonymic searching
US20040150669A1 (en) 2003-01-31 2004-08-05 Sabiers Mark L. Graphical user interface for describing the state of a managed system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Electrical Schematics Page, Apr. 2002 .
Electrical Schematics Page, Apr. 2002 <http://www.jlab.org/accel/inj—group/elec1.htm>.
I. F. Cruz et al., "Effective Abstractions in Multimedia," Electronic Proceedings of the ACM Workshop on Effective Abstractions in Multimedia: Layout, Presentation, and Interaction in association with ACM Multimedia '95, Nov. 1995: pp. 1-5.

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8180787B2 (en) 2002-02-26 2012-05-15 International Business Machines Corporation Application portability and extensibility through database schema and query abstraction
US20050044098A1 (en) * 2003-08-21 2005-02-24 International Business Machines Corporation Annotation of query components
US8239400B2 (en) 2003-08-21 2012-08-07 International Business Machines Corporation Annotation of query components
US9811513B2 (en) 2003-12-09 2017-11-07 International Business Machines Corporation Annotation structure type determination
US9830361B1 (en) * 2013-12-04 2017-11-28 Google Inc. Facilitating content entity annotation while satisfying joint performance conditions

Also Published As

Publication number Publication date Type
US20080126327A1 (en) 2008-05-29 application
US7844607B2 (en) 2010-11-30 grant
US8239400B2 (en) 2012-08-07 grant
US20080120331A1 (en) 2008-05-22 application
US20050044098A1 (en) 2005-02-24 application

Similar Documents

Publication Publication Date Title
US5418950A (en) System for interactive clause window construction of SQL queries
US6850944B1 (en) System, method, and computer program product for managing access to and navigation through large-scale information spaces
US5987481A (en) Method and apparatus for using label references in spreadsheet formulas
US6826566B2 (en) Identifier vocabulary data access method and system
US7082436B1 (en) Storing and retrieving the visual form of data
US7092936B1 (en) System and method for search and recommendation based on usage mining
US7725501B1 (en) System and method for rapid database application deployment and use
US5999940A (en) Interactive information discovery tool and methodology
US6014658A (en) Using a database for managing solutions to problems
US7574652B2 (en) Methods for interactively defining transforms and for generating queries by manipulating existing query data
US6954748B2 (en) Remote data access and integration of distributed data sources through data schema and query abstraction
US5950190A (en) Dynamic, self-modifying graphical user interface for relational database applications
US7222130B1 (en) Report then query capability for a multidimensional database model
US6353830B1 (en) Graphical interface for object-relational query builder
US6356903B1 (en) Content management system
US6012053A (en) Computer system with user-controlled relevance ranking of search results
US6041331A (en) Automatic extraction and graphic visualization system and method
US6820093B2 (en) Method for verifying record code prior to an action based on the code
US20030154197A1 (en) Flexible relational data storage method and apparatus
US20070288256A1 (en) Patent claim reference generation
US5764973A (en) System for generating structured query language statements and integrating legacy systems
US7668737B2 (en) Method and system for interfacing with a multi-level data structure
US20010049675A1 (en) File system with access and retrieval of XML documents
US20050256825A1 (en) Viewing annotations across multiple applications
US6618727B1 (en) System and method for performing similarity searching

Legal Events

Date Code Title Description
REMI Maintenance fee reminder mailed
FPAY Fee payment

Year of fee payment: 4

SULP Surcharge for late payment