Integrated database system

Abstract: An integrated database system for performing data processing utilizing plural types of databases. A Meta level system 15 includes a script interpreter 8 which interprets an inquiry represented by a script form which has been addressed to a database to issue a primitive corresponding to the inquiry and combines replies represented by a primitive form received from plural types of databases 11. A local database system 14 includes a primitive processor 9 which transforms the primitive into a control command corresponding to the type of the database 11, outputs the transformed command to the plural types of databases 11, and replies the Meta level system 15 with the process result represented by the primitive form.

Description: The present invention relates to an integrated database system having for performing data processing utilizing a plurality of different databases. A requirement to share or to commonly use databases is widely practiced within an organization, among organizations or among individuals. Further, because of the availability of widespresd network, regions sharing a group of databases are also increased. In such environment, various attempts have already been made to realize sharing and common use of databases or practical commercialization within a limited area. In order to enable sharing and common use of the group of databases not only within the aforementioned limited area, but also in a wider area, it is necessary to realize a multi-database system suitable for an environment where a large number of database systems are connected via a wide-spread high-speed computer network. Moreover, the cost necessary to construct such multi-database system must be as low as possible, and in addition, the multi-database system must be able to readily modified after being set up, and must be flexible in terms of maintenance requirements. Herein, the "multi-database system" is a general term of a system which widely realizes data sharing within a distributed system or in a network system. The environment constructed by the multi-database system will be called "multi-database environment." However, when a database is shared and commonly used, the following problems arise in general; 1. Data included in different databases may have different meanings even if the data is represented by the same representation form; 2. Vice versa to the above-mentioned problem 1, data included in different databases may be represented by different styles even if the data have the same meaning; 3. Although conventional manner of combining data is possible among different databases, the representation forms with regard to combining attributes are different. Herein, the conventional manner of combining data means combining processing realized by pattern matching that has been adopted by the conventional database system, and the combining attributes mean attributes of interest at the time of combining; 4. Databases subjected to integration lacks necessary data for the combining process; and 5. Even if different types of plural databases are combined, new data cannot be generated therefrom. As a partial solution to the above-described problems 1 to 4, the following processes have conventionally been executed. 1) To transform or absorb the difference in meanings of the data, difference in the representation forms, difference in the combining attributes and the like, codes are incorporated in an application program; and 2) To compensate for lacking data, the lacking data is incorporated in the application program as data or as a constant value, alternatively a database which compensates for the lacking data is newly added. However, as a result of the above solution, the following problems are further raised. 6. The aforementioned application program is generated independently each time a command related to sharing and common use of the database is sent; thus responding to the command takes time; 7. When the aforementioned command related to sharing and common use of the database is changed, for the most cases, it is difficult or impossible to reuse the aforementioned application program. An article by Huang J W entitled "Multibase: A Heterogeneous Multidatabase Management System", Proceedings of the Annual International Computer Software and Applications Conference (COMPSAC), Taipei, Nov. 9-11, 1994, no. CONF. 18, 9 November 1994, pages 332-339, XP000531333, IEEE discloses a heterogeneous multibase management system having client, server and internal (agent) layers. Client queries are compiled in the server layer and physical local database access is performed in the agent layer in response to the compiled queries. United States Patient Specification No US-A-5475 836 (Lotus Development Corporation) discloses an interface which can access a plurality of external databases via a plurality of drivers. Each driver is associated with a particular group of databases. The present invention can provide an integrated database system capable of retrieving desired information from a plurality of different databases by combining necessary databases. The present invention can provide an integrated database system which can standardize retrieving operation performed by users, regardless of difference or changes in structure of the database system. According to an aspect of the present invention, there is provided a data processing system as set out in claim 1. Furthermore, according to another aspect of the present invention, there is provided a data processing method as set out in claim 10. The following document is considered useful as a starting point for understanding the claimed invention: HUANG J -W: "MULTIBASE: A HETEROGENEOUS MULTIDATABASE MANAGEMENT SYSTEM", PROCEEDINGS OF THE ANNUAL INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE (COMPSAC), TAIPEI, NOV. 9-11, 1994, no. CONF. 18, 9 November 1994, pages 332-339, XP000531333, IEEE. This document discloses Multibase with the objective to provide a standard interface with high transparency of networks and local databases for users to access distributed databases. Multibase is based on a 3-layer architecture. The external layer is called the client, the middle layer is called the server, and the internal layer is called the agent. Queries isued from clients are compiled, and execution of compiled is controlled and performed. In the agent end, physical local database access is performed. See D1, page 332, left column, line 1, right column, line 16. to the type of a database and outputting the transformed control command to at least one of the plural types of databases; and reply means for providing the upper-level system with a process result of the control command obtained from at least one of the plural types of databases, as a reply represented by the second representation form. Furthermore, according to an aspect of the present invention, there is provided a data processing method of a data processing system capable of referring to plural types of databases, the data processing system including an upper-level system and a lower-level system, comprising: a control-data issuing step of, in the upper-level, interpreting an inquiry represented by a first representation form addressed to one of the plural types of databases and issuing control data represented by a second representation form; a command outputting step of, in the lower-level, transforming the control data represented by the second representation form into a control command corresponding to the type of a database and outputting the transformed control command to at least one of the plural types of databases; a replying step of, in the lower-level system, providing the upper-level system with a process result of the control command obtained from at least one of the plural types of databases, as a reply represented by the second representation form; and an outputting step of, in the upper-level system, receiving from the lower-level system the reply to the inquiry represented by the second representation form, transforming the reply into the first representation form, and outputting the transformed reply. Embodiments of the present invention will now be described with reference to the accompanying drawings, in which: Fig. 1 is a diagram showing a construction of a database system according to an embodiment of the present invention; Fig. 2 is an explanatory view showing connection between an application level 1 and a Meta level 2; Fig. 3 is a flowchart showing operation of an application software, a script interpreter and a primitive processor; Fig. 4 is a system construction diagram of a database system as an embodiment of the present invention; Fig. 5 is a flowchart describing operation of a script interpreter in detail; Fig. 6 is a flowchart explaining one-line analysis processing executed by the script interpreter in detail; Fig. 7 is a table showing contents of an inquiry; Fig. 8 shows an example of script transformation; Figs. 9A and 9B are tables showing syntax of a script; Fig. 10 shows an example of primitives generated by the script interpreter; Figs. 11 and 12 are tables showing an example of a hotel database; Fig. 13 is a table showing an example of a geographical information database; Fig. 14 is a table showing an example of the JR (Japan Railroad) time-table database; Figs. 15-18 are tables showing an example of an international flight time-table database; and Fig. 19 is a table showing an example outputted by the present system. <Construction of System> Fig . 1 is a diagram showing the construction of a system integrating different types of databases (hereinafter referred to as "the present system") according to the present embodiment. The present system is constructed by, roughly divided, three types of levels. They are, an application level 1, a local level 3, and a Meta level 2 existing as an intermediary in-between the two. The present system is also divided into two levels: an upper level which includes the application level 1 and the Meta level 2, and a lower level which includes the local level 3. <Application Level> The application level 1 is a level directly associated with users of the present system. The application level 1, constructing the application software 12, is provided to be used in the multi-database environment using the present system. A user makes an inquiry for information via the application software 12 and obtains a reply to the inquiry. The aforementioned application software 12 first describes or transforms the inquiry input by the user into a data form (hereinafter referred to as a "script form") which has been predeterminedly defined in the present system, issues the described or transformed inquiry to the Meta level 2, and obtains the reply to the inquiry. Hereinafter, the inquiry represented by the script form will be simply called a "script." <Local Level> The local level 3, connected to the multi-database environment adopting the present system, is a level including one or a plurality of databases 11 and database management system 10 (hereinafter generically referred to as a database system). Each database system individually handles tasks such as an inquiry, update, management and the like within the closed environment or closed system. In other words, the database system can also be individually managed and operated by the conventional database technique. The database system existing in the local level 3 is specifically called "local database system" 14. However, each database system generally has a database processing system unique to the database; thus, an identical operation procedure for databases is not guaranteed. <Meta Level> The Meta level 2, existing as an intermediary in-between the above-described application level 1 and the local level 3, is a system (hereinafter referred to as a "Meta level system" 15) comprising a script interpreter 8 and a Meta database system 4 which includes Meta database 7 and Meta database management system 6. In the Meta level system 15, an inquiry represented by a script 101 which has been received from the application level 1 is first interpreted by the script interpreter 8, and communication is established with the Meta database system 4 and local database system 14. More specifically, the script interpreter 8 transforms the inquiry into a form (hereinafter referred to as a "Meta primitive form") defined further by the present system, and sends the transformed inquiry to the Meta database system 4 and local database system 14 to obtain a reply. Hereinafter, an inquiry transformed into the Meta primitive form will be simply called a "primitive" 106). <Connection Between Each Level> (Connection Between Application Level and Meta Level) Fig. 2 is an explanatory view showing the connection between the application level 1 and Meta level 2. The application level 1 and the Meta level 2 use the aforementioned script 101 as an interface. A user inputs an inquiry by operating the application software existing in the application level 1. The application software 12 transforms the inquiry into the script form using a script transformation unit 102, and issues the script 101, which is the inquiry written in the script form, to the Meta level system 15. The Meta level system 15 performs processing of the inquiry represented by each of the issued script and returns the reply in the script form to the application software 12. As the above described application software 12, software 103 having a function of simply executing edit, issue and result-output of the script 101 may be used, or package software 104 provided for a personal computer or a work station comprising a graphical interface in addition to the aforementioned script transformation software 102 may be used. (Connection Between Meta Level and Local Level) The Meta level 2 and the local level 3 use the aforementioned primitive 106 as an interface. The primitive 106 interpreted from the script 101 by the script interpreter 8 is, upon necessary, (1) issued to the Meta database system 4, interpreted and executed by a primitive processor 5 existing in the Meta database system 4; or (2) issued to the local database system 14, interpreted and executed by a primitive processor 9 existing in the local database system 14. A primitive 107 in Fig. 1 denotes one of the primitives addressed to the primitive processor 5 in the Meta database system 4. Similarly, a primitive 105 denotes one of the primitives addressed to the primitive processor 9 in the local database system 14. <Script Issuance and Primitive Execution> Fig. 3 is a flowchart showing the operation of the application software 12 in the application level 1, operation of the script interpreter 8 in the Meta level 2, and operation of the primitive processor 5 or 9 which has issued the primitive 106. The above three devices operate in association with one another as indicated by the broken lines in Fig. 3. (Operation of Application Software) In response to an inquiry from a user, a script is generated in step S1.1 in Fig. 3. Next, in step S1.2, the script 101 is issued to the Meta level 2 in a file form (hereinafter, a script in a file form will be called a "script file"). Contents of the script file are interpreted and executed by the script interpreter 8 existing in the Meta level in a unit of one line, and the result is returned to the application software 12 as the reply to the inquiry represented by the script file issued in step S1.2. In step S1.3, the reply to inquiry is outputted, and operation is completed. Figs. 9A and 9B show a description grammar (syntax) of a script. (Operation of Script Interpreter) In step S2.1, the script file 101 is obtained from the application software 12. At this stage, in order to sequentially interpret and execute the script, written in the script file, in a unit of a line, a group of control variables is initialized in step S2.2. In step S2.3, the current line of the script subjected to processing is confirmed. In step S2.4, it is determined whether or not the contents of the script line indicate an end of the script; and in a case where the contents indicate the end, completion processing shown in step S2.8 is performed and the script interpretation operation ends. In a case where the contents of the script line do not indicate script completion, in step S2.5, one script line is analyzed. In the one-line analysis processing, the script line is transformed into a form of a primitive, and in step S2.6, the primitive is issued to the corresponding local database system 14 or the Meta database system 4. In step S2.7, processing for updating the group of variables is performed to advance the line subjected to script processing. Then, the processing returns to step S2.3. Fig. 5 is a flowchart explaining the operation of the above-described script interpreter 8 in detail. Steps S2.1.1 to S2.1.3 (Fig. 5) correspond to the above-described step S2.1 (Fig. 3); steps S2.3.1 to S2.3.5 (Fig. 5) correspond to the above-described step S2.3 (Fig. 3); and steps S2.8.1 to S2.8.2 (Fig. 5) correspond to the above-described step S2.8 (Fig. 3). Control codes in step S2.3.2 indicate a character, e.g. a return code and the like, which do not affect the syntax of the script shown in Figs. 9A and 9B. In step S2.3.3, such code is skipped. Note that in the flowchart shown in Fig. 5, explanation for the process where a comment line is ignored, is omitted. Fig. 6 is a flowchart explaining the one-line analysis processing executed in the above-described step S2.5 further in detail. As has been described above, in the one-line analysis processing, each line of the script is transferred in a unit of line from the contents of the script file read by the script interpretation apparatus. In "line_mem" included in START in Fig. 6, a top address of a memory which stores the script contents is inserted as a result of processing already performed in the previous steps of Fig. 5. Similarly in "p0", a head memory pointer for the line to be processed is inserted, and in "p1", an end memory pointer for the line to be processed is inserted. First, initialization is performed in step S4.1, and in steps S4.2, S4.3, S4.6 and S4.7, an operation portion in the script line is extracted. If checking in step S4.3 is YES, determination is made whether or not operation is SSTART and the controlling is proceeded to the dealing process routine shown in step S4.5. The function "string_check( )" utilized in steps S4.4, S4.8, S4.10, S4.12, S4.14, S4.16 and S4.18 is a process of checking, by pattern matching, whether or not a character string, enclosed by " " and designated by the fourth argument, exists in the memory address designated as an argument and in a section delimited by the head memory pointer and end memory pointer. In a case of coincidence, return value 1 is returned, and in a case of non-coincidence, return value 0 is returned. If determination in step S4.6 is YES, operation other than SSTART is recognized, and the processing is proceeded respectively to the corresponding dealing process routines shown in steps S4.9, S4.11, S4.13, S4.15, S4.17 and S4.19. Fig. 10 shows an example of primitives generated in the process routine corresponding to each operation of the above-described script line, and a method of determining an addressee. In the present system, a unit of processing represented by each of the lines in Fig. 10 is called a primitive. The primitive is classified into the following four types depending on a requested destination of the service (i.e. addressee of the primitive). A group of primitives represented by the form of mmdb_XXX( ) (XXX herein is arbitrary) is issued to the primitive processor 5 existing in the Meta database system 4. The Meta database system includes, as the Meta database, database-management information, having as database information, locations or management information of a plurality of databases which can be used by the present system, and a compensation-information database necessary to combine different types of databases. In other words, the Meta database system includes information necessary to access a plurality of local databases or to combine different types of databases. A group of primitives represented by the form of ldb_XXX( ) is a primitive for a local database inquiry issued to the primitive processor 9 existing in the corresponding local database system 14 on the basis of information obtained from the Meta database system. A group of primitives represented by a form of mm_XXX( ) executes combine processing and calculation processing unique to the present system, on the basis of the reply to the inquiry represented by the group of primitives ldb_XXX( ), obtained from a plurality of databases. A group of primitives represented by the form of gen_XXX( ) is a primitive for widely-used functions necessary in general in the Meta level of the present system, other than those of the above-described primitives, for instance, including processing for securing an internal memory necessary to combine replies to an inquiry or tables. "func_sstart" in step S4.5 in Fig. 6 issues mmdb_open( ) as a primitive corresponding to the script SSTART. The primitive is issued to the primitive processor 5 to request opening of the database of local-database-management information existing in the Meta database 7, and a return value mmdb_sta is returned. func_open( ) in step S4.9 issues three types of primitives as a primitive corresponding to the script m_open. In Fig. 10, the character strings enclosed in ┌┘ correspond to syntax of the script shown in Figs. 9A and 9B. The character strings are extracted from a script line which has been transferred by an argument of each of the dealing process routine shown in steps S4.9, S4.11, S4.13, S4.15, S4.17 and S4.19, and transferred. The primitive mmdb_service( ) transfers ┌database name┘ and ┌table name┘ designated by the script line to the primitive processor 5, and stores information related to a corresponding local database in a structure ldbinf (data storage memory where a plurality of information are structurally grouped). In the structure ldbinf, locations and management information of the corresponding database and information, such as a memory size and the like, necessary to develop tables are stored. The primitive gen_memalloc( ) issues, to the primitive processor 5, an acquisition command of an internal memory necessary to develop a table obtained from the structure ldbinf. A return value mmsta is a top address of the reserved internal memory. In addition, the primitive ldb_open( ) issues an inquiry to the primitive processor 9 existing in the local database system which is the destination. "func_select( )" in step S4.11 in Fig. 6 issues a primitive ldb_select( ), which is a retrieve command, to the local database which has already been opened by the primitive ldb_open( ). As arguments, the structure ldbinf, top address mmsta of the internal memory, and four arguments transferred from a script operator m-select: " retrieve object table name", "attribute name", "condition calculation operation" and "condition compare value", are set. (Operation of Primitive Processor) The primitive processor performs interpretation and execution of each primitive issued in step S2.6. The primitive processor 9 existing in the local database system 14 and the primitive processor 5 existing in the Meta database system 4 are provided. All database systems handled by the present system comprises a corresponding primitive processor. In general, since a plurality of database systems have different processing systems, a primitive processor corresponding to each of the systems transforms primitives into a command executable by the own database system. By the transformation, the difference in operation due to the different database systems is absorbed. Steps S3.1 to S3.5 in Fig. 3, performed by each primitive processor, describe the process from receiving one primitive issued by the script interpreter to returning an execution result. In step S3.1, a primitive is obtained. In step S3.2, the primitive is interpreted. In step S3.3, the primitive is transformed into a command for a database system which corresponds to the primitive processor. In step S3.4, the primitive processor issues the command to the corresponding database system. That is, the command is executed in the database system. In step S3.5, the result of the execution is returned to the script interpreter in the primitive form and then the operation ends. The result in the primitive form is transformed into the script form by the script interpreter. <Meta Level System> The Meta level system has the following roles. 1. The Meta level system absorbs differences in the data representation forms and difference in the attributes' definition among a plurality of local database systems. 2. The Meta level system provides a group of basic functions for combining local databases. 3. The Meta level system manages data which supports combining of local databases. (Meta Form and Meta Data) In order to realize the above-described role 1, the Meta level system provides a standard data representation form for the data included in the local database subjected to be combined. Herein, the standard data representation form will be referred to as "Meta form" and data represented by the Meta form will be referred to as "Meta data". (Meta Database and Meta Database System) In order to realize the above-described role 2, combine processing and calculation processing unique to the present system are executed by the group of primitives classified by the aforementioned mm_XXX( ). Furthermore, in order to realize the above-described role 3, the Meta level system comprises a Meta database and a Meta database management system. For instance, the Meta database includes location information of local databases subjected to the operation. The Meta database also has a database for supplying data when an inquiry input by a user cannot be solved just by combining local databases. This is realized by the primitives classified by the aforementioned mmbd_XXX( ) and database management information included in the Meta database system. <Example of System Construction> Fig. 4 is a diagram showing a system construction of the present system. Note that the construction of the present system is not limited to the one shown in Fig. 4, and a logically feasible construction other than that shown in this figure may be used. (System Construction in Application Level) In Fig. 4, each computer 202 and 207 comprises a central processing unit (hereinafter referred to as a CPU), an internal memory, a peripheral control device, an operating system and the like. The application software 12 and script transformation unit 102 are stored, as a program, in a disc serving as a memory medium of disc units 201 and 206, and are read out and executed by the computer 202 and 207 in response to a request inputted by a user from input/output terminals 203, 204 and 208. (System Construction in Meta Level) Referring to Fig. 4, a computer 211 has the similar configuration as that of the computers 202 and 207, and serves as the script interpreter 8. Software for script interpretation processing is stored in a disc which is a memory medium of a disc unit 210, and is read out and executed by the computer 211 in response to an inquiry represented by the script 101 received from the application level. A group of apparatuses 213, 214, 217 and 218 constitute the Meta database system 4. Computers 213 and 217 are for the Meta database 7 and Meta database management system 6. In Fig. 4, the Meta database exists as a physical file of disc units 214 and 218. In addition, the computer 213 serves as a database system which controls the Meta database 214, and as the corresponding primitive processor. Similarly, the computer 217 serves as a database system which controls the Meta database 218, and as the corresponding primitive processor. Software for primitive processing is stored in a disc which is a memory medium of the disc units 214 and 218, and is read out and executed by the computers 213 and 217 in response to an inquiry represented by the primitive 107 received from the script interpreter. (System Construction in Local Level) In Fig. 4, the local database exists as a file of disc units 222, 223, 224 and 227, and a computer 220 serves as a local database system which controls the databases 222, 223 and 224, and as the corresponding primitive processor. Similarly, a computer 226 serves as a database system which controls the database 227, and as the corresponding primitive processor. Software for primitive processing is stored in a disc which is a memory medium of the disc units 221 and 227, and is read out and executed by the computers 220 and 226 in response to an inquiry represented by the primitive 105 received from the script interpreter. (Connection Between Each Level) In Fig. 4, local area network 251 - 256 connects each of apparatuses constituting the system in each level, and is connected with an external system via network connection apparatuses 205, 209, 215, 216, 219, 225 and 228. To connect the local area network with an external apparatus, for instance, a high-speed digital dedicated line or the like is used. For the connection between an external apparatus and the input/output terminal in the application level, dial-up operation or the like can be used via regular analog public lines. For instance, the connection can be realized in a structure where the line 252 is omitted, the input/output terminal 208 is directly connected with the computer 207, and the network connection apparatus 209 is substituted with a communication line adopter such as a modem device or the like which connects the computer 207 with public lines. By the foregoing connecting method, it is possible to transfer and receive scripts between the application level and the Meta level, and to transfer and receive primitives between the primitive processors existing in the Meta database system in the Meta level, and the primitive processors existing in the local database system. <Database Combining Processing by Present System> Database combining processing executed by the present system will be described in detail utilizing the following example of an inquiry and reply. (Example of Inquiry) As a background of a user's inquiry made in the application level, an example is given as follows: "To leave Narita for New York on Sunday, I will stay at a hotel in Tokyo from the day before. The hotel in Tokyo is to be decided within my hotel budget. I would like to know the departure time of the train leaving Tokyo station for the Narita Airport station, and the time for an airplane bound for New York." It is assumed herein that the following information is to be obtained as the contents (item and data to be outputted) of an inquiry: (1) Hotel: Name of a hotel which is geographically convenient to the Tokyo station, and whose room cost is within the budget; (2) Train bound for Narita Airport station: Name of a train and departure time at Tokyo station; and (3) Airplane bound for New York: Flight number and departure time for the airplane leaving on Sunday. As a condition of the inquiry, for instance, "hotel located in Chiyoda-ku" is inputted for "geographically convenient to the Tokyo station," and "the rate for a single room is ¥10,000 or more and ¥19,000 or less" is inputted for the condition "within the budget". Further in this example, it is important to consider time necessary to transfer at the Narita airport. Therefore, it is necessary to add a condition such as "time difference between the arrival time of the train at the Narita Airport station and the departure time of the airplane at the Narita Airport is more than 40 minutes and less than 2 hours." Fig. 7 shows the above-described contents in the organized manner. (Issuance of Inquiry in Script form) To make inquiry shown in Fig. 7, the application software generates scripts such as that shown in Fig. 8, and issues the scripts in a file form to the Meta level system. Characters in-between the delimiter "/*" and "/*" are a comment which does not give any effects on actual processing or operation. For the purpose of explanation, in Fig. 8, line numbers incremented by ten are assigned to the lines that are not comments. Each line of the scripts is delimited by the end of line ";" and the end of script with the end of file ".". The scripts are constructed with syntax in order to minimize the description in the application level, and the scripts are transformed into the corresponding primitives by the script interpreter 8. In the present embodiment, the syntax in the above-described scripts is constructed with: (1) type of operation; (2) one or a plurality of argument related to operation object, operation and the like; (3) output object; and (4) end of file. The above (2) is distinguished by the delimiter "#", each argument is distinguished by the delimiter "," and each of the end of file is distinguished by ";" or ".". (Script Interpretation and Issuance of Primitive) As described above, in the Meta level system, the scripts issued by the application level are interpreted in a unit of line by the script interpreter 8, transformed into primitives, and issued to the corresponding database. That is, in this example, primitives whose object of processing is hotel information, are issued to a hotel database. Similarly, primitives whose object of processing is information regarding a train bound for Narita Airport station, are issued to the JR (Japan Railroad) time-table database. Primitives whose object of processing is information regarding international flight information, are issued to an international flight time-table database. In the present example, the hotel database, JR time-table database and international flight time-table database are described as a relational-form database. The table "hotel" in Fig. 11 shows the contents of the hotel database, the table "nex" in Fig. 14 shows the contents of the JR time-table database, and the tables "air" in Figs. 15-18 show the contents of the international flight time-table database. To show the process of executing the scripts which make the inquiry described in the example, Fig. 12 shows the contents of the table "hotel" upon completion of the script line 050 (Fig. 8); Fig. 18 shows the contents of the table "air" upon completion of the script line 120 (Fig. 8); and Fig. 19 shows an output example of the present system after completing all the scripts. The present invention can be applied to a system constituted by a plurality of devices (e.g., host computer, interface, reader, printer) or to an apparatus comprising a single device (e.g., copy machine, facsimile). Further, the present invention can be implemented by providing a storage medium storing program codes for performing the aforesaid processes to a system or an apparatus, reading the program codes with a computer (e.g., CPU, MPU) of the system or apparatus from the storage medium, then executing the program. In this case, the program codes read from the storage medium realize the new functions according to the invention, and the storage medium storing the program codes constitutes the invention. Further, the storage medium, such as a floppy disk, hard disk, an optical disk, a magneto-optical disk, CD-ROM, CD-R, a magnetic tape, a non-volatile type memory card, and ROM can be used for providing the program codes. Furthermore, besides aforesaid functions according to the above embodiment are realized by executing the program codes which are read by a computer, the present invention includes a case where an OS (Operating System) or the like working on the computer performs a part or entire processes in accordance with designations of the program codes and realizes functions according to the above embodiment. Furthermore, the present invention also includes a case where, after the program codes read from the storage medium are written in a function expansion card which is inserted into the computer or in a memory provided in a function expansion unit which is connected to the computer, a CPU or the like contained in the function expansion card or unit performs a part or entire process in accordance with designations of the program codes and realizes functions of the above embodiment. In a case where the present invention is applied to the aforesaid storage medium, the storage medium stores program codes corresponding to each of the flowcharts described in the embodiment for each level or altogether. As has been set forth above, the present invention is effective since it enables sharing and common use of a group of databases. Particularly, by virtue of the present invention, it is possible to make use of plural types of databases by combining different types of databases. The present invention is not limited to the above embodiments and various changes and modifications can be made within the scope of the present invention as defined in the appended claims.

