Plaque It!
Sponsored by: Flash of Genius |
| 3618027 | ASSOCIATIVE MEMORY SYSTEM WITH REDUCED REDUNDANCY OF STORED INFORMATION | November, 1971 | Feng | 364/900 |
| 3670310 | METHOD FOR INFORMATION STORAGE AND RETRIEVAL | June, 1972 | Bharwani et al. | 395/603 |
| 4068300 | Data processing system utilizing data field descriptors for processing data files | January, 1978 | Bachman | 364/200 |
| 4128891 | Magnetic bubble domain relational data base system | December, 1978 | Lin et al. | 364/900 |
| 4497039 | Join operation processing system in relational model | January, 1985 | Kitakami et al. | 364/900 |
| 4498145 | Method for assuring atomicity of multi-row update operations in a database system | February, 1985 | Baker et al. | 364/900 |
| 4575798 | External sorting using key value distribution and range formation | March, 1986 | Lindstrom et al. | 364/300 |
| 4631664 | Partnership data base management system and method | December, 1986 | Bachman | 364/200 |
| 4670848 | Artificial intelligence system | June, 1987 | Schramm | 364/513 |
| 4791561 | Interactive construction of means for database maintenance | December, 1988 | Huber | 364/300 |
| 4807122 | Information storage system | February, 1989 | Baba | 364/200 |
| 4829427 | Database query code generation and optimization based on the cost of alternate access methods | May, 1989 | Green | 364/300 |
| 4855908 | POS system | August, 1989 | Shimoda et al. | 364/39 |
| 4893232 | Data management system for efficiently searching data elements and having a flexible registration order of data elements | January, 1990 | Shimaoka et al. | 364/200 |
| 4901229 | Parallelized rules processing system using associative memory for pipelined execution of plural join operations and concurrent condition comparing | February, 1990 | Tashiro et al. | 364/200 |
| 4918593 | Relational database system | April, 1990 | Huber | 364/200 |
| 4930071 | Method for integrating a knowledge-based system with an arbitrary database system | May, 1990 | Tou et al. | 364/300 |
| 4930072 | Method for computing transitive closure | May, 1990 | Agrawal et al. | 364/300 |
| 4933848 | Method for enforcing referential constraints in a database management system | June, 1990 | Haderle et al. | 395/600 |
| 4947320 | Method for referential constraint enforcement in a database management system | August, 1990 | Crus et al. | 395/600 |
| 4967341 | Method and apparatus for processing data base | October, 1990 | Yamamoto et al. | 364/200 |
| 5133068 | Complied objective referential constraints in a relational database having dual chain relationship descriptors linked in data record tables | July, 1992 | Crus et al. | 365/600 |
| 5168565 | Document retrieval system | December, 1992 | Morita | 365/600 |
| 5193183 | System for accessing design data of modeler subsystems by reference to partnership set and for dynamically correlating design data of modeler subsystems | March, 1993 | Bachman | 395/600 |
| 5197005 | Database retrieval system having a natural language interface | March, 1993 | Shwartz et al. | 364/419 |
| 5226158 | Method and apparatus for maintaining referential integrity within a relational database | July, 1993 | Horn et al. | 395/600 |
| 5239663 | Self-adapting and multifunctional process and structure for the automated evaluation of logical or arithmetic expressions, particularly for extended database consultation | August, 1993 | Faudemay | 365/800 |
| 5247575 | Information distribution system | September, 1993 | Sprague et al. | 380/9 |
| 5262942 | Financial transaction network | November, 1993 | Earle | 364/408 |
| 5297279 | System and method for database management supporting object-oriented programming | March, 1994 | Bannon et al. | 395/600 |
| 5369761 | Automatic and transparent denormalization support, wherein denormalization is achieved through appending of fields to base relations of a normalized database | November, 1994 | Conley et al. | 395/600 |
| 5379419 | Methods and apparatus for accesssing non-relational data files using relational queries | January, 1995 | Heffernan et al. | 395/600 |
| 5386557 | Enforcement of referential constraints in a database system | January, 1995 | Boykin et al. | 395/600 |
| 5386559 | Variant domains and variant maps in a versioned database management system | January, 1995 | Eisenberg et al. | 395/600 |
| 5408657 | Method of imposing multi-object constraints on data files in a data processing system | April, 1995 | Bigelow et al. | 395/600 |
| 5459860 | Computerized system and process for managing a distributed database system | October, 1995 | Burnett et al. | 395/600 |
| 5488722 | System and method for automating implementation and execution of constraint most likely to be violated in a database | January, 1996 | Potok | 395/600 |
| 5504885 | O-R gateway: a system for connecting object-oriented application programs and relational databases | April, 1996 | Alashqur | 395/600 |
| 5539870 | Computerized system and process for interactively managing a distributed database system | July, 1996 | Conrad et al. | 395/155 |
| 5542073 | Computer program product for choosing largest selectivities among eligible predicates of join equivalence classes for query optimization | July, 1996 | Schiefer et al. | 395/600 |
| 5548749 | Semantic orbject modeling system for creating relational database schemas | August, 1996 | Kroenke et al. | 395/600 |
| 5581785 | Starting system of disk storage device and data reading/writing system of the same | December, 1996 | Nakamura et al. | 395/828 |
| 5664177 | Data processing system having a data structure with a single, simple primitive | September, 1997 | Lowry | 395/611 |
| 5893108 | System, method, and computer program product for efficiently translating relational tuples to object-oriented objects | April, 1999 | Srinivasan et al. | 707/103 |
| 6105035 | Method by which notions and constructs of an object oriented programming language can be implemented using a structured query language (SQL) | August, 2000 | Monge et al. | 707/103 |
| WO/2000/007354 | February, 2000 | DECISION NETWORK BASED EVENT PRICING SYSTEM IN A COMPONENT BASED, OBJECT ORIENTED CONVERGENT CUSTOMER CARE AND BILLING SYSTEM | ||
| WO/2001/015811 | August, 2001 | AIR CLEANER |
1. Cross Reference to Microfiche Appendix
This application includes a plurality of computer program listings (modules) in the form of a Microfiche Appendix which is being filed concurrently herewith as 1162 frames (not counting target and title frames) distributed over 20 sheets of microfiche in accordance with 37 C.F.R. § 1.96. The disclosed computer program listings are incorporated into this specification by reference but it should be noted that the source code and/or the resultant object code of the disclosed program modules are subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document (or the patent disclosure as it appears in the files or records of the U.S. Patent and Trademark Office) for the sole purpose of studying the disclosure but otherwise reserves all other rights to the disclosed computer program modules including the right to reproduce said computer program modules in machine-executable form.
2. Field of Invention
The present invention relates generally to computer database management systems and more specifically to apparatus and methods for modifying and searching through large scale databases at high speed.
3. Description of Related Art
Modern computer systems are capable of storing voluminous amounts of information in bulk storage means such as magnetic disk banks. The volume of stored information can be many times that of the textural information stored in a conventional encyclopedia or in the telephone directory of a large city. Moreover, modern computer systems can sift through the contents of their bulk storage means at extremely high speed, accessing as many as one million bytes of information or more per second (a byte is a string of eight bits, equivalent to approximately one character of text in layman's terms). Despite this capability, it may take an undesirably long time (i.e., hours or days) to retrieve desired pieces of information. In commercial settings such as financial data storage facilities, there will be literally billions of pieces of information that could be sifted through before the right one or more pieces of information are found. Thus, even at speeds of one million examinations per second, it can take thousands of seconds (many hours) to retrieve a desired piece of information. Efficient organization of the stored information is needed in order to minimize retrieval time.
The methods by which pieces of information are organized within a computer, searched through or reorganized, often parallel techniques used by older types of manual information processing systems. A well now example of a manual system is the index card catalog found in public libraries. Such a card catalog consists of a large number of uniformly dimensioned paper cards which are serially stacked in one or more trays. The cards are physically positioned such that each card is directly adjacent to no more than two others (for each typical examination there is a preceding card, the card under examination and a following card in the stack). On the front surface of each index card a librarian enters, in left to right sequence; the last name of an author, the first name of the author, the title of a single book which the author wrote and a shelf number indicating the physical location within the library where the one book may be found. Each of these four entries may be referred to as a “column” entry. Sufficient surface area must be available on each card to contain the largest of conceivable entries.
After the entries are made, the index cards are stacked one after the next in alphabetical order, according to the author's last name and then according to the author's first name and then by title. This defines a “key-sequenced” type of database whose primary sort key is the author's name. The examination position of each card is defined relative to the contents of proceeding and following cards in the stack. That is, when cards are examined, each intermediate card is examined immediately after its alphabetically preceding card and immediately before its alphabetically succeeding car. When a new book is acquired, the key-sequenced database is easily “updated” by inserting a new card between two previously created cards. Similarly, if a book is removed from the collection, its card is simply pulled from the card stack to reflect the change.
If a library user has an inquiry respecting the location of a particular book or the titles of several book written by a named author, the librarian may quickly search through the alphabetically ordered set of index cards and retrieve the requested information. However, if a library user has an inquiry which is not keyed to an author's name, the search and retrieval process can require substantially more time; the worst case scenario being that for each inquiry the librarian has to physically sift through and examine each card in the entire catalog. As an example of such a scenario, suppose that an inquiring reader asks for all books in the library wherein the author's first name is John and the title of the book contains the word “neighbor” or a synonym thereof. Although it is conceptually possible to answer this inquiry using the information within the catalog, the time for such a search may be impractically long, and hence, while the information is theoretically available, it is not realistically accessible.
To handle the more common types of inquires, libraries often keep redundant sets of index cards. One set of cards is sorted according to author names and another set is sorted according to the subject matter of each book. This form of redundant storage is disadvantageous because the size of the card catalog is doubled and hence, the cost of information storage is doubled. Also, because two index cards must be generated for each new book added to the collection the cost of updating the catalog is also doubled.
The size of a library collection tends to grow over time as more and more books are acquired. During the same time, more and more index cards are added to the catalog. The resulting stack of cards, which may be viewed as a kind of “database”, therefore grows both in size and in worth. The “worth” of the card-based system may be defined in part as the accumulated cost of all work that is expended in creating each new index card and in inserting the card into an appropriate spot in the stack.
As time goes by, not only does the worth and size of the database grow, but new technologies, new rules, new services, etc., begin to emerge and the information requirements placed on the system change. Some of these changes may call for a radical reorganization of the card catalog system. In such cases, a great deal of work previously expended to create the catalog system may have to be discarded and replaced with new work.
For the sake of example, let it be supposed that the library acquires a new microfilm machine which stores copies of a large number of autobiographies. The autobiographies discuss the life and literary works of many authors whose books are kept in the library. Let it further be supposed that the original, first card catalog system is now required to cross reference each book to the microfilm location (or plural locations) of its author's (or plural author's) autobiographies. In such a case, the card catalog system needs to be modified by adding at least one additional column of information to each index card to indicate the microfilm storage locations of the relevant one or more autobiographies.
We will assume here that there is not enough surface area available on the current index cards for adding the new information. Larger cards are therefore purchased, the information from the old cards is copied to the new cards, and finally, the new microfilm cross referencing information is added to the larger cards. This type of activity will be referred to here as “restructuring” the database.
Now let us suppose, that as more time goes by, an additional but previously unanticipated, cross indexing category is required because of the introducion of a newer technology or a new government regulation. It might be that the just revised and enlarged second card system does not have the capacity to handle the demands of the newer technology or regulation. In such a situation, a third card system has to be constructed from scratch. The value of work put into the creation of the just-revised second system is lost. As more time passes and further changes emerge in technology, regulations, etc., it is possible that more major organizational changes will have to be made to the catalog system. Time after time, a system will be built up only to be later scrapped because it fails to anticipate a new type of information storage and retrieval operation. This is quite wasteful.
Although computerized database systems are in many ways different from manual systems, the computerized information storage and retrieval systems of the prior art are analogous to manual systems in that the computerized databases require similar restructuring every time a new category of information relationships or a new type of inquiry is created.
At a fundamental level, separate pieces of information are stored within a computerized database system as a large number of relatively short strings of binary bits where each string has finite length. The bit strings are distributed specially within a tangible medium of data storage such as an array of magnetic disks, optical devices or other information representing means capable of providing mass storage. Each bit is represented by a magnetic flux reversal, an optical perturbation and/or some other variance in the physical attributes of a data storage medium. A transducer or amplifier means converts these variances into signals (e.g., electrical, magnetic, or optical) which can be processed on a digital data processing machine. Each string of bits is often uniquely identified by its physical location or by a logical strange address. Some bit strings may function as address pointers, rather than as the final pieces of “real” information which a database user wishes to obtain. The address pointers are used to create so-called “threaded list” organizations of data wherein logical links between a first informational “object” (first piece of real data) and a second informational “object” (second piece of real data) are established by a chain of direct or indirect address pointers. The user-desired objects of real information themselves can be represented by a collection of one or more physically or logically connected strings.
Typically, “tables” of information are created within the mass storage means of the computerized system. A horizontal “row” of related objects, which is analogous to a single card in a card catalog system, may be defined by placing the corresponding bit strings of the objects in physical or address proximity with each other. Logical interconnections may be defined between different rows by using ancillary pointers (which are not considered here as the “real” data sought by a database user). A serial sequence of “rows” (analogous to a stack of cards) is then defined by linking one row to another according to a predefined sorting algorithm using threaded list techniques.
A vast number of different linking “threads” may be defined in this way through a database table having millions or billions of binary information bits. Unlike manual systems, the same collection of rows (which replaces the manual stack of cards) can be simultaneously ordered in many different ways by utilizing a multiplicity of threaded paths so that redundant data storage is not necessary. Searches and updates may be performed by following a prespecified thread from one row to the next until a sought piece of information (or its address) is found within a table. A threaded-like type of table can be “updated” in a manner similar to manual card systems by breaking open a logical thread within the list, at a desired point, and inserting a new row (card) or removing an obsolete row at the opened spot.
Tables are often constructed according to a “key-sequenced” approach. One column of a threaded-like table is designated as the sort-key column and the entries in that column are designated as “sort keys”. Address pointers are used to link one row of the table to another row according to a predefined sequencing algorithm which orders the entries (sort-keys) of the sort column as desired (i.e., alphabetically, numerically or otherwise). Once a table is so sorted according to the entries of its sort column, it becomes a simple task to search down the sort column looking for an alphabetically, numerically or otherwise ordered piece of data. Other pieces of data which are located within the row of each sort key can then be examined in the same sequence that each sort key is examined. Any column can server as the sort column and its entries as the sort keys. Thus a table having a large plurality of columns can be sorted according to a large number of sorting algorithms.
The key-sequencing method gives tremendous flexibility to a computerized database but not without a price. Each access to the memory location of a list-threading address pointer or to the memory location of a sort-key or to the memory area of “real” data which is located adjacent to a sort-key takes time. As more and more accesses are required to fetch pointers and keys leading to the memory location of a piece of sought-after information (“real data”), the response time to an inquire increases and system performance suffers.
There is certain class of computerized databases which are referred to as “relational databases”. Such database systems normally use threaded list techniques to define a plurality of key-sequenced “tables”. Each table contains at least two columns. One column servers as the sort column while a second or further columns of the table store either the real data that is being sought or additional sort-key data which will ultimately lead to a sought-after piece of real data. The rows of the table are examined in an ordered fashion according to the contents of the sort columns. Target data is located by first threading down the sort column and thus moving through the chain of rows within a table according to a prespecified sort algorithm until a specific sort-key is formed. Then the corresponding row is examined horizontally and the target data (real data or the next key) is extracted from that row.
An example of “real” data would be the full-length names of unique persons such as in the character strings, “Mr. Harry W. Jones”, “Mrs. Barbara R. Smith”, etc. The sort-key can be a number which is stored adjacent to the full name and which sequences the names (real data) according to any of a wide variety of ordering patterns including by age, by height, by residential address, alphabetically, etc. Because the real data (e.g., full name of a person) is stored in a separate column, it is independent from the sort key data. A large variety of different relations can therefore be established between a first piece of real data (e.g., a first person's name) and a second piece of real data (e.g., a second person's name) simply by changing the sort keys that are stored in the separate sort column (e.g., who is older than whom, whose is taller, etc.). Plural orderings of the real data can be obtained at one time by providing many columns in one table, by storing alternate keys in the columns and by choosing one or more of these columns as the primary sort key column.
Relational database systems often include tables that do not store real data in a column adjacent to their sort-key column, but rather storage a secondary key number which directs a searcher to a row in another key-sequenced table where a matching key number is held together with either a piece of sought-after real data or yet another forward referencing key number (e.g., an entry which in effect says “find the row which holds key number x of yet another table for further details”). With this indirect key-sequenced approach, a large number of tables can be simultaneously updated by changing one entry in a “base” table.
Relational database tables are normally organized to create implied set and subset “relations” between their respective items of pre-stored information. The elements of the lowest level subsets are stored in base tables and higher level sets are built by defining, in other tables, combinations of keys which point to the base tables. The implied relations between elements cannot be discerned by simple inspecting the raw data of each table. Instead, relations are flushed out only with the aid of an access control program which determines in its randomly-distributed object code, which table to examine first and what column to look at before beginning to search down the table's column for a key number and, when that key number is found, what other column to look at for the real data or a next key number. Relations between various “entities” of a relational database are implied by the sequence in which the computer accesses them.
By way of a concrete example, consider a first relational table (Names-Table) which lists the names of a large number of people in telephone directory style. Each name (each separate item of real data) is paired to a unique key number and the rows of this Names-Table are sorted sequentially according to the key number. A second relational table may be provided in the database (Cars-Table) which lists automobile (vehicle) identification numbers (VIN) each paired in its row with a second key number. If the second key number is matched by a corresponding key number in the first table, then a relationship might be implied between the entries of the two separate tables (Names-Table and Cars-Table). The “implied” relationship might be one of an infinite set of possibilities. The relationship could be, for example, that the car listed in the second table is “owned” by the person whose name is found next to a matching key in the first table. On the other hand, it might be implied that the matched person in the first table “drives” the car, or “cleans” the car or has some other relation to the car. It is left to the access control program to define what the relationship is between entities in the first table and entries in the second table.
It can be seen that relational database systems offer users a great deal of flexibility since an infinite number of relations may be defined (implied). Economy in maintaining (updating) the database is also provided since a change to a base table propagates through all other tables which reference the base table. The access control program of the database system can include information-updating modules which, for example, change the key number in the second table (Cars-Table) whenever ownership of a car changes. If the name of the new owner is already in the first table (Names-Table), it does not have to be typed a second time into a new storage area and thus, extra work and storage redundancy are avoided. The vehicle identification number (VIN) remains unchanged. Minimal work is thus expended on updating the database.
Despite these advantages, relational database systems suffer from expandability and restructuring problems similar to those of the above-described manual system. Sometimes the rows within a particular table have to be altered to add additional columns. This is not easily done. Suppose for example, that a new government regulation came into being, mandating that vehicles are to always be identified not only by a vehicle identification number (VIN) but also by the name and lotion of the factory where the vehicle was assembled. If spare columns are not available in the Cars-Table, the entire database may have to be restructured to create extra room in the storage means (i.e. the disk bank) for adding the newly required columns. New key numbers will have to be entered into the new columns of each row (e.g., a new “factory of assembly” key number) and sorted in order to comply with the newly mandated regulation. New search and inquiry routines will have to be written for handling the newly structured tables.
In the past, much of this restructuring work was done by reprogramming the computer at the object code or source code level. This process relied heavily on an expert programming staff. It was time consuming, costly and prone to programming errors. Worst of all, it had to be redone time and again as new informational requirements emerged just after a last restructuring project was completed. There is a need in the industry for a database management system which provides quick responses to inquiries and which can also be continuously updated or restructured without reprogramming at the source or object code level.
It is an objective of the present invention to provide a database system which is capable of storing voluminous amounts of information, sifting through the information at high speed, and is at the same time easily expandable or restructurable to take on new forms of entities and relationships.
In accordance with a first aspect of the invention, an entity definition table (ENT.DEF) is defined within the memory means of a computer system to store the name of an allowed entity type (class) and the name of a single other table (Entity-instances Table or “EiT” for short) where instances of the allowed entity type may be stored. A separated relationships definition table (REL.DEF) is defined in the memory means to list in each row of the table: (a) the name of an allowed relations type, (b) the name of a single Relation-instances Table (RiT) where instances of the allowed relationship type may be stored, (c) the name of a primary (head) entity type to which the relation type may apply and (d) the names of one or more secondary (tail) entity types to which the named relationship may apply. Each row of the Relation-instances Table (RiT) is provided with at least one primary pointer which points to the storage location of a first instance of the primary entity type and at least one secondary pointer which points to the storage location of a corresponding first instance of the secondary entity type. Each row of the Relation-instances Table (RiT) further includes a pointer to a relationship-defining row in the REL.DEF table. The pointer can be the name of an applicable relation type as recorded in the REL.DEF table. Relationships between instances of a primary entity and a secondary entity are thus expressly defined by entries in the Relation-instances Table (RiT). Adding new rows to this Relation-instances Table (RiT) allows for the addition of new relations. Adding new rows to the REL.DEF table allows for the creation of new classes (types) of relationships. Since relation-defining tables can be updated using a fixed set of update modules, reprogramming at the source or assembly level is not needed for restructuring the schema of the database.
The invention will be described with reference to the following figures in which:
FIG. 1A is a block diagram of a conventional database system.
FIG. 1B is a timing diagram showing the delay between the addressing and the delivery of storage data.
FIG. 2A is a block diagram of a conventional key-sequenced table organization.
FIG. 2B is a block diagram of a conventional relative-record table organization.
FIG. 3 diagrams a multiple table system which is based on a conventional relational database approach and which has key-sequence organized tables.
FIG. 4A is a conceptual diagram illustrating an entity-relation schema in accordance with the invention.
FIG. 4B is a further conceptual diagram of an entity-relation schema according to the invention.
FIG. 5 is a block diagram of an entity definition (ENT.DEF) table in accordance with the invention.
FIGS. 6A and 6B are block diagrams of a relationship definition (REL.DEF) table in accordance with the invention.
FIG. 7 is a connection diagram showing how relations may be explicitly defined in a Relation-instances Table (RiT) so that unique relations between instances of a first entity class and instances of a second entity class can be identified.
FIG. 8 is a block diagram of a database system according to the invention.
FIG. 9 is a block diagram of a relations processing engine according to the invention.
FIG. 10 graphs a variety of sample inquiry paths that may be followed by the engine of FIG. 9 .
The following includes a detailed description of the best mode or modes presently contemplated by the inventor for carrying out the invention. It is to be understood that these modes are merely exemplary of the invention. The detailed description is not intended to be taken in a limiting sense.
Referring to FIG. 1A, the block diagram of a conventional database system 100 is shown. The database system 100 comprises a central processing unit (CPU) 110 which is operatively coupled so as to be controlled by an access control program (object code) 120 d stored in a first memory means 120 (i.e., read-only-memory, ROM, or random access memory, RAM). The CPU 110 in combination with the first memory means 120 can be viewed as one or more machine means for performing functions specified by the object code 120 d. The CPU 110 is further operatively coupled to access the data 130 d of a “bulk storage” second memory means 130 also included in the database system 100 . Individual strings of digital information are represented by wiggled lines (e.g., 120 d, 130 d) in FIG. 1 A. The bulk storage means 130 typically takes the form of a large array of magnetic disk drives, tape drives, or other mass storage devices (e.g., arrays of Dynamic Random Access Memory [DRAM] chips). The first (control) memory means 120 usually takes the form of high speed RAM and/or ROM.
To access a particular string of data 130 d stored within the bulk storage means 130 , the CPU 110 must provide a corresponding address signal 131 s (FIG. 1B) in the form of logic highs (H) and lows (L) to the bulk storage means 130 over an address bus 131 . As seen in the time versus logic-level graph of FIG. 1B, the address signal 131 s (usually an electrical signal) comprises a set of logic high and logic low levels (H and L) transmitted in a first time period t 0 -t 1 . There follows a second time period, t 1 -t 2 , which is often referred to as an “access delay”, during which addressing circuits attempt to access the addressed memory location. Depending on whether a memory read or memory write operation is occurring, data signals 132 s are then transferred over a data bus 132 (FIG. 1A) from the addressed location within the bulk storage means 130 to the CPU 110 or vice versa during a following third time period, t 2 -t 3 .
Referring still to FIG. 1A, the object code 120 d of the access control program determines when and how the CPU 110 will access information 130 d stored in the bulk storage means 130 . The CPU 110 issues address signals 121 s (not shown) over an address bus 121 to the first memory means 120 , and in response, the first memory means 120 supplies instruction signals 122 s (not shown) over a data bus 122 to the CPU 110 . Information signals 122 s can be exchanged bidirectionally over data bus 122 between the CPU 110 and the first memory means 120 . FIG. 1B may represent the timing relation between address signal 121 s and first memory information signal 122 s by replacing reference numerals 131 s and 132 s with 121 s and 122 s, respectively.
It should be understood that neither the object code 120 d of the first memory means 120 nor the data code 130 d of the mass storage means 130 is in human-readable form. A translation machine is needed to convert the binary bit strings of either memory means ( 120 or 130 ) into a form which might be understandable to an experienced computer programmer or to a lay computer user.
The object code 120 d of the access control program is produced by first generating (e.g., manually writing and encoding) a source code listing 112 whose lines of information 112 d are usually understandable only to a highly trained computer programmer. The source code listing 112 which is written in an assembly level or higher level language (e.g., C, COBOL, FORTRAN, PASCAL, etc.) is transformed into machine-readable form, and passed through a first translation machine which may be referred to as a compiler (or assembler) means 114 . The compiler means 114 produces the machine-readable object code 120 d according to instructions provided by a machine readable version of the source code listing 112 . After it is stored in the first memory means 120 , the object code 120 d is expressed as machine detectable alternations (ones and zeros) in a physical attribute (e.g., voltage) of the medium which makes up the first memory means 120 . In this form, the object code 120 d is more readily convertible into data signals 122 s which are understandable to the CPU 110 than into information which is understandable to a lay (nonprogrammer) person. It is highly improbable that a lay person will ever wish to access or understand or modify the object code 120 d stored within the first memory means 120 .
The information strings 130 d within the bulk storage means 130 are similarly expressed as alternations in the physical property of the storage medium making up the second memory means 130 . Some of the data strings 130 d represent “real” data which a lay-user may wish to access while others of the strings 130 d represent “ancillary” data such as sequencing keys, threading pointers or control codes which a lay-user is not interested in. The object code 120 d of the control program defines which is which.
When “real” data is to be extracted from the data strings 130 d within the bulk storage means 130 , read and understood by a lay person, a translation process similar to compilation (or more correctly de-compilation) needs to take place. Just like the compiler means 114 functions as a man-to-machine translator, the combination of the first memory means 120 and the CPU 110 defines a second man-to-machine search-and-translate machine 115 which is used to search through parts of the bulk stored data 130 d, extract relevant pieces of “real” data and convert the extracted data from machine-readable form into human-readable form. The human-readable output of the second translation machine 115 may be produced in the form of a query output listing 150 (e.g., on paper or on a video screen) as indicated in FIG. 1 A.
If a lay user (defined here as someone other than a person who is an expert programmer familiar with details of the source listing 112 ) wishes to obtain useful (“real”) information from the bulk storage means 130 , the lay user will normally supply a query input 140 , in a form dictated by a so-called “structured query language” (SQL) to the CPU 110 . (In the illustrated example the user inputs the request string “Please find all books having attribute xxx,” where xxx could be the relations “author's last name=Jones”.) The combination of the CPU 110 and first memory means 120 (which combination forms the second search-and-translate machine 115 ) process this query input 140 and in response, produces a series of address signals 131 s which are sent to the bulk storage means 130 and processes a series of data retrievals 132 s which eventually lead to the production of a corresponding query output listing 150 . (In the example, it would be a listing of all books whose author's name is “Jones”.) The access control program 120 d is charged with the task of enabling various types of queries 140 and making sure that the queries do not violate basic rules of logic.
When the information 130 d within the bulk storage means 130 needs to be updated, by for example adding new books, a similar exchange occurs between the translating machine 115 and a lay user. The lay user supplies an update input 160 , again as dictated by a pre-specified structured query language (SQL), and in response, the translating machine 115 rearranges the data 130 d within the bulk storage means 130 to achieve the requested update.
Referring to FIG. 2A, a first embodiment 200 of the data base system 100 will be described in more detail. FIG. 2A schematically illustrates a section 130 a of the bulk storage means 130 according to embodiment 200 wherein some of the stored data strings 130 d are arranged to define a key-sequenced type of table. In a first record region (Record No. 1) of the table 130 a there is provided a first continuous data string 230 which is subdivided to have a first string portion 231 representing an author's name (illustrated as the contents of a rectangular box), a second string portion 232 contiguous thereto for representing a name threading pointer (illustrated as a second rectangular box coupled to the first rectangular box by an address proximity link P 11 ), a third data string portion 233 representing the book's title (which is linked to the second portion 232 by proximity link P 12 ), a fourth subsection 234 representing a title threading pointer (linked to box 233 by addresses proximity link P 13 ), a fifth subsection 235 representing the book's location (linked to box 234 by proximity link P 14 ) and a sixth subsection 236 representing a location threading pointer (listed to box 235 by proximity link P 15 ).
The name threading pointer 232 is located directly adjacent to the author's name subsection 231 within the address space of Record No. 1, as indicated by address proximity link P 11 and thus, there is an “implied” logical connection between the data contents of boxes 231 and 232 . The book's title subsection 233 is located directly adjacent to the name threading pointer 232 as indicated by address proximity link P 12 . The combined, proximity linkage, P 11 -P 12 , “implies” a relationship between the contents of boxes 231 and 233 , namely that they apply to various attributes of a common book. This format repeats for data subportions 234 - 236 . Only boxes 231 , 233 and 235 contain “real” data which is useful to a lay person. The other boxes, 232 , 234 and 236 of Record No. 1 contain “ancillary” data which is useful to the search machine 115 but does not provide the kind of “real” information sought by an inquiring lay person.
The implied relations between the “real” data boxes, 231 , 233 and 235 of Record No. 1, arise only after “meaning” is assigned to all the boxes 231 - 236 . Such “meaning” comes from the operation of the search-and-translation machine 115 (FIG. 1 ). To understand this concept, assume that an automated “searching” machine (computer) 115 / 200 of embodiment 200 is examining the data string 230 held within the single Record No. 1. Assume further that this searching machine 115 / 200 includes means for assigning appropriate “meanings” to each of the data subportions contained in each of subsections 231 - 236 to thereby designate some as containing “real” data and others as containing “ancillary” (e.g., pointer) data. In that case the search machine 115 / 200 can scan horizontally across the record, parse the data string 230 into subsections of appropriate size and extract the name of the book's author, the book's title and the location of the book within the library, as desired. On the other hand, if the searching machine 115 / 200 does not possess information which tells it that box 232 is a threading pointer, box 233 is a title, etc., then all boxes will look alike to the search machine, there will be no “meaning” assigned and the search machine 115 / 200 will not be able to extract a desired piece of data. Thus, while not shown in FIG. 2A, it is to be understood that there is a cooperative relation between how the object code 120 d of the search machine 115 / 200 causes that search machine to access the parts of bit string 230 via the signal busses, 131 and 132 , how subportions of bit string 230 become designated as “real” or “ancillary” data, and how relations are implied between separate pieces of real data. The structure, meanings inter-relations between the parts of bit string 230 are intimately linked to the structuring of the object code 120 d.
In FIG. 2A, the bulk memory means section 130 a is shown to include additional record areas (Record No. 2, Record No. 3, etc.) each having the same data structure (represented respectively as string 240 which comprises data subsections 241 - 246 and string 250 which comprises data subsections 251 - 256 ). Although Record No. 1 is in physical proximity with Record No. 2, as indicated by physical (or address) proximity link PR 12 , and Record No. 2 is in physical proximity with Record No. 3 as indicated by physical proximity link PR 23 , the data items ( 231 - 236 , 241 - 246 , 251 - 256 ) within each record do not need to be examined according to this physical ordering. Instead, the name threading pointer 232 of Record No. 1 can represent the address of any other arbitrary record area within the bulk storage means section 130 a whose author's-name will serially follow the author's-name of box 231 during a search process. This is represented in FIG. 2A by the dashed logical link L 11 which points to some arbitrary record read, RecordAddr. 11 of section 130 a. The name threading pointer of the referenced record, Record. Addr. 11 , can point to yet another arbitrary record. With this mechanism, a list which is sorted (alphabetically for example) according to author's last name may be formed even through the records are not physically ordered in any specific sequence. The list is referred to as a “key-sequenced” list in cases where, as here, the sequencing key (or sort key) is data stored in the boxes e.g., 231 , 241 , 251 , etc., of a table column.
The title threading pointers ( 234 , 244 , 254 ) of each record may be used to form a different key-sequenced path in which books are examined according to subject matter or alphabetically according to the book's title or according to some other ordering algorithm. The location threading pointers ( 236 , 246 , 256 ) can be similarly used to create a key-sequenced list which will identify what book is physically located next to what other book on the library's shelves.
For the sake of illustrative simplicity, only one threading pointer (i.e., 232 ) is shown attached to each real data item (i.e. 231 ) of each record, but it should be apparent that the author's name 231 may have many threading pointers, one for threading alphabetically according to last name, and others for threading according to additional relations such as geographic location, age, number of published books and so forth. It is up to the computer programmer and the access control program 120 d to assign “meaning” to each box and thus determine whether that box will function as a storage area for real data or for ancillary data such as pointer data.
The records of FIG. 2A may be visualized as being serially stacked one on the next according to a sequence defined by a preselected one of the threading pointers (e.g. 232 or 234 or 236 ) to thereby create a displayable table which has as entries in the columns of each row, the real data items: author's name 231 , book's title 233 and book's location 235 . The ancillary threading pointers 232 , 234 , 236 are hidden from the lay user's view. New rows are added to the table by breaking a logical link (e.g., L 11 ) between a preceding pointer (e.g. 232 ) and a next pointer (e.g. 252 ) to insert a new record in the search path. The rows can be of variable length since the linking address pointers can point to any arbitrary location in the bulk memory means 130 . To get to the N th item of a threaded list, one normally sequences from the beginning of the list (table) through all the threading pointers until the N th access is performed, at which point the contents of the addressed record area can then be read. For relatively large tables (e.g. those having thousands of rows), this process of sequencing through all the threading pointers to reach the N th row of a table can take a significant amount of time.
Referring to a second embodiment 260 shown in FIG. 2B, the structure of an older and less sophisticated data organizing system will be described. In a bulk memory section 130 b of this older system 260 , data is organized according to what a commonly referred to as “relative table” addressing. Threading pointers are not used for logically linking one record (row) to the next. Instead, each data string (e.g., 270 ) can be shrunk to contain only the essential target information, such as in this example, author's name ( 271 ), book's title ( 273 ) and book's location ( 275 ), with one item of real data being physically located adjacent to the next. The examination of all record items is this structure 260 may be performed according to the physical location of each record ( 270 ) within the address space of bulk storage area 130 b (the next adjacent string 280 follows first string 270 and so forth). Unlike the purely key-sequenced organization of FIG. 2A, the physical proximity links PR 012 , PR 023 , PR 034 , etc., of FIG. 2B do indicate a particular ordering of the stored information.
The relative-table organization is somewhat similar to the way that index cards are physically ordered in a manual library system according to author's last name, except that the library catalog trays should now be visualized as having sequentially arranged grooves defined on their bottom-inner surfaces. Each groove is numbered according to its absolute position and only one card can be slotted into each groove. With this system, each card can be immediately located by its groove number rather than by thumbing through the information of all previous cards. If a groove number is known, substantial time can be saved in locating the corresponding card and obtaining the information written on its face. If the groove number is not known, the same relative-table organization can be searched by sequentially thumbing through the trays and examining the cards according to a key-sequenced approach in order to find a desired card even though the cards are stored in grooves. The relative-table organizing method is not mutually exclusive of a key-sequenced examination method. There is a difference between a purely key-sequenced table and a relative table, however. A relative-table organized system is not as easily updated as is a purely key-sequenced system. In the relative table system, a new card cannot be inserted between two cards which already fill adjacent slots. This inflexibility has led many in the database management field away from the relative-table method and twoards purely key-sequenced systems since the latter can accept any number of new cards for insertion between old cards.
In FIG. 2B, all the record areas are of a fixed and predefined length. The fixed length of each record defines the groove size. To access the N th item of a “relative-table” type of list 130 b, one need only multiply the fixed record length by the value N to directly obtain the physical address (slot) of the desired record. There is no need to sequence through a chain of threading pointers in order to find a desired row once its slot number (groove number) is known. Employ slots 290 , such as the slot number 4 shown in FIG. 2B, are preferably scattered throughout the address space of the bulk memory section 130 b to allow for occasional insertion of new items.
It should be noted that while the relative table organization 130 b of FIG. 2B is neither as flexible nor as easily updated as the key-sequenced organization 130 a of FIG. 2A, the relative-table structure 130 b has one major advantage over the key-sequenced structure 130 a; an N th item in a relative-table list 130 b may be accessed much faster than the N th item of a key-sequenced list 130 a.
FIG. 3 is a block diagram of a bulk storage area 130 c whose data 130 d is organized according to a known key-sequenced scheme which is often referred to in the industry as a “relational” database. A “tables” area 300 contains a plurality of tables 310 , 320 , 330 , 340 and 350 . Each of these tables is defined purely by a threaded-list, key-sequenced structure such as shown in FIG. 2 A. For the sake of illustrative brevity the list threading pointers (i.e., 232 , 234 , 236 ) are not shown. Only the non-threading boxes (i.e., 231 , 233 , 235 ) are shown.
Rows are illustrated to extend horizontally (in the “x” direction) in FIG. 3 while table columns are illustrated to extend vertically (in the “y” direction). Each table 310 - 350 is shown to have its respective rows sorted numerically according to “key” numbers that are stored in its leftmost column (referred to here as the “sort column”).
A first of the key-sequenced tables, 310 (also labeled “Table of Names”), is shown to have two columns. One (right side) column 312 holds “real” data representing the names of various persons while a proceeding (left side) column 311 holds unique key-numbers, 1, 2, 3, . . . , N, N+1, N+2, . . . , each associated with a unique mane of a person. The association of a person's name to a key-number is “implied” by the fact that the key number 1, 2, 3, . . . , N, . . . , is located in the same row of table 310 as is the corresponding “Person's Name”. Each key-number of left column 311 is referred to as a “Name Identification Number” (abbreviated here as N-IDN). Table 310 is shown to have been pre-sorted according to the N-IDN's of column 311 . The sorting method is indicated in FIG. 3 by positioning the initials “KSO” over column 311 to tag that column as the Key-Sequenced-Ordering column of table 310 .
To find the name of a person within table 310 whose associated identification number is known to be N, one normally start at row number 1 of the left column 311 , where the N-IDN of the first person's name is stored and threads downwardly (in the y direction) through the threaded-list pointers (not shown) associated with this sort column 311 , testing each corresponding entry of column 311 for a match until the position holding the number N is found. Then one moves horizontally (in the x direction) across that row to the right column 312 to extract the name associated with the N th name identification number (N-IDN).
When an automated search machine 115 performs this thread and test process, it must retrieve data from the memory area 130 c at least N times before the target data (Person's-Name) is retrieved. The time for retrieving the target data is thus at least N times the access delay period (e.g., the t 2 -t 1 period of FIG. 1B) of the memory means 130 . By way of example, if N=1000 and the access time of memory means 130 is 30 milliseconds, then it can take 30 seconds or more just to retrieve one name. If a thousand names are to be randomly retrieved at different times from the range N, N+1, N+2, . . . , N+M (where M would be 1000 or higher), then it can take as much as 30,000 seconds (8.3 hours) or longer just to perform this simple table look-up task.
The N-IDN field of each row is generally made much shorter in bit length than its associated Person's-Name field. The N-IDN can be viewed therefore as an abbreviation of a person's full name. The first table 310 can be viewed as a conversion list or look-up table which allows one to easily convert a given abbreviation (N-IDN) into a full name.
A second, separate, table 320 (also labeled as “Table of Locations”) is shown to contain two similar columns. Right column 322 stores “Home Addresses” in full while left column 321 holds unique, Home-Indentation-Numbers (abbreviated H-IDN) which are generally shorter in bit length than the associated “Home-Address” fields. The H-IDN'S thus can server as abbreviations for the full address fields. Table 320 is ordered numerically according to the H-IDN's as indicated by the legend “KSO” over column 321 . The table 320 can therefore easily serve as part of an H-IDN abbreviation of full address converting means.
Since many people often live at a single home address, it is plausible that a single home address will be shared by persons of different names. Relational database theory recognizes this and teaches to separate information (e.g., home address) that might be shared by many entities away from any unique one of those entities (e.g., person's name). Table 310 is accordingly separated from table 320 . Concurrently, it should be possible to relate a person's full name to a full home address without having to repeatedly duplicate the full name string or full address string within the bulk storage means 130 . The data organization 300 shown in FIG. 3 includes a third key-sequenced table 330 which is structured for doing just that; linking one person's name with one home address while using the abbreviated bit strings, N-IDN and H-IDN.
Third table 330 comprises three vertical columns, 331 , 332 and 333 . Left column 331 holds Person Identification Numbers (P-IDN's), 1, 2, 3, . . . , P. The rows of third table 330 are sorted using the P-IDN's as the sort key. For each row of the third table 330 , the second column 332 contains a Name-IDN and the third column 333 contains a Home-IDN. Each Name-IDN of third table 330 (for example, at row 4 of table 330 whose column 332 contains the value “N”) should have in the left column 311 of the Names table 310 a matching key number (e.g., the number N which is pointed to by arrow L 41 ). Thus an N-IDN stored in the third table 330 can be used to indicate the row within the first table 310 where a person's full name may be found. Each Home-IDN of the third table 330 should similarly have a matching key number (e.g., the number 2 which is pointed to by arrow L 43 ) within left column 321 of the second “Locations” table 320 at whose row a corresponding full home address may be found.
Each row (e.g., row 4 ) within the third table 330 implicitly creates a set of logical links or “relations”, L 41 -P 42 -L 43 , which join a person's name to a particular home address. These links, L 41 , P 42 and L 43 are represented in FIG. 3 by dashed connecting lines which, in combination, join the Person's-Name held in table 310 , row N, to the Home-Address held in table 320 , row 2 . The implied linkage, L 41 -P 42 -L 43 , does not arise from the contents of the first three tables, 310 , 320 and 330 taken alone. The key numbers (e.g., N-IDN, H-IDN, P-IDN) that are held within these tables are by themselves a meaningless series of numbers. It is only when randomly distributed modules of object code 120 d* stored within the memory means 120 of this “relational database” system ( 300 ) cooperatively interact with the CPU 110 that the implied relations come into being. The object code 120 d* instructs the CPU 110 to select a specific row (i.e., row 4 ) in the third table 330 , to extract the numbers from adjoining columns 332 and 333 of that row (thus implying the proximity link, P 42 ), to select table 310 , to sequence down its KSO column 311 looking for a match to the number from column 332 (thus implying logical link L 41 ), to select table 320 , to sequence down its KSO column 321 looking for a match to the number extracted from column 333 (thus implying logical link L 43 ), and to then extract from each respectively matching row of tables 310 and 320 the corresponding person's full name and full home address. It is only by performing these data processing steps, as directed by the object-code 120 d*, that the search-and-translation machine 115 of embodiment 300 is able to link (L 41 ) an otherwise meaningless number (N) held in the third table 330 to a specific row (i.e. the row holding the same number N) positioned in another table ( 310 ) and to link (L 43 ) further numbers (i.e., the number “2” in col. 333 ) of the third table 330 to a specific row (i.e. the row holding the same number 2) of yet another table ( 320 ). This object-code dictated linkage L 41 -P 42 -L 43 then implies a “relation” between the Person's-Name field stored at row N of table 310 and the Home-Address field stored in row 2 of table 320 . Arrow L zz denotes that all illustrated linkages (L 41 -L 48 ) in FIG. 3 spring forth from randomly-distributed object code modules 120 d* of the access control program 120 d. Note that the third table 330 assumes by its three column structure a one-to-one cardinality between person-name and home-address. It is assumed that a person can have only one home address. The structure of table 330 is incapable of handling a situation where a person has, for example, both a summer home-address and a winter home-address. Restructuring of the third table 330 would be called for if it becomes desirable to associate each person's name with more than one home address.
A number of advantages come from organizing the tables of data storing area 300 separately according to relational database theory. Storage space is conserved in cases where plural entities of a first type (person) are related to a common entity of a second type (home address). The same Home-IDN can appear many times down column 333 without consuming large amounts of memory space while the actual full address is stored only once in second table 320 . When a person moves to a new home address, the corresponding Home-IDN in column 333 can be easily altered to point to a new position within the second table 320 which contains the new home address (e.g., H+1) thereby implying the new person-to-address relation. If a person changes their name (i.e., by way of marriage) the home address can remain the same. Only the first table 310 needs to be modified and updating work is thus minimized. Also, the basic listings “Names” 310 and “Addresses” 320 can be used to imply a wide variety of “relations” other than a relation between a person's name and his/her home address using the same abbreviated set of identification numbers (IDN's).
By way of example, assume that the first three tables, 310 , 320 and 330 , are used by a business institution (company) to keep track of the names of their employees and the corresponding home addresses of these employees. Let it be supposed that many employees need to commute to work by a privately-owned car. Some employees drive there own car, some drive a car owned by another employee and some are merely passengers. Let it be further assumed that after tables 310 , 320 , 330 are defined in a mass storage means 130 , the company decides to also keep track of which person drives which car, which person is a passenger in which car and further, who the owner of the car is.
A fourth table 340 (Table of Drivers) may be constructed as shown in FIG. 3 to have a first key-sequenced column 341 storing plural driver identification numbers (abbreviated here as D-IDN's), 1, 2, 3, . . . , D. A second column 342 is provided for holding person identification numbers (P-IDN's) and a third column 343 is provided for holding car identification numbers (C-IDN's). A fifth table 350 (Table of Cars) may be similarly constructed as shown with a first KSO column 351 for holding the C-IDN's (1, 2, 3, . . . , C), with a second column 352 for holding owner identification numbers (O-IDN's) which will point to the one person who owns the vehicle and with a third column 353 for holding a vehicle serial number (SN). While not shown, it should be apparent that a sixth table (Table of Passengers) would be constructed with the same organization as that of fourth table 340 to identify passengers and their corresponding car.
Referring to row D of table 340 , it can be seen that one implied link L 44 identifies driver D as being the person of P-IDN=4 who has the name implied by earlier link L 41 and the home address implied by earlier link L 43 . Proximity link P 45 implies that driver D drives the car having C-IDN=2. The latter number implies a logical link L 46 to row 2 of table 350 which holds the serial number (SN) of the driven car. By way of another proximity link, P 47 , in row 2 of the same fifth table 350 , a further logical link, L 48 , indicates that the owner of car C-IDN=2 is the person P-IDN=P of table 320 . It was assumed by the structure of table 350 that each car can have only one owner and one serial number.
Consider, however, what happens if a new government regulation comes into being allowing for more than one owner per car or requiring multiple identification numbers for each car. The fifth table 350 may have to be restructured to add new columns (i.e., 354 , 355 , etc.; not shown) which would allow for the implication of such new relats. This means that the access control modules 120 d* which define the “meaning” of each data field (subsection) within table 350 would have to be revised. Referring back to FIG. 1 it an be seen that modification to the control code 120 d* will usually occur first in the original source code 112 , which is then compiled 114 as indicated in FIG. 1, debugged to correct programing errors (not shown) and thereafter repeatedly compiled 114 and debugged until all apparent errors are removed. The process of restructuring relations within a relational-type database system ( 300 ) therefore tend to be time-consuming, costly, and prone to error.
A newer form of database organization, referred to sometimes as the “object oriented” approach, has been proposed to solve some of the problems associated with reorganizing and updating previous database systems. According to the object-oriented approach, encapsulation bubbles are defined to hide from external view, data which is encapsulated within the bubble. Each bubble is referred to as an “object” and the encapsulated information of the object is referred to as the object's “attributes.” One bubble may encapsulate a second bubble which in turn encapsulates third, fourth and further bubbles so that a relatively complex data structure may be defined. Objects can be assigned to “classes” and by such assignment they can be made to automatically “inherit” the attributes of other objects in the same class, even when the class attributes are changed after creation of the objects.
There is still controversy in the field over what constitutes “object oriented” and how such a concept may be practically applied to database management systems. Experimental versions of object-oriented systems are often too slow in performing update and inquiry servicing to be practical in commercial settings. The person invention takes an approach which might be considered a partial hybrid of the object-oriented approach and the earlier-described relational database methodology. It provides a database system which is capable of operating at commercially acceptable speeds and which is easily restructured as well as updated. The invention will be explained first conceptually and then by concrete examples.
Referring to FIG. 4A, there is shown a relational graph or “schema” 400 which contains three egg-shaped bubbles labeled respectively as “Customer”, “Address” and “Account”. These bubbles are not intended to represent “objects” from the object-oriented school of thought, but rather “classes” of entities. Each of these bubbles is referred to as an “entity type” or “entity class”. The “Customer” entity class generically covers all entities which might fit under the broad descriptor “Customer”, regardless of whether that entity is a natural person, a business corporation, an association or so forth. The “Address” entity class covers all entities which fit under the broad descriptor “Address” regardless of whether the subject entity is a residential address, a business address, a post-office mailing address or so forth. Similarly, the “Account” entity class covers all sorts of accounts including savings accounts, checking accounts, trust accounts, etc.
Each entity bubble may contain one or more “instances” of the entity class (i.e., Customer, Address, Account) which it represents. By way of example, let it be assumed that there are three customers whose names are “Customer-A”, “Customer-B” and “Customer-C”. Let it be further supposed that because of a peculiar rule, the Customer bubble (also labeled as entity class “E- 1 ”) is restricted to contain the name of only one customer at a time, say “Customer-B”, while the address bubble (E- 2 ) can at the same time contain many “addresses”, each corresponding to that Customer-B. If Customer-B is a person, the address instances might be summer-home and winter-home addresses. If Customer-B is the name of a business having a chain of stores, the plural addresses in the second bubble (E- 2 ) might be the mailing addresses of those stores. The name “Customer-B” is an example of a first instance, I 1/E1 , of the E- 1 entity class and is illustrated conceptually in FIG. 4A as a small sphere I 1/E1 enclosed in the entity class bubble E- 1 . Three instances, I 1/E2 , I 2/E2 and I 3/E2 of entity class E’are similarly illustrated as three spheres inside of entity bubble E- 2 . It is also assumed here that the Account bubble (E- 3 ) is restricted by a peculiar rule so that at any one time it may contain only one account number (instance I 1/E3 ) which is somehow associated with Customer-B.
Until now we have been visualizing the instances, I 1/E1 , I 1/E2 , I 2/E2 , I 3/E2 and I 1/E3 of respective entity classes, E- 1 , E- 2 and E- 3 as isolated spheres floating separate from one another, without identifying any specific relation between the instances. The present invention treats “relations” as being objects of equal substance to the entities they tie together. There are relation “classes” and instances of a specified relation class. Three arrow-shaped bubbles, R- 1 , R- 2 and R- 3 , are shown in FIG. 4A to be respectively coupling the Customer entity class (E- 1 ) to the Address entity class (E- 2 ), the Account entity class (E- 3 ) to the Customer entity class (E- 1 ) and the Account entity class (E- 3 ) to the Address entity class (E- 2 ). These linking bubbles (R- 1 , R- 2 , R- 3 ) are referred to here as “relationship” types or classes. Each relation bubble R-x (where x is an arbitrary identifier, 1, 2, 3, etc.) is visualized as having a bubble-shaped Head portion, H, an elongated body portion B and an arrow-shaped Tail portion, T.A “Head attribute” can be assigned by each relation bubble R-x to the entity bubble (E-h) located at its head end (H). A “Tall attribute” can be correspondingly assigned by each relationship bubble R-x to the entity bubble (E-t) located near its tail end (T). The combination of the Head-attribute, if any, plus the Tall-attribute, if any, can be used to give the relationship bubble (R-x) a “meaning”. This meaning is generated by associating with the body portion B of each relationship bubble (R-x), a “meaning-string” which preferably, but not necessarily, has a head character-string and a tail character-string. The combination of an “entity-class name” (ECN-h) associated with the head entity type (E-h), the meaning-string (M-s) of the connecting relation type (R-x) and another entity class name (ECN-t) associated with the tail entity type (E-t) are concatenated according to the formula, (ECN-h)+(M-s)+(ECN-t), to expressly define a relational phrase. The expressly defined phrase can be modified by changing any one or all of its three components; (ECN-h), (M-s) and (ECN-t).
In more concrete terms, the top relation bubble R- 1 is shown to have the meaning string “'s business”. The substring, “'s” is a head character-string while the substring “business” is a tail character string. By itself, the meaning-string ('s business) appears to be nonsensical, but in conjunction with the class names its head and tail entities, E- 1 (“Customer”) and E- 2 (“Address”), this first relations bubble, R- 1 , forms the relational phrase: “The Customer's business Address”. Instance I 1/E1 is a specific customer's name (i.e., “Customer-B”) and instance I 1/E2 , I 2/E2 and I 3/E2 are now defined as specific instances of that customer's business addresses (i.e., the addresses of individual stores in a chain of stores owned by Customer-B).
Of importance, it is to be noted that the first entity bubble, E- 1 (Customer), does not itself encapsulate the attribute of possession as indicated by the apostrophed head character-string “'s”. Instead, that attribute of possession in encapsulated by the first relationship bubble, R- 1 . Furthermore, the second entity, E- 2 (Address), does not encapsulate the modifying attribute “business”. Instead that attributed is also encapsulated by the ratio bubble R- 1 . Thus, each entity bubble (E- 1 , E- 2 , E- 3 ) is free of any narrowing attributes or modifiers and instead, represents a relatively broad and generic listing of data items which can come under the heading of either “Customer” or “Address” or “Account”. The advantage of this structure will become apparent shortly.
Consider for a moment what happenes if the meaning-string in relation bubble R- 1 is changed from “'s business” to “'headquarters”. Under this circumstance, the rules change. The address bubble (E- 2 ) should be restricted to at any one time contain only a single instance (e.g., I 1/E2 ) representing the “Customer's headquarters Address” rather than many instances. Presumably each customer can have only one headquarters address. Thus, the “cardinally” of relations bubble R- 1 must be changed from its earlier one-to-many {1:m} format, as was possible with business addresses, to a one-to-one setting {1:1}. According to the invention, each relation bubble, R-x, has a cardinality rule (e.g., {1:1} or {1:m}) associated with its body B as well as a meaning-string (e.g., “'s business”).
Consider, next what happens in a business database if users are allowed to enter a customer name but leave out the mailing address or telephone number of that customer. Most companies operate under a strict rule which requires its office workers to record at least one forwarding address or telephone number when the name of a new customer is entered. To enforce this requirement, each relation bubble (R- 1 ) further incorporates a mandatory-coupling character which can be either “Y” or “N” (representing yes or no). If it is required that at least one instance (I 1/E2 ) of at tail entity class E- 2 should be created whenever an instance (I 1/E1 ) of a head entity class E- 1 is created, then the mandatory-coupling character of relation bubble R- 1 is set to “Y”. This indicates that instance I 1/E1 should not exist without instance I 1/E2 . The “MC” lightning bolt shown emanating from I 1/E1 represents this mandatory coupling of instances. On the other hand, if such coupling is not mandatory, the coupling character is set to “N” and there is no “MC” connection.
As further examples of the concepts behind the invention, the second relation bubble, R- 2 , is shown to contain in FIG. 4 A the meaning string, “'s owning”, the cardinality rule, {1:1}, and the mandatory-coupling character, “Y” (presumably every account should have an owner). The third relation bubble, R- 3 , is shown to contain the meaning string, “'s statement mailing”, the cardinality rule, {1:1}, and the mandatory-coupling character, “N” (presumably an around holder can pick up his/her statement rather than having it mailed). Instances of entity E- 1 which satisfy the relationship created by relation bubble R- 2 are read as “The Account's owning Customer”. Instances of entity E- 2 which comply with the relationship created by relation bubble R- 3 satisfy the description phrase, “Account's statement mailing Address”, or stated otherwise, the address to which account statements are mailed for the particular instance I 1/E3 of the Account entity class E- 3 .
By changing the meaning-string within a relation bubble R-x, it is possible to create new relational phrases although the Head and Tail entity classes remain the same. By changing either or both of the Head and Tail entity classes (E-h or E-t), it is possible to again create new relational phrases although the relation bubble R-x remains unchanged.
Consider what happens for example when the meaning-string of relation bubble R- 3 is changed to the phrase: “which is managed at bank branch having”. Then the combination of the class names or meanings associated with entity bubble E- 3 , relation bubble R- 3 and entity bubble E- 2 provides for an inquiry path allowing one to find the Account which has a specific bank branch address as its managing branch. Consider what happens if the tail portion T of relation bubble R- 3 where moved from E- 2 to a new entity bubble (not shown) which is labeled “Managing Officer” rather than “Address”. Then the relational phrase becomes “Account which is managed at bank branch having [this person as its] Managing Officer”. It can be seen that an entirely different inquiry path is formed with each change of a head entity type, tail entity type or relation type.
Inquiry paths can be defined to extend through pluralities of entity and relation bubbles as well as between just two entity bubbles. Still referring to FIG. 4A, suppose that a bank officer finds an important document bearing only an account number on it. The bank officer needs to immediately contact a person who is authorized to manage that account for more details about the document. In such a case, the bank officer would turn to a database processing engine according to the invention (explained later with reference to FIG. 9 ), start at the known instance of the account number, I 1/E3 , which is shown contained within the Account bubble (E- 3 ), jump through the relation bubble R- 2 ('s owner) to the Customer bubble (E- 1 ) in order to learn who the owning customer is (instance I 1/E1 ) and then with that new information (I 1/E1 ) serving as a stepping stone, jump from the Customer bubble (E- 1 ) through the relation bubble R- 1 ('s business) to the Address bubble (E- 2 ) to learn the address at which he may contact the account manger. This is merely an example, inquiry paths can include many more bubbles, they can branch out to form a tree rather than being serial and they can produce many pieces of information which are useful for solving a puzzle rather than just one piece of target information.
Relation bubbles (R-x) do not have to be single tailed. Referring to FIG. 4B, further variations of the concept behind the invention are illustrated. A fourth relation bubble, R- 4 , is shown to have a plurality of tail ends, T 1 , T 2 and T 3 , so that a single meaning-string (e.g., “'a business”) can simultaneously couple a common Head entity (Customer) to a plurality of Tail entities (e.g., Address, Account and Telephone). Moreover, a relation bubble does not need to span between different entity bubbles. FIG. 4B shows another relation bubble, R- 5 , which folds back in a loop so that the Head entity (Customer) is also the Tail entity. In the illustrated example, the relation bubble R- 5 contains the meaning string “'s largest”. Given the name of a first customer, this back-looping relation bubble R- 5 allows one to find that customer's largest customer. The loop may be followed around ad infinitum to obtain a long list of largest customers belonging to other largest customers.
With the above-mentioned conceptual models in mind, a concrete embodiment of the invention now will be constructed piece by piece. Referring to FIG. 5, there is shown a first table 500 which is refereed to as an entity definition table or in abbreviated form, ENT.DEF Table 500 . This entity definition table 500 is stored within a data storing area 130 -RP of a database engine in accordance with the invention. Data storing area 130 -RP preferably resides within a bulk storage means 130 * such as diagrammed in later-to-be described FIG. 8 . Unlike the earlier described tables 310 - 350 of the relational system shown in FIG. 3, which relied on a purely key-sequenced organization, the entity definition table 500 of FIG. 5 can rely on a relative table organization (abbreviated here as “RTO”) which features faster data access properties and is also adaptable to key-sequenced search algorithms (but not key-sequenced update methods). Each row of the ENT.DEF table 500 is of a fixed bit length and has two columns. The first (left) column 500 a stores a two character field (e.g., , “CU,” “AD,” “AC” or “SU”) which is an abbreviation of an entity class name. The abbreviation “EA” will be used here to mean “the abbreviated form of the entity class name” (Entity-name Abbreviation). By way of example, slot number 1 is shown to contain the two-character abbreviation “CU” (representing the entity name “Customer”) in its left column 500 a.
For expedience sake, a matrix notation is used here to identify the columns of table 500 with letters, a, b, c, . . . , etc. and the rows with a numeral proceeded by a period. The symbol 500 a. 1 thus refers to the box in table 500 at column 500 a and row 500 . 1 .
As further seen in FIG. 5, the abbreviation “AD” is stored in box 500 a. 2 to represent the entity name “Address”. Box 500 a. 3 holds the abbreviation “AC” for “Account” and box 500 a. 4 stores the abbreviation “SU” for “Supplier”. The slot or row numbers, . 1 , . 2 , . 3 and . 4 of table 500 do not occupy storage space within memory means 130 -RP. They merely represent the physical or logical address of their respective rows, 500 . 1 , 500 . 2 , 500 . 3 and 500 . 4 .
In the corresponding right column 500 b of the ENT.DEF table 500 there is stored, for each slot (. 1 , . 2 , . 3 , . 4 , etc.) the name of a single other table where instances of the named entity class are stored. The abbreviation “EiT” (Entity-instances-Table) will be used here to mean the table where instances of the entity class are stored. Again by way of example, box 500 b. 1 is shown to reference an EiT called “T.Companies” as the single table where instances of the entity class “Customer” are stored. The entry in box 500 b. 2 is “T.Addresses” and the entry in box 500 b. 3 is “T.Accounts”. Note that the entry in box 500 b. 4 is “T.Companies” just as it is-for box 500 b. 1 . Instances belonging to two different entity classes (e.g., “CU” and “SU”) may be stored in one instances table (EiT) under situations where the data structures of the instances are compatible to the structure of that EiT (e.g., the entity instances table has enough columns of appropriate widths to support the descriptions of each entity instance).
Each entity class can be referenced not only by its abbreviated name (e.g., EA=“AD”) but also by the slot number (e.g., slot . 2 ) where it is stored in the entity definition table 500 . The slot number may function as an “entity type number” (abbreviated here as ETN) for numerically identifying its corresponding entity class. Alternatively, an additional “type number” column (not shown) may be added to the ENT.DEF table, 500 , unique type numbers may then be entered into each row of the type number column and these can serve as the ETN's. Thus, the “Address” entity class may be referenced not only by the abbreviation EA=“AD” but also by an entity type number whose value, ETN= 2 . For the relative table organization (RTO) shown in FIG. 5, the ETN happens to be the same as the slot number (e.g. slot 500 . 2 ) where the entity name abbreviation (e.g., AD) is stored in the ENT.DEF table together with the name of the corresponding EiT (e.g., T. Addresses). For the case where an additional type number column (not shown) is added, the unique ETN's can be assigned arbitrarily such as according to the alphabetic ordering of the EA's in which case the ETN's may be used as sort keys for alphabetically ordering the ENT.DEF table rows according to entity class names (e.g. using threaded-list techniques).
Referring next to FIG. 6, there is shown another table 600 which is also stored within the data storage area 130 -RP of an engine according to the invention. This table 600 may also have a relative-table organization (RTO) and it is referred to as a relations-definition table, or REL.DEF table 600 for short. As before, a matrix notation is used here to identify vertical columns of the REL.DEF table as 600 a, 600 b, 600 c, etc.; horizontal rows as 600 . 1 , 600 . 2 , 600 . 3 , etc.; and individual boxes as 600 a. 1 , 600 a. 2 , 600 b. 1 , 600 b. 2 , etc.
The left-most column 600 a holds a two character abbreviation representing the class name and/or meaning-string of a relation bubble. The mnemonic, RA, will be used here to designate such a relationship abbreviation. By way of example, box 600 a. 1 holds the abbreviation “-BU-” which represents the meaning-string “'s Business”. (Hyphens embrace the relation abbreviations here to distinguish them from entry abbreviations [EA's].) Box number 600 a. 2 stores the abbreviation “-OW-” to represent the meaning-string “'s Owning”. Box number 600 a. 3 stores the abbreviation “-SM-” to represent the meaning-string “'s Statement Mailing”. Box number 600 a. 4 holds the abbreviation “-HQ-” to represent the meaning-string “'s Main Headquarters”.
Each row of the REL.DEF table 600 may also identified numerically by a “relationship type number” (RTN) which in the illustrated example happens to be the same as the slot number (. 1 , . 2 , . 3 , etc.) where its corresponding two character code (-BU-, -OW-, -SM-, etc.) is stored. Alternatively, a type number column (not shown) may be added to the REL.DEF table 600 and unique RTN's may be assigned according to any desired, unique number generating scheme, such as according the alphabetic ordering of the RA's. In the latter case, the RTN's can also function as sort keys for ordering the rows of the REL.DEF table (using threaded list techniques) alphabetically according to relationship class names (RA's). Thus, when given a specific RTN, one can quickly calculate the physical or sequence to the logical address in the REL.DEF table 600 where details about the corresponding relation class are stored so as to quickly retrieve those details.
In the second column 600 b of the REL.DEF table, there is stored, for each slot (. 1 , . 2 , . 3 , etc.), the name of a single table where instances of the named relation class are stored. The mnemonic, “RiT” (Relation instances Table), is used here to represent such a table. By way of example, the entries in boxes 600 b. 1 , 600 b. 2 , 600 b. 3 and 600 b. 4 are respectively: “T.Rel- 1 ”, “T.Rel- 2 ”, “T.Rel- 3 ” and “T.Rel- 1 ”. Note that the entries of box numbers 600 b. 1 and 600 b. 4 are the same. Compatible instances of two different relation classes may be represented by two corresponding rows of data stored in a common relation-instances holding table (RiT).
The third column 600 c of the REL.DEF table stored the type number (ETN h ) of a head entity (E-h). Here, the entity type number (ETN h ) is the same as an ETN assigned to a corresponding row in the ENT.DEF table 500 where the abbreviated class name (EA) of that head entity bubble is stored. Similarly, the fourth column 600 d of the REL.DEF table stores the type number (ETN ti ) of a corresponding first tail entity (E-t 1 ).
Note that the first three rows ( 600 . 1 , 600 . 2 and 600 . 3 ) in FIG. 6A correspond to the relations schema shown in FIG. 4 A. When row number 600 . 1 is read across using the column sequence: c, a, d, it corresponds to the relationship descriptor phrase “Customers' business Address”. Box 600 b. 2 tells us that instances of this relationship are stored in an RiT table called “T.Rel- 1 ”.
Similarly, row number 600 . 2 , columns c, a, d correspond to the relationship descriptor phrase “Account's owing Customer”. Box 600 b. 2 tells us that instances of this relation are stored in table T.Rel- 2 . Row number 600 . 3 likewise corresponds to the relationship describing phrase “Account's statement mailing Address” and tells us that instances of this relation are found in the T.Rel- 3 table.
The REL.DEF table 600 can be updated indefinitely by adding new rows to its bottom so as to encompass a great number of further relation classes. There is no need to physically order the data describing each of the relational classes and thus descriptions of new classes can be added to the bottom or other empty slots of the REL.DEF table 600 sporadically as the need arises over time. Relation classes which become obsolete can be deleted to leave behind an empty slot. Similarly, there is no need to order the entity classes defined by the ENT.DEF table 500 . The ENT.DEF table can be updated by arbitrarily adding new entity class describing rows to its bottom or other empty slots or by deleting obsolete entries as the need arises. Accordingly, when demands on the database system of the invention change over time, new relation classes may be defined in combination with new head and tail entity classes. The schema of the invention can be continuously restructured as the need arises simply by updating the REL.DEF and ENT.DEF tables, 600 and 500 .
The fifth columnar region 600 e of FIG. 6A represents a plurality of addition columns within the REL.DEF table 600 . The names of multiple tail entities which are activated in addition to or in substitution for the first ETN, of column 600 d may be optionally entered in this region 600 e. Referring briefly to FIG. 6B, an exploded view of this fifth region 600 e is illustrated. In the example, each relation class R-x can have as many as five tail entities (T 1 , T 2 , T 3 , T 4 , T 5 ). The invention is, of course, not limited to five. Column 600 d identifies the first tail entity, T 1 , while extension columns 602 through 604 in region 600 e identify the optional, other tail entities, T 2 -T 5 . The opening phrase “Customer's business . . . ” of slot number 600 . 1 columns, c and a, may apply to the first tail entity T 1 =“Address” and/or to a second tail entity T 2 =“Supplier” and/or to a third tail entity T 3 =“Area”, etc.
Extension region 600 e is shown to include a tail activating column 606 which functions as mask to activate or deactivate each of the corresponding tail entity columns 600 d, 602 - 605 . In the illustrated example, a dark filled circle means that the corresponding tail entity of that slot (row) is active while an unshaded circular means that the respective tail entity is deactivated. As an alternate embodiment, the mask column 606 may be dispensed with and the lack of an ETN entry (or a “null” entry) in a box of columns 602 - 605 will be regarded as indicating a deactivated tail while the inclusion of an ETN value will be regarded as indication an active tail. When two or more tail entities are activated, the relation bubble takes on a multi-tailed foom such as shown in FIG. 4B at R- 4 . The same meaning-string is applied to the plural tail entity bubbles of the activated tails. Multiple copies of a prespecified row in the REL.DEF table 600 may be added to empty slots within the table 600 in a boiler-plate stamping manner with only the tail activation masks 606 being modified o