JPH096620A - Rule generation support tool for expert system - Google Patents

Rule generation support tool for expert system

Info

Publication number
JPH096620A
JPH096620A JP7155045A JP15504595A JPH096620A JP H096620 A JPH096620 A JP H096620A JP 7155045 A JP7155045 A JP 7155045A JP 15504595 A JP15504595 A JP 15504595A JP H096620 A JPH096620 A JP H096620A
Authority
JP
Japan
Prior art keywords
rule
rules
pattern
text
expert system
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
JP7155045A
Other languages
Japanese (ja)
Inventor
Kimio Aoki
公男 青木
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP7155045A priority Critical patent/JPH096620A/en
Publication of JPH096620A publication Critical patent/JPH096620A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE: To enable a rule generator to easily recognize the independence relations between rules at the time of generating rules with a text type tool. CONSTITUTION: When rules of an expert system are generated by a text type tool generation support tool, a rule table where rule names of all rules and their condition parts and execution parts are divisionally generated and preserved is prepared. When a rule name, a retrieval direction, and a pattern are inputted (S1), it is checked in the retrieval direction whether the rule has an effect or is affected (S2), and execution parts in the table are retrieved by the pattern in the case of the backward direction (S3), and the collated rule is placed on the left of the noticed rule to display a tree structure on a picture (S4). Condition parts in the table are retrieved by the pattern in the case of the forward direction (S5), and the collated rule is placed on the right of the noticed rule to display the tree structure on the picture (S6). Thus, the rule generator can intuitively understand the dependence relations between rules.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、エキスパートシステム
のルール作成支援ツールに係り、特にテキスト型のルー
ル作成支援ツールに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an expert system rule making support tool, and more particularly to a text type rule making support tool.

【0002】[0002]

【従来の技術】エキスパートシステムは、基本的には、
専門家のもつ知識をルールとして格納する知識ベース
と、この知識ベースを参照して問題解決を行う推論エン
ジンにより構成される。
2. Description of the Related Art The expert system basically consists of
It consists of a knowledge base that stores the knowledge of experts as rules and an inference engine that solves problems by referring to this knowledge base.

【0003】エキスパートシステムを構築する際に、専
門家の知識を計算機で処理できる表現に変換したルール
(”if条件部then実行部”の形で表現される)の
作成には、大きく分けてグラフィック型とテキスト型の
2つの方式の支援ツールがある。
When constructing an expert system, a rule (expressed in the form of "if condition part then execution part") in which expert knowledge is converted into an expression that can be processed by a computer is roughly divided into a graphic. There are two types of support tools, type and text type.

【0004】グラフィック型は、ルール作成時に各ルー
ル間のつながりを意識して絵を描くようにルール作成が
できるようにした支援ツールである。つまり、図7に示
すように、専用のグラフィックツールを使用し、ルール
の実行部が他のルールの条件部へ影響を与える場合にそ
の間のつながりをマウスを利用してツリー構造で描き、
マウスで指定したルールについて条件部と実行部を入力
し、ルールを作成する。
The graphic type is a support tool capable of creating rules such that a picture is drawn in consideration of connections between rules when creating rules. That is, as shown in FIG. 7, when a rule execution part affects a condition part of another rule by using a dedicated graphic tool, a connection between them is drawn in a tree structure using a mouse.
Create a rule by entering the condition part and execution part for the rule specified with the mouse.

【0005】テキスト型は、ルール間のつながりは意識
せず、断片的にif〜then〜形式でテキスト表現し
てルールを作成して行く。つまり、図8に示すように、
テキストエディタを使用し、ルール毎にその条件部と実
行部をテキスト入力して行く。
In the text type, the rules are created by fragmentally expressing the text in the if-then-form without paying attention to the connection between the rules. That is, as shown in FIG.
Using a text editor, enter the condition part and execution part in text for each rule.

【0006】このテキスト型において、テキスト表現さ
れたルールの管理は、テキストエディタで行う場合が多
く、エキスパートシステム専用に作成されたルールメン
テナンス機能においても、図9に示すように、ルール表
現を日本語に近づけるものがあるに過ぎない。
In this text type, the rule expressed in text is often managed by a text editor, and even in the rule maintenance function created exclusively for the expert system, the rule expression is written in Japanese as shown in FIG. There is nothing more than that.

【0007】[0007]

