A method for presenting information on display devices of varying sizes

Abstract: A method for presenting information on display devices of varying sizes. The method processes a query of a database and determines which tables are most likely to contain information which the user wishes to primarily view. The join relationships between tables of the database are used to determine the priority for displaying tables. Those join relationships which were used more frequently in previous queries are accorded higher weight scores and correspondingly have a greater chance of being prioritized to be displayed on the computer screen. Also, a user may select a particular table to be focused upon. In that situation, the method displays not only the focused table but also the tables with a direct relationship to it.

Description: The present invention relates generally to computer databases and more particularly to presenting information on display devices of varying sizes. Traditionally, display devices for computer systems have been of the same approximate size. For example, the usual display device consists of a monitor whose overall dimensions are similar to those of consumer-oriented television sets. The size of standard monitor screens (about 13 to 19 inches diagonally) has been assumed (implicitly or explicitly) by most interface designers. The result of this is that much of the previous work on interfaces (in particular interfaces to information systems) does not scale well to displays of smaller than usual size. Examples of where this is true are mobile computers, pen computers, and PDAs. The current small display sizes of these machines give rise to the problem of trying to display large amounts of data in a very limited area, and doing so without sacrificing clarity and coherence. Clearly, one solution is to simply show all the data on the screen and have the user navigate (using scrollbars, for instance) through all the information. Anyone who has had to scroll through large amounts of data in this fashion knows how frustrating this process can become. Furthermore, this approach has the effect of very quickly confusing the user, especially in situations where the information items displayed contiguously on the screen are not logically related to each other. In the area of hypertext, the relevant research issues are more in the nature of helping the user keep track of their place while reading the hypertext information. In that context the use of Overview Diagrams has been suggested (see for example, J. Nielsen, The art of navigating through hypertext, Communications of the ACM , 33(3), March 1990). This is a technique for providing a high-level view of the information. However, overview diagrams are not generated automatically, they provide information about the entire document, and are not dependent on any database-related information. In the area of database interfaces, the main emphasis has been the creation of easy-to-use interfaces. For example, the PICASSO graphical interface provided a tool for inexperienced users to graphically enter database queries and receive information about the semantics of their query (Please see, H.-J. Kim, H. F. Korth, and A. Silberschatz, PICASSO: a graphical query language, Software Practice and Experience, 18(3):169-203, March 1988). The designer of QBE (Query by Example) provided an interface allowing users to visually query a database by providing an example of the type of answer they were looking for (see, M. M. Zloof. OBE/QBE: A language for office and business automation, IEEE Computer, pages 13-22, May 1981). Other systems such as OdeView do make use of semantic links to offer the user possible query paths (Please see, R. Agrawal, N. H. Gehani, and J. Srinivasan, Odeview: The graphical interface to Ode, Proceedings of ACM-SIGMOD 1990 International Conference on Management of Data, Atlantic City, New Jersey, pages 34-43, May 1990). However, these systems present the user with all possible paths, and do not limit the paths to the relevant ones. They do not use a threshold to determine relevancy either. This is also true for other systems such a ISIS (Please see, P.C. Kanellakis, K.J. Goldman, S.A. Goldman and S.B. Zdonik, Isis: Interface for a semantic information system, Proceedings of ACM-SIGMOD 1986 International Conference on Management of Data, Austin, 1985). US 5,428,776 discloses a Graphical Query Front End system for querying a relational database. The graphical query consists of query tables which are processed to produce an output of query table sets which is then displayed. US 5,546,517 discloses a system for automatically specifying the page content and links between pages for a hypermedia document. It is a primary aim of the present invention to automate how information is optimally displayed on a small computer display. It is another aim of the present invention to display information about a related subset of all the data at any one time. It is another aim of the present invention to prioritise related subsets of data to determine how to display the information. According to the present invention, there is provided a method for sending data from a database to a computer output device having a predetermined display size, said database including a plurality of tables for holding said data, said database having a schema indicative of relationships between said tables, said tables having attributes, said attributes containing said data, the method comprising: processing a query of said database, said query containing query tables; determining weights for each pair of query tables, said weights being indicative of occurrence of said query table pairs in previous queries; determining sets of said query table pairs based on said weights; selecting said sets depending on the predetermined display size of said computer output device; and sending to said computer output device any one of said selected sets which contains query tables specified in said query. According to a further aspect of the present invention, there is provided an apparatus for sending data from a database to a computer output device having a predetermined display size, said database including a plurality of tables for holding said data, said database having a schema indicative of relationships between said tables, said tables having attributes, said attributes containing said data, comprising: means for processing a query of said database, said query containing query tables; means for determining weights for each pair of query tables, said weights being indicative of occurrence of said query table pairs in previous queries; means for determining sets of said query table pairs based on said weights; means for selecting said sets depending upon the predetermined display size of said computer output device; and means for sending to said computer output device any one of said selected sets which contains query tables specified in said query. The present invention provides a method for presenting information on display devices of varying sizes. In particular, the approach allows a user to make use of very small display surfaces, such as those found on mobile computers and personal digital assistants (PDAs). The usefulness of this method is that it determines which information the user is likely to want to examine at the same time, hence reducing the amount of data that needs to be presented at any one time. The approach can be tuned to any combination of screen size and information granularity (i.e. the size of data items). Large schemata (consisting of numerous tables) should be split up into subsets each of which contains a smaller number of tables. Of course, each subset needs to be small enough so that it can be conveniently displayed on a small screen. A feature of the approach is that each subset contains tables that are logically related to each other in some fashion. The actual nature of the "relationship" can depend on many factors, but it is currently based on a set of queries that the user has declared to be "most likely" queries. Additional advantages and features of the present invention will become apparent from the subsequent description and the appended claims, taken in conjunction with the accompanying drawings, in which: Figure 1 is functional flow block diagram showing the top-level functions for performing the method for presenting information on display devices of varying sizes; Figure 2 is an entity relationship diagram showing a database schema as an example of how to determine Table Connected Schema Sub-components (TCSSs); Figure 3 is a flowchart showing how a set of tables is chosen in determining the TCSSs; Figure 4 is a flowchart showing the procedure of making a table the focus of a query; Figure 5 is a flowchart showing the procedure of removing focus from a table; Figure 6 is an entity relationship diagram showing a database schema with sample relationship and attribute values; Figure 7 is a PDA display serving as an example of the output of the present invention; and Figure 8 is a network diagram showing tables placed in separate databases across the network which is connected to a printer and the Internet. As shown in Figure 1, the method consists of performing the following steps. 1. Represent the schema in the form of a weighted graph G. This step is performed at block 20 . 2. Use join queries, if any, from the set of frequently executed queries to generate edges belonging to the graph G. This step is performed at block 30 . 3. Find a threshold value, t, such that after pruning the graph by dropping edges with weights lower than t, the largest connected sub-schemata that are obtained from the pruned graph can be displayed on the screen completely. This is an iterative process. This step is performed at block 40 . 4. Individual tables can be made the focus which adds emphasis to relationships with respect to a given table. This step is performed at block 50 . 5. Eventually, focus can also be removed from tables which were initially made foci. Block 60 performs this step. Block 50 and block 60 are optional steps for the present invention. They can be added to increase the functionality of the present invention, but even when added, they may not always be performed. The material below describes each of the steps in greater detail. Graphical Representation of Schema Suppose a set of queries that a user executes often on the database is accessible. Typically, many of these queries would involve join operations between multiple tables. Consider representing the database schema by a weighted graph, G, consisting of nodes, {N} and edges {E}. Each column in each table of the schema (i.e., each attribute) is represented by a node in this graph. Any binary join operation involving a pair of attributes can be represented by an edge (of weight 1) between the attributes (i.e. nodes in the graph) in the join. As more queries are considered, if there is already an edge between two attributes, the weight of the edge is increased by one. The pseudocode for this procedure of creating a weighted graph, G , is as follows: The graph thus constructed represents the strength of relationships between columns of tables in the database schema. Pruning the Graph Once this graph is constructed, the graph is then pruned by dropping all edges whose weight is below some selected threshold value. The threshold value is chosen in an iterative manner so that the largest resulting subset of tables still fits in the available screen space. The resulting graph is processed to choose sets of tables which are connected to each other by at least one edge whose weight exceeds the threshold value. Each set of such connected tables forms what is termed a Table Connected Schema Sub-component (TCSS) of the graph, or simple connected schema sub-component. Notice that the notion of connected sub-components in the graph is not the same as the traditional meaning of the term in graph theory. Here, the fact that individual nodes of the graph belong to a parent table is exploited. Two tables are connected if there is an edge between any of their component nodes (i.e., columns). The mechanism to obtain Table Connected Schema Sub-components is described in the following pseudocode: An example is shown in Figure 2. The schema contains 6 tables and each table (R 1 100 , R 2 102, R 3 104, R 4 106, R 5 108, R 6 110) contains columns as shown (a 1 , a 2 etc.). The columns with edges drawn between them (both solid as well as dotted) correspond to the join paths derived from a set of SQL queries against these tables. For example, there is a join path 112. between R 1 .a 1 and R 2 .a 1 . The number above each edge indicates the weight of the edge. For example, join path 112 has weight 114 of "3". The graph corresponding to this schema contains 17 nodes (one for each column in every table in the schema), and 6 edges as drawn in Figure 2. Given a threshold value of 3, the only three edges which have at least this value are shown as solid lines in the Figure 2: join path 112 , join path 116 , and join path 118 . The edges with dotted lines are those whose weights are lower than the threshold value. Such a graph yields three sub-components containing connected tables: S 1 containing tables R 1 100 , R 2 102 and R 4 106; S 2 containing tables R 3 104 and R 5 108 ; and S 3 containing just table R 6 110. It should be understood that the present invention is not limited to the situation where the database resides solely on one computer, but also encompasses the situation where the database and its tables may be distributed across several computers. Also, the present invention is not limited to where tables to be queried are contained only in one database, but may be found in several databases. By choosing the threshold value appropriately (depending on the weights of the edges and connectivity of nodes in the original graph, as well as the display size), a set of connected schema sub-components can be constructed such that each set of tables fits in one display screen. Notice that these tables are logically connected to each other since they are derived from frequently occurring join paths between them. Considering that the join paths were themselves obtained from a suite of frequently used queries, it is expected that these table groupings represent the information that a user would like to see together. If the initial threshold chosen is too high, there may be many sub-components which contain very few tables together. Therefore the threshold value is reduced until a suitable value is found. Notice also that if no join information is available, there are many sub-components each of which contains just one individual table, i.e. there will be as many TCSSs as tables in the schema; This corresponds to the situation where the preprocessing has been unable to yield natural groupings of tables in the schema. The user may choose to either view the tables one by one or view all the tables together and use traditional methods of navigation (such as scroll bars). Figure 3 shows how the correct set of tables to be displayed is chosen. The start block 200 indicates that processing begins at block 210 . Block 210 sets the threshold to the smallest edge weight. Block 220 gets all the TCSS from graph G. Decision block 230 inquires whether the largest TCSS can fit within the size of the computer output display. If it cannot, then block 240 increases the threshold by 1. Decision block 250 inquires whether the threshold is greater than the highest edge weight. If not, then the processing returns to block 220 . If the threshold weight is greater than the highest edge weight, the largest TCSS cannot be displayed (block 255) and the processing terminates at block 270. If decision block 230 determines that the largest TCSS can fit within the size of the computer output display, then block 260 displays the tables that are in the TCSS. Processing then terminates at stop block 270. Adding Focus to a Table For each of the tables displayed, only those columns that participate in joins between the various tables are displayed on the screen. Once a group of related tables is presented to the user, there is an option of making a specific table the focus. Making a table a focus involves displaying all the columns of the given table, and in addition, all other columns (belonging to other tables) that share an edge with columns belonging to the table in focus. This results in displaying all the tables which have columns sharing edges with the columns of the table in focus. The additional tables that are now displayed are those which share edges with the columns of the table in focus - regardless of the weight of the edge involved. In this fashion, a user could navigate the entire schema by making different tables the focus. Of course, if a particular table is made the focus and too many other associated tables are to be shown, there can be scrolling through the screen or having a second threshold value to prune the number of items being displayed. The idea of making a table the focus is to indicate interest in all other tables that are logically related to this focused table. For example, referring back to Figure 2, while displaying sub-component S 2 only tables R 3 104 and R 5 108 are shown on the screen. If, now, R 3 104 is made the focus, the additional tables that are displayed alongside the original two tables are R 4 106, R 6 110 and R 1 100, since all these tables have edges in common with columns in R 3 104. Figure 4 shows this procedure of making table T the focus. The start block 300 indicates that processing begins at block 310. Block 310 gets the graph G. Decision block 320 determines if there are more edges in the graph. If there are no more, then block 330 adds table T to the set of focus tables and processing for this aspect of the invention terminates at stop block 340 . If Decision block 320 determines that there are more edges in the graph, then block 350 gets edge E. Next, decision block 360 determines if that edge E involves table T. If it does not, then processing returns to decision block 320 . If decision block 360 does determine that edge E involves table T, then block 370 obtains the other table T1 involved in edge E. Processing continues at decision block 380 . If Decision block 380 determines that T1 is displayed, then processing returns to decision block 320 . If it is not, then block 390 displays T1 and adds T1 to the list as introduced by T. Removing Focus from a Table When a table is removed as the focus, all the tables containing edges of weights lower than the threshold value that the table of focus introduced into the display are removed. Since there is no guarantee that the user will remove tables as focus in the reverse order that they were made foci, the order in which tables were made foci is maintained so that they can be undone in the reverse order. This is somewhat similar to hypertext navigation systems, i.e. navigation of a schema in this fashion is akin to a stack of traversals. The first degree neighbors of a table, T, is defined to be all other tables whose columns share an edge with columns from T. This is a schema wherein making a table the focus involves displaying all first degree neighbors of this table. One could extend this notion and display nth order neighbors where n is a tunable parameter. Figure 5 shows this procedure of removing focus from table T. The start block 400 indicates that processing begins at decision block 410 . If decision block 410 determines that the focus-tables do not contain table T, then processing branches to block 450 which will be discussed below. If decision block 410 determines that the focus-tables do contain table T, then processing continues at block 420 which gets the next table T1 from the focus-tables. Decision block 430 determines if table T is the same as table T1. If they are not the same, the processing returns to block 420 to fetch the next table. If T is the same as T1, then for each table T2 introduced by table T1, block 440 removes table T2 from the list of tables being displayed. Block 450 displays the list of tables and processing terminates for this aspect of the invention at the stop block 460 . Example The following example uses tables R1 510, R2 512 , R3 514, R4 516 with the relationships shown in Figure 6 (these relationships are similar to the ones shown in Figure 2). Table R1 may assume the following values: Table R2 may assume the following values: Table R3 may assume the following values: Table R4 may assume the following values: A user may request that data from the tables R1, R2, R3, and R4 be sent to the user's PDA screen by specifying the following query: SELECT DISTINCTROW R1.[Employee Grade], R1.[Employee Id], R2 [Salary v] R4.[Employee Name], R4.[Work Phone Number], R3.[County of Residence], R3.[Employee Home Address], R3.[Home Phone Number], * FROM ((R1 INNER JOIN R2 ON R1.[Employee Grade] = R2.[Employee Grade]) INNER JOIN R3 ON R1.[Employee Id] = R3.[Employee Id]) INNER JOIN R4 ON (R4.[Employee Id] = R3.[Employee Id]) AND (R1.[Employee Id] = R4.[Employee Id]) ORDER BY R1.[Employee Grade]; The query shown above results in the following four paths each of weight one being generated: (R1.Employee Grade, R2.Employee Grade) (R1.Employee Id, R3.Employee Id) (R3. Employee Id, R4.Employee Id) (R1.Employee Id, R4.Employee Id) The query is processed in accordance with the method disclosed above to display results 580 that will fit within the screen 590 of the PDA 600 as shown in Figure 7. An embodiment has a SQL parser that, given, a set of queries (Select queries) produces join path sets of the form R i ,A j ,R k ,A l .... Each such set contains attributes that occur together in a single query and contribute one edge for every pair in the set. Using the above sets of generated join path information and a schema's metadata (i.e. names of tables and their columns), another program generates the graph describing the path information. Given a threshold (currently an integer value), this program then generates the various sub-components of the graph with table grouping information. There is also a command line interface which allows different tables to be the focus (and subsequently remove them). All the code mentioned above runs on Unix, but the present invention is not limited to this specific software. For example, another embodiment can run on Windows 3.1. Given a schema and a threshold value, the program determines the largest connected sub-component and displays it on the screen. Using mouse interactions, different tables can be made foci (and, later, removed as foci as well) in the manner discussed earlier. Figure 8 is a network diagram showing tables placed in separate databases across a local network which is connected to a printer and the Internet. A user on computer 650 may query for information contained in tables contained in database 660 on computer 662 and database 670 on computer 672 . This embodiment can use the described method to prioritize information that is to be sent across a network (such as the Internet 680 ). In this situation, the embodiment can send information to the user on computer 650 which the user is more likely to primarily wish to view. The embodiment can also direct the output to a printer 690 located on a local network 700.

