The invention relates to databases. More specifically, the invention relates to a system and method for providing generic attributes across multiple categories in such databases.
With the advent of the computer industry, databases have played an important role in order to store the vast amounts of information employed in such an industry. Different types of databases have been developed depending on the type of information, size, application as well as other factors.
Currently, one type of database is employed for the storage of different types of categories having specific attributes. One application of such a database is used in conjunction with an Internet-based auction facility of different consumer products and services. For the storage of e-commerce goods or consumer product and/or service information into a database, each type of product (e.g., automobiles, shoes, etc.) will have its own category. Typically, in such databases, each category is stored in a separate data structure (e.g., a table), wherein such data structures will include the specific attributes for that category. For example, for a shoes category, the attributes could include (1) color, (2) size, and (3) type of material. Accordingly, a data structure is created that includes these attributes. Similarly, for an automobile category, the attributes could include (1) make, (2) model, (3) year and (4) color. Therefore, a separate data structure is created for these attributes.
Disadvantageously, this type of database wherein a table is allocated for each type of category makes the design, the implementation, the testing, as well as the management of such a system very difficult. Accordingly, there is a need for an improved database system that is able to store vast amounts of information across a number of different categories, while being easier to design, implement, test and manage in comparison to the conventional database systems.
Embodiments of the invention may be best understood by referring to the following description and accompanying drawings which illustrate such embodiments. In the drawings:
A method and system for storing multiple items across different categories in a database are described. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be evident, however, to one skilled in the art that the present invention may be practiced without these specific details.
The auction facility 10 includes one or more of a number of types of front-end servers, namely page servers 12 that deliver web pages (e.g., markup language documents), picture servers 14 that dynamically deliver images to be displayed within Web pages, listing servers 16, CGI servers 18 that provide an intelligent interface to the back-end of facility 10, and search servers 20 that handle search requests to the facility 10. E-mail servers 21 provide, inter alia, automated e-mail communications to users of the facility 10.
The back-end servers include a database engine server 22, a search index server 24 and a credit card database server 26, each of which maintains and facilitates access to a respective database.
The Internet-based auction facility 10 may be accessed by a client program 30, such as a browser (e.g., the Internet Explorer distributed by Microsoft Corp. of Redmond, Wash.) that executes on a client machine 32 and accesses the facility 10 via a network such as, for example, the Internet 34. Other examples of networks that a client may utilize to access the auction facility 10 include a wide area network (WAN), a local area network (LAN), a wireless network (e.g., a cellular network), or the Plain Old Telephone Service (POTS) network.
Database 23 includes generic attribute table 202, attribute validity table 204, attribute value table 206 and attribute map table 208. Generic attribute table 202 is a data structure that includes and defines all the attributes across all the different items of the different categories included in database 23. For example, in one embodiment, database 23 is used in conjunction with the tracking of different e-commerce goods or consumer products (e.g., automobiles, shoes) and/or services. Accordingly, these different categories have attributes that are different as well as attributes that are the same. For example, the categories of shoes and automobiles both may have a color attribute. In contrast, the category of automobiles may have a year attribute, indicating the year of the automobile, while the category of shoes may not have this attribute.
Moreover, the attribute ID can be the same across different categories within database 23 for those attributes that are the same. For example, a color attribute can be used in conjunction with both automobiles and shoes. Therefore, even though two separate categories include a “color” attribute, there is a need for only one entry into database 23. Accordingly, database 23 includes attributes that can be shared across different categories of products, thereby allowing for fewer numbers of tables to be designed, created and maintained than conventional databases wherein a table in such a database is designed, created and maintained for each category.
Self-defined, attribute name column 305 is the name of the attribute. Further, attribute type column 307 is the type defined for that attribute. In one embodiment the attribute types include multiple choice, Boolean, integer and float. Multiple-choice type is for those attributes that have discrete values associated therewith. For example, the attribute type for color is a multiple-choice type, as such a type can be different colors (e.g., blue, green or red). The “Boolean” attribute type is for those attributes that have one of two conditions. For example, air conditioning is a Boolean type, as the product (e.g., an automobile or house) either does or does not have air conditioning. Moreover, the integer and float could be incorporated into various categories including, for example, the year and the price of the item, respectively. However, embodiments of the invention are not limited to these attribute types, as other attribute types can be included in attribute type column 307.
Attribute validity table 204 includes site ID column 402 that, as described above, stores the site (e.g., country) in which the item is being sold and/or is located. In one embodiment wherein the site is a country that is not English, the attributes are stored and/or outputted in the native language (e.g., Japanese). Additionally as described above, attribute ID column 404 stores a unique identifier within database 23 for that particular attribute.
Moreover, valid value ID column 406 stores a unique identification number for a valid value for a particular attribute. Valid value column 408 stores the valid values for the attributes defined in generic attribute table 202. Because there can be multiple valid values for a particular attribute, attribute validity table 204 can include different valid value IDs and valid values associated with one attribute. One example would be an attribute having a “multiple choice” attribute type. Assuming that the color attribute is a “multiple choice” type and that its attribute ID is one, this attribute ID will be the same for three valid value IDs (e.g., one for red, two for blue and three for green). Accordingly, attribute validity table 204 will have three different entries for these three color attributes, wherein the attribute ID and site ID for all three entries are the same, while the valid value ID and valid value are different for the attribute.
Maximum range column 410 and minimum range column 412 store the ranges of valid values for the attributes defined in generic attribute table 202 that are defined by a range. One such range would be the year of the product. Moreover because attributes are shared across different items in different categories, there can be multiple valid ranges for a particular attribute. Accordingly, attribute validity table 204 can include multiple entries having different maximum and minimum ranges for a particular attribute. For example, assuming that for the year attribute for items the attribute ID is three and that there are three valid ranges for this attribute (e.g., (1) 1930-1939, (2) 1940-1949 and (3) 1950-1959), the valid value ID will be different for all three different year ranges, while having a different entry into attribute validity table 204 for each one. Further, for these three entries, the site ID and the attribute ID remain constant. Accordingly, attribute validity table 204 includes valid values for attributes that can be shared across different categories of products, thereby allowing for fewer numbers of tables to be designed, created and maintained than conventional databases. Moreover in one embodiment valid value column 408 is mutually exclusive of maximum range column 410 and minimum range column 412. For example, if an attribute (e.g., color) is a multiple choice attribute type, this attribute is defined by discrete components (e.g., red, blue or green) and not by a range.
Item ID column 502 is a unique identifier (i.e., an identification number) across database 23 for an item stored therein. For example, assuming that 10 different automobiles and 10 different pairs of shoes are stored in database 23, all 10 different automobiles and all 10 different pairs of shoes receive a unique identifier. Attributes #1-30 columns 504-508 define the values of the attributes, but not the attribute type (e.g., color), for a particular item that has a unique identifier. For example, one entry could include an item ID of 221264646, which has three different attributes: (1) attribute #1 is 1956, (2) attribute #2 is three and (3) attribute #3 is one.
Attribute map table 208 includes site ID column 602 that, as described above, stores the site (e.g., country) in which the item is being sold and/or is located. Category ID column 604 stores the type of category (e.g., automobile or shoes) that the attribute is within. Attribute position column 606 stores the position within the category that the attribute is located. For example, assuming that the category includes three attributes: (1) color, (2) size and (3) type of material, the attribute position for size would be two. Attribute map table 208 also includes attribute ID column 608 and is defined as described above in conjunction with
Display position column 610 stores the column position within a display interface when the attribute is outputted on such an interface. One example of a display interface is shown in
Output display interface 700 is a display interface for an automobile category based on a search within database 23 for certain automobiles. Accordingly, columns 706-712 include the make-model, the mileage, the year and the price, respectively of different automobiles being displayed in output display interface 700. Assuming that for an attribute entry in attribute map table 208 that is being outputted to output display interface 700 the display position is three, the associated attribute (i.e., the year attribute) would be positioned at column 3 of output display interface 700.
Additionally, display length column 612 stores the number of characters being displayed in a display interface when the attribute is outputted on such an interface. Returning to output display interface 700, the display length for the year attribute would be four (one for each digit in the year).
Moreover, search flag column 614 stores a number, when translated, defines whether this attribute is searchable and assuming that the particular attribute is searchable, whether the particular attribute was used for searching in a retrieval process within database 23. When an attribute is considered searchable, any retrieval processes from database 23 can employ such an attribute. For example, if a user of database 23 desires to find all of the cars in database 23 that have the color attribute of “blue” and the color attribute is searchable, such a user can use this color attribute to search and retrieve all blue-colored colors from database 23.
In conjunction with output display interface 700 of
During the bidding process for auction items, a user of the auction facility 10 may desire to search for particular auction item for which to bid. Accordingly, the user is presented with input display interface 800 through which the user provides certain search criteria for searching for and retrieving items from database 23. In one embodiment, input display interface 800 is a markup language page interface displayed by a browser. However, it will be appreciated that the display interface could comprise user interfaces presented by any WINDOWS® client application or stand-alone application, and need not comprise markup-language documents.
Input display interface 800 for an automobile category provides make field 802 and model field 804 into which a user may enter the make and model of the automobiles. Input display interface 800 also includes minimum year range field 806 and maximum year range field 808 into which a user may enter the range of years of the automobiles. Moreover, input display interface 800 includes mileage range field 810 and location field 812 into which a user may enter the mileage and location of the automobiles. Once the users enter the information for all or some of these fields and presses search button 813, method 900 commences, at block 902, wherein search servers 20 receives a request for all automobiles in database 23 that include the attributes that the user entered in fields 802-812.
Search servers 20 forwards this search request to database engine server 22. At block 904, database engine server 22 retrieves an item entry from the attribute value table 206 and derives the site ID and the category ID. In particular, the site ID and the category ID are derived from the item ID in the item entry through a decoding or translation procedure, known in the art. At decision block 906, database engine server 22 checks to see if the site ID and the category ID match the requested site ID and category ID from the search request. If the site ID and the category ID do not match the requested site ID and category ID from the search request, database engine server 22, at decision block 914, determines if this is the last item entry in attribute value table 206, which is further described below.
If, at decision block 906, the site ID and the category ID do match the requested site ID and category ID from the search request, database engine server 22, at block 908, database engine server 22 determines the attribute position of the first attribute based on its location in the item entry. For example, attribute #1 column 504 stores the first attribute value. Accordingly, the attribute position is one for this attribute value.
At block 910, database engine server 22 traverses attribute map table 208 to find the associated attribute map entry. In particular, database engine server 22 matches the derived site ID, category ID and attribute position to the site IDs, category IDs and attribute positions in the attribute map entries. Once the associated attribute map entry is found, at block 910, database engine server 22 generates a translation for the attribute value. In particular, based on the associated attribute map entry, the translation of the attribute value includes (1) the attribute ID from attribute ID column 608, (2) the display position from display position column 610, (3) the display length from display length column 612 and (4) the search flag from search flag column 614.
Further, database engine server 22 translates the attribute value by traversing generic attribute table 202 to find the associated attribute entry. In particular, database engine server 22 matches the site ID and the attribute ID from the attribute map entry. Once the associated attribute entry is found, database engine server 22 determines (1) the attribute name from attribute name column 305 and (2) the attribute type from attribute type column 307. At decision block 912, database engine server 22 checks to see if this is the last attribute for this item entry in attribute value table 206. If this is not the last attribute, database engine server 22, returning to block 908, determines the attribute position of the next attribute in the item category based on its location therein. If this is the last attribute, at decision block 912, database engine server 22 checks to see if this is the last entry, at block 914. If this is not the last entry, database engine server 22, at block 904, retrieves the next item entry. If this is the last entry, database engine server 22, at block 916, outputs the translation for the attribute values for each item that matched. In one embodiment, this output is formatted into a display interface, as illustrated in
The computer system 300 includes a processor 302, a main memory 304 and a static memory 306, which communicate with each other via a bus 308. The computer system 300 may further include a video display unit 310 (e.g., a liquid crystal display (LCD) or a cathode ray tube (CRT)). The computer system 300 also includes an alpha-numeric input device 312 (e.g. a keyboard), a cursor control device 314 (e.g. a mouse), a disk drive unit 316, a signal generation device 320 (e.g. a speaker) and a network interface device 322
The disk drive unit 316 includes a machine-readable medium 324 on which is stored a set of instructions (i.e., software) 326 embodying any one, or all, of the methodologies described above. The software 326 is also shown to reside, completely or at least partially, within the main memory 304 and/or within the processor 302. The software 326 may further be transmitted or received via the network interface device 322. For the purposes of this specification, the term “machine-readable medium” shall be taken to include any medium that is capable of storing or encoding a sequence of instructions for execution by the machine and that cause the machine to perform any one of the methodologies of the present invention. The term “machine-readable medium” shall accordingly be taken to included, but not be limited to, solid-state memories, optical and magnetic disks, and carrier wave signals.
Thus, a method and system for storing multiple items across different categories in a database have been described. Although the present invention has been described with reference to specific exemplary embodiments, it will be evident that various modifications and changes may be made to these embodiments without departing from the broader spirit and scope of the invention. Accordingly, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense.
The present application is a continuation of Ser. No. 11/558,291, filed Nov. 9, 2006, now U.S. Pat. No. 7,536,402 which issued May 19, 2009, which is a continuation of U.S. Pat. No. 7,136,863, which issued Nov. 14, 2006, which is a continuation of 09/563,069, filed Apr. 24, 2000, now U.S. Pat. No. 6,604,107, which issued Aug. 5, 2003. This application is also related to and claims priority to U.S. Pat. No. 6,778,993 which issued Aug. 17, 2004. These patents are incorporated herein by reference in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
3573747 | Adams et al. | Apr 1971 | A |
3581072 | Nymeyer | May 1971 | A |
4412287 | Braddock, III | Oct 1983 | A |
4674044 | Kalmus et al. | Jun 1987 | A |
4677552 | Sibley, Jr. | Jun 1987 | A |
4789928 | Fujisaki | Dec 1988 | A |
4799156 | Shavit et al. | Jan 1989 | A |
4811199 | Kuechler et al. | Mar 1989 | A |
4823265 | Nelson | Apr 1989 | A |
4864516 | Gaither et al. | Sep 1989 | A |
4903201 | Wagner | Feb 1990 | A |
5063507 | Lindsey et al. | Nov 1991 | A |
5077665 | Silverman et al. | Dec 1991 | A |
5101353 | Lupien et al. | Mar 1992 | A |
5136501 | Silverman et al. | Aug 1992 | A |
5168446 | Wiseman | Dec 1992 | A |
5205200 | Wright | Apr 1993 | A |
5243515 | Lee | Sep 1993 | A |
5258908 | Hartheimer et al. | Nov 1993 | A |
5280422 | Moe et al. | Jan 1994 | A |
5297031 | Gutterman et al. | Mar 1994 | A |
5297032 | Trojan et al. | Mar 1994 | A |
5305200 | Hartheimer et al. | Apr 1994 | A |
5325297 | Bird et al. | Jun 1994 | A |
5329589 | Fraser et al. | Jul 1994 | A |
5339391 | Wroblewski et al. | Aug 1994 | A |
5375055 | Togher et al. | Dec 1994 | A |
5394324 | Clearwater | Feb 1995 | A |
5426281 | Abecassis | Jun 1995 | A |
5479600 | Wroblewski et al. | Dec 1995 | A |
5485510 | Colbert | Jan 1996 | A |
5544051 | Senn et al. | Aug 1996 | A |
5553145 | Micali | Sep 1996 | A |
5557728 | Garrett et al. | Sep 1996 | A |
5596994 | Bro | Jan 1997 | A |
5598557 | Doner et al. | Jan 1997 | A |
5600833 | Senn et al. | Feb 1997 | A |
5627979 | Chang et al. | May 1997 | A |
5640569 | Miller et al. | Jun 1997 | A |
5657389 | Houvener | Aug 1997 | A |
5664115 | Fraser | Sep 1997 | A |
5689652 | Lupien et al. | Nov 1997 | A |
5694546 | Reisman | Dec 1997 | A |
5706457 | Dwyer et al. | Jan 1998 | A |
5710889 | Clark et al. | Jan 1998 | A |
5715314 | Payne et al. | Feb 1998 | A |
5715402 | Popolo | Feb 1998 | A |
5717989 | Tozzoli et al. | Feb 1998 | A |
5722418 | Bro | Mar 1998 | A |
5724524 | Hunt et al. | Mar 1998 | A |
5724593 | Hargrave, III et al. | Mar 1998 | A |
5727165 | Ordish et al. | Mar 1998 | A |
5758333 | Bauer et al. | May 1998 | A |
5771291 | Newton et al. | Jun 1998 | A |
5771380 | Tanaka et al. | Jun 1998 | A |
5790790 | Smith et al. | Aug 1998 | A |
5794219 | Brown | Aug 1998 | A |
5799285 | Klingman | Aug 1998 | A |
5803500 | Mossberg | Sep 1998 | A |
5818914 | Fujisaki | Oct 1998 | A |
5826244 | Huberman | Oct 1998 | A |
5826258 | Gupta | Oct 1998 | A |
5835896 | Fisher et al. | Nov 1998 | A |
5845265 | Woolston | Dec 1998 | A |
5845266 | Lupien et al. | Dec 1998 | A |
5850442 | Muftic | Dec 1998 | A |
5857188 | Douglas | Jan 1999 | A |
5857201 | Wright et al. | Jan 1999 | A |
5857203 | Kauffman et al. | Jan 1999 | A |
5872848 | Romney et al. | Feb 1999 | A |
5873069 | Reuhl et al. | Feb 1999 | A |
5884056 | Steele | Mar 1999 | A |
5890138 | Godin et al. | Mar 1999 | A |
5905974 | Fraser et al. | May 1999 | A |
5905975 | Ausubel | May 1999 | A |
5909544 | Anderson et al. | Jun 1999 | A |
5922074 | Richard et al. | Jul 1999 | A |
5924072 | Havens | Jul 1999 | A |
5926794 | Fethe | Jul 1999 | A |
5944790 | Levy | Aug 1999 | A |
5974412 | Hazlehurst et al. | Oct 1999 | A |
5991739 | Cupps et al. | Nov 1999 | A |
6006221 | Liddy et al. | Dec 1999 | A |
6035288 | Solomon | Mar 2000 | A |
6035402 | Vaeth et al. | Mar 2000 | A |
6044363 | Mori et al. | Mar 2000 | A |
6047264 | Fisher et al. | Apr 2000 | A |
6055518 | Franklin et al. | Apr 2000 | A |
6058379 | Odom et al. | May 2000 | A |
6058417 | Hess et al. | May 2000 | A |
6061448 | Smith et al. | May 2000 | A |
6073117 | Oyanagi et al. | Jun 2000 | A |
6085176 | Woolston | Jul 2000 | A |
6104815 | Alcorn et al. | Aug 2000 | A |
6119137 | Smith et al. | Sep 2000 | A |
6119229 | Martinez et al. | Sep 2000 | A |
6161082 | Goldberg et al. | Dec 2000 | A |
6178408 | Copple et al. | Jan 2001 | B1 |
6189003 | Leal | Feb 2001 | B1 |
6192407 | Smith et al. | Feb 2001 | B1 |
6202051 | Woolston | Mar 2001 | B1 |
6243691 | Fisher et al. | Jun 2001 | B1 |
6266651 | Woolston | Jul 2001 | B1 |
6266652 | Godin et al. | Jul 2001 | B1 |
6363337 | Amith | Mar 2002 | B1 |
6526426 | Lakritz | Feb 2003 | B1 |
6574239 | Dowling et al. | Jun 2003 | B1 |
6598026 | Ojha et al. | Jul 2003 | B1 |
6604107 | Wang | Aug 2003 | B1 |
6778993 | Wang | Aug 2004 | B2 |
6901408 | Fachat et al. | May 2005 | B2 |
6999932 | Zhou | Feb 2006 | B1 |
7013289 | Horn et al. | Mar 2006 | B2 |
7136863 | Wang | Nov 2006 | B2 |
7418390 | Jokipii | Aug 2008 | B1 |
7536402 | Wang | May 2009 | B2 |
20010029455 | Chin et al. | Oct 2001 | A1 |
20020069049 | Turner | Jun 2002 | A1 |
20030011608 | Wada | Jan 2003 | A1 |
20030018885 | Landsman et al. | Jan 2003 | A1 |
20050240392 | Munro et al. | Oct 2005 | A1 |
20070088722 | Wang | Apr 2007 | A1 |
Number | Date | Country |
---|---|---|
2253543 | Mar 1997 | CA |
2658635 | Aug 1991 | FR |
2002207898 | Jul 2002 | JP |
9300266 | Feb 1993 | NL |
WO-9215174 | Sep 1992 | WO |
WO-9517711 | Jun 1995 | WO |
WO-9634356 | Oct 1996 | WO |
WO-9737315 | Oct 1997 | WO |
WO-9963461 | Dec 1999 | WO |
WO-0058862 | Oct 2000 | WO |
WO-0078557 | Dec 2000 | WO |
WO-0182107 | Nov 2001 | WO |
WO-0182115 | Nov 2001 | WO |
WO-03038560 | May 2003 | WO |
Number | Date | Country | |
---|---|---|---|
20090187565 A1 | Jul 2009 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11558291 | Nov 2006 | US |
Child | 12416088 | US | |
Parent | 10600861 | Jun 2003 | US |
Child | 11558291 | US | |
Parent | 09563069 | Apr 2000 | US |
Child | 10600861 | US |