【発明が解決しようとする課題】エキスパートシステム
のルールの良さは、その断片的な記述で済むということ
にある。すなわち、他のルールとの関係を意識すること
は、システムの良さに矛盾するものである。
The advantage of the rules of the expert system is that its fragmentary description is sufficient. In other words, being aware of the relationship with other rules conflicts with the goodness of the system.

【0008】従来のグラフィック型ツールでは、ルール
間のつながりを意識しながらルール作成を行うため、シ
ステムの良さに矛盾する行為をすることになり、ルール
の良さが活かされない。さらに、グラフィック型ではル
ール同士が複雑に依存しあうと、図10に示すように、
ルール関係が理解できるという視覚効果が減少する問題
がある。
In the conventional graphic type tool, since the rules are created while being aware of the connection between the rules, an action contradicts the goodness of the system, and the goodness of the rules cannot be utilized. Furthermore, in the graphic type, when rules are complicatedly dependent on each other, as shown in FIG.
There is a problem that the visual effect of understanding rule relationships is reduced.

【0009】これらの点について、テキスト型ツール
は、ルールの良さを活かしたものになるが、このテキス
ト型のルールを管理することについてはグラフィック型
ツールの効果になる「ルール関係の理解が容易」とは逆
に「ルール関係の理解が容易でない」という問題があ
る。
With respect to these points, the text type tool takes advantage of the goodness of the rule, but the management of the text type rule is effective in the graphic type tool "easy understanding of rule relations". On the contrary, there is a problem that "rules are not easy to understand".

【0010】例えば、ルールの修正あるいは追加を行う
場合、当該ルールに影響を与える他のルール、又は当該
ルールが影響を与える他のルールを知りたいときは、図
11に示すように、テキストエディタを使用してルール
が書かれたテキストファイルの文字列サーチなどの作業
を行い、該当するルールを全て捜し出さなければならな
い。
For example, when modifying or adding a rule, if one wants to know another rule that influences the rule or another rule that the rule affects, as shown in FIG. 11, use a text editor. You have to find out all the applicable rules by performing a character string search of a text file in which the rules are written.

【0011】このとき、該当するルールのサーチや修正
・変更に失敗があると、ルール間の依存関係が崩れる恐
れもある。
At this time, if the search or correction / change of the corresponding rule fails, the dependency between the rules may be broken.

【0012】本発明の目的は、テキスト型ツールによる
ルール作成に、ルール間の依存関係を容易に知ることが
できるルール作成支援ツールを提供することにある。
It is an object of the present invention to provide a rule creation support tool which can easily know the dependency relation between rules in rule creation by a text type tool.

【0013】[0013]

【課題を解決するための手段】本発明は、前記課題の解
決を図るため、エキスパートシステムの知識ベースに格
納するルールを「if条件部then実行部」の形式で
テキスト表現して作成する機能を備えたテキスト型ルー
ル作成支援ツールにおいて、作成済みの全てのルールを
ルール名とその条件部と実行部に分けて作成・保存して
おくルールテーブルと、指定するルール名と検索方向及
びパターンが入力されたときに、該ルール名のルールが
影響を与えるルール又は影響を受けるルールを該検索方
向及びパターンに応じて前記ルールテーブルから検索し
てルール名のツリー構造で画面表示する照合ルール表示
機能とを備えたことを特徴とする。
In order to solve the above-mentioned problems, the present invention has a function of text-creating a rule to be stored in a knowledge base of an expert system in the form of "if condition part then execution part". In the provided text-type rule creation support tool, enter a rule table that creates and saves all created rules by dividing them into rule names, their condition parts and execution parts, and the specified rule name, search direction, and pattern And a matching rule display function for searching a rule affected by the rule name or a rule affected by the rule name from the rule table according to the search direction and pattern, and displaying the rule name tree structure on the screen. It is characterized by having.

【0014】[0014]

【作用】テキスト型でルールを作成するのに、指定され
たルールと依存関係にあるルールをルールテーブルから
検索してツリー構造で画面表示することにより、ルール
間の依存関係を着目するルールを中心にしてツリー状の
図で表現し、ルール作成者がルール関係を直感的に理解
できるようにする。
[Function] When creating rules in the text type, the rules that have a dependency relationship with the specified rule are searched from the rule table and displayed in a tree structure on the screen. It is expressed as a tree diagram so that rule authors can intuitively understand the rule relationships.

【0015】[0015]

