The present invention relates to a method for accessing a database including the steps of presenting at least one category item defining a search criterion for the database, selecting one or more of the at least one category item and searching in the database according to the selected one or more category items. Furthermore, the present invention relates to a corresponding device for accessing a database.
For searching desired data in a database, three methods are available: 1) It is possible to browse all data in the database and find out the wanted data; 2) It is possible to query the database by input keywords; and 3) It is possible to search in the database through some pre-defined categories.
The advantage of method 1 is that one can browse all data in the database. Its disadvantage is that it is an inefficient method in case of a large database. The advantage of method 2 is that one can query the database quickly by a keyword. Its disadvantage is that there is no guarantee to find the desired results, if the wrong keywords are used. The method 3 makes use of the advantages of method 1 and 2. It uses pre-defined categories (keywords) to sort and access all data in the database. By using method 3, the user may search for desired data efficiently among all database data. The disadvantage of method 3 is that the defined categories and associated database access implementation must be pre-built in the database-interface-machine. If users want to update categories and/or database access methods in their interface machine, they must update the related software or hardware.
In this connection document WO 02/15047 discloses an interface system for accessing data stored in a database. The interface comprises a data dictionary structurally defining the database and a dictionary of interface defining descriptors. The interface descriptors can be modified or new descriptors can be added. When performing searches, the interface descriptor has to be combined with the dictionary defined in the database. Generally, when the interface defining descriptors are modified or new descriptors are added, the database itself is also modified.
A further document U.S. Pat. No. 6,026,333 discloses a data management system comprising a database and a category definition dictionary. The category definition dictionary defines categories for different time periods. These definitions are used when data has to be searched from the database. The category definitions are used for tracking re-classifications of products from a first category to a second category. An addition of categories is not disclosed.
In view of that it is the object of the present invention to provide more comfortable update possibilities for database accesses.
Therefore, according to the present invention there is provided a method for accessing a database including the steps of presenting at least one category item defining a search criterion for said database, selecting one or more of said at least one category item, and searching in said database according to said selected one or more category items, wherein said at least one category item is provided within interface descriptor means being commonly available for database accesses.
Furthermore, according to the present invention the above object is solved by a device for accessing a database including display means for presenting at least one category item defining a search criterion for said database, selecting means connected to said display means for selecting one or more of said at least one category item, and searching means connected to said selecting means for searching in said database according to said selected one or more category items, wherein said display means being connectable to external interface descriptor means providing said at least one category item.
In other words, a concept of interface descriptor for database accesses is proposed. The interface descriptor may be a XML file or a file in another standard programming language, which describes interface categories and database access strategies. A so formed database interface machine contains a standard category display method and a standard database access method, which, however, can use the definition of an interface descriptor to set up a categorized interface to the database and complete database search. The advantage of using such interface descriptor is, that, when users want to update the interface category and database access method, they do not need to change the software or hardware of the interface machine. They only have to update the interface descriptor, based on the XML schema. The interface descriptor can define complicated database access strategies by providing subcategory items and combined search criteria within a single category item. Thus, large databases, for example metadata databases, can be searched comfortably.
The present invention will now be described in more detail in connection with the attached figures showing in:
The following described examples are preferred embodiments of the present invention. However, for better understanding of the present invention a traditional database categorized access application is explained first in connection with
Traditionally, a database 1 can be accessed by an interface machine 2. Pre-defined category items 5 are shown by an associated presentation method 4 via a graphic user interface (GUI) 3. These category items 5 are defined in category classes in the interface machine 2. The category items are a fixed part of the interface machine 2. Under each category item, an associated individual database access method 6 is defined, or all category items can share a general database access method 6.
The access method according to the prior art thus includes the following steps. The user may browse a category of database 1, choose a category item and search the database 1 through an access method 6 defined under the current category item.
As mentioned above, the disadvantage of this traditional database categorized access application (
To solve this disadvantage, a database categorized access method based on an interface descriptor is proposed according to the present invention.
As shown in
Preferably, the interface descriptor is a XML file, which is defined by its XML schema.
As shown in
The root element “InterfaceDescriptor” contains one or more sub-elements “AccessMethod” (min. 1˜max. unbounded). This is indicated by the symbol between “InterfaceDescriptor” and “AccessMethod”. Each “AccessMethod” includes an attribute “name” (required), which gives the name of a database access method. See
Each “AccessMethod” has one or more sub-elements “Category” (min. 1˜max. unbounded). Each “Category” contains the attributes “name” (required) and “counter” (optional). Attribute “name” contains the shown name of category. Attribute “counter” contains the number of the last search result. See
As shown in
As shown in
The database categorized accessing based on the interface descriptor may be applied to a metadata database interface machine.
As shown in
In
In
Furthermore, the user may search under category “Page 100” 56. In this case, as defined in InterfaceDescriptor.xml, the search machine will search for keyword “100” as type “value” under attribute “PageNo” among all teletext metadata. A found result is shown in a view pane 57. The respective XML command is:
As shown in
Thus, the interface descriptor for database categorized accessing allows to develop more complicated data access strategies.
The interface descriptor according to the present invention can work independently, since all relevant dictionary elements such as search key words are included in the interface descriptor. Furthermore, the interface descriptor can access the database directly and does not need any additional category definition dictionary.
Number | Date | Country | Kind |
---|---|---|---|
03000395.8 | Jan 2003 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP03/13440 | 11/28/2003 | WO | 7/11/2005 |