JPH04241627A - Method for utilizing data base as knowledge base - Google Patents

Method for utilizing data base as knowledge base

Info

Publication number
JPH04241627A
JPH04241627A JP3002628A JP262891A JPH04241627A JP H04241627 A JPH04241627 A JP H04241627A JP 3002628 A JP3002628 A JP 3002628A JP 262891 A JP262891 A JP 262891A JP H04241627 A JPH04241627 A JP H04241627A
Authority
JP
Japan
Prior art keywords
time
database
data
fact
accessing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3002628A
Other languages
Japanese (ja)
Inventor
Yoshihiro Shintani
義弘 新谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3002628A priority Critical patent/JPH04241627A/en
Publication of JPH04241627A publication Critical patent/JPH04241627A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the inference time by reducing the modification of the data of a data base after storing the data in a knowledge base or the accessing amount to the data base. CONSTITUTION:A time flag for defining accessing intervals and preceding access time indicating the accessed time are provided as the fact data of a knowledge base. In addition, a means which compares the difference between the preceding accessing time and the current accessing time with the value of the time flag is provided. Then control is made so that the value of the time flag can be utilized and, in addition, the data in a fact memory can be utilized as they are in accordance with the compared result or the data newly fetched by accessing the data base.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、タイムフラグを用いた
データベース知識化利用方法に関する。エキスパートシ
ステムとは、ある問題領域の専門家が持っている計算機
内に知識ベースとして実現し、その知識をもとに推論等
を行い、専門家と同程度の問題解決能力を持ったシステ
ムである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of utilizing a database for knowledge using time flags. An expert system is a system that is realized as a knowledge base in a computer owned by an expert in a certain problem area, makes inferences, etc. based on that knowledge, and has problem-solving ability comparable to that of the expert. .

【0002】0002

【従来の技術】エキスパートシステムにおける知識ベー
スには主として2つある。一つは、専門家のノウハウ、
かん、経験規則といった知識でルールといわれるもの、
もう一つは、誰でも認めるものであり、良く整理され、
体系だてられた知識で事実と言われている。事実にデー
タベースのデータを用いたエキスパートシステムも少な
くない。データベースの知識化としては、推論を始める
前に予めデータベースのデータを事実として知識ベース
に格納したり、特開平1−134628号公報のように
推論中にデータベースのデータが必要になる度にデータ
ベースをアクセス(データの獲得及び修正)したりする
方法がある。
2. Description of the Related Art There are mainly two types of knowledge bases in expert systems. One is the know-how of experts,
Knowledge such as rules of experience is called a rule.
The other is something that everyone recognizes, is well organized,
Systematic knowledge is said to be a fact. In fact, there are many expert systems that use database data. In order to convert the database into knowledge, the data in the database can be stored as facts in a knowledge base before inference is started, or the data in the database can be stored in the knowledge base every time the data in the database is needed during inference, as in Japanese Patent Application Laid-Open No. 1-134628. There are ways to access (acquire and modify data).

【0003】0003

【発明が解決しようとする課題】しかしながら、推論を
始める前に予めデータベースのデータを事実として知識
ベースに格納すると、格納後のデータベース変更に対応
できず、また、データベースのデータが必要になる度に
データベースをアクセスすると、アクセス時間が多くか
かり推論じたいの速度が遅くなるという問題があった。 本発明は、時間フラグを用いることにより、データベー
スのデータの知識ベースへの格納後のデータベースの修
正の可能性の低減や、データベースへのアクセス量を減
らすことにより推論時間の短縮を行うことを目的とする
[Problem to be Solved by the Invention] However, if database data is stored in a knowledge base as a fact before inference begins, it will not be possible to respond to changes in the database after storage, and each time the database data is needed, When accessing the database, there was a problem in that it took a long time to access and the speed of inference slowed down. The present invention aims to reduce the possibility of database modification after database data is stored in a knowledge base, and to shorten inference time by reducing the amount of access to the database, by using time flags. shall be.

【0004】0004