【実施例】テキスト型のルール作成支援ツールは、従来
の基本機能になるテキストエディタを使用したルール毎
の条件部と実行部をテキスト入力して行く機能と、テキ
スト表現されたルールの管理をテキストエディタで行う
機能の他に、ルール間の依存関係を視覚的に表示するた
めの照合ルール表示機能を設ける。
[Embodiment] A text-type rule creation support tool uses a text editor, which is a conventional basic function, to enter text for the condition part and execution part for each rule, and to manage the rules expressed in text. In addition to the function performed by the editor, a collation rule display function for visually displaying the dependency between rules is provided.

【0016】図1は、照合ルール表示機能を実現するた
めのフローチャートである。この照合ルール表示機能で
使用するルールテーブルは、これまで作成済みの全ての
ルールについて、そのルール名とその条件部と実行部に
分けて予め作成・保存しておくもので、テーブル要素は
図2に示すように、ルール名と条件部と実行部のテキス
ト列からなっている。
FIG. 1 is a flow chart for realizing the collation rule display function. The rule table used in this matching rule display function is created and saved in advance for all the rules created so far by dividing the rule name, its condition part, and execution part. As shown in, it consists of a rule name, a condition part and a text string of an execution part.

【0017】図1において、依存関係になるルールを表
示するには、まず処理S1では着目するルール名と検索
方向及びパターンを決定・入力する。
In FIG. 1, in order to display a rule having a dependency relationship, first, in step S1, a rule name of interest, a search direction and a pattern are determined and input.

【0018】このうち、検索方向は、着目するルールが
影響を受ける他のルール(後方向のルール)を調べるの
か、影響を与える他のルール(前方向のルール)を調べ
るのかの方向を決定する。パターンは、ルール間で影響
しあうパターンを決定する。
Of these, the search direction determines whether the rule of interest is to be examined for other rules that are affected (backward rules) or for other rules that are affected (forward rules). . The pattern determines the patterns that affect each other among the rules.

【0019】図3は、処理S1における入力画面例を示
し、検索ルールダイアログにルール名と検索方向とパタ
ーンの入力領域を用意する。ルール名には着目するルー
ル名を入力し、方向にはルールが影響を与える方向(前
向き)か影響を受ける方向(後向き)なのかを指定す
る。パターンには検索方向が前向きならば他のルールの
条件部にあると思われるパターンを入力し、検索方向が
後向きならば他のルールの実行部にあると思われるパタ
ーンを入力する。
FIG. 3 shows an example of an input screen in the process S1, in which an input area for a rule name, a search direction and a pattern is prepared in the search rule dialog. For the rule name, enter the name of the rule of interest, and specify whether the direction is the direction in which the rule affects (forward) or the direction in which it affects (backward). For the pattern, if the search direction is forward, enter the pattern that is considered to be in the condition part of another rule, and if the search direction is backward, enter the pattern that is considered to be in the execution part of another rule.

【0020】パターンは、例えば、論理積条件で4つま
で入力することができる。また、「*」はワイルドカー
ドとして使用され、それがどのような単語でもマッチン
グすることを意味する。
Up to four patterns can be input, for example, under a logical product condition. Also, "*" is used as a wildcard, which means it matches any word.

【0021】図3の入力例では、ルール1に着目し、前
方向の検索を行うことを示し、パターンは図2のルール
1が実行部においてある「フレーム」の「ランプ」とい
うスロットをオンにしていることから、あるフレーム
(FRAME)のランプがオンならばという条件部をも
つルールを探すパターンを入力している。
In the input example of FIG. 3, paying attention to rule 1, it indicates that the search is performed in the forward direction. The pattern is that rule 1 of FIG. 2 turns on the slot “ramp” of “frame” in the execution unit. Therefore, a pattern is searched for a rule having a conditional part that a lamp of a certain frame (FRAME) is on.

【0022】処理S1による決定後、照合ルール表示機
能は、検索方向が前方向のルールか、後方向のルールか
をチェックし(S2)、後方向のルールを検索する場合
はルールテーブルの実行部のパターンを検索し(S
3)、この検索で照合したルールが存在する場合に画面
上に着目ルール名とその左に影響を受けるルールをツリ
ー状に表示する(S4)。
After the determination in the process S1, the collation rule display function checks whether the search direction is the forward rule or the backward rule (S2), and when the backward rule is searched, the execution unit of the rule table is searched. Search for the pattern (S
3) If there is a rule matched by this search, the rule name of interest and the affected rule to the left of it are displayed in a tree form on the screen (S4).