Claims: A data processing system capable of referring to plural types of databases (11), said data processing system comprising an upper-level system (15) and a lower-level system (14), the upper-level system comprising: request issue means (8) for interpreting an inquiry in a first representation form received from a user side and issuing a search request in a second representation form to the lower-level system; and output means (8) for receiving the result of the search request in the second representation form from the lower-level system, generating a reply in the first representation form from the received result of the search request, and outputting the reply in the first representation form to the user side, and the lower-level system comprising: command output means (9,10) for interpreting the search request in the second representation form into one or more control commands each in a form corresponding to the type of a database related to the control command and outputting the control commands to the database; and result transforming means (9, 10) for transforming process results of the control commands obtained from the plural types of databases in the form corresponding to the respective types into the second representation form and providing the upper-level system with the transformed process results of the control commands, as the results of the search request in the second representation form, characterized in that : said request issue means is adapted to receive the inquiry including search requests for first and second kinds of data respectively stored in first and second databases, and a combination condition for a first attribute of the first kind of data and a second attribute of the second kind of data to combine the first and second kinds of data, and said output means is adapted to receive the first and second kinds of data, extract a combination of respective items satisfying the combination condition for the first and second attributes from among the received first and second kinds of data, and to combine the extracted combination into a reply to the inquiry. A system according to claim 1, wherein the upper-level system includes management data storage means for storing management data for the database which is an addressee of the control data issued by said control data issue means. A system according to claim 2, wherein said management data storage means includes: a management-data database which stores management data; management-command output means for transforming the control data represented by the second representation form issued by said control data issue means into a control command corresponding to said management-data database and outputting the transformed command; and management-data output means for outputting, in the second representation form, the process result of the control command obtained from said management-data database. A system according to any preceding claim, wherein the upper-level system further includes compensation-data storage means for storing compensation data for the reply to the inquiry received from the lower-level system. A system according to claim 4, wherein said compensation-data storage means includes: a compensation-data database which stores compensation data; compensation-command output means for transforming the control data represented by the second representation form issued by said control data issue means into a control command corresponding to said compensation-data database and outputting the transformed command; and compensation-data output means for outputting, in the second representation form, the process result of the control command obtained from said compensation-data database. A system according to claim 4 or claim 5, wherein said compensation-data storage means includes combine-compensation data used to combine process results obtained from different types of plural databases, and said output means includes combine means for combining, in the second representation form, process results obtained from different types of plural databases, by referring to the combine-compensation data. A system according to any one of the preceding claims, wherein at least one of the plural types of databases is a relational-type database. A system according to any preceding claim, wherein the plural types of databases are included in the lower-level system. A system according to claim 1, wherein the upper-level system comprises inquiry issue means for issuing an inquiry represented by the first representation form to a database, in response to an inquiry from a user. A data processing method of utilising a data processing system to refer to plural types of databases (11), said data processing system including an upper-level system (15) and a lower-level system (14), the method comprising: a request issuing step of, in the upper-level, interpreting an inquiry in a first representation form received from a user side and issuing a search request in a second representation form, to the lower-level system; a command outputting step of, in the lower-level system, interpreting the search request in the second representation form, into one or more control commands each in a form corresponding to the type of a database related to the control command and outputting the control commands to the database; a result transforming step of, in the lower-level system, transforming process results of the control commands obtained from the plural types of databases in the form corresponding to the respective types into the second representation form and providing the upper-level system with the transformed process results of the control commands, as the results of the search request in the second representation form; and an outputting step of, in the upper-level system, receiving a result of the search request in the second representation form from the lower-level system, generating a reply in the first representation form from the received result of the search request, and outputting the reply in the first representation form to the user side, characterized in that said request issue step is adapted to receive the inquiry including search requests for first and second kinds of data stored in respective first and second databases and a combination condition for a first attribute of the first kind of data and a second attribute of the second kind of data to combine the first and second kinds of data, and said output step is adapted to receive the first and second kinds of data, extract a combination of respective items satisfying the combination condition for the first and second attributes from among the received first and second kinds of data, and combine the extracted combination into a reply to the inquiry. A method according to claim 9 or claim 10, wherein said command outputting step includes: a management-command outputting step of transforming the control data represented by the second representation form into a control command corresponding to a management-data database, which stores management data for the database which is an addressee of the control data, and outputting the transformed command to the management-data database; and a management-data receiving step of receiving, in the second representation form, the process result of the control command obtained from the management-data database. A method according to claim 10 or claim 11, wherein said command outputting step includes: a compensation-command outputting step of transforming the control data represented by the second representation form into a control command corresponding to a compensation-data database, which stores compensation data for the reply to the inquiry received from the lower-level system, and outputting the transformed command to the compensation-data database; a compensation-data receiving step of receiving, in the second representation form, the process result of the control command obtained from the compensation-data database.

Inventors: KITAGAWA TAKASHI, KIYOKI YASUSHI, KITAGAWA, TAKASHI, KIYOKI, YASUSHI
Applicants: CANON KK, KITAGAWA TAKASHI, KIYOKI YASUSHI, CANON KABUSHIKI KAISHA, KITAGAWA, TAKASHI, KIYOKI, YASUSHI
Application year: 1997
Main classification: G06F17
IPC codes: G06F12, G06F17