【課題を解決するための手段】本発明は、知識ベースの
事実を表現する情報の一部として、アクセス間隔を定義
するタイムフラグとアクセスした時間を示す前回アクセ
ス時間とを設けたものである。更に、前回アクセス時間
と今回アクセス時間との差と、前記タイムフラグの値と
の大小を比較する手段を設けたものである。そして、タ
イムフラグの値、更には、大小の比較結果に応じて、事
実メモリ内のデータをそのまま利用し、または、データ
ベースをアクセスして新たに取り込んだデータを利用す
るように制御する。
[Means for Solving the Problems] The present invention provides a time flag that defines an access interval and a previous access time that indicates the access time as part of the information expressing the facts of the knowledge base. Furthermore, means is provided for comparing the difference between the previous access time and the current access time with the value of the time flag. Then, depending on the value of the time flag and the result of the size comparison, control is performed to use the data in the actual memory as is or to use data newly fetched by accessing the database.

【0005】[0005]

【作用】本発明によれば、たとえば、銀行ファイルの口
座番号などは、一度取り込んだデータがそのまま利用さ
れ、データベースにアクセスしないだけ、推論時間が短
縮される。また、預金残高などは、データベースから事
実メモリに取り込み直して利用され、データベースの変
更に対応させる。
[Operation] According to the present invention, for example, data once imported, such as account numbers in bank files, is used as is, and the inference time is shortened by not accessing the database. In addition, bank account balances and the like are retrieved from the database into the fact memory and used, allowing them to respond to changes in the database.

【0006】[0006]

【実施例】図1は、本発明を利用したエキスパートシス
テムの実施例である。図1において、11は利用者が利
用するためのユーザインタフェース部、12は推論を行
う推論エンジン、13は知識ベースであり、その中には
、ルールを格納するルールメモリ14と事実を格納する
事実メモリ15がある。事実メモリ15の中のデータベ
ースに関係する部分は、データベースアクセス処理部1
6を通してデータベースをアクセスする。
Embodiment FIG. 1 shows an embodiment of an expert system using the present invention. In FIG. 1, 11 is a user interface section for use by a user, 12 is an inference engine that performs inference, and 13 is a knowledge base, which includes a rule memory 14 that stores rules and a fact sheet that stores facts. There is a memory 15. The database-related portion of the fact memory 15 is stored in the database access processing unit 1.
6 to access the database.

【0007】図2は、事実メモリにおける表現構造を説
明するために示したものである。事実の表現方法は、多
くあるがここでは、銀行での顧客ファイルの一部をフレ
ームを用いた例で示している。図2において、21はフ
レームの名前を示し、22はスロット名である口座番号
を示し、23はスロット値を示す。24と25はそれぞ
れスロットの属性を示し、アクセス方法とタイムフラグ
を入れている。アクセス方法24はデータベースへの記
述したものであり、そこでの顧客ファイル・口座番号に
関するテーブルに従い、図1のデータベースアクセス部
16がデータベース17をアクセスする。
FIG. 2 is shown to explain the representation structure in fact memory. There are many ways to express facts, but here we will use a frame as an example of part of a bank's customer file. In FIG. 2, 21 indicates the name of the frame, 22 indicates the account number which is the slot name, and 23 indicates the slot value. 24 and 25 each indicate the attributes of the slot, and include an access method and a time flag. The access method 24 is written in the database, and the database access unit 16 of FIG. 1 accesses the database 17 according to the table regarding customer files and account numbers therein.

【0008】タイムフラグ25には、0以上の自然数を
入れる。0の場合は、データベースの変更がないことを
示し、例えば、口座番号は、変更されることが少ないの
で、0となっている。変更がないものであるから一度デ
ータベースから取り込んだデータを再度アクセスする必
要はない。従って、タイムフラグが0のものは、一度デ
ータベースから取り込んだデータをそのまま利用するこ
とができる。タイムフラグが1以上の場合は、データベ
ースの変更があることを示す。タイムフラグの値は、デ
ータの保持時間を示し、前回のアクセス時間26と今回
のアクセス時間との差が、タイムフラグより小さい場合
は、そのままデータを利用し、タイムフラグより大きい
場合は、データベースをアクセスしにゆく。従って、タ
イムフラグの値が1以上で小さいほど、データベースの
変更が頻繁に行われているものといえる。このアクセス
時間については、秒単位やシステムが起動しているマシ
ンの内部時間単位などで表現する。例えば、図2におけ
る預金残高は頻繁に変化する可能性があるものであり、
タイムフラグの値1は、データベースを1マシン内部時
間毎にアクセスすることを表している。
[0008] A natural number greater than or equal to 0 is entered in the time flag 25. If it is 0, it indicates that there is no change in the database; for example, the account number is 0 because it is rarely changed. Since the data does not change, there is no need to access the data once imported from the database. Therefore, if the time flag is 0, data once fetched from the database can be used as is. If the time flag is 1 or more, it indicates that the database has been changed. The value of the time flag indicates the data retention time. If the difference between the previous access time 26 and the current access time is smaller than the time flag, the data is used as is; if it is larger than the time flag, the database is deleted. Go to access. Therefore, it can be said that the smaller the time flag value is 1 or more, the more frequently the database is changed. This access time is expressed in units of seconds or internal time units of the machine on which the system is running. For example, the deposit balance in Figure 2 may change frequently,
A time flag value of 1 indicates that the database is accessed every machine internal time.