【0023】図4は、後方向のルールを検索した場合の
ツリー表示画面を例示し、ルール5が影響を受けるルー
ルとして、ルール1、10を表示している。
FIG. 4 exemplifies a tree display screen when a backward rule is searched, and rules 1 and 10 are displayed as rules affected by rule 5.

【0024】チェックS2で前方向のルールを検索する
場合、ルールテーブルの条件部のパターンを検索し(S
5)、この検索で照合したルールが存在する場合に画面
上に着目ルール名とその右に影響を与えるルールをツリ
ー状に表示する(S6)。
When the forward rule is searched in check S2, the pattern of the condition part of the rule table is searched (S
5) When there is a rule matched by this search, the rule name of interest and the rule affecting it to the right are displayed in a tree form on the screen (S6).

【0025】図5は、前方向のルールを検索した場合の
ツリー表示画面を例示し、ルール1が影響を与えるルー
ルとして、ルール3、5、6を表示している。
FIG. 5 exemplifies a tree display screen when a forward rule is searched, and rules 3, 5, and 6 are displayed as the rules affected by rule 1.

【0026】以上の処理S2〜S7は、着目したルール
に対して隣接するルールに限り、隣接するルールの先を
調べるには隣接するルールを新たな着目ルールとして処
理S2〜S6を実行する(S7)。
In the above-described processes S2 to S7, only the rules adjacent to the focused rule are checked, and in order to check the destination of the adjacent rule, the adjacent rules are used as new focused rules to perform the processes S2 to S6 (S7). ).

【0027】図6は、2度の検索を行った場合の画面表
示例を示し、ルール5の後方向検索をした後、隣接する
ルール10の後方向検索により隣接ルール20、22を
表示した場合である。
FIG. 6 shows an example of a screen display when two searches are performed. When the backward search of the rule 5 is performed and then the adjacent rules 20 and 22 are displayed by the backward search of the adjacent rule 10. Is.

【0028】したがって、本実施例によれば、テーブル
型のツールでは困難であったルール間の依存関係を照合
ルール表示機能を実行することで速くかつ正確に把握す
ることができる。
Therefore, according to the present embodiment, it is possible to quickly and accurately grasp the dependency relationship between rules, which was difficult with the table type tool, by executing the collation rule display function.

【0029】すなわち、テキスト表現のルール間の依存
関係を知るのに、既存のルール群から人が探そうとする
と、全てのルールの文字列を長い時間をかけて読み取ら
なければならないし、見落としが発生する場合が少なく
ない。
That is, in order to know the dependency relation between the rules of the text expression, if a person tries to find out from the existing rule group, the character strings of all the rules must be read for a long time, and the oversight can be overlooked. It often happens.

【0030】その点、照合ルール表示機能を利用する
と、検索も迅速になるし適確なものになる。また、依存
関係をツリー状の図で表現するため、依存関係を直感的
に理解できるようになる。
On the other hand, if the collation rule display function is used, the search becomes quick and accurate. Also, since the dependency relationship is represented by a tree-like diagram, it becomes possible to intuitively understand the dependency relationship.

【0031】[0031]

【発明の効果】以上のとおり、本発明によれば、テキス
ト型でルールを作成するのに、指定されたルールと依存
関係にあるルールをルールテーブルから検索してツリー
構造で画面表示する機能を設けたため、テキスト表現の
ルールでは困難であったルール間の依存関係を速くかつ
正確に把握することができ、また直感的に理解し易くな
る効果がある。
As described above, according to the present invention, when a rule is created in a text type, a rule having a dependency relationship with the specified rule is searched from the rule table and displayed on the screen in a tree structure. Since it is provided, it is possible to quickly and accurately grasp the dependency relationship between rules, which was difficult with the rule of text expression, and it is easy to intuitively understand.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例を示す照合ルール表示機能の
フローチャート。
FIG. 1 is a flowchart of a matching rule display function according to an embodiment of the present invention.

【図2】実施例におけるルールテーブル。FIG. 2 is a rule table according to an embodiment.

【図3】実施例における検索ルールダイアログ。FIG. 3 is a search rule dialog according to the embodiment.

【図4】実施例における後方向検索時のルールツリー表
示画面。
FIG. 4 is a rule tree display screen at the time of backward search in the embodiment.

【図5】実施例における前方向検索時のルールツリー表
示画面。
FIG. 5 is a rule tree display screen at the time of forward search in the embodiment.

【図6】実施例における2度検索を行った場合のルール
ツリー表示画面。
FIG. 6 is a rule tree display screen when two searches are performed in the embodiment.

