JPH0248734A - Control system for knowledge base system - Google Patents
Control system for knowledge base systemInfo
- Publication number
- JPH0248734A JPH0248734A JP20049988A JP20049988A JPH0248734A JP H0248734 A JPH0248734 A JP H0248734A JP 20049988 A JP20049988 A JP 20049988A JP 20049988 A JP20049988 A JP 20049988A JP H0248734 A JPH0248734 A JP H0248734A
- Authority
- JP
- Japan
- Prior art keywords
- inference
- environment
- knowledge base
- knowledge
- saving
- 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
Links
Landscapes
- Devices For Executing Special Programs (AREA)
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、知識ベースシステムの管理方式に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a management method for a knowledge base system.
知識ベースシステムは、一般には知識ベース中の知識に
対して推論を行うものである。利用者からの指示に従い
、推論が行なわれ、結果が表示される。利用者はその結
果を見てさらに深い推論を行うように指示を行う、とい
う処理を繰り返す。Knowledge-based systems generally perform inferences on knowledge in a knowledge base. Inference is made according to instructions from the user, and the results are displayed. The user looks at the results, gives instructions to make deeper inferences, and repeats the process.
利用者が処理を一旦中断し、後程再開したいと思った場
合には、推論結果が出た際に知識ベースの内容をファイ
ル等に書出すコマンドを入力するか、知識ベース中にそ
のようなコマンドを実行する知識を記述する必要があっ
た。If the user wants to suspend the process and resume it later, he or she can enter a command to write the contents of the knowledge base to a file etc. when the inference result is obtained, or write such a command in the knowledge base. It was necessary to describe the knowledge to carry out the process.
知識ベースが大規模化し、推論が複雑になるに従い、結
論を出すまでの処理時間は増加する傾向にある。そうな
ると、知識ベースシステムが動作しているシステムのマ
シンタイムの都合等で、結論がでないうちにオペレータ
等から処理を強制的に中断されてしまう恐れがある。し
たがって、この場合には推論中であっても推論の中断の
指示を受取り、推論の途中経過等の動作環境をファイル
等の二次記憶装置に記憶し、他の機会にそこからシステ
ムの環境を復元し、推論を続行する機構が必要である。As knowledge bases become larger and inferences become more complex, the processing time required to reach a conclusion tends to increase. In this case, there is a risk that the processing may be forcibly interrupted by an operator or the like before a conclusion is reached due to the machine time of the system on which the knowledge base system is operating. Therefore, in this case, an instruction to interrupt the inference is received even during inference, the operating environment such as the progress of the inference is stored in a secondary storage device such as a file, and the system environment is retrieved from there at another time. A mechanism is needed to restore and continue reasoning.
これに対して、上述の方法ではファイルに書出されるの
は知識ベース中の知識のみであり、推論の途中で中断さ
れた処理の再開のために必要なすべての情報、例えばシ
ステムデータは書出されない。On the other hand, in the method described above, only the knowledge in the knowledge base is written to a file, and all the information necessary to resume processing that was interrupted during inference, such as system data, is written to the file. Not done.
また、オペレーティングシステム(以下O8)の機能と
してメモリ全部をファイルに書出し、またこれをメモリ
上に展開して処理を再開するという機能も存在するが、
処理の再開に不必要なものまで書出すためファイルスペ
ースの無駄となり、またあらかじめ準備が必要で利用者
の希望するときに随時に行うわけにはいかない。Additionally, there is a function of the operating system (hereinafter referred to as O8) that writes the entire memory to a file, expands it onto the memory, and resumes processing.
File space is wasted because unnecessary information is written to restart the process, and preparation is required in advance, so it cannot be done whenever the user wishes.
本発明の推論の中断を考慮に入れた知識ベースシステム
の管理方式は、
このシステム動作時に利用される知識を格納する知識ベ
ース手段(以下知識ベース)と、この知識ベースに対し
て推論処理を行う推論手段(以下推論機構)と、
利用者からの推論中止指示を得る入力手段と、推論の再
開に必要な環境情報を格納する推論環境格納手段と、
前記知識ベースおよび前記推論機構から得た推論環境情
報を前記推論環境格納手段に格納する推論環境退避手段
と、
この推論環境格納手段から前記知識ベースおよび前記推
論機構に推論環境情報を渡す推論環境復元手段と、
前記推論機構または前記入力手段から推論中断指示がな
された際には、推論再開時に必要となる環境情報を前記
推論環境退避手段により退避する処理を制御し、また推
論再開時には前記推論環境復元手段によるシステム再構
築処理を制御する推論環境管理手段とを有する。The management method of the knowledge base system according to the present invention that takes into account the interruption of inference consists of a knowledge base means (hereinafter referred to as knowledge base) that stores knowledge used during system operation, and a knowledge base that performs inference processing on this knowledge base. an inference means (hereinafter referred to as an inference mechanism), an input means for receiving an instruction to stop inference from a user, an inference environment storage means for storing environmental information necessary for restarting inference, and an inference obtained from the knowledge base and the inference mechanism. reasoning environment saving means for storing environment information in the reasoning environment storage means; reasoning environment restoring means for passing reasoning environment information from the reasoning environment storage means to the knowledge base and the reasoning mechanism; and from the reasoning mechanism or the input means. When an inference suspension instruction is issued, the inference environment saving means controls a process of saving environment information required when inference is restarted, and when inference is restarted, the inference environment restoring means controls system reconstruction processing. and environmental management measures.
次に本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.
第1図を参照すると、本発明の一実施例は、本システム
動作時に利用される知識が格納される知識ベース7と、
この知識ベース7に対して推論処理を行う推論機構2と
、
利用者からの推論中止指示を得る入力手段1と、推論の
再開に必要な環境を格納する推論環境格納手段6と、
前記知識ベース7および前記推論機構2から得た推論環
境情報を前記推論環境格納手段6に格納する推論環境退
避手段3と、
この推論環境格納手段6から前記知識ベース7および前
記推論機構2に推論環境情報を渡す推論環境復元手段4
と、
前記推論機構2または前記入力手段1から推論中断指示
がなされた際には、推論再開時に必要となる環境情報を
前記推論環境退避手段3により退避する処理を制御し、
また推論再開時には前記推論環境復元手段4によるシス
テム再構築処理を制御する推論環境管理手段5とy有す
る。Referring to FIG. 1, one embodiment of the present invention includes a knowledge base 7 in which knowledge used during operation of this system is stored, an inference mechanism 2 that performs inference processing on this knowledge base 7, and a user. an input means 1 for obtaining an inference stop instruction from an inference; an inference environment storage means 6 for storing an environment necessary for restarting inference; and an inference environment storage means for storing inference environment information obtained from the knowledge base 7 and the inference mechanism 2. an inference environment saving means 3 for storing inference environment storage means 6; and an inference environment restoring means 4 for passing inference environment information from the inference environment storage means 6 to the knowledge base 7 and the inference mechanism 2.
and, when an inference suspension instruction is issued from the inference mechanism 2 or the input means 1, controlling a process of saving environment information necessary for restarting the inference by the inference environment saving means 3;
It also has an inference environment management means 5 which controls the system reconstruction process by the inference environment restoration means 4 when the inference is restarted.
次に、本発明について、図面を参照して詳細に説明する
。Next, the present invention will be explained in detail with reference to the drawings.
前記入力手段lは、端末のブレークキーの押下等により
利用者から直接もたらされる推論の中断の指示を得るた
めのものである。The input means 1 is for obtaining an instruction to interrupt the inference directly from the user, such as by pressing a break key on the terminal.
前記推論機構2は、通常時、前記知識ベース7に対して
推論処理を行うものだが、ルールやフレーム等から推論
の中断の指示を得た場合には、前記推論環境管理手段5
にその旨を伝える。The inference mechanism 2 normally performs inference processing on the knowledge base 7, but when receiving an instruction to interrupt inference from a rule, frame, etc., the inference environment management means 5
Inform them of this.
前記推論環境退避手段3は、推論中断の際に起動され、
前記知識ベース7および前記推論機構2から得られた推
論再開時に必要な環境を前記推論環境格納手段6に格納
する。The inference environment saving means 3 is activated when inference is interrupted,
The environment necessary for restarting the inference obtained from the knowledge base 7 and the inference mechanism 2 is stored in the inference environment storage means 6.
前記推論環境復元手段4は、中断された推論処理を再開
する際に起動され、前記推論環境格納手段6に格納され
ている推論環境を前記知識ベース7および前記推論機構
2に渡し、推論の再開を可能にする。The inference environment restoration means 4 is activated when restarting the interrupted inference process, passes the inference environment stored in the inference environment storage means 6 to the knowledge base 7 and the inference mechanism 2, and resumes inference. enable.
前記推論環境管理手段5は、前記入力手段1または前記
推論機構2から推論中断の指示が得られた際に、前記推
論環境退避手段3を起動し推論環境の退避を制御し、さ
らに推論再開時には前記推論環境回復手段4を起動し推
論環境の再構築を制御する。The inference environment management means 5 activates the inference environment saving means 3 to control the saving of the inference environment when an instruction to interrupt the inference is obtained from the input means 1 or the inference mechanism 2, and further controls the inference environment when restarting the inference. The inference environment recovery means 4 is activated to control reconstruction of the inference environment.
次にこの推論環境管理手段5の制御の主要部分を詳細に
説明する。Next, the main parts of the control of this inference environment management means 5 will be explained in detail.
処理Aでは、推論中断時の処理か推論再開時の処理かが
判断される。推論中断時であれば処理Bおよび処理Cが
行なわれる。推論再開時であれば処理りおよび処理Eが
行なわれる。In process A, it is determined whether the process is a process when the inference is interrupted or a process when the inference is restarted. If the inference is interrupted, processing B and processing C are performed. If the inference is restarted, processing and processing E are performed.
すなわち、推論中断時と判定されれば、処理Bにおいて
は前記推論環境管理手段5の制御の下で前記推論環境退
避手段3が前記知識ベース7中の知識を前記推論環境格
納手段6に格納する。次に処理Cにおいては、前記推論
環境管理手段5の制御の下で前記推論環境退避手段3が
前記推論機構2で用いられている情報のうち、推論再開
時に必要となるものを前記推論環境格納手段6に格納す
る。この情報には、利用者がルール等では扱うことがで
きないシステム変数、例えばバックトラックのためのス
タック等が含まれる。That is, if it is determined that the inference is interrupted, in process B, the inference environment saving means 3 stores the knowledge in the knowledge base 7 in the inference environment storage means 6 under the control of the inference environment management means 5. . Next, in process C, under the control of the inference environment management means 5, the inference environment saving means 3 saves the inference environment from among the information used in the inference mechanism 2 that is necessary when inference is restarted. The information is stored in means 6. This information includes system variables that the user cannot handle using rules, such as the stack for backtracking.
また、推論再開時と判定されれば処理りにおいては、前
記推論環境管理手段5の制御の下で前記推論環境復元手
段4が前記推論環境格納手段6中の知識が前記知識ベー
ス7に格納する。次に処理Eにおいては、前記推論環境
管理手段5の制御の下で前記推論環境復元手段4が前記
推論環境格納手段6中の情報を前記推論機構2に渡す。Further, if it is determined that it is time to restart the inference, the inference environment restoration means 4 stores the knowledge in the inference environment storage means 6 in the knowledge base 7 under the control of the inference environment management means 5. . Next, in process E, the inference environment restoring means 4 passes the information in the inference environment storage means 6 to the inference mechanism 2 under the control of the inference environment management means 5.
第3図は、前記推論環境格納手段6中に格納される情報
の一例である。FIG. 3 is an example of information stored in the inference environment storage means 6.
フィールド11は、格納された情報が前記知識ベース7
からのものか、前記推論機構2からのものかを区別する
ためのフラグである。Field 11 indicates that stored information is stored in the knowledge base 7.
This is a flag for distinguishing whether the information is from the inference mechanism 2 or the inference mechanism 2.
フィールド12は、前記知識ベース7または、前記推論
機構2から得られた推論環境の中身である。The field 12 is the content of the knowledge base 7 or the inference environment obtained from the inference mechanism 2.
本発明は、推論中であっても直ちに推論を中断し、さら
にその後再開することが可能であり、従来のシステムの
ように推論を再び最初から繰り返す必要がない。また、
システムの動作環境をすべて退避する方法と比較して、
本発明は最低限必要な情報のみを退避させるため、格納
すべき情報の量を小さくすることができる。According to the present invention, it is possible to immediately interrupt inference even during inference and then restart it, and there is no need to repeat inference from the beginning as in conventional systems. Also,
Compared to the method of saving the entire operating environment of the system,
Since the present invention saves only the minimum necessary information, the amount of information to be stored can be reduced.
フローチャート図、および第3図は本発明の一実施例に
おける推論再開のために格納される情報の一例を示す図
である。The flowchart and FIG. 3 are diagrams showing an example of information stored for restarting inference in an embodiment of the present invention.
第1図において、1は入力手段、2は推論機構、3は推
論環境退避手段、4は推論環境回復手段、5は推論環境
管理手段、6は推論環境格納手段、7は知識ベースを表
している。In FIG. 1, 1 is an input means, 2 is an inference mechanism, 3 is an inference environment saving means, 4 is an inference environment recovery means, 5 is an inference environment management means, 6 is an inference environment storage means, and 7 is a knowledge base. There is.
代理人 弁理士 内 原 晋Agent: Patent Attorney Susumu Uchihara
第1図は本発明の一実施例を示す図、第2図は本発明に
おける一実施例の制御の主要部分を示す第
図
第2区FIG. 1 is a diagram showing an embodiment of the present invention, and FIG. 2 is a diagram showing main parts of control in an embodiment of the present invention.
Claims (1)
ース手段と、 この知識ベース手段に対して推論処理を行う推論手段と
、 利用者からの推論中止指示を得る入力手段と、推論の再
開に必要な環境情報を格納する推論環境格納手段と、 前記知識ベース手段および前記推論手段から得た推論環
境情報を前記推論環境格納手段に格納する推論環境退避
手段と、 前記推論環境格納手段から前記知識ベース手段および前
記推論手段に推論環境情報を渡す推論環境復元手段と、 前記推論手段または前記入力手段から推論中断指示がな
された際には、推論再開時に必要となる環境情報を前記
推論環境退避手段により退避する処理を制御し、また推
論再開時には前記推論環境復元手段によるシステム再構
築処理を制御する推論環境管理手段とを含むことを特徴
とする知識ベースシステムの管理方式。[Claims] A knowledge base system, comprising: knowledge base means for storing knowledge used during operation of the system; inference means for performing inference processing on the knowledge base means; and an inference stop instruction from a user. an inference environment storage means for storing environment information necessary for restarting inference; and an inference environment saving means for storing inference environment information obtained from the knowledge base means and the inference means in the inference environment storage means. , an inference environment restoring means for passing inference environment information from the inference environment storage means to the knowledge base means and the inference means; an inference environment management means for controlling a process of saving environment information by the inference environment saving means, and controlling a system reconstruction process by the inference environment restoration means when inference is restarted. Management method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20049988A JPH0248734A (en) | 1988-08-10 | 1988-08-10 | Control system for knowledge base system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20049988A JPH0248734A (en) | 1988-08-10 | 1988-08-10 | Control system for knowledge base system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0248734A true JPH0248734A (en) | 1990-02-19 |
Family
ID=16425338
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP20049988A Pending JPH0248734A (en) | 1988-08-10 | 1988-08-10 | Control system for knowledge base system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0248734A (en) |
-
1988
- 1988-08-10 JP JP20049988A patent/JPH0248734A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH04165426A (en) | Control system for knowledge base system under consideration of interruption of inference | |
| JP3274780B2 (en) | Power supply method | |
| US20080082712A1 (en) | Computer system and control method thereof | |
| JPS58151663A (en) | Switching system of system file | |
| JPH0934578A (en) | Information processing device | |
| JPH0728544A (en) | Computer system | |
| JP2923111B2 (en) | Data processing method and apparatus | |
| JPH02205906A (en) | Automatic power-off control method in offline processing system | |
| JPS6053887B2 (en) | information processing system | |
| JPH05250197A (en) | Control system of autonomous system circuit | |
| JPH02226344A (en) | Computer system | |
| JPH04155412A (en) | Method for controlling resume | |
| JPS61210440A (en) | Level tracing device | |
| JPH01161428A (en) | Interactive writer control system | |
| JPS61226820A (en) | Data processing resuming system by power restoration | |
| JPH06266663A (en) | Information processing equipment | |
| JPH0644163A (en) | Line switching method | |
| JPH02260049A (en) | Program startup check method | |
| JPS62103720A (en) | Information processor | |
| JPS63316229A (en) | Control system for display device | |
| JPH04178835A (en) | Inference method and inference information data managing mechanism | |
| JPH08263296A (en) | Program execution environment save and restore system | |
| JPH01263811A (en) | Power supply controller | |
| JPH0319033A (en) | System interruption/restart system | |
| JPH0448313A (en) | Starting mode deciding method |