Claims: A method for sending data from a database to a computer output device having a predetermined display size, said database including a plurality of tables for holding said data, said database having a schema indicative of relationships between said tables, said tables having attributes, said attributes containing said data, the method comprising: processing a query of said database, said query containing query tables; determining weights for each pair of query tables, said weights being indicative of occurrence of said query table pairs in previous queries; determining sets of said query table pairs based on said weights; selecting said sets depending on the predetermined display size of said computer output device; and sending to said computer output device any one of said selected sets which contains query tables specified in said query. The method of claim 1 wherein said computer output device receives said set of said sending step through a network. The method of claim 1 or 2, further comprising the step of: grouping said query tables whose said weights satisfy a grouping threshold level. The method of claim 3 wherein said grouping threshold level is chosen, based upon display size of the computer output device so that each said set of said sending step can be substantially displayed within the display size of the computer output device. The method of any one of the preceding claims, further comprising the step of: selecting one of said query tables for a focused display on said computer output device, said focused display providing for displaying all attributes of said selected query table and all attributes of neighbours of said selected query table on said computer output device, said neighbours being tables having at least one of said relationships with said selected query table. The method of claim 5 further comprising the step of: scrolling through the display of the computer output device for viewing said focused display. The method according to any one of the preceding claims, wherein said relationships are join relationships between said query tables. The method according to any one of the preceding claims, wherein said computer output device is a computer screen. The method according to claim 8, wherein the set sent to the computer output device is substantially displayed within the display size of the computer output device. The method according to claim 9, wherein the size of said computer screen is smaller than the size of a standard desktop computer screen. The method according to any one of claims 1 to 7, wherein said computer output device is a printer. The method according to any one of the preceding claims, wherein said computer output device receives said any one of said selected sets through a network. The method according to any one of the preceding claims, wherein the database contains said tables located on a plurality of computers. An apparatus for sending data from a database to a computer output device having a predetermined display size, said database including a plurality of tables for holding said data, said database having a schema indicative of relationships between said tables, said tables having attributes, said attributes containing said data, comprising: means for processing a query of said database, said query containing query tables; means for determining weights for each pair of query tables, said weights being indicative of occurrence of said query table pairs in previous queries; means for determining sets of said query table pairs based on said weights; means for selecting said sets depending upon the predetermined display size of said computer output device; and means for sending to said computer output device any one of said selected sets which contains query tables specified in said query. The apparatus of claim 14 further comprising: means for grouping said query tables whose said weights satisfy a grouping threshold level. The apparatus of claim 15, wherein said grouping threshold level is chosen, based upon display size of the computer output device so that each said set of said sending means can be substantially displayed within the display size of the computer output device. The apparatus of claim 14, 15 or 16, further comprising: means for selecting one of said query tables for a focused display on said computer output device, said focused display providing for displaying all attributes of said selected query table and all attributes of neighbours of said selected query table on said computer output device, said neighbours being tables having at least one of said relationships with said selected query table. The apparatus of claim 17 further comprising: means for scrolling through the display of the computer output device for viewing said focused display. An apparatus according to any one of claims 14 to 18, wherein said relationships are join relationships between said query tables. An apparatus according to any one of claims 14 to 19, wherein said computer output device is a computer screen. An apparatus according to claim 20, wherein the set sent from said sending means to the computer output device is substantially displayed within the display size of the computer output device. An apparatus according to claim 21, wherein the size of said computer screen is smaller than the size of a standard desktop computer screen. An apparatus according to any one of claims 14 to 19, wherein said computer output device is a printer. An apparatus according to any one of claims 14 to 23, wherein said computer output device receives said set of said sending means through a network. An apparatus according to any one of claims 14 to 24, wherein the database contains said tables located on a plurality of computers.

Inventors: ALONSO RAFAEL, MANI VISWANTHAN SUBRA, ALONSO, RAFAEL, MANI, VISWANTHAN SUBRA
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1997
Main classification: G06F17
IPC codes: G06F17, G06F3