【図7】グラフィック型ルール作成画面例。FIG. 7 is an example of a graphic type rule creation screen.

【図8】テキスト型ルール作成画面例。FIG. 8 is an example of a text type rule creation screen.

【図9】テキスト型の日本語ルール作成画面例。FIG. 9 is an example of a text-type Japanese rule creation screen.

【図10】複雑に依存し合うルールの表示画面例。FIG. 10 is an example of a display screen of rules that are complicatedly dependent on each other.

【図11】エディタによる文字列サーチ画面例。FIG. 11 is an example of a character string search screen by an editor.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 エキスパートシステムの知識ベースに格
納するルールを「if条件部then実行部」の形式で
テキスト表現して作成する機能を備えたテキスト型ルー
ル作成支援ツールにおいて、 作成済みの全てのルールをルール名とその条件部と実行
部に分けて作成・保存しておくルールテーブルと、 指定するルール名と検索方向及びパターンが入力された
ときに、該ルール名のルールが影響を与えるルール又は
影響を受けるルールを該検索方向及びパターンに応じて
前記ルールテーブルから検索してルール名のツリー構造
で画面表示する照合ルール表示機能とを備えたことを特
徴とするエキスパートシステムのルール作成支援ツー
ル。
1. In a text-type rule creation support tool having a function of creating a text representation of rules stored in a knowledge base of an expert system in a format of “if condition part then execution part”, all created rules A rule table that creates and saves a rule name and its condition part and execution part separately, and when the specified rule name, search direction, and pattern are entered, the rules that the rule with that rule name affects A rule creation support tool for an expert system, comprising: a matching rule display function for searching an affected rule from the rule table according to the search direction and pattern and displaying the rule name on a screen in a tree structure.
JP7155045A 1995-06-22 1995-06-22 Rule generation support tool for expert system Pending JPH096620A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7155045A JPH096620A (en) 1995-06-22 1995-06-22 Rule generation support tool for expert system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7155045A JPH096620A (en) 1995-06-22 1995-06-22 Rule generation support tool for expert system

Publications (1)

Publication Number Publication Date
JPH096620A true JPH096620A (en) 1997-01-10

Family

ID=15597474

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7155045A Pending JPH096620A (en) 1995-06-22 1995-06-22 Rule generation support tool for expert system

Country Status (1)

Country Link
JP (1) JPH096620A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012144257A1 (en) * 2011-04-22 2012-10-26 日本電気株式会社 Policy description assistance system and policy description assistance method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012144257A1 (en) * 2011-04-22 2012-10-26 日本電気株式会社 Policy description assistance system and policy description assistance method
JP5846455B2 (en) * 2011-04-22 2016-01-20 日本電気株式会社 Policy description support system and policy description support method
US9819555B2 (en) 2011-04-22 2017-11-14 Nec Corporation Policy description assistance system and policy description assistance method

Similar Documents

Publication Publication Date Title
US6594669B2 (en) Method for querying a database in which a query statement is issued to a database management system for which data types can be defined
JPH07319917A (en) Document data base managing device and document data base system
JPH08190542A (en) Management device and method for document data base
JP4160548B2 (en) Document summary creation system, method, and program
JP3828379B2 (en) Test specification generation support apparatus, method, program, and recording medium
JPH06259420A (en) Sentence editing support device
JP3612914B2 (en) Structured document search apparatus and structured document search method
JPH0844771A (en) Information retrieval device
JPH0581326A (en) Data base retrieving device
JPH096620A (en) Rule generation support tool for expert system
JPH09245052A (en) Structured document processing device
US5551036A (en) Method and system for generating operation specification object information
JPH08329108A (en) How to turn text into hypertext
CN115098365A (en) SQL code debugging method and device, electronic equipment and readable storage medium
KR20070014219A (en) Automatic detection of products in images and creation of related web sources for products
RU2242048C2 (en) Method for automated processing of text information materials
JP2773667B2 (en) Related information search device
JP5296128B2 (en) Structured document management apparatus, method and program
JP2000090110A (en) Full-text search method and apparatus, and recording medium storing full-text search program
JP2001134596A (en) Structured document management device and structured document search method
JP2006039811A (en) Document management program, document management method and document management device
JPH04220768A (en) Text conversion method
JPH0535798A (en) Data base retrieving device
JP3207247B2 (en) Knowledge / case base construction device
JP5221198B2 (en) Classification system creation support device