【0009】図3は、図1での機能を示すフローチャー
トである。図3において、知識ベース13に事実の参照
があると、その事実がデータベースのものかを判断する
(ステップ31)。データベースの事実ではない場合は
、通常の事実操作を行う(ステップ32)。データベー
スの事実の場合、データが知識ベース13中になければ
(ステップ33)、データベース17からデータデータ
を読み(ステップ35)、前回アクセス時間を今回アク
セス時間に変更し(ステップ36)、データを知識ベー
ス13に入れ(ステップ37)、データを返す(ステッ
プ38)。データがすでに知識ベース13中に存在する
場合は、前回アクセス時間と今回アクセス時間との差を
検出し且つその差とタイムフラグとを比較し(ステップ
34)、タイムフラグより小さければ、データをそのま
ま返す(ステップ38)。タイムフラグより大きい場合
は、データベース17からデータを読み(ステップ35
)、前回アクセス時間を今回アクセス時間に変更し(ス
テップ36)、データを知識ベース13に入れ(ステッ
プ37)、データを返す(ステップ38)。
FIG. 3 is a flowchart showing the functions in FIG. In FIG. 3, when a fact is referenced in the knowledge base 13, it is determined whether the fact is from the database (step 31). If it is not a database fact, normal fact manipulation is performed (step 32). In the case of database facts, if the data is not in the knowledge base 13 (step 33), the data is read from the database 17 (step 35), the previous access time is changed to the current access time (step 36), and the data is stored in the knowledge base 13 (step 33). into the base 13 (step 37) and return the data (step 38). If the data already exists in the knowledge base 13, the difference between the previous access time and the current access time is detected and compared with the time flag (step 34), and if it is smaller than the time flag, the data is left as is. return (step 38). If it is larger than the time flag, read data from the database 17 (step 35).
), changes the previous access time to the current access time (step 36), puts the data into the knowledge base 13 (step 37), and returns the data (step 38).

【0010】0010

【発明の効果】本発明では、タイムフラグを用いること
により、データベースに固有の変更のないデータについ
ては、一度読み込むだけで以後同じもの使用するので、
データベースのアクセス時間を減らし、推論時間を短縮
することができる。また、データベースの変更の可能性
のあるデータについては、タイムフラグに1以上の自然
数を指定することでデータベースへのアクセスのタイミ
ングを設定することができ、余分なアクセスを行わずに
推論時間の短縮ができ、且つ、データベースの変更に対
応することができる。
[Effects of the Invention] In the present invention, by using time flags, data unique to the database that does not change can be read once and the same data will be used thereafter.
Database access time can be reduced and inference time can be shortened. In addition, for data that may change in the database, the timing of accessing the database can be set by specifying a natural number of 1 or more in the time flag, reducing inference time without unnecessary access. and can respond to changes in the database.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の一実施例を説明するために示したエキ
スパートシステムのブロック図である。
FIG. 1 is a block diagram of an expert system shown to explain one embodiment of the present invention.

【図2】図1における事実メモリの表現構造を説明する
ために示した事実表現例図である。
FIG. 2 is a diagram showing an example of fact representation shown to explain the representation structure of the fact memory in FIG. 1;

【図3】図1の機能を説明するために示したフローチャ
ートである。
FIG. 3 is a flowchart shown to explain the functions of FIG. 1;

