Abstract:
A method for translating knowledge contained within a knowledge system into data records for a data base management system. The method collects the factual knowledge and other correlated auxiliary knowledge within the knowledge base, analyzes the frequency of the use of the knowledge in the knowledge system and proposes a data record structure for the data base to which the knowledge will be transferred. Upon operator approval, the factual and auxiliary knowledge is retrieved from the knowledge base, translated into data records in accordance with the approved data record structures and stored in the data base.

Description:
BACKGROUND OF THE INVENTION 
     The present invention relates to a method of translating data from a knowledge base to data for a data base in a data storage and utilization system. 
     As a system for utilizing an enormous amount of data with high efficiency through data storage and management, there is known a data base system (reference may be made, for example, to C. J. Date&#39;s &#34;An Introduction to Database Systems&#34; published by Addison-Wesley Publishing Company, 1981). The data base management system capable of storing and managing a large amount of data of particular categories and having systematic structures can afford an extensive retrieval function or capability by making use of the set operation, arithmetic operation and the like (reference may be made to the above cited literature, Section 4, pages 83 to 93 as well as Section 7, pages 117 to 123 and in particular pages 132 to 133). 
     On the other hand, the knowledge base can store miscellaneous knowledge data of different structures, and the knowledge base management system for managing the knowledge base is imparted with a function to perform inferential retrieval of the knowledge data on the basis of semantic relation, as is disclosed in Japanese Pat. Application Laid-Open No. 140443/1985 (JP-A-60-140443). 
     In the present state of the art, the data stored in the knowledge base diversify over a great number of different categories while the amount of data belonging to a single category remains relatively small. It is however expected that as the knowledge is accumulated more and more, the amount of knowledge data will attain a considerably great value. For dealing with such a large amount of knowledge data, there will undoubtedly arise a demand for an extensive retrieval function comparable to that of the data base management system. In this connection, it is however noted that the data stored in the knowledge base have no systematic architecture and thus ill-fitted for application of the retrieval function of the type carried out by the data base management system. 
     SUMMARY OF THE INVENTION 
     It is an object of the present invention to provide a data translation method which is capable of transferring or, so-called, transplanting data stored in a knowledge base to a data base for the purpose of allowing the extensive retrieval function of a data base management system to be fully made use of for the data of the knowledge base. 
     In view of the above and other objects which will be more apparent as description proceeds, the present invention teaches that the range of knowledge to be transferred from the knowledge base to the data base as well as data structure in the data base in concern is determined with the aid of a computer system, being followed by data translation of the knowledge data retrieved from the determined range of the knowledge base to the data of the determined data structure, wherein the data subjected to the data translation are stored in the data base. 
     According to an aspect of the present invention, the range of knowledge to be transferred from a knowledge base to a data base and the data structure which the knowledge to be transferred should assume in the data base are determined appropriately through man-machine operation, which is then followed by extraction of the knowledge of a predetermined range, translation of data structure and storage of the translated data in the data base, all being performed automatically by a computer system. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a view for illustrating in a flow chart a data translation method according to an embodiment of the present invention; 
     FIG. 2 is a view for illustrating schematically the concept of the present invention; 
     FIG. 3 is a view showing in a block diagram an exemplary arrangement of a computer system to which the invention can be applied; 
     FIG. 4 is a view for illustrating the contents of a knowledge base; 
     FIG. 5 is a diagram showing an example of an intelligence scheme produced for a proposal; 
     FIG. 6 is a view showing an example of displayed data for making a proposal to operator from the system; 
     FIG. 7 is a view showing an example of displayed data for making determination of data structure; and 
     FIGS. 8 to 10 are views for illustrating examples of data structures in a data base. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     FIG. 2 is a view for illustrating schematically the concept of the present invention. A knowledge base 100 is stored in a secondary memory device. Storage of knowledges, management and retrieval are effected by a knowledge base management system 101. A data base 102 is also held in a secondary memory device. A data management system 103 is responsible for the storage, management and retrieval of data. A knowledge-data translation program 104 for carrying out the invention is a program prepared for transferring knowledge data (hereinafter referred to simply as knowledge or knowledges) stored in the knowledge base 100 to data for the data base 102 and includes a data structure definition subsystem 105 and a data structure translation subsystem 106. The data structure definition subsystem 105 determines through man-machine interaction the range of knowledge to be transferred to the data base and the data structure which the knowledge should assume in the data base 102. On the other hand, the data structure translation subsystem 106 serves to retrieve the knowledge of the determined range from the knowledge base 100 and translate the retrieved knowledge to the data of the data structure determined by the data structure definition subsystem 105, whereby the resulting data are stored in the data base 101. Access to the knowledge base 100 and the data base 102 is enabled through the knowledge base management system 101 and the data base management system 103. 
     FIG. 3 shows, as a typical example, a hardware configuration of the computer system to which the present invention can be applied. As will be seen, the computer system includes a disc device 201, a terminal device 202, channels 203, a CPU 204 and a main memory 205. The disc device holds thereon the knowledge base 100 and the data base 102. The main memory 205 stores therein the knowledge base management system 101, the data base management system 103 and the knowledge-data translation program 104. Additionally, a buffer area 206 is prepared. In the case of the illustrated embodiment, the data base 102 is a relational data base. 
     FIG. 4 is a view for illustrating, by way of example, the contents of the knowledge base 100. The knowledge may be classified into factual knowledge 300 and auxiliary knowledge such as synonyms knowledge 310 and converse knowledge 320. In general, however, primary interest for the use of the knowledge base usually resides in the factual knowledge. A general syntax form of the knowledge is illustrated at 300 in FIG. 4. In the illustrated syntax form, &#34;main item name&#34;  and &#34;main item data&#34; indicate the object of the knowledge, that is the theme, while &#34;item name&#34; and &#34;item data&#34; are the contents of the knowledge about the object indicated by the main item data. By way of example, the knowledge 301 has such contents that a company named &#34;Taiyo Sekiyu&#34; has residence in Tokyo, the telephone number (TEL) of which company is &#34;03 (121) 1251&#34; and the executive is &#34;Youichi Ohta&#34;. The item name and the item data are of such a hierarchical form that an additional knowledge concerning the item data can be described in terms of the item name and the item data of lower rank. By way of example, the knowledge 306 has the contents that a company named &#34;Tukiboshi Denki&#34; has residence in Ohsaka, deals in the high quality televisions as the new line of commodities, and additionally the data of issue of the high quality television is &#34;March, 1986&#34;. A single main item data or a single item data may be described in terms of plural item names. On the other hand, a single item name may be attached with a plurality of data. By way of example, in the case of knowledge 307, the item name &#34;telephone number&#34; is accompanied with two item data &#34;03 (558) 7136&#34; and &#34;03 (561) 6566&#34;. 
     The synonyms knowledge 310 comprises a set or collection of different terms used in describing an identical entity when considered in the light of the factual knowledge. The synonyms knowledge is made use of to handle these different terms as the semantically same one. The knowledge 311, for example, indicates that &#34;Company Name&#34; and &#34;Company Identification&#34; may be considered to have the same meaning in the light of the factual knowledge. 
     The converse knowledge is to serve for indicating that two knowledges expressing the identical entity from the relatively converse standpoints have the same content. By way of example, the knowledge 321 is a definition that the description &#34;the company which developed a system having the system name X is Y&#34; (right side of a symbol &#34;:-&#34;) is same as the description &#34;the system developed by a company named Y is X&#34;. 
     Turning back to FIG. 6, operator may issue a request through the terminal 202 that certain data in the knowledge base 100 be transferred to the data base 102. In response to this request, the knowledge-data translation program 104 performs the processing described below by correspondingly controlling the CPU 204. The outline of this processing is illustrated in a flow chart in FIG. 1. 
     (i) Step 1 (block 401 in FIG. 1) 
     At first, the data structure definition subsystem 105 is activated to make a proposal concerning the knowledge to be transferred to the data base. The knowledge base contains therein numerous and various knowledge data in disorder as described hereinbefore. Accordingly, difficulty will be encountered in deciding which category of the knowledge could be preferably transferred to the data base. This step is to aid in making such difficult decision. 
     Under the circumstance, the data structure definition subsystem 105 calls the knowledge base management system to read out the contents of the knowledge base 100 into the buffer area 206, arrange the data in order and prepare a scheme of knowledge which includes comprehensively the main item name and the item names as illustrated in FIG. 5. In this figure, the main item name 500 is obtained from the knowledges 301, 306, 307 and other company-related knowledges. In this case, the main item name &#34;Company Identification&#34; of the knowledge 306 is handled to be equivalent to &#34;Company Name&#34; by the synonyms knowledge 311. With regard to the term having synonyms, it will be convenient to select the first occurrence of the terms in the synonyms knowledge 310. Alternatively, the term used with the highest frequency may be selected. For the item names &#34;TEL&#34;, &#34;New Commodities&#34;, the synonyms knowledge 310 can be utilized similarly. An item frame 501 is derived from the knowledges 306 and 307. An item frame 502 is derived by applying the converse knowledge 321 to the knowledge 302. More specifically, the knowledge 302 can be interpreted to have the same meaning as &#34;Developed System {KB001 {Company Name {Toyou Kaihatsu}}}&#34; which is equivalent to the description rearranged only in the order of the terms, i.e. &#34;Company Name {Toyou Kaihatsu {Developed System {KB001}}}&#34;. Accordingly, the knowledge 302 may be processed as the knowledge having the company name as the main item name. Item frames 503 and 504 are derived from the knowledges not shown in FIG. 4. Item frames 511 and 512 each having a person&#39;s name as the main item name 510 are derived from the knowledge 303 concerning the persons&#39; names. Finally, item frames 521 and 522 each including the title of article are derived from the knowledge 304 concerning the articles&#39; titles. 
     Next, the data structure definition subsystem 105 prepares a table 610 containing frequency data concerning the individual main item name and the individual item names, as is shown in FIG. 6. In the case of this example, 600 main item data are available for the main item name &#34;Company Name&#34;, and when the main item data are found for the &#34;Company Name&#34;, there are then available 210 knowledges concerning &#34;Residence&#34; for each of the main item data. In this way, the main item name and the item names are indicated, as shown in FIG. 6. 
     After the analysis procedure described above, the data structure definition subsystem 105 selects the main item name and the item name having the respective frequencies higher than predetermined threshold values, for thereby determining the candidates for the knowledges to be transferred to the data base, which candidates are displayed as the proposal 620. In the case of the example illustrated in FIG. 6, the knowledge having a frequency greater than 200 is selected and prepared as the proposal 621. The system manager can determine and alter appropriately the threshold values mentioned above. The data base is a system suited for storage and retrieval of an enormous amount of data having systematic structures. Accordingly, the aforementioned threshold value for the frequency should preferably be high enough to allow full use of the characteristic features of the data base mentioned above. 
     (ii) Step II (block 402 in FIG. 1) 
     In succession to the proposal described above, the data structure definition subsystem 105 prompts the operator to input the main item name of the knowledge to be transferred to the data base. FIG. 7 shows an examply display 700 produced at the instant step and the succeeding step III. As will be seen in this figure, the proposal 621 shown in FIG. 6 has been adopted for the main item name 701 with &#34;Company Name&#34; being inputted by the operator. 
     (iii) Step III (block 403 in FIG. 1) 
     When the main item name 701 is designated, the scheme 702 of the knowledge concerning the designated main item name is prepared. The scheme includes the main item name and the item names of the knowledge having the designated main item name. These data can be obtained from the scheme data (FIG. 5) prepared at the aforementioned step I. The data structure definition subsystem 105 extracts the item names associated with the designated main item name to prepare a scheme 703 which is then displayed. In the case of the example illustrated in FIG. 7, the designated main item name coincides with the proposal made by the system. Accordingly, the scheme is prepared in conformance with the proposal. However, in case the designated main item name differs from the proposal, all the item names associated with the designated main item name will be extracted. 
     Next, the data structure definition subsystem 105 retrieves the synonyms 704 relevant to the prepared scheme 703 from the knowledge base 100 by way of the knowledge base management system 103, the retrieved synonyms being then displayed. This display aids operator in his determining the field name explained hereinafter by indicating the synonyms for the item names as selected by the system. 
     (iv) Step IV (block 404 in FIG. 1) 
     Now, the preparation of data structure definition 702 of the data base is started. With the data structure definition subsystem 105, the main item name and the item names are copied to the field 710 at respective rows. The operator can replace the term unsuited as the field name by another one selected from the synonyms or the one which occurs to the operator. Further, unnecessary item names may be deleted. Reversely, when the proposal made by the system is adopted, the item name omitted by the system may be added. When the item name is deleted or added in this manner, the contents of the structure frame 702 is also altered correspondingly. Subsequently, the data structure definition system 105 prompts the operator to input field length 707 and the data type 708. In response, the operator inputs the requisite data. Referring to FIG. 7, &#34;K&#34; and &#34;C&#34; on the row of the data type 730 represents a Kanji code (Chinese character code) and an EBSDIC code, respectively. By way of example, entries 711, 721 and 731 indicate that the data of &#34;Company Name&#34; is represented by the kanji code having a length up to 20 bytes in the data base 102 (i.e. the field for &#34;Company Name&#34; in the data base is for the kanji code data in length up to 20 bytes). Further, entries 712, 722 and 732 indicate that the data of &#34;TEL&#34; is represented by the EBSDIC code in length up to 12 bytes. 
     Now, the data structure definition subsystem 105 prompts the operator to input the table name 740. In response, the operator may input suitable terms (&#34;Company Table&#34; in the case of the example illustrated in FIG. 7). 
     (v) Step V (block 405 in FIG. 1) 
     When the data structure definition is determined, the data structure definition subsystem 105 transfers the data structure definition as determined to the data base management system 103 by way of the buffer area 206, commanding the system 103 to prepare the table frame corresponding to the data structure in concern in the data base 102. FIG. 8 shows a table frame prepared in the data table for the data structure definition 705 shown in FIG. 7. 
     (vi) Step VI (block 406 in FIG. 1) 
     The data structure translation subsystem 106 is activated to perform translation of the data structure. The data structure translation subsystem 106 calls the knowledge base management system 101 to retrieve the knowledge contained in the established structure frame (702 in FIG. 7) into the buffer area 206 from the knowledge base 100 and translate the data format in accordance with the determined data structure definition (705 in FIG. 7). FIG. 9 shows the results of translation of the knowledge 301 shown in FIG. 4. 
     Finally, the data structure translation subsystem 106 calls the data base management system 103 to transfer the knowledge undergone the structure translation to the data base 102 to be stored therein. As the result, data of the table format shown in FIG. 10 is stored in the data base 102 which allows the extensive retrieval function of the data base management system 103 to be utilized. 
     In the case of the embodiment described above, the main item name of the knowledge to be transferred to the data base as well as the details of the data structure definition and the table name must be given by operator. As a modification of the illustrated embodiment, such arrangement may be also adopted in which the system prepares a draft for the items so that operator may command only execution unless necessity aries to alter the contents of the draft. 
     Further, the knowledge-data translation may be performed by other computer than that for managing the data base and the knowledge base. Beside, the knowledge-data translation, the data base management and the knowledge base management may be performed by separate computers, respectively. 
     As will be appreciated from the foregoing description, it is now made possible according to the present invention to transfer knowledge of an appropriate range from the knowledge base to the data base in a facilitated manner, whereby the intensive and extensive retrieval function or capability of the data base management system can be effectively made use of.