【符号の説明】[Explanation of symbols]

11    ユーザインタフェース 12    推論エンジン 13    知識ベース 14    ルールメモリ 15    事実メモリ 16    データベースアクセス処理部17    
データベース
11 User interface 12 Inference engine 13 Knowledge base 14 Rule memory 15 Fact memory 16 Database access processing unit 17
database

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  ルール及び事実を含む知識を計算機内
に知識ベースとして実現し、その知識をもとに推論を行
い、専門家と同程度の問題解決能力を持ったエキスパー
トシステム、におけるデータベースの知識化利用方法に
おいて、事実メモリ内の各事実を表現する情報の一部に
、アクセス間隔を定義するタイムフラグとアクセスした
時間を示す前回アクセス時間とを設け、更に、前回アク
セス時間と今回アクセス時間との差と、前記タイムフラ
グの値との大小を比較する手段を設け、知識ベースに事
実に関する参照があった場合、その事実が特定のタイム
フラグのものならば、データベースにアクセスすること
なく事実メモリ内のデータを返し、その事実がタイムフ
ラグの他の値のものならば、アクセス時間の前記差と当
該タイムフラグの値との比較結果に応じて、データベー
スにアクセスすることなく事実メモリ内のデータを返し
、または、データベースにアクセスして前記事実メモリ
内に取り込んだデータを返す、ことを特徴としたデータ
ベース知識化利用方法。
[Claim 1] Database knowledge in an expert system that realizes knowledge including rules and facts as a knowledge base in a computer, makes inferences based on that knowledge, and has problem-solving ability comparable to that of experts. In this method, a time flag that defines the access interval and a previous access time that indicates the access time are provided as part of the information representing each fact in the fact memory, and the previous access time and current access time are also set. and the value of the time flag, and if there is a reference to a fact in the knowledge base, and the fact belongs to a specific time flag, the fact memory is stored without accessing the database. and if the fact is of any other value of the time flag, the data in the fact memory without accessing the database, depending on the result of comparing said difference in access time with the value of the time flag in question. A method of utilizing a database for knowledge, characterized in that the method returns the data retrieved into the fact memory by accessing the database.
JP3002628A 1991-01-14 1991-01-14 Method for utilizing data base as knowledge base Pending JPH04241627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3002628A JPH04241627A (en) 1991-01-14 1991-01-14 Method for utilizing data base as knowledge base

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3002628A JPH04241627A (en) 1991-01-14 1991-01-14 Method for utilizing data base as knowledge base

Publications (1)

Publication Number Publication Date
JPH04241627A true JPH04241627A (en) 1992-08-28

Family

ID=11534663

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3002628A Pending JPH04241627A (en) 1991-01-14 1991-01-14 Method for utilizing data base as knowledge base

Country Status (1)

Country Link
JP (1) JPH04241627A (en)

Similar Documents

Publication Publication Date Title
US5497491A (en) System and method for importing and exporting data between an object oriented computing environment and an external computing environment
US6339777B1 (en) Method and system for handling foreign key update in an object-oriented database environment
US6446077B2 (en) Inherited information propagator for objects
CN110046181A (en) The method and apparatus of data routing based on database distributed storage
US6269363B1 (en) Method of accessing data using approximate data structures by relaxing the operations that define same
JPH04241627A (en) Method for utilizing data base as knowledge base
JPH0456344B2 (en)
JPS61278932A (en) Method of processing data addition
JPH02151944A (en) Data processor
JP2507399B2 (en) Database equipment
JPH02257282A (en) Table preparation processor
CN106557469A (en) The method and device of data in a kind of processing data warehouse
JP2615046B2 (en) Record addition processing method
JPH0337721A (en) Attribute borrowing system for dictionary system
JPH04205173A (en) Information retrieval system
JPH02222044A (en) Data processor
CN116467518A (en) Intelligent content recommendation system
JPH1185593A (en) Method and device for distributedly arranging counter tables
JPH02157949A (en) Electronic file control system
JPS63269224A (en) Data base access system
JPS6327927A (en) Index generation system in reserved information retrieval system
JPH05181726A (en) File access system
JPH06124307A (en) Data base processor
JPH0488476A (en) Data totalization system
JPH0916445A (en) Ledger file access method and banking system applied with the same