JPH10143372A - Method for analyzing and evaluating knowledge information - Google Patents

Method for analyzing and evaluating knowledge information

Info

Publication number
JPH10143372A
JPH10143372A JP8302644A JP30264496A JPH10143372A JP H10143372 A JPH10143372 A JP H10143372A JP 8302644 A JP8302644 A JP 8302644A JP 30264496 A JP30264496 A JP 30264496A JP H10143372 A JPH10143372 A JP H10143372A
Authority
JP
Japan
Prior art keywords
condition
expression
description
conditional
knowledge information
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
JP8302644A
Other languages
Japanese (ja)
Inventor
Hideaki Ishida
秀昭 石田
Setsuo Tsuruta
節夫 鶴田
Shigenobu Yanai
繁伸 柳井
Kazuo Kurihara
和男 栗原
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP8302644A priority Critical patent/JPH10143372A/en
Publication of JPH10143372A publication Critical patent/JPH10143372A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To efficiently detect error and waste of knowledge information by analyzing and evaluating conditional description constituting the knowledge information. SOLUTION: Each conditional description constituting the knowledge information 30 contains a conditional expression in which a condition to connect a condition name and a condition value together by an equality sign, a non-equality sign or an inequality sign is further connected by an AND sign or an OR sign. An knowledge analyzing part 3 generates plural equivalent conditional descriptions by dividing the conditional description when the conditional expression contains an OR expression, generates plural conditional descriptions by dividing the conditional description when the conditional expression contains the non-equality sign expression or the inequality sign expression like converting into an equivalent equality sign expression and issues an analyzing result management list 64 by arranging the conditional descriptions based on a pattern of combination of the order of the condition name and the condition value taken by the condition, An knowledge evaluating part 6 detects relations of duplication, discrepancy and inclusion based on the analyzing result management list 64.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、情報処理装置を利
用する知識情報処理に係り、特に知識情報の分析・評価
技術に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to knowledge information processing using an information processing apparatus, and more particularly to a technique for analyzing and evaluating knowledge information.

【0002】[0002]

【従来の技術】交通機関における列車ダイヤの作成、乗
務員ダイヤの作成、エレベータの巡回保守計画作成な
ど、高度なスケジューリング立案のために知識情報処理
技術あるいは人工知能技術が用いられている。従来、米
国特許USP4648044「Basic Exper
t System Tool」に記載のように、ルール
により知識を記述しこれを用いて推論することが知られ
ている。更にルールの記述の他にこれらのルールを用い
るための目的やその達成方針・手段などを戦略として記
述し、設定された目的に対応して選択された戦略に基づ
いてルールを実行し、推論を進める情報処理システムと
して、特開平1−92838号公報「情報処理システ
ム」が挙げられる。この技術によれば問題解決や計画立
案を実行するための目的や戦略と実行に必要なルールを
分離し、かつ両者を相互に対応付けて記述することが可
能であり、更に目的・戦略の対応関係をANDやORで
接続した目的・戦略ネットを用いて目的に対する複数の
戦略を優先順に設定することが可能であり、また各戦略
に対して複数の下位目的を設定できるため、難問を簡単
な問題へ分割して整理しながら記述でき、また状況に応
じた戦略の変更及び下位目的間の協調をとったバランス
の良い計画の立案が可能となる。しかしこの技術では、
推論に必要な知識のうち上位知識については目的と戦略
の構成による知識の表現が可能であるが、実行に必要な
ルールなどの下位知識については推論実行上必要となる
状況や条件の違いによる条件の組合せ数が膨大となり、
目的と戦略の構成による表現が実システムでは事実上困
難になる。
2. Description of the Related Art Knowledge information processing technology or artificial intelligence technology is used for advanced scheduling planning, such as creation of train schedules in transportation, creation of crew schedules, and creation of elevator maintenance plans. Conventionally, U.S. Pat. No. 4,648,044 "Basic Explorer"
As described in “t System Tool”, it is known that knowledge is described by rules and inference is performed using the knowledge. Furthermore, in addition to the description of the rules, the objectives for using these rules and their achievement policies and means are described as strategies, and the rules are executed based on the strategies selected in accordance with the set objectives, and inferences are made. As an information processing system to be advanced, there is Japanese Patent Application Laid-Open No. 1-2838, "Information Processing System". According to this technology, it is possible to separate the purpose and strategy for executing problem solving and planning from the rules necessary for execution, and to describe them in association with each other. A plurality of strategies for a goal can be set in a priority order using a goal / strategy net in which relationships are connected by AND or OR, and a plurality of sub-goals can be set for each strategy. It is possible to describe while dividing and organizing the problem, and it is also possible to change the strategy according to the situation and create a well-balanced plan that cooperates between the lower objectives. But with this technology,
Of the knowledge required for inference, knowledge of upper level knowledge can be expressed by composition of purpose and strategy, but for lower knowledge such as rules required for execution, conditions due to differences in situations and conditions necessary for inference execution The number of combinations becomes huge,
Expression by the composition of purpose and strategy becomes practically difficult in a real system.

【0003】[0003]

【発明が解決しようとする課題】上記技術のうちルール
による知識の記述に関するUSP4648044につい
ては、推論実行のための目的や実行手段の記述及び推論
実行上不具合が生じた場合の別方法の記述なども全てル
ールとして記述するため、これらが混在し記述に対する
理解や確認が困難となり信頼性の観点から問題が生じ易
い。また交通機関の列車ダイヤや乗務員のダイヤの作成
など組合せ数が多く処理が複雑な対象を扱う場合には記
述するルールの数が膨大となり、処理能力の問題に発展
し易いという問題があった。これを解決する手段として
上記の特開平1−92838号公報「情報処理システ
ム」の技術が考え出された。この技術によれば、問題解
決や計画立案を実行するための目的や戦略を上位知識と
し実行に必要な詳細ルールを下位知識として分離して記
述可能であり、難問を簡単な問題へ分割して整理しなが
ら記述できるとともに記述された知識の理解や変更の効
率向上が図れる。
Among the above-mentioned techniques, USP 4,648,044 relating to the description of knowledge based on rules, includes a description of a purpose for executing inference and an execution means, and a description of another method when a problem occurs in inference execution. Since all are described as rules, they are mixed and it is difficult to understand and confirm the description, and problems are likely to occur from the viewpoint of reliability. Further, when dealing with an object having a large number of combinations and complicated processing, such as creation of a train diagram of a transportation agency or a crew diagram, the number of rules to be described is enormous, and there is a problem that the problem easily develops into a problem of processing capability. As a means for solving this, the technique of the above-mentioned Japanese Patent Application Laid-Open No. 1-2838, "Information Processing System" has been devised. According to this technology, the purpose and strategy for executing problem solving and planning can be described as high-level knowledge and the detailed rules required for execution can be separately described as low-level knowledge, and difficult problems can be divided into simple problems. Not only can it be described while being organized, but also the understanding of the described knowledge and the efficiency of changes can be improved.

【0004】しかし上記従来技術では、知識の参照や編
集の際に知識記述がなされた表現をそのままの形式で対
象として扱っていることに他ならず、何ら構造的及び内
容的な分析・評価がなされていないまま扱わざるを得な
い状況にあった。このため知識に対する理解のし易さや
矛盾や漏れなどの誤りや無駄の発見のし易さは、知識の
記述順序や記述上の区分けの仕方など知識記述の際の手
腕に依存するという問題があった。しかも最初は知識が
整然と記述されていたとしても、推論結果に基づいて知
識の追加・削除などの変更が繰り返される度に変更時の
時間的余裕や担当者の推移などによりその整然さは薄
れ、知識に対する理解や誤り・無駄の発見がしずらくな
るという問題も含んでいる。
[0004] However, in the above-mentioned prior art, an expression in which a knowledge description is made at the time of reference or editing of knowledge is treated as an object in its original form, and any structural and content analysis / evaluation is required. It had to be treated without being done. For this reason, there is a problem that the ease of understanding of knowledge and the possibility of finding errors and waste such as inconsistencies and omissions depend on the skill at the time of knowledge description, such as the order in which knowledge is described and how to classify the description. Was. Moreover, even if the knowledge was described in an orderly manner at first, each time a change such as addition / deletion of the knowledge was repeated based on the inference result, the order was lost due to the time margin at the time of the change or the transition of the person in charge, It also includes the problem that it is difficult to understand knowledge and find errors and waste.

【0005】このため知識に対する理解の容易化や誤り
・無駄の発見の効率化の観点から、知識を表現している
記述内容に対して関係の深い知識同士を種々の観点から
並べ替えたり、特定の条件に合う知識のみを抽出した
り、複雑な記述内容を意味に影響を及ぼすことなくより
単純な表現に分解することによって、記述内容を種々加
工・整理し評価する必要があった。しかし知識同士の関
連付けと言っても関連づけする際の観点は多様であり、
また知識を把握する場合の目的によって関連づけの観点
を使い分ける必要もあるため、記述内容の整理・加工に
は自ずから限界を生じるという問題もあった。
For this reason, from the viewpoints of facilitating understanding of knowledge and finding errors and waste more efficiently, knowledge closely related to the description content expressing the knowledge is rearranged or specified from various viewpoints. It was necessary to process, arrange, and evaluate the description contents in various ways by extracting only the knowledge that meets the conditions described above and decomposing the complicated description contents into simpler expressions without affecting the meaning. However, there are various viewpoints when associating knowledge.
In addition, since it is necessary to use different viewpoints of association depending on the purpose of grasping the knowledge, there has been a problem that the arrangement and processing of the description contents are naturally limited.

【0006】本発明の目的は、上記従来技術の課題を解
決すべく、知識を表現している記述内容を分析・評価・
抽出する方法を提供し、知識に対する理解を深め、効率
よく誤り・無駄を発見することにある。
SUMMARY OF THE INVENTION An object of the present invention is to analyze, evaluate, and analyze description contents expressing knowledge in order to solve the above-mentioned problems of the prior art.
An object of the present invention is to provide a method of extracting information, deepen understanding of knowledge, and efficiently detect errors and waste.

【0007】[0007]

【課題を解決するための手段】本発明は、複数の条件記
述から構成され、各条件記述が条件式とこの条件式を満
足するとき実行される式とから構成される知識情報を対
象とする。条件式は一般に条件名と条件値とを等号、非
等号又は不等号によって結合した等号表現、非等号表現
又は不等号表現を要素とし、これらの要素をさらにアン
ド記号又はオア記号で結合した式によって表現される。
The present invention is directed to knowledge information comprising a plurality of condition descriptions, each condition description comprising a conditional expression and an expression executed when the conditional expression is satisfied. . Conditional expressions generally have an equality expression, an inequality expression or an inequality expression in which a condition name and a condition value are connected by an equal sign, an inequality sign or an inequality sign, and these elements are further connected by an AND sign or an OR sign. Expressed by an expression.

【0008】本発明は、知識情報の各条件記述について
その条件式が2つの式の表現をオア記号によって結合す
るオア表現を含む場合には、すべてのオア表現を排除す
るように条件記述を分割して等価な複数の条件記述を生
成し、知識情報の各条件記述についてその条件式中の式
の表現が非等号表現又は不等号表現を含む場合には、条
件名に対応してとり得るすべての条件値を設定する条件
値リストに基づいて非等号表現又は不等号表現に等価な
等号表現に変換するように条件記述を分割して複数の条
件記述を生成し、このようにして条件式からオア表現、
非等号表現及び不等号表現を排除するように条件記述を
分割して生成したすべての条件記述を含む知識情報につ
いて、設定された条件名の順序とそのとり得るすべての
条件値の組合わせのパターンに基づいて知識情報中のす
べての条件記述を配列して分析結果表を作成する知識情
報の分析方法を特徴とする。
According to the present invention, when a conditional expression for each condition description of knowledge information includes an OR expression that connects two expression expressions with an OR symbol, the condition description is divided so as to exclude all OR expressions. If a plurality of equivalent conditional descriptions are generated and the expression of the conditional expression in each conditional description of the knowledge information includes an inequality expression or an inequality expression, all possible descriptions corresponding to the condition name Based on the condition value list that sets the condition value of, the condition description is divided so as to be converted to an equal expression equivalent to an inequality expression or an inequality expression, and a plurality of condition descriptions are generated. Or expression,
For knowledge information including all condition descriptions generated by dividing condition descriptions so as to exclude inequality expressions and inequality expressions, the pattern of the combination of the set condition name order and all possible condition values The method is characterized by a knowledge information analysis method in which all condition descriptions in the knowledge information are arranged on the basis of the above to create an analysis result table.

【0009】また本発明は、このようにして得られた分
析結果表に基づいて2つの条件記述の重複、2つの条件
記述間の矛盾、2つの条件記述間の包含関係などを検出
する知識情報の分析評価方法を特徴とする。
The present invention also provides knowledge information for detecting duplication of two condition descriptions, inconsistency between two condition descriptions, inclusion relation between two condition descriptions, and the like based on the analysis result table thus obtained. Is characterized by the analytical evaluation method.

【0010】また本発明は、分析結果表について指定さ
れた条件名と条件値の組合わせの組合わせパターンに属
する条件記述のみを抽出して表示装置上に表示する知識
情報の分析評価方法を特徴とする。
Further, the present invention is characterized by a method for analyzing and evaluating knowledge information in which only a condition description belonging to a combination pattern of a combination of a condition name and a condition value specified for an analysis result table is extracted and displayed on a display device. And

【0011】さらに本発明は、指定された条件名と条件
値の組合わせの組合わせパターンに属する条件記述のみ
を抽出するように上記条件記述の生成処理を行い、知識
情報中の抽出された条件記述を配列して分析結果表を作
成する知識情報の分析評価方法を特徴とする。
Further, the present invention performs the above-described condition description generation processing so as to extract only a condition description belonging to a combination pattern of a combination of a specified condition name and a condition value, and extracts the extracted condition description from the knowledge information. It is characterized by a method of analyzing and evaluating knowledge information in which descriptions are arranged to create an analysis result table.

【0012】[0012]

【発明の実施の形態】以下本発明の一実施形態について
図面を参照しながら詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to the drawings.

【0013】図1は、本発明による知識情報分析評価を
行う情報処理装置の構成図である。処理装置1は、この
情報処理装置の本体であり、その主記憶装置には指令受
付部2、知識分析部3、知識評価部6、知識抽出部7及
び表示部9のプログラムが格納され実行される。記憶装
置8は処理装置1の主記憶装置の一部又は処理装置1に
接続される外部記憶装置であり、複数の知識情報30、
条件順序リスト61などの条件リスト及び分析結果管理
表64などの結果管理表を格納する。知識情報30は知
識情報をIF〜THEN形式の条件記述によって表現す
る情報である。条件リストは、知識情報30を分析した
り分析・評価結果を抽出するときの条件を列挙するリス
トである。結果管理表は分析・評価結果を格納するテー
ブルである。入力装置19は、処理装置1に接続され、
知識情報30を分析・評価するための指令を入力した
り、分析・評価するときの条件を入力するキーボードや
ポインティングデバイスなどの装置である。表示装置2
1は、処理装置1に接続され、分析・評価結果を表示す
る装置である。
FIG. 1 is a configuration diagram of an information processing apparatus for performing knowledge information analysis and evaluation according to the present invention. The processing device 1 is a main body of the information processing device, and its main storage device stores and executes programs of a command reception unit 2, a knowledge analysis unit 3, a knowledge evaluation unit 6, a knowledge extraction unit 7, and a display unit 9. You. The storage device 8 is a part of the main storage device of the processing device 1 or an external storage device connected to the processing device 1.
A condition list such as a condition order list 61 and a result management table such as an analysis result management table 64 are stored. The knowledge information 30 is information that expresses the knowledge information by using conditional descriptions in IF to THEN format. The condition list is a list that lists conditions for analyzing the knowledge information 30 and extracting analysis / evaluation results. The result management table is a table for storing analysis / evaluation results. The input device 19 is connected to the processing device 1,
It is a device such as a keyboard or a pointing device for inputting a command for analyzing / evaluating the knowledge information 30 or for inputting conditions for analyzing / evaluating the knowledge information 30. Display device 2
Reference numeral 1 denotes a device that is connected to the processing device 1 and displays an analysis / evaluation result.

【0014】指令受付部2は、入力装置19から入力さ
れた指令に応じて知識分析部3、知識評価部6又は知識
抽出部7に制御を渡す処理部である。知識分析部3は、
指定された知識情報30についてその条件記述内のOR
表現を単純化したり、不等号などの表現を単純化し条件
記述をパターン化して分析結果管理表64を作成する処
理部である。知識評価部6は、作成された分析結果管理
表64について条件記述内及び複数の条件記述相互間の
矛盾や漏れ、重複などの無駄をチェックして評価結果の
管理表を作成する処理部である。知識抽出部7は、特定
の抽出条件に該当する条件記述についての分析・評価結
果を選択的に取り出す処理部である。表示部9は、知識
分析部3、知識評価部6及び知識抽出部7が分析・評価
・抽出した結果を表示装置21上に表示する処理部であ
る。なお図1には記憶装置8、入力装置19、表示装置
21と上記の処理部との間に介入するオペレーティング
システム(OS)やウィンドウシステムなど一般的なソ
フトウェアの図示を省略している。
The command receiving unit 2 is a processing unit that transfers control to the knowledge analyzing unit 3, the knowledge evaluating unit 6, or the knowledge extracting unit 7 according to a command input from the input device 19. The knowledge analysis unit 3
OR of the specified knowledge information 30 in the condition description
A processing unit that simplifies expressions and simplifies expressions such as inequality signs to pattern the condition description to create the analysis result management table 64. The knowledge evaluation unit 6 is a processing unit that checks the created analysis result management table 64 for waste such as inconsistency, omission, duplication, etc. in the condition description and between the plurality of condition descriptions, and creates a management table of the evaluation result. . The knowledge extracting unit 7 is a processing unit that selectively extracts an analysis / evaluation result of a condition description corresponding to a specific extraction condition. The display unit 9 is a processing unit that displays on the display device 21 the results analyzed, evaluated, and extracted by the knowledge analysis unit 3, the knowledge evaluation unit 6, and the knowledge extraction unit 7. Note that FIG. 1 does not show general software such as an operating system (OS) or a window system that intervenes between the storage device 8, the input device 19, the display device 21, and the processing unit.

【0015】図2は、分析評価の対象とする知識情報3
0の条件記述の具体例を示す図であり、最も一般的な
「IF〜THEN」による記述例を示している。なお本
実施形態においては、プログラミング言語の一つである
C言語の記述規則に基づいた条件記述を使用している。
各条件記述31の構成は、IFに続く括弧内に記述され
る条件式32と括弧の後に続くTHEN式33から成
り、各条件式32は一つの条件34かANDやORで結
合された複数の条件34から成り、各条件34は左辺の
条件名35と演算子36と右辺式から成り、特に右辺式
が単項で定数の場合には条件値37と呼ぶこととする。
条件名35は具体的なもの、例えば信号機などに相当
し、条件値37は例えば信号機が赤、橙、青などに相当
する。条件名35及び条件値37を漢字かな混じりの語
句で表現してもよい。図2では、後述の分析・評価結果
と対応付けるため各条件記述31に通し番号として条件
式番号38を付加している。なお本実施形態においては
C言語の記述規則に基づいた条件記述表現を使用してい
るため、ANDとORは各々「&&」と「||」で記述
し、また演算子36の不等号(<、>、≦、≧)は各々
「<」「>」「<=」「>=」で記述し、等号(=)と
非等号(≠)は、各々「==」「!=」で記述するもの
とする。これらの条件記述に対する分析・評価・抽出操
作に係る表現例について、図3から図8を参照して説明
する。
FIG. 2 shows knowledge information 3 to be analyzed and evaluated.
It is a figure which shows the specific example of the condition description of 0, and has shown the description example by the most general "IF-THEN". In the present embodiment, a condition description based on the description rules of the C language, which is one of the programming languages, is used.
The structure of each condition description 31 is composed of a conditional expression 32 described in parentheses following the IF and a THEN expression 33 following the parentheses. Each conditional expression 32 is a single condition 34 or a plurality of conditions connected by AND or OR. Each condition 34 is composed of a condition name 35 on the left side, an operator 36, and a right side expression. In particular, when the right side expression is unary and a constant, it is referred to as a condition value 37.
The condition name 35 corresponds to a specific one, for example, a traffic light, and the condition value 37 corresponds to, for example, a red, orange, or blue traffic light. The condition name 35 and the condition value 37 may be expressed by words mixed with Chinese characters and kana. In FIG. 2, a conditional expression number 38 is added as a serial number to each condition description 31 in order to correspond to an analysis / evaluation result described later. In this embodiment, since the conditional description expression based on the description rule of the C language is used, AND and OR are described by “&&” and “||” respectively, and the inequality signs (<, >, ≦, ≧) are described as “<”, “>”, “<=”, “> =”, respectively, and the equal sign (=) and the inequality sign (≠) are expressed as “==” and “! =”, Respectively. Shall be described. Examples of expressions relating to analysis, evaluation, and extraction operations for these condition descriptions will be described with reference to FIGS.

【0016】図3は、本発明による知識情報分析結果を
表形式で表現した例を示す図であり、基本条件41のと
り得る条件値37に基づいて条件記述31をパターン化
した結果を示している。パターン番号42は、基本条件
41の組合わせのうちの1つの組合わせパターンに対応
して付与された番号である。基本条件41は、各条件記
述31の条件式32を構成する条件34の左辺の条件名
35のうち複数の条件記述31において共通して出現す
るか又は頻度高く出現する条件を自動抽出したものか、
または操作者により指定されたものである。図3の事例
では各パターン毎にパターン番号42と各パターンを特
徴付ける基本条件41について条件値37の組合せを示
すとともに、各パターンに属する条件記述31を対応付
けるために条件式番号38と各条件記述31の記述内容
のうち基本条件41以外の記述内容を基本条件外条件式
43とTHEN式33として示している。条件式番号3
8は、1つの組合わせパターンに対応する条件記述31
の番号であり、知識情報30内の条件記述31の条件式
番号38に一致する。1つの条件記述31が複数の条件
記述31に分割されたとき、分割された条件記述31の
各々は元の条件記述31の条件式番号38に枝番を付加
して条件式番号38とする。なお後述するように知識情
報分析結果においては基本条件外条件式43中のオア表
現はすべてアンド表現に置換されるが、ここでは説明の
便のために基本条件外条件式43中のオア表現を残した
形で示している。
FIG. 3 is a diagram showing an example in which the result of knowledge information analysis according to the present invention is expressed in a table format, and shows the result of patterning the condition description 31 based on the possible condition values 37 of the basic condition 41. I have. The pattern number 42 is a number assigned corresponding to one combination pattern of the combinations of the basic conditions 41. Whether the basic condition 41 is a condition that appears in common in a plurality of condition descriptions 31 or a condition that frequently appears in a plurality of condition descriptions 31 among the condition names 35 on the left side of the condition 34 constituting the conditional expression 32 of each condition description 31 ,
Alternatively, it is specified by the operator. In the example of FIG. 3, a combination of a condition number 37 for a pattern number 42 and a basic condition 41 characterizing each pattern is shown for each pattern, and a conditional expression number 38 and each condition description 31 for associating the condition description 31 belonging to each pattern. Are described as a conditional expression 43 outside the basic condition and a THEN expression 33. Conditional expression number 3
8 is a condition description 31 corresponding to one combination pattern
And matches the conditional expression number 38 of the condition description 31 in the knowledge information 30. When one condition description 31 is divided into a plurality of condition descriptions 31, each of the divided condition descriptions 31 becomes a conditional expression number 38 by adding a branch number to the conditional expression number 38 of the original condition description 31. As described later, in the result of the knowledge information analysis, all the OR expressions in the conditional expression 43 outside the basic conditions are replaced by AND expressions. However, for convenience of explanation, OR expressions in the conditional expression 43 outside the basic conditions are replaced here. It is shown in the form left behind.

【0017】図4から図6は、知識情報を構成する各条
件記述31の表現を単純化するために複数の条件記述3
1に分割した場合の具体例を示す図である。そのうち図
4は、条件記述31内にOR表現45を含む場合であ
り、同図(a)の条件記述31を論理的に同等の意味を
保持したまま同図(b)に示すようなOR表現45を含
まない複数の条件記述31に分割することによって、複
雑な条件記述を単純化した場合の具体例を示している。
図4の例では条件式内の括弧のネストは一重であり、比
較的単純な場合であるが、括弧が多重にネストしている
複雑な場合についても同様に単純化は可能である。また
図5は、条件記述内に不等号(<、>、≦、≧)を使用
した不等号表現47や非等号(≠)を使用した非等号表
現48を含む場合であり、同図(a)の条件記述31を
各条件のとり得る許容条件値49に基づいて論理的に同
等の意味を保持したまま同図(b)に示すような不等号
や非等号を使用しない等号表現46のみによる複数の条
件記述に分割することによって、複雑な条件記述を単純
化した場合の具体例を示している。図6は、条件記述内
にOR表現45や不等号表現47、非等号表現48が混
在した複雑な条件記述31の具体例を示しており、この
場合についてもOR表現45を含まない複数の条件記述
31への分割と不等号表現47や非等号表現48を使用
しない等号表現46のみによる複数の条件記述31への
分割を組合せることによって、条件記述31を単純化し
た具体例を示している。これらの条件記述の単純化によ
り、図2の具体例において基本条件41となる条件34
がORで結合されていたり、不等号や非等号による表現
によって基本条件41としてとり得る条件値37が明示
的でない場合においても上記の条件記述31の単純化に
よって、図3に示す条件記述31のパターン化が可能と
なる。
FIGS. 4 to 6 show a plurality of condition descriptions 3 for simplifying the expression of each condition description 31 constituting the knowledge information.
It is a figure showing the example in the case of dividing into one. 4 shows a case where an OR expression 45 is included in the condition description 31. The OR expression 45 shown in FIG. 4B while maintaining the logical equivalent of the condition description 31 of FIG. This shows a specific example in a case where a complicated condition description is simplified by dividing into a plurality of condition descriptions 31 not including 45.
In the example of FIG. 4, the parentheses in the conditional expression are nested one by one, which is a relatively simple case. However, a complicated case where parentheses are nested multiple times can be similarly simplified. FIG. 5 shows a case where an inequality expression 47 using an inequality sign (<,>, ≦, ≧) and an inequality expression 48 using an inequality sign (等) are included in the condition description. (B), while retaining the logically equivalent meaning of the condition description 31 based on the allowable condition value 49 that can be taken for each condition, only the equality expression 46 that does not use inequality or inequality as shown in FIG. Shows a specific example in a case where a complicated condition description is simplified by dividing it into a plurality of condition descriptions. FIG. 6 shows a specific example of a complicated condition description 31 in which an OR expression 45, an inequality expression 47, and an inequality expression 48 are mixed in the condition description. An example in which the condition description 31 is simplified by combining the division into the description 31 and the division into a plurality of condition descriptions 31 using only the equality expression 46 without using the inequality expression 47 or the inequality expression 48 will be described. I have. Due to the simplification of these condition descriptions, the condition 34 which becomes the basic condition 41 in the specific example of FIG.
Are combined by OR, or when the condition value 37 that can be taken as the basic condition 41 by the expression using the inequality sign or the inequality sign is not explicit, the simplification of the above condition description 31 allows the condition description 31 shown in FIG. Patterning becomes possible.

【0018】図7は、条件記述に対する単純化やパター
ン化による知識情報の分析結果と各条件記述相互間の冗
長性や矛盾性を評価した評価結果51の例を示す図であ
る。同図(a)は各基本条件41のとり得る許容条件値
49の全ての組合せパターンを示す分析・評価結果の具
体例であり、同図(b)は抽出条件値50を設定して特
定の基本条件41及び特定の条件値37の組合せに対す
る分析・評価結果のみを抽出した場合の具体例を示して
いる。これらの図において組合せパターンのうち条件式
番号38が存在しないものは、その組合せに対する条件
記述が無いことを指摘しており、条件記述に対する未記
述の確認、記述漏れの発見または記述追加のための示唆
をねらいとしている。
FIG. 7 is a diagram showing an example of an analysis result of knowledge information by simplification or patterning of a condition description and an evaluation result 51 for evaluating redundancy and inconsistency between the condition descriptions. FIG. 7A is a specific example of an analysis / evaluation result showing all possible combinations of allowable condition values 49 of each basic condition 41, and FIG. A specific example is shown in which only the analysis / evaluation results for the combination of the basic condition 41 and the specific condition value 37 are extracted. In these figures, among the combination patterns, those for which the conditional expression number 38 does not exist indicate that there is no condition description for the combination. They aim for suggestions.

【0019】図7(a)のうち評価結果51において注
視すべきもののみを選択した結果を図8(a)に示して
いる。まず冗長性評価については、全く同じ条件記述が
存在する「重複」と一方の条件記述が他方の条件記述を
意味的に含んでいる「包含」を対象としており、無駄な
条件記述の回避をねらいとしている。また矛盾性評価に
ついては、条件記述相互間の「式間矛盾」と1つの条件
記述内の「式内矛盾」を対象としており、条件記述の信
頼性向上をねらいとしている。図8(a)において、
「重複」の例では条件式番号38の「9」と「13」の
双方の条件記述で記述内容が全く同じになっており、一
方の条件記述は除去可能であることを指摘している。同
図(b)は、双方の条件記述の分析前の表現を示してお
り、知識情報の分析による不等号表現や非等号表現の回
避により、図8(a)の「重複」の例に示すような明確
な比較が可能となっている。図8(a)における「包
含」の例では、条件式番号38の「6」と「11」の双
方の条件記述で基本条件外条件式43の記述内容が互い
に包含関係になっており、包含される方の条件記述は除
去可能であることを指摘している。同図(c)は、双方
の条件記述の分析前の表現を示しており、知識情報の分
析による不等号表現や非等号表現の回避により図8
(a)の「包含」の例に示すような明確な比較が可能と
なっている。図8(a)における「式間矛盾」の例で
は、条件式番号38の「7」と「12」の双方の条件記
述でTHEN式33の記述内容が異なっており、互いに
矛盾していることを指摘している。同図(d)は、双方
の条件記述の分析前の表現を示しており、知識情報の分
析による不等号表現や非等号表現の回避により図8
(a)の「式間矛盾」の例に示すような明確な比較が可
能となっている。図8(a)における「式内矛盾」の例
では、条件式番号38の「4」の条件記述で基本条件4
1において矛盾があることを指摘している。同図(e)
はこの条件記述の分析前の表現を示しており、知識情報
の分析による不等号表現や非等号表現の回避により図8
(a)の「式内矛盾」の例に示すような明確な指摘が可
能となっている。
FIG. 8A shows the result of selecting only the ones to be watched from among the evaluation results 51 in FIG. 7A. First of all, the redundancy evaluation targets "duplicate" where exactly the same condition description exists and "include" where one condition description semantically includes the other condition description, and aims at avoiding useless condition description. And The evaluation of inconsistency is intended for "inconsistency between expressions" between condition descriptions and "inconsistency in expressions" in one condition description, and aims at improving the reliability of the condition description. In FIG. 8A,
In the example of "duplicate", the description contents are exactly the same for both the condition description "9" and "13" of the conditional expression No. 38, indicating that one condition description can be removed. FIG. 8B shows an expression of both condition descriptions before analysis, and is shown in an example of “duplication” in FIG. 8A by avoiding an inequality expression or an inequality expression by analyzing knowledge information. Such a clear comparison is possible. In the example of "inclusion" in FIG. 8A, the description contents of the non-basic condition expression 43 in the condition descriptions of both "6" and "11" of the conditional expression number 38 have an inclusion relationship with each other. It is pointed out that the condition description of the other party can be removed. FIG. 8C shows the expression of both condition descriptions before analysis, and FIG. 8 is obtained by avoiding the inequality expression and the inequality expression by analyzing the knowledge information.
A clear comparison is possible as shown in the example of "include" in (a). In the example of “contradiction between expressions” in FIG. 8A, the description contents of the THEN expression 33 are different in the condition descriptions of both “7” and “12” of the conditional expression No. 38, and they are mutually contradictory. Point out. FIG. 8D shows the expression of both condition descriptions before analysis, and FIG. 8 is obtained by avoiding the inequality expression and the inequality expression by analyzing the knowledge information.
A clear comparison is possible as shown in the example of "contradiction between formulas" in (a). In the example of “inconsistency in expression” in FIG. 8A, the basic condition 4
1 point out that there is a contradiction. FIG.
8 shows an expression of this condition description before analysis, and FIG. 8 is obtained by avoiding an inequality expression and an inequality expression by analyzing the knowledge information.
A clear indication as shown in the example of “a contradiction in expression” in FIG.

【0020】図9は、知識情報に対する分析・評価・抽
出処理に必要なテーブル構成の具体例を示す図である。
同図(a)は条件順序リスト61の構成例であり、条件
名35と条件種別55の設定により基本条件41となる
条件とその順序を設定する。なお基本条件41に続けて
基本条件以外の条件34の条件名35とその順序を登録
してもよい。同図(b)は条件値リスト62の構成例で
あり、各条件名35に対して一つ又は複数の条件値37
を設定することにより各条件に対して図7(a)などに
示す許容条件値49を設定する。図9(b−1)は、条
件名35についてとり得るすべての条件値37を列挙す
る条件値リスト62−1の例であり、知識分析部3が知
識情報30の分析をする前に抽出条件を入力しない場合
には条件値リスト62−1の全体が分析処理に適用され
る。図9(b−2)は抽出条件に該当する条件値37の
みを列挙する条件値リスト62−2の例であり、知識分
析部3が知識情報30の分析をする前に抽出条件を入力
する場合には条件値リスト62−2が分析処理に適用さ
れる。図9(b−2)の条件値リスト62−2は、同図
(b−1)の条件値リスト62−1に同図(c)の抽出
条件リスト63を適用したとき設定される条件値リスト
62−2の事例を示している。条件値リスト62−1は
知識分析部3の処理前にあらかじめ記憶装置8に設定さ
れているリストである。条件値リスト62−2は知識分
析部3の処理中に抽出条件が入力されたとき、条件値リ
スト62−1から作成されるリストである。同図(c)
は抽出条件リスト63の構成例であり、条件記述を抽出
するための条件となる条件名35と条件値37を設定す
ることにより、図7(b)に示す抽出条件値50を設定
する。図9(c)の例によると基本条件aを抽出条件と
していないため、基本条件aのとり得るすべての条件値
が抽出条件となる。同図(d)は分析結果管理表64の
構成例であり、分析結果を図3、図7及び図8に示すよ
うな表形式で表現する管理表であり、パターン番号4
2、条件式番号38、基本条件41、基本条件外条件式
43及びTHEN式33から成る。同図(e)は評価結
果管理表65の構成例であり、図7及び図8に示すよう
な表形式において評価結果51を表現する管理表であ
り、評価種別57、条件式番号38及び対象条件式番号
56から成る。同図(f)は分析不可管理表66の構成
例であり、本分析において分析不可となった条件記述を
格納するためのものであり、条件式番号38から成る。
FIG. 9 is a diagram showing a specific example of a table configuration required for analysis, evaluation, and extraction processing on knowledge information.
FIG. 8A shows an example of the configuration of the condition order list 61, in which the conditions that become the basic conditions 41 and their order are set by setting the condition name 35 and the condition type 55. After the basic condition 41, the condition names 35 of the conditions 34 other than the basic condition and their order may be registered. FIG. 7B shows an example of the configuration of the condition value list 62. One or a plurality of condition values 37 are provided for each condition name 35.
Is set, an allowable condition value 49 shown in FIG. 7A or the like is set for each condition. FIG. 9 (b-1) is an example of a condition value list 62-1 listing all possible condition values 37 for the condition name 35, and the extraction condition before the knowledge analysis unit 3 analyzes the knowledge information 30. Is not input, the entire condition value list 62-1 is applied to the analysis processing. FIG. 9B-2 is an example of a condition value list 62-2 listing only the condition values 37 corresponding to the extraction conditions. The knowledge analysis unit 3 inputs the extraction conditions before analyzing the knowledge information 30. In this case, the condition value list 62-2 is applied to the analysis processing. The condition value list 62-2 of FIG. 9B-2 is a condition value set when the extraction condition list 63 of FIG. 9C is applied to the condition value list 62-1 of FIG. 9B-1. The example of the list 62-2 is shown. The condition value list 62-1 is a list preset in the storage device 8 before the processing of the knowledge analysis unit 3. The condition value list 62-2 is a list created from the condition value list 62-1 when an extraction condition is input during the processing of the knowledge analysis unit 3. Figure (c)
Is a configuration example of the extraction condition list 63, and sets an extraction condition value 50 shown in FIG. 7B by setting a condition name 35 and a condition value 37 as conditions for extracting a condition description. According to the example of FIG. 9C, since the basic condition a is not set as the extraction condition, all possible condition values of the basic condition a are set as the extraction conditions. FIG. 6D shows an example of the configuration of the analysis result management table 64, which is a management table that expresses the analysis results in a table format as shown in FIGS.
2. Consists of conditional expression number 38, basic condition 41, non-basic condition expression 43, and THEN expression 33. FIG. 11E is a configuration example of the evaluation result management table 65, which is a management table expressing the evaluation result 51 in a table format as shown in FIG. 7 and FIG. Consists of conditional expression number 56. FIG. 7F shows an example of the configuration of the analysis impossible management table 66 for storing the condition description that has become analysis impossible in this analysis, and is composed of a conditional expression number 38.

【0021】図10は、分析・評価・抽出を行い、処理
結果を表示装置21に表示する処理の流れを示すフロー
チャートである。入力装置19を介して知識情報名が入
力されると(S1)、指令受付部2は指定された名称を
もつ知識情報30を記憶装置8から取り出す(S2)。
処理選択肢として分析指令と分析のベースとなる基本条
件を利用者が指定するか又は自動設定するかの選択が入
力されると(S3)、知識分析部3が起動される。自動
設定が指定された場合、知識分析部3は知識情報30を
参照し、各条件記述31に共通して出現するか又はあら
かじめ設定された頻度以上出現する1つ又は複数の基本
条件を抽出し(S4)、出現した順に条件順序リスト6
1に設定する(S5)。基本条件指定の場合には、入力
装置19を介して1つ又は複数の条件名35が入力され
ると(S6)、同様に条件名35を入力した順に条件順
序リスト61に設定する(S5)。なお基本条件の条件
名35を条件順序リスト61に設定した後、基本条件以
外の条件名35を入力し、条件順序リスト61に設定し
てもよい。次に知識分析部3は、分析処理前の抽出条件
入力を待つ(S7)。入力装置19を介して抽出条件の
入力なしが指定されればS10へ行く。抽出条件が入力
されたとき、入力された条件を抽出条件リスト63とし
て記憶装置8に設定し(S8)、条件値リスト62−1
のうち設定された抽出条件リスト63を満足する条件名
35と対応する条件値37を抽出して条件値リスト62
−2を作成し、記憶装置8に格納する(S9)。抽出条
件の入力がない場合には知識分析部3は以後条件値リス
ト62−1に基づいて知識情報30の分析処理を進め、
抽出条件の入力がある場合には条件値リスト62−2に
基づいて知識情報30の分析処理を進める。以下条件値
リスト62と言うとき、この条件に従って条件値リスト
62−1又は条件値リスト62−2を指すものとする。
その後指定された知識情報30の各条件記述31に対し
てOR表現を含む条件記述の分割(S10)、条件記述
順序の変更(S11)、不等号・非等号表現を含む条件
記述の分割(S12)及び基本条件値の組合せに基づい
た条件記述のパターン化(S13)の処理を行い、その
結果得られる分析結果管理表64を記憶装置8に格納す
る(S14)。次に表示部9は分析結果管理表64を図
3に示すような表形式に編集して表示装置21上に表示
し(S15)、S3に戻る。なおS10、S11、S1
2及びS13の各分析処理の詳細については、図11か
ら図14のフローチャートを参照して後述する。
FIG. 10 is a flowchart showing the flow of processing for performing analysis, evaluation and extraction and displaying the processing results on the display device 21. When a knowledge information name is input via the input device 19 (S1), the command receiving unit 2 retrieves the knowledge information 30 having the designated name from the storage device 8 (S2).
When the user inputs selection of whether to specify or automatically set an analysis command and a basic condition as a base of the analysis as processing options (S3), the knowledge analyzer 3 is started. When the automatic setting is specified, the knowledge analysis unit 3 refers to the knowledge information 30 and extracts one or a plurality of basic conditions that appear in common in each condition description 31 or appear at a frequency equal to or higher than a preset frequency. (S4), condition order list 6 in order of appearance
It is set to 1 (S5). In the case of the basic condition designation, when one or a plurality of condition names 35 are input via the input device 19 (S6), the condition names 35 are similarly set in the condition order list 61 in the order of input (S5). . After setting the condition name 35 of the basic condition in the condition order list 61, a condition name 35 other than the basic condition may be input and set in the condition order list 61. Next, the knowledge analyzer 3 waits for an extraction condition input before the analysis processing (S7). If no input of the extraction condition is specified via the input device 19, the process proceeds to S10. When the extraction condition is input, the input condition is set in the storage device 8 as the extraction condition list 63 (S8), and the condition value list 62-1 is set.
The condition value 35 corresponding to the condition name 35 satisfying the set extraction condition list 63 is extracted from the condition value list 62.
-2 is created and stored in the storage device 8 (S9). If there is no input of the extraction condition, the knowledge analysis unit 3 proceeds with the analysis of the knowledge information 30 based on the condition value list 62-1.
When there is an input of an extraction condition, the analysis process of the knowledge information 30 is advanced based on the condition value list 62-2. Hereinafter, the condition value list 62 indicates the condition value list 62-1 or the condition value list 62-2 according to this condition.
Thereafter, for each condition description 31 of the specified knowledge information 30, a condition description including an OR expression is divided (S10), a condition description order is changed (S11), and a condition description including an inequality / inequality expression is divided (S12). ) And patterning of the condition description based on the combination of the basic condition values (S13), and the analysis result management table 64 obtained as a result is stored in the storage device 8 (S14). Next, the display unit 9 edits the analysis result management table 64 into a table format as shown in FIG. 3 and displays it on the display device 21 (S15), and returns to S3. S10, S11, S1
Details of each of the analysis processes 2 and S13 will be described later with reference to the flowcharts of FIGS.

【0022】分析処理を終了した後、処理選択肢として
冗長性評価、矛盾性評価又はその両方を行う総合評価が
指定されると(S3)、知識評価部6が起動される。知
識評価部6は作成された分析結果管理表64について指
定に応じて冗長性評価(S16)、矛盾性評価(S1
7)又は総合評価(S18)の処理を行い、その結果条
件記述31に冗長記述や矛盾記述を検出すればその結果
を評価結果管理表65としてまとめて記憶装置8に格納
する(S19)。次に表示部9は分析結果管理表64と
評価結果管理表65を図7(a)に示すような表形式に
編集して表示装置21上に表示し(S20)、S3に戻
る。なおS16、S17及びS18の各評価処理の詳細
については、図15及び図16のフローチャートを参照
して後述する。
After the analysis processing is completed, if a comprehensive evaluation for performing redundancy evaluation, inconsistency evaluation, or both is specified as a processing option (S3), the knowledge evaluation unit 6 is activated. The knowledge evaluation unit 6 evaluates the created analysis result management table 64 for redundancy (S16) and inconsistency (S1) according to designation.
7) Or, a process of comprehensive evaluation (S18) is performed, and if a redundant description or inconsistent description is detected in the result condition description 31, the results are collectively stored as an evaluation result management table 65 and stored in the storage device 8 (S19). Next, the display unit 9 edits the analysis result management table 64 and the evaluation result management table 65 into a table format as shown in FIG. 7A, displays the edited result on the display device 21 (S20), and returns to S3. The details of each evaluation process in S16, S17, and S18 will be described later with reference to the flowcharts in FIGS.

【0023】知識情報30の全体の分析・評価結果を表
示する代わりに、抽出条件を指定することによって特定
の条件記述31についての分析・評価結果のみを表示す
ることができる。分析処理を終了した後、処理選択肢と
して抽出指令が入力されると(S3)、知識抽出部7が
起動される。入力装置19を介して条件名35と条件値
37から成る抽出条件が入力されると(S21)、知識
抽出部7は入力された抽出条件を抽出条件リスト63と
して設定する(S22)。次にS14で得られている分
析結果管理表64の中から抽出条件リスト63に設定さ
れた条件名35及び条件値37をもつ条件記述のみを抽
出する(S23)。もしS19によって評価結果管理表
65が得られていれば、抽出された条件記述31に該当
する評価結果のみを抽出する。次に表示部9は抽出され
た分析結果管理表又は分析・評価結果管理表を図3又は
図7(b)に示すような表形式に編集して表示装置21
上に表示し(S24)、S3に戻る。
Instead of displaying the entire analysis / evaluation result of the knowledge information 30, it is possible to display only the analysis / evaluation result of the specific condition description 31 by specifying the extraction condition. After the analysis processing is completed, when an extraction command is input as a processing option (S3), the knowledge extraction unit 7 is activated. When an extraction condition including a condition name 35 and a condition value 37 is input via the input device 19 (S21), the knowledge extraction unit 7 sets the input extraction condition as an extraction condition list 63 (S22). Next, only the condition description having the condition name 35 and the condition value 37 set in the extraction condition list 63 is extracted from the analysis result management table 64 obtained in S14 (S23). If the evaluation result management table 65 is obtained in S19, only the evaluation result corresponding to the extracted condition description 31 is extracted. Next, the display unit 9 edits the extracted analysis result management table or analysis / evaluation result management table into a table format as shown in FIG. 3 or FIG.
It is displayed on the top (S24), and returns to S3.

【0024】分析処理を終了した後、処理選択肢として
全体表示が指定されると(S3)、指令受付部2は知識
抽出部7を起動する。知識抽出部7はS14で得られて
いる分析結果管理表64の全体を取り出す(S25)。
もしS19によって評価結果管理表65が得られていれ
ば、評価結果管理表65も取り出す。次に表示部9は分
析結果管理表64ともしあれば評価結果管理表65を図
3又は図7(a)に示すような表形式に編集して表示装
置21上に表示し(S24)、S3に戻る。すなわち表
示装置21の表示を抽出表示の前の表示状態に戻すこと
ができる。
After the analysis processing is completed, when the entire display is designated as the processing option (S3), the command receiving unit 2 activates the knowledge extracting unit 7. The knowledge extracting unit 7 extracts the entire analysis result management table 64 obtained in S14 (S25).
If the evaluation result management table 65 has been obtained in S19, the evaluation result management table 65 is also extracted. Next, the display unit 9 edits the analysis result management table 64, if present, into the table format as shown in FIG. 3 or FIG. 7A, and displays it on the display device 21 (S24). Return to S3. That is, the display on the display device 21 can be returned to the display state before the extraction display.

【0025】処理選択肢として「戻り」が入力されると
(S3)、S1に戻る。また「終了」が入力されると
(S3)、分析・評価・抽出の処理を終了させる。
When "return" is input as a processing option (S3), the process returns to S1. When "end" is input (S3), the analysis / evaluation / extraction process ends.

【0026】次にS10、S11、S12及びS13の
各分析処理の詳細について図11から図14のフローチ
ャートを参照して説明する。
Next, the details of each of the analysis processes in S10, S11, S12 and S13 will be described with reference to the flowcharts of FIGS.

【0027】図11は、S10のOR表現を含む条件記
述の分割処理の流れを示すフローチャートである。知識
分析部3はまずチェックポインタを知識情報30の先頭
の条件記述31に位置付け(S31)、チェックポイン
タ位置の条件記述31を取り出す(S32)。当該条件
記述に無くても論理的な意味に支障のない不要な括弧が
存在すれば除去する(S33)。if文の範囲を示す括
弧は当該処理には不要であるからとりあえずないものと
見做す。そして更に括弧を含むか判定する(S34)。
括弧を含めば括弧の外にOR表現が存在するか判定し
(S35)、括弧の外にOR表現が存在しなければ最外
側の括弧を除去するとともに最外側の括弧に依存するO
R表現に基づき条件記述31を分割し(S36)、元の
条件記述31と置き換える(S38)。内側にさらに括
弧を含まなければ、この最外側の括弧で囲まれるOR表
現はすべて最外側の括弧に依存するOR表現である。内
側にさらに括弧を含めば、この最外側の括弧と内側の括
弧との間に含まれるOR表現が分割の対象となる。S3
5で括弧の外にOR表現が存在すれば、そのOR表現に
基づき条件記述31を分割し(S37)、元の条件記述
31と置き換える(S38)。その後置き換えた複数の
条件記述31のうち先頭の条件記述31にチェックポイ
ンタを位置付け(S39)、S32へ戻る。S34で当
該条件記述31に括弧を含まなければ、当該条件記述3
1にOR表現が存在するか判定し(S40)、OR表現
が存在すればそのOR表現に基づき条件記述31を分割
し(S37)、もとの条件記述31と置き換え(S3
8)、置き換えた複数の条件記述31のうち先頭の条件
記述31にチェックポインタを位置付け(S39)、S
32へ戻る。S40でOR表現が存在しなければ、次の
条件記述31があるか否かを判定し(S41)、あれば
次の条件記述にチェックポインタを位置付け(S4
2)、S32へ戻る。S41で次の条件記述31が無け
れば、OR表現を含む条件記述31の分割についての知
識分析処理を終了する。上記処理によってOR表現に依
存する条件記述31中の括弧はすべて除去される。
FIG. 11 is a flowchart showing the flow of the process of dividing the condition description including the OR expression in S10. First, the knowledge analysis unit 3 positions the check pointer in the condition description 31 at the head of the knowledge information 30 (S31), and extracts the condition description 31 at the position of the check pointer (S32). If there is an unnecessary parenthesis that does not affect the logical meaning even if it is not in the condition description, it is removed (S33). The parentheses indicating the range of the if sentence are unnecessary for the processing and are considered to be for the time being. Then, it is determined whether or not parentheses are further included (S34).
If the parentheses are included, it is determined whether an OR expression exists outside the parentheses (S35). If no OR expression exists outside the parentheses, the outermost parenthesis is removed and an O depending on the outermost parenthesis is removed.
The condition description 31 is divided based on the R expression (S36) and replaced with the original condition description 31 (S38). Unless further parentheses are included inside, all of the OR expressions enclosed by the outermost parentheses are OR expressions that depend on the outermost parenthesis. If parentheses are further included inside, the OR expression included between the outermost parenthesis and the inner parenthesis is subject to division. S3
If an OR expression exists outside the parentheses in step 5, the condition description 31 is divided based on the OR expression (S37) and replaced with the original condition description 31 (S38). Thereafter, the check pointer is positioned at the first condition description 31 among the plurality of replaced condition descriptions 31 (S39), and the process returns to S32. If the condition description 31 does not include parentheses in S34, the condition description 3
It is determined whether an OR expression exists in S1 (S40). If an OR expression exists, the condition description 31 is divided based on the OR expression (S37) and replaced with the original condition description 31 (S3).
8) Position the check pointer at the first condition description 31 among the plurality of replaced condition descriptions 31 (S39),
Return to 32. If the OR expression does not exist in S40, it is determined whether or not the next condition description 31 exists (S41). If so, the check pointer is positioned at the next condition description (S4).
2) Return to S32. If the next condition description 31 does not exist in S41, the knowledge analysis process for the division of the condition description 31 including the OR expression ends. By the above processing, all the parentheses in the condition description 31 depending on the OR expression are removed.

【0028】図12は、S11の条件記述順序の変更の
処理の流れを示すフローチャートである。この処理は上
記の処理の結果得られる知識情報の個々の条件記述31
について条件順序リスト61に設定されている順序に条
件を並べ替える。まずチェックポインタを先頭の条件記
述31に位置付け(S51)、チェックポインタ位置の
条件記述31を取り出す(S52)。条件順序リスト6
1に設定されている先頭の条件を取り出し(S53)、
当該条件記述31内にその条件の記述が存在するかチェ
ックし(S54)、存在すれば当該条件記述31内のそ
の条件が先頭となるように条件の記述位置を変更する
(S55)。更に当該条件記述内に同一条件についての
記述が他に無いかチェックし(S56)、あればS55
の処理を繰り返す。すなわち同一条件の記述が連続する
よう記述位置を変更する。S54で当該条件の記述が無
いか、S56で当該条件の記述位置の変更が全て済め
ば、条件順序リスト61に設定されている次の条件があ
るかチェックし(S57)、あれば次の条件を取り出し
(S58)、S54へ戻る。次の条件についてはすでに
位置の変更が済んだ条件に続くようにその記述位置を変
更する。S57で次の条件が無ければ、記述位置を変更
した当該条件記述を元の条件記述31と置き換え(S5
9)、次の条件記述31があるか否かを判定し(S6
0)、あれば次の条件記述にチェックポインタを位置付
け(S61)、S52へ戻る。S60で次の条件記述が
無ければ、条件記述順序の変更についての知識分析処理
を終了する。この処理によって条件記述31中の条件の
記述位置が条件順序リスト61の条件の順序の通りに配
置される。なお条件記述31中の条件の記述位置を条件
順序リスト61の条件の順序の通りに並べ替えるのは、
後述の条件の組合わせパターンから成る分析結果管理表
64に各条件記述31を登録する処理を速くするためで
あり、必須の処理ではない。
FIG. 12 is a flowchart showing the flow of the process of changing the condition description order in S11. This processing is performed for each condition description 31 of the knowledge information obtained as a result of the above processing.
Are rearranged in the order set in the condition order list 61. First, the check pointer is positioned at the first condition description 31 (S51), and the condition description 31 at the check pointer position is extracted (S52). Condition order list 6
The first condition set to 1 is extracted (S53),
It is checked whether or not the condition description exists in the condition description 31 (S54). If the condition description 31 exists, the condition description position is changed so that the condition in the condition description 31 comes first (S55). Furthermore, it is checked whether there is any other description of the same condition in the condition description (S56).
Is repeated. That is, the description position is changed so that the description under the same condition continues. If the condition is not described in S54, or if the description position of the condition is completely changed in S56, it is checked whether there is a next condition set in the condition order list 61 (S57). Is taken out (S58), and the process returns to S54. For the next condition, the description position is changed so as to follow the condition whose position has already been changed. If there is no next condition in S57, the condition description whose description position has been changed is replaced with the original condition description 31 (S5).
9) It is determined whether the next condition description 31 exists (S6).
0) If there is, the check pointer is positioned at the next condition description (S61), and the process returns to S52. If there is no next condition description in S60, the knowledge analysis process for changing the condition description order ends. By this processing, the description positions of the conditions in the condition description 31 are arranged in the order of the conditions in the condition order list 61. It is to be noted that the description positions of the conditions in the condition description 31 are rearranged according to the order of the conditions in the condition order list 61.
This is for speeding up the process of registering each condition description 31 in the analysis result management table 64 including a combination pattern of conditions described later, and is not an essential process.

【0029】図13は、S12の不等号・非等号使用条
件を含む条件記述の分割処理の流れを示すフローチャー
トである。この処理は上記処理の結果得られる知識情報
の個々の条件記述31について、不等号・非等号表現に
よる基本条件を含むか否かのチェックを行う。まずチェ
ックポインタを先頭の条件記述31に位置付け(S7
1)、チェックポインタ位置の条件記述31を取り出す
(S72)。次に当該条件記述に不等号・非等号表現の
基本条件記述を含むか否か判定する(S73)。不等号
又は非等号表現の基本条件記述を含めば、その記述に基
づき条件値リスト62から該当する基本条件のとり得る
条件値37をすべて取り出す(S74)。例えば条件記
述中にa>0の基本条件記述があれば、図9(b)の事
例によればa=1の条件値37を取り出すことになる。
取り出す条件値37がなければ当該条件記述は削除され
る。次に当該条件記述内に同一基本条件についての記述
が他に無いかチェックする(S75)。左辺の条件名3
5が同一の他の条件34があれば同一基本条件について
の記述が他にありとなる。例えば当該条件記述内に同一
基本条件に関する他の基本条件記述a=0,a<1など
があれば、同一基本条件についての記述が他にありと判
定される。同一基本条件についての他の記述が無ければ
とり得る条件値に基づき条件記述を等価な等号記号に変
換した1つ以上の条件記述に分割し(S76)、元の条
件記述と置き換え(S77)、置き換えた複数の条件記
述のうち先頭の条件記述にチェックポインタを位置付け
(S78)、S72へ戻る。等価な条件値が1つのみの
場合には、当然分割は生じない。S75で同一基本条件
についての記述が他にあれば、上記と同様にその記述に
基づき条件値リスト62から該当する基本条件のとり得
る条件値をすべて取り出し(S79)、S74で取出し
た条件値との共有分を取り出す(S80)。例えばS7
4でa>0の基本条件記述によってa=1の条件値を取
り出し、S79でa>−1の基本条件記述によってa=
0及びa=1の条件値を取り出したとすれば、S80で
の共有分はa=1となり、一方S79でa<1の基本条
件記述によってa=−1及びa=0の条件値を取り出し
たとすれば、S80では共有分なしとなる。更に当該条
件記述内に同一基本条件についての記述が他に無いかチ
ェックし(S81)、あればS79とS80を繰り返
す。S80ではS74で取り出した条件値、S79で取
り出した条件値、さらにS79で取り出した条件値、・
・・についてとり得る条件値の共有分のみを取り出すこ
とになる。S81で同一基本条件についての全ての複数
記述のチェックを終えたならば、S80での条件値の共
有分取り出しの結果、共有分が存在するか否かチェック
し(S82)、存在すれば上記と同様にとり得る条件値
に基づき条件記述を分割し(S76)、もとの条件記述
と置き換え(S77)、置き換えた複数の条件記述のう
ち先頭の条件記述にチェックポインタを位置付け(S7
8)、S72へ戻る。すなわち条件記述は同一基本条件
である各基本条件の部分をそれぞれ等価な等号記号に変
換された1つ以上の条件記述に分割される。条件値リス
ト62を満足しない基本条件記述をもった条件記述31
は削除となる。S82でS80での条件値の共有分取り
出しの結果共有分が存在しなければ、当該条件記述は無
効として知識情報30から削除し(S83)、S93の
次の条件記述に対する処理へ移行する。すなわち条件値
の共有分がなければ、このような同一基本条件記述をア
ンド条件で結合する条件記述31は意味をもたないので
知識情報30から削除する。S73で不等号又は非等号
表現による基本条件記述が当該条件記述内に無いなら
ば、当該条件記述内に同一基本条件についての記述が複
数無いかチェックする(S85)。すなわち左辺の条件
名35が同一の等号表現が複数無いかチェックする。同
一基本条件についての記述が複数無ければ当該条件記述
内に条件順序リスト61に設定されている基本条件のう
ち当該条件記述内に記述の無いものがあるかチェックし
(S86)、無ければS93の次の条件記述に対する動
作へ移行する。S85で同一基本条件についての記述が
複数あれば、条件値が同じか否かチェックし(S8
8)、同じであれば重複している同一基本条件の記述を
除去する(S89)。すなわちアンド条件で結合された
同一基本条件の同一等号表現を1つの等号表現にまとめ
る。更に当該条件記述内に同一基本条件についての記述
が複数無いかチェックし(S90)、あればS88とS
89を繰り返す。S90で同一基本条件についてのすべ
ての複数記述のチェックを終えたならば、当該条件記述
をもとの条件記述と置き換え(S91)、S86のチェ
ックへ移行する。S88で同一の基本条件に対する複数
記述において条件値が異なっておれば、当該条件記述は
無効として知識情報30から削除し(S92)、S93
の次の条件記述に対する処理へ移行する。すなわち同一
基本条件について等号の右辺の条件値が異なっていれ
ば、この条件記述31は矛盾した条件記述であるから知
識情報30から削除する。このような条件記述は、不等
号・非等号表現を含む元の条件記述を複数の条件記述に
分割したものの一部であり、ユーザが矛盾した条件記述
をしたのではないので、削除しても構わない。S86で
当該条件記述内に記述の無い基本条件があれば、条件値
リスト62から該当する条件のとり得る条件値37をす
べて取り出し、その条件値に基づき当該条件記述を分割
して(S87)、もとの条件記述と置き換え(S7
7)、置き換えた複数の条件記述のうち先頭の条件記述
にチェックポインタを位置付け(S78)、S72へ戻
る。なお条件値リスト62を満足しない基本条件記述を
もった条件記述31は削除となる。S93で次の条件記
述があるか判定し、あれば次の条件記述にチェックポイ
ンタを位置付け(S94)、S72へ戻る。S93で次
の条件記述が無ければ、不等号・非等号表現を含む条件
記述の分割についての知識分析処理を終了する。
FIG. 13 is a flowchart showing a flow of the division process of the condition description including the inequality / inequality use condition in S12. In this process, it is checked whether or not each condition description 31 of the knowledge information obtained as a result of the above process includes a basic condition expressed by an inequality sign or an inequality expression. First, the check pointer is positioned at the first condition description 31 (S7).
1), the condition description 31 at the check pointer position is extracted (S72). Next, it is determined whether or not the condition description includes a basic condition description in an inequality / inequality expression (S73). If the basic condition description in inequality or inequality expression is included, all possible condition values 37 of the corresponding basic condition are extracted from the condition value list 62 based on the description (S74). For example, if there is a basic condition description of a> 0 in the condition description, a condition value 37 of a = 1 is extracted according to the example of FIG. 9B.
If there is no condition value 37 to be taken out, the condition description is deleted. Next, it is checked whether there is any other description of the same basic condition in the condition description (S75). Condition name 3 on the left side
If there is another condition 34 in which 5 is the same, there is another description about the same basic condition. For example, if there is another basic condition description a = 0, a <1 or the like relating to the same basic condition in the condition description, it is determined that there is another description of the same basic condition. The condition description is divided into one or more condition descriptions converted into equivalent equal signs based on condition values that can be assumed if there is no other description of the same basic condition (S76), and replaced with the original condition description (S77). The check pointer is positioned at the first condition description among the plurality of replaced condition descriptions (S78), and the process returns to S72. When there is only one equivalent condition value, no division occurs. If there is another description of the same basic condition in S75, all possible condition values of the corresponding basic condition are fetched from the condition value list 62 based on the description as described above (S79), and the condition value fetched in S74 is Then, the shared portion is taken out (S80). For example, S7
In step S4, the condition value of a = 1 is extracted by the basic condition description of a> 0.
If the condition values of 0 and a = 1 are taken out, the shared part in S80 is a = 1, while the condition values of a = -1 and a = 0 are taken out in S79 by the basic condition description of a <1. Then, there is no share in S80. Further, it is checked whether there is any other description of the same basic condition in the condition description (S81), and if it is, S79 and S80 are repeated. In S80, the condition value extracted in S74, the condition value extracted in S79, the condition value extracted in S79,
····················································································· Extracted When all the descriptions of the same basic condition have been checked in S81, it is checked whether or not there is a shared portion as a result of extracting the shared portion of the condition value in S80 (S82). Similarly, the condition description is divided based on possible condition values (S76), replaced with the original condition description (S77), and the check pointer is positioned at the first condition description among the replaced plurality of condition descriptions (S7).
8) Return to S72. That is, the condition description is divided into one or more condition descriptions in which each basic condition portion that is the same basic condition is converted into an equivalent equal sign. Condition description 31 with basic condition description that does not satisfy condition value list 62
Is deleted. In S82, if there is no shared portion as a result of extracting the shared value of the condition value in S80, the condition description is invalidated and deleted from the knowledge information 30 (S83), and the process proceeds to S93 for the next condition description. That is, if there is no shared condition value, the condition description 31 that combines such the same basic condition description with an AND condition has no meaning and is deleted from the knowledge information 30. If there is no inequality or inequality basic condition description in the condition description in S73, it is checked whether there is a plurality of descriptions about the same basic condition in the condition description (S85). That is, it is checked whether there are a plurality of equal expression with the same condition name 35 on the left side. If there is no description of the same basic condition, it is checked whether any of the basic conditions set in the condition order list 61 has no description in the condition description (S86). Move to the operation for the next condition description. If there are multiple descriptions of the same basic condition in S85, it is checked whether the condition values are the same (S8).
8) If they are the same, duplicate descriptions of the same basic condition are removed (S89). That is, the same equal expression of the same basic condition combined by AND conditions is combined into one equal expression. Further, it is checked whether there is a plurality of descriptions about the same basic condition in the condition description (S90).
Repeat 89. When all the descriptions for the same basic condition have been checked in S90, the condition description is replaced with the original condition description (S91), and the process proceeds to the check in S86. If the condition values are different in a plurality of descriptions for the same basic condition in S88, the condition description is invalidated and deleted from the knowledge information 30 (S92), and S93.
Shifts to the processing for the next condition description. That is, if the condition values on the right side of the equal sign are different for the same basic condition, the condition description 31 is deleted from the knowledge information 30 because it is an inconsistent condition description. Such a condition description is a part of the original condition description including the inequality and inequality expressions divided into a plurality of condition descriptions, and is not inconsistent by the user. I do not care. If there is a basic condition not described in the condition description in S86, all the possible condition values 37 of the corresponding condition are extracted from the condition value list 62, and the condition description is divided based on the condition value (S87). Replace with original condition description (S7
7), the check pointer is positioned at the first condition description among the plurality of replaced condition descriptions (S78), and the process returns to S72. The condition description 31 having a basic condition description that does not satisfy the condition value list 62 is deleted. In S93, it is determined whether there is a next condition description. If there is, the check pointer is positioned at the next condition description (S94), and the process returns to S72. If the next condition description does not exist in S93, the knowledge analysis process for the division of the condition description including the inequality / inequality expression ends.

【0030】図14は、S13の基本条件の組合せに基
づいた条件記述のパターン化の処理の流れを示すフロー
チャートである。この処理は上記処理の結果得られる知
識情報の個々の条件記述31を分析結果管理表64の各
基本条件の条件値の組合せパターンに従った位置へ登録
する。まず条件順序リスト61に設定されている基本条
件の種類と条件値リスト62に設定されている各条件の
とり得る条件値37に基づきすべての組合せパターンを
展開し、条件記述登録前の分析結果管理表64を作成す
る(S100)。次にチェックポインタを分割された条
件記述31などすべての条件記述31を含む知識情報3
0内の先頭の条件記述31に位置付け(S101)、チ
ェックポインタ位置の条件記述を取り出す(S10
2)。当該条件記述の基本条件の条件値の組合せパター
ンに従って分析結果管理表64をサーチし、当該条件記
述の登録位置を見つける(S103)。見つかったなら
ば、該当パターンの位置に既に別の条件記述があるかチ
ェックし(S104)、無ければ当該条件記述の内容を
分析結果管理表64の形式に従って該当位置に登録する
(S106)。既に別の条件記述が登録済みであれば、
登録済み位置の次に新たな空エリアを挿入し(S10
5)、上記と同様に当該条件記述の内容を分析結果管理
表64の形式に従って空きエリアに登録する(S10
6)。その後知識情報30内に次の条件記述31がある
か否か判定し(S108)、あれば次の条件記述31に
チェックポインタを位置付け(S109)、S102へ
戻る。S103で組合せパターンが見つからない場合に
は、分析不可管理表66へ当該条件記述の条件式番号3
8を登録する(S107)。S108で次の条件記述が
無ければ、基本条件の組合せに基づいた条件記述のパタ
ーン化についての知識分析処理を終了する。
FIG. 14 is a flowchart showing the flow of the process of patterning the condition description based on the combination of the basic conditions in S13. In this process, the individual condition description 31 of the knowledge information obtained as a result of the above process is registered in the analysis result management table 64 at a position according to the combination pattern of the condition values of the basic conditions. First, all combination patterns are developed based on the types of the basic conditions set in the condition order list 61 and the possible condition values 37 of each condition set in the condition value list 62, and the analysis result management before the condition description registration is performed. The table 64 is created (S100). Next, knowledge information 3 including all the condition descriptions 31 such as the condition description 31 obtained by dividing the check pointer
0 (S101), and the condition description at the check pointer position is extracted (S10).
2). The analysis result management table 64 is searched according to the combination pattern of the condition values of the basic conditions of the condition description to find the registration position of the condition description (S103). If found, it is checked whether another condition description is already present at the position of the pattern (S104). If not, the contents of the condition description are registered at the position according to the format of the analysis result management table 64 (S106). If another condition description has already been registered,
A new empty area is inserted after the registered position (S10
5) In the same manner as described above, the contents of the condition description are registered in the free area according to the format of the analysis result management table 64 (S10).
6). Thereafter, it is determined whether or not the next condition description 31 exists in the knowledge information 30 (S108). If there is, a check pointer is positioned at the next condition description 31 (S109), and the process returns to S102. If the combination pattern is not found in S103, the condition expression number 3 of the condition description is added to the analysis impossible management table 66.
8 is registered (S107). If there is no next condition description in S108, the knowledge analysis process for patterning the condition description based on the combination of the basic conditions is ended.

【0031】次にS16、S17及びS18の各評価処
理の詳細について、図15と図16のフローチャートを
参照して説明する。
Next, the details of each evaluation process of S16, S17 and S18 will be described with reference to the flowcharts of FIGS.

【0032】図15は、S16の冗長性評価、S17の
矛盾性評価及びS18の総合評価の処理の流れを示すフ
ローチャートである。知識評価部6は、上記の知識分析
処理の結果得られる分析結果管理表64に基づき、条件
記述内容を相互に比較チェックし、その結果を評価結果
管理表65に登録する。まずチェックポインタを分析結
果管理表64の先頭に位置付け(S121)、登録され
ている条件記述の有無をチェックし(S122)、あれ
ば第2のポインタを分析結果管理表64のチェックポイ
ンタの次に位置付け(S123)、チェックポインタ位
置の条件記述31の基本条件値組合せパターンと第2の
ポインタ位置の基本条件値組合せパターンが同じかチェ
ックし(S124)、同じであれば基本条件外条件式4
3が相互に同じかチェックし(S125)、同じであれ
ばTHEN式33も相互に同じかチェックし(S12
6)、同じであれば評価種別が冗長評価か総合評価であ
れば(S127)、評価結果管理表65へ評価種別57
を「重複」として、2つの条件記述の条件式番号38と
共に登録する(S128)。その後第2のポインタ位置
の次が分析結果管理表64の終りかチェックし(S13
4)、終りでなければ第2のポインタを分析結果管理表
64の次の条件記述へ位置付け(S135)、S124
へ戻る。S134で表の終りであれば、チェックポイン
タ位置の次が分析結果管理表64の終りかチェックし
(S136)、終りでなければチェックポインタを分析
結果管理表64の次の条件記述へ位置付け(S13
7)、S122へ戻る。またS126でTHEN式33
が相互に異なる場合には、評価種別が矛盾評価か総合評
価であれば(S129)、評価結果管理表65へ評価種
別57を「式間矛盾」として2つの条件記述の条件式番
号38と共に登録し(S130)、S134へ移行す
る。S125で基本条件外条件式43が相互に異なる場
合には、評価種別が冗長評価か総合評価であれば(S1
31)、一方の基本条件以外条件式43が他方の基本条
件以外条件式43を包含するかチェックする(S13
2)。一方の基本条件以外条件式43が他方の基本条件
以外条件式43の部分集合に属するならば両基本条件以
外条件式43は包含関係にある。条件記述31の基本条
件以外条件式43内にある条件34はすべてアンド結合
されているから、アンド表現を含めて同一条件を有する
2つの条件記述31は包含関係にあることが認識され
る。包含する場合には評価結果管理表65へ評価種別5
7を「包含」として2つの条件記述の条件式番号38と
共に登録し(S133)、S134へ移行する。S13
1で一方の基本条件外条件式43が他方の基本条件外条
件式43を包含しない場合には、そのままS134へ移
行する。またS124でチェックポインタ位置の条件記
述の基本条件値組合せパターンと第2のポインタ位置の
基本条件値組合せパターンが異なる場合、及びS122
で登録されている条件記述が無い場合は、そのままS1
36へ移行する。S136で分析結果管理表64の終り
である場合には、評価種別が矛盾評価か総合評価であれ
ば(S138)、条件記述単体内の評価を行い(S13
9)、次に評価種別が総合評価であれば(S140)、
分析不可となった条件記述についての評価を行い(S1
41)、その後知識評価処理を終了する。
FIG. 15 is a flowchart showing the flow of the processing of the redundancy evaluation in S16, the inconsistency evaluation in S17, and the comprehensive evaluation in S18. Based on the analysis result management table 64 obtained as a result of the above-described knowledge analysis processing, the knowledge evaluation unit 6 compares and checks the condition description contents with each other, and registers the result in the evaluation result management table 65. First, the check pointer is positioned at the head of the analysis result management table 64 (S121), and the presence or absence of the registered condition description is checked (S122). If so, the second pointer is placed next to the check pointer in the analysis result management table 64 Positioning (S123), it is checked whether the basic condition value combination pattern of the condition description 31 of the check pointer position and the basic condition value combination pattern of the second pointer position are the same (S124).
3 (S125), and if they are the same, the THEN expression 33 also checks whether they are the same (S12).
6) If the evaluation type is the same, if the evaluation type is the redundant evaluation or the comprehensive evaluation (S127), the evaluation type 57 is added to the evaluation result management table 65.
Is registered as "duplicate" together with the conditional expression number 38 of the two condition descriptions (S128). Thereafter, it is checked whether the end of the analysis result management table 64 is after the second pointer position (S13).
4) If not the end, position the second pointer to the next condition description in analysis result management table 64 (S135), S124
Return to If the end of the table is determined in S134, it is checked whether the position following the check pointer position is the end of the analysis result management table 64 (S136). If not, the check pointer is positioned at the next condition description in the analysis result management table 64 (S13).
7) Return to S122. In S126, the THEN expression 33
Are different from each other, if the evaluation type is inconsistency evaluation or comprehensive evaluation (S129), the evaluation type 57 is registered in the evaluation result management table 65 as "contradiction between expressions" together with the conditional expression number 38 of the two condition descriptions. (S130), and then proceeds to S134. When the conditional expressions 43 outside the basic conditions are different from each other in S125, if the evaluation type is redundant evaluation or comprehensive evaluation (S1
31), it is checked whether the conditional expression 43 other than one basic condition includes the conditional expression 43 other than the other basic condition (S13).
2). If the conditional expression 43 other than one basic condition belongs to a subset of the conditional expression 43 other than the other basic condition, the conditional expressions 43 other than both basic conditions have an inclusive relation. Since all the conditions 34 in the conditional expression 43 other than the basic condition of the condition description 31 are AND-coupled, it is recognized that two condition descriptions 31 having the same condition including the AND expression have an inclusive relation. If it is included, the evaluation type 5 is added to the evaluation result management table 65.
7 is registered as "included" together with the conditional expression number 38 of the two condition descriptions (S133), and the routine goes to S134. S13
If the condition expression 1 does not include the condition expression 43 outside the basic condition, the process proceeds directly to S134. If the basic condition value combination pattern of the condition description of the check pointer position is different from the basic condition value combination pattern of the second pointer position in S124, and S122
If there is no condition description registered in step S1
Move to 36. If it is the end of the analysis result management table 64 in S136, if the evaluation type is inconsistency evaluation or comprehensive evaluation (S138), the evaluation within the condition description alone is performed (S13).
9) Next, if the evaluation type is comprehensive evaluation (S140),
The condition description that cannot be analyzed is evaluated (S1).
41), then terminates the knowledge evaluation process.

【0033】次にS139の条件記述単体内評価とS1
40の分析不可条件記述評価について、図16のフロー
チャートを用いて説明する。
Next, the evaluation in the condition description alone in S139 and S1
Forty analysis impossible condition description evaluation will be described with reference to the flowchart of FIG.

【0034】図16(a)は、S139の条件記述単体
内の評価処理の流れを示すフローチャートである。知識
評価部6は、分析結果管理表64について、条件式番号
38の欠番をサーチし(S151)、見つかれば分析不
可管理表66の当該条件式番号38をサーチする(S1
52)。見つからなければ評価結果管理表65へ評価種
別57を「式内矛盾」として当該条件式番号38を登録
する(S153)。すなわちa>0&a<0のように基
本条件の条件値が定まらない条件記述31は分析結果管
理表64にも分析不可管理表66にも格納されないの
で、条件式番号38が欠番となっている。その後S15
1で欠番が見つからなくなるまで上記処理を繰り返す。
S152で分析不可管理表66中に当該当該条件式番号
38が見つかれば、S151へ戻る。
FIG. 16A is a flowchart showing the flow of the evaluation process in the single condition description in S139. The knowledge evaluation unit 6 searches the analysis result management table 64 for a missing number of the conditional expression number 38 (S151), and if found, searches the conditional expression number 38 of the analysis impossible management table 66 (S1).
52). If not found, the conditional expression number 38 is registered in the evaluation result management table 65 with the evaluation type 57 as “contradiction in expression” (S153). That is, since the condition description 31 for which the condition value of the basic condition is not determined, such as a> 0 & a <0, is not stored in the analysis result management table 64 or the analysis impossible management table 66, the conditional expression number 38 is omitted. Then S15
The above process is repeated until no missing numbers are found in step 1.
If the conditional expression number 38 is found in the analysis impossible management table 66 in S152, the process returns to S151.

【0035】図16(b)は、S140の分析不可条件
記述の評価処理の流れを示すフローチャートである。知
識評価部6は、分析不可管理表66の先頭へチェックポ
インタを位置付け(S161)、チェックポインタ位置
に条件式番号38が登録されているかチェックし(S1
62)、登録されていれば評価結果管理表65へ評価種
別57を「分析不可」として当該条件式番号38を登録
し(S163)、分析不可管理表66の次へチェックポ
インタを位置付けて(S164)、S162へ戻り分析
不可管理表66に登録されている全ての条件式番号38
について上記処理を繰り返す。
FIG. 16B is a flowchart showing the flow of the process of evaluating the analysis impossible condition description in S140. The knowledge evaluation unit 6 positions the check pointer at the head of the analysis impossible management table 66 (S161), and checks whether the conditional expression number 38 is registered at the check pointer position (S1).
62) If it is registered, the conditional expression number 38 is registered in the evaluation result management table 65 with the evaluation type 57 set to “analysis impossible” (S163), and the check pointer is positioned next to the analysis impossible management table 66 (S164). ), Returning to S162, all conditional expression numbers 38 registered in the analysis impossible management table 66.
And the above processing is repeated.

【0036】本実施形態によれば、知識情報30の分析
処理開始時又は分析処理後に抽出条件リスト63を指定
することができる。分析処理開始時に抽出条件リスト6
3を指定することによって、知識分析部3は設定した条
件値リスト62−2の条件を満足する条件記述31のみ
を対象として分析処理を行うので、条件値リスト62−
1全体に基づいて分析処理をする場合に比べて分析処理
時間を短縮し、必要な記憶装置の容量を節約することが
できる。一方分析処理後に抽出条件リスト63を指定す
る場合は、分析処理時間がかかりより多くの記憶容量を
必要とするが、生成された分析・評価結果に対して抽出
条件リスト63を種々変更して分析・評価結果を抽出し
た結果が得られるという利点がある。
According to the present embodiment, the extraction condition list 63 can be designated at the start of the analysis processing of the knowledge information 30 or after the analysis processing. Extraction condition list 6 at the start of analysis processing
By specifying 3, the knowledge analysis unit 3 performs analysis processing only on the condition description 31 that satisfies the conditions of the set condition value list 62-2.
The analysis processing time can be reduced as compared with the case where the analysis processing is performed based on the entire device 1, and the necessary storage device capacity can be saved. On the other hand, when the extraction condition list 63 is specified after the analysis processing, the analysis processing time is longer and more storage capacity is required, but the extraction condition list 63 is variously changed with respect to the generated analysis / evaluation result. -There is an advantage that the result obtained by extracting the evaluation result can be obtained.

【0037】[0037]

【発明の効果】本発明によれば、問題解決や計画立案を
行う場合に使用する知識情報分析評価システムにおい
て、知識情報をパターン化して分類・整理できるため条
件記述相互の関連付けや比較参照が容易となり、その結
果知識に対する理解の効率向上が図れる。またそれとと
もに条件記述相互間の矛盾性や冗長性を評価できるため
知識記述上の誤りの発見や無駄の発見が容易となり、知
識情報の信頼性向上が図れるという効果がある。
According to the present invention, in a knowledge information analysis / evaluation system used for problem solving and planning, knowledge information can be patterned and classified / arranged, so that it is easy to associate condition descriptions with each other and to compare and refer to them. As a result, the efficiency of understanding the knowledge can be improved. In addition, since contradiction and redundancy between condition descriptions can be evaluated, it is easy to find errors in the knowledge description and to find waste, thereby improving the reliability of the knowledge information.

【0038】更に知識情報を構成する条件記述に含まれ
る条件のうち特定の条件及び特定の条件値の全ての組合
せが自動展開されるため、組合せのうち知識として記述
済み分と未記述分の区別が明白となるため、未記述の組
合せに対する再確認が可能になるとともに、記述漏れの
発見や知識を追加する際の示唆を得ることができるとい
う効果もある。
Further, since all combinations of specific conditions and specific condition values among the conditions included in the condition description constituting the knowledge information are automatically developed, it is possible to discriminate what is described as knowledge and what is not described as knowledge among the combinations. Is clear, it is possible to reconfirm the undescribed combinations, and it is also possible to find a description omission and obtain a suggestion when adding knowledge.

【0039】また知識情報量が多い場合や条件及び条件
値の組合せ数が膨大になる場合においても、全体の知識
情報に対する分析・評価結果の中から特定の条件及び特
定の条件値の組合せによる分析・評価結果のみを抽出す
ることも可能であり、また特定の条件及び特定の条件値
の組合わせによって抽出した知識情報に対してのみ分析
・評価を行うことも可能なため、知識情報に対する分析
・評価結果の把握のし易さと焦点を絞った観点からの検
討が効率よく行えるという効果もある。
Even when the amount of knowledge information is large or when the number of combinations of conditions and condition values is enormous, analysis by specific conditions and combinations of specific condition values is performed from the analysis and evaluation results for the entire knowledge information.・ It is possible to extract only the evaluation results, and it is also possible to analyze and evaluate only the knowledge information extracted by specific conditions and combinations of specific condition values. There is also an effect that the evaluation result can be easily grasped and the examination can be efficiently performed from a focused viewpoint.

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

【図1】実施形態の知識情報分析評価を行う情報処理装
置の構成図である。
FIG. 1 is a configuration diagram of an information processing apparatus that performs analysis and evaluation of knowledge information according to an embodiment.

【図2】対象とする条件記述の一具体例を示す図であ
る。
FIG. 2 is a diagram showing a specific example of a target condition description.

【図3】知識情報分析結果を表形式で表現する具体例を
示す図である。
FIG. 3 is a diagram showing a specific example of expressing a knowledge information analysis result in a table format.

【図4】OR表現を含む条件記述を単純化する場合の具
体例を示す図である。
FIG. 4 is a diagram illustrating a specific example in a case where a condition description including an OR expression is simplified.

【図5】不等号表現などを含む条件記述を単純化する場
合の具体例を示す図ある。
FIG. 5 is a diagram showing a specific example in a case where a condition description including an inequality expression and the like is simplified.

【図6】複雑な条件記述を単純化する場合の別の具体例
を示す図である。
FIG. 6 is a diagram showing another specific example when simplifying a complicated condition description.

【図7】知識情報を分析・評価した結果表の例を示す図
である。
FIG. 7 is a diagram showing an example of a result table obtained by analyzing and evaluating knowledge information.

【図8】知識情報の評価結果についての具体例を示す図
である。
FIG. 8 is a diagram showing a specific example of a result of evaluating knowledge information.

【図9】実施形態において知識情報に対する分析・評価
・抽出を行う際に用いるテーブル類のデータ構成を示す
図である。
FIG. 9 is a diagram illustrating a data configuration of tables used when analyzing, evaluating, and extracting knowledge information in the embodiment.

【図10】実施形態の知識情報の分析・評価・抽出・表
示を行う処理の全体的な流れを示すフローチャートであ
る。
FIG. 10 is a flowchart illustrating an overall flow of processing for analyzing, evaluating, extracting, and displaying knowledge information according to the embodiment;

【図11】実施形態のOR表現を含む条件記述を単純化
する場合の処理の流れを示すフローチャートである。
FIG. 11 is a flowchart illustrating a flow of a process for simplifying a condition description including an OR expression according to the embodiment.

【図12】実施形態の条件記述内の表現順序を変更する
場合の処理の流れを示すフローチャートである。
FIG. 12 is a flowchart illustrating a processing flow when changing the expression order in the condition description according to the embodiment;

【図13】実施形態の不等号表現などを含む条件記述を
単純化する場合の処理の流れを示すフローチャートであ
る。
FIG. 13 is a flowchart illustrating a flow of a process for simplifying a condition description including an inequality expression according to the embodiment;

【図14】実施形態の基本条件の組合せに基づいて条件
記述をパターン化する処理の流れを示すフローチャート
である。
FIG. 14 is a flowchart illustrating a flow of processing for patterning a condition description based on a combination of basic conditions according to the embodiment.

【図15】実施形態の条件記述に対して冗長性や矛盾性
をチェックする処理の流れを示すフローチャートであ
る。
FIG. 15 is a flowchart illustrating a flow of a process for checking redundancy or inconsistency with respect to a condition description according to the embodiment.

【図16】実施形態の条件記述単体内及び分析不可の条
件記述に対してチェックする処理の流れを示すフローチ
ャートである。
FIG. 16 is a flowchart illustrating a flow of processing for checking a condition description in a single condition description and a condition description that cannot be analyzed according to the embodiment.

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

3…知識分析部、6…知識評価部、7…知識抽出部、3
1…条件記述、32…条件式、33…THEN式、35
…条件名、37…条件値、41…基本条件、43…基本
条件外条件式、45…OR表現、46…等号表現、47
…不等号表現、48…非等号表現、61…条件順序リス
ト、62…条件値リスト、63…抽出条件リスト、64
…分析結果管理表、65…評価結果管理表
3: Knowledge analysis unit, 6: Knowledge evaluation unit, 7: Knowledge extraction unit, 3
1 ... condition description, 32 ... condition expression, 33 ... THEN expression, 35
... condition name, 37 ... condition value, 41 ... basic condition, 43 ... basic condition non-conditional expression, 45 ... OR expression, 46 ... equality expression, 47
... inequality expression, 48 ... inequality expression, 61 ... condition order list, 62 ... condition value list, 63 ... extraction condition list, 64
... Analysis result management table, 65 ... Evaluation result management table

───────────────────────────────────────────────────── フロントページの続き (72)発明者 栗原 和男 茨城県ひたちなか市市毛1070番地 株式会 社日立製作所水戸工場内 ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Kazuo Kurihara 1070 Ma, Hitachinaka City, Ibaraki Prefecture Inside Mito Plant of Hitachi, Ltd.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】知識情報が複数の条件記述から構成され、
各条件記述が条件式と該条件式を満足するとき実行され
る式とから構成され、該条件式は条件名と条件値とを等
号、非等号又は不等号のいずれかの記号の両辺とする式
の表現をさらにアンド記号又はオア記号で結合した式で
ある場合の知識情報を情報処理装置によって分析する方
法であって、 該知識情報の各条件記述についてその条件式が2つの式
の表現をオア記号によって結合するオア表現を含む場合
には、すべてのオア表現を排除するように該条件記述を
分割して等価な複数の条件記述を生成し、 該知識情報の各条件記述についてその条件式中の式の表
現が非等号表現又は不等号表現を含む場合には、該条件
名に対応してとり得るすべての条件値を設定する条件値
リストに基づいて非等号表現又は不等号表現に等価な等
号表現に変換するように該条件記述を分割して複数の条
件記述を生成し、 上記のようにして条件式からオア表現、非等号表現及び
不等号表現を排除するように条件記述を分割して生成し
たすべての条件記述を含む知識情報について、設定され
た条件名の順序とそのとり得るすべての条件値の組合わ
せのパターンに基づいて知識情報中のすべての条件記述
を配列して分析結果表を作成することを特徴とする知識
情報の分析評価方法。
1. Knowledge information is composed of a plurality of condition descriptions,
Each condition description is composed of a conditional expression and an expression executed when the conditional expression is satisfied, and the conditional expression defines a condition name and a condition value with both sides of an equal sign, an inequality sign or an inequality sign. A method for analyzing, by an information processing apparatus, knowledge information in a case where expressions of expressions to be performed are expressions combined by AND symbols or OR symbols, wherein each conditional expression of the knowledge information is expressed by two expressions. Is included by OR symbols, the condition description is divided to eliminate all OR expressions, and a plurality of equivalent condition descriptions are generated. For each condition description of the knowledge information, If the expression in the expression includes an inequality expression or an inequality expression, the expression is converted to an inequality expression or an inequality expression based on a condition value list that sets all possible condition values corresponding to the condition name. Convert to equivalent equals representation In this way, the conditional description is divided to generate a plurality of conditional descriptions, and all the conditional descriptions generated by dividing the conditional description so as to exclude OR expressions, inequality expressions, and inequality expressions from the conditional expressions as described above. Create an analysis result table by arranging all the condition descriptions in the knowledge information based on the set order of condition names and all possible condition value combinations for the knowledge information including the condition description. Analysis and evaluation method of knowledge information characterized by:
【請求項2】該条件式に出現する条件名の中で特定の条
件名に係わる式の表現を基本条件とみなし、基本条件に
ついて上記のように条件式からオア表現、非等号表現及
び不等号表現を排除するように条件記述を分割して生成
した条件記述を含む知識情報について、基本条件の組合
わせパターンに基づいて分析結果表を作成することを特
徴とする請求項1記載の知識情報の分析評価方法。
2. An expression of an expression related to a specific condition name among condition names appearing in the conditional expression is regarded as a basic condition, and the basic condition is converted from the conditional expression into an OR expression, an inequality expression and an inequality expression as described above. 2. The knowledge information including a condition description generated by dividing a condition description so as to exclude an expression is created based on a combination pattern of basic conditions. Analytical evaluation method.
【請求項3】該条件式に出現する条件名の中で各条件記
述に共通して出現する条件名及び所定の頻度以上出現す
る条件名に係わる式の表現を基本条件とみなすことを特
徴とする請求項2記載の知識情報の分析評価方法。
3. A method according to claim 1, wherein, among the condition names appearing in said conditional expression, a condition name commonly appearing in each condition description and an expression of an expression relating to a condition name appearing at a predetermined frequency or more are regarded as basic conditions. The method for analyzing and evaluating knowledge information according to claim 2.
【請求項4】該分析結果表中の条件記述について、2つ
の条件記述の条件式が同一の組合わせパターンに属しか
つ条件式を満足するとき実行される式が同一のとき、条
件記述の重複と判定することを特徴とする請求項1記載
の知識情報の分析評価方法。
4. When the conditional expressions in the analysis result table belong to the same combination pattern and the expressions executed when the conditional expressions satisfy the conditional expressions are the same, the conditional expressions are duplicated. 2. The method for analyzing and evaluating knowledge information according to claim 1, wherein:
【請求項5】該分析結果表中の条件記述について、2つ
の条件記述の条件式が同一の組合わせパターンに属する
部分と一方が他方を包含する部分とから構成されると
き、一方の条件記述が他方の条件記述を包含すると判定
することを特徴とする請求項1記載の知識情報の分析評
価方法。
5. A condition description in the analysis result table, wherein when the condition expressions of the two condition descriptions are composed of a part belonging to the same combination pattern and one part including the other, one condition description is provided. 2. The method for analyzing and evaluating knowledge information according to claim 1, wherein it is determined that the condition information includes the other condition description.
【請求項6】上記分析結果表中の条件記述について、2
つの条件記述の条件式が同一の組合わせパターンに属し
かつ条件式を満足するとき実行される式が異なるとき、
両条件記述の矛盾と判定することを特徴とする請求項1
記載の知識情報の分析評価方法。
6. The condition description in the analysis result table is as follows.
If the conditional expressions of two conditional descriptions belong to the same combination pattern and the expressions executed when satisfying the conditional expressions are different,
2. The method according to claim 1, wherein the two conditions are determined to be inconsistent.
Analysis and evaluation method of the described knowledge information.
【請求項7】該分析結果表について、指定された条件名
と条件値の組合わせの組合わせパターンに属する条件記
述のみを抽出して表示装置上に表示することを特徴とす
る請求項1記載の知識情報の分析評価方法。
7. The analysis result table according to claim 1, wherein only a condition description belonging to a combination pattern of a combination of a specified condition name and a condition value is extracted and displayed on a display device. Analysis and evaluation method of knowledge information.
【請求項8】指定された条件名と条件値の組合わせの組
合わせパターンに属する条件記述のみを抽出するように
上記生成処理を行い、知識情報中の抽出された条件記述
を配列して分析結果表を作成することを特徴とする請求
項1記載の知識情報の分析評価方法。
8. The above-described generation processing is performed so as to extract only a condition description belonging to a combination pattern of a combination of a specified condition name and a condition value, and the extracted condition descriptions in the knowledge information are arranged and analyzed. 2. The method for analyzing and evaluating knowledge information according to claim 1, wherein a result table is created.
【請求項9】指定された条件名の順序とそのとり得るす
べての条件値の組合わせのパターンに対して生成したす
べての条件記述を含む条件記述を対応させ、対応する条
件記述のない組合わせパターンを抽出することを特徴と
する請求項1記載の知識情報の分析評価方法。
9. A combination having no condition description corresponding to a pattern of a combination of a specified condition name and all possible condition values, the condition description including all condition descriptions generated. 2. The method for analyzing and evaluating knowledge information according to claim 1, wherein a pattern is extracted.
JP8302644A 1996-11-14 1996-11-14 Method for analyzing and evaluating knowledge information Pending JPH10143372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8302644A JPH10143372A (en) 1996-11-14 1996-11-14 Method for analyzing and evaluating knowledge information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8302644A JPH10143372A (en) 1996-11-14 1996-11-14 Method for analyzing and evaluating knowledge information

Publications (1)

Publication Number Publication Date
JPH10143372A true JPH10143372A (en) 1998-05-29

Family

ID=17911472

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8302644A Pending JPH10143372A (en) 1996-11-14 1996-11-14 Method for analyzing and evaluating knowledge information

Country Status (1)

Country Link
JP (1) JPH10143372A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015118449A (en) * 2013-12-17 2015-06-25 三菱重工業株式会社 Rule verification device, rule verification method and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015118449A (en) * 2013-12-17 2015-06-25 三菱重工業株式会社 Rule verification device, rule verification method and program

Similar Documents

Publication Publication Date Title
US6654950B1 (en) Software rehosting system and method
GB2391362A (en) Database comparator
US20040205058A1 (en) Flow data generation method, flow data generation apparatus, and flow data generation program product
CA2436609C (en) Sequence analysis method and apparatus
US7853595B2 (en) Method and apparatus for creating a tool for generating an index for a document
JP2005521135A (en) A method for quickly analyzing the family line of the subject patent from the database and providing it
KR100877156B1 (en) System and method of access path analysis for dynamic sql before executed
Chin et al. DECODE: A Co‐operative Program Understanding Environment
JPH09212353A (en) Method and device for supporting reused design
CN109902013B (en) Payload testing method and system based on configuration testing sequence
CN110659200B (en) Method and system for comparing and analyzing source code and target code of aviation onboard software
CN107577802A (en) A kind of data base management method and device
JPH10143372A (en) Method for analyzing and evaluating knowledge information
CN107622093A (en) A kind of system from unstructured data extraction structural data
JP7022472B1 (en) Data management system, data management method and data management program
Ouaret et al. AuMixDw: Towards an automated hybrid approach for building XML data warehouses
US6009267A (en) Apparatus for analyzing the task specification (business rule specification) of a source program
US8239362B1 (en) Using metadata fragments as authoritative manufacturing work instructions
JP2009169573A (en) Analysis result output device and analysis result output method
Smith et al. Unity: Speeding the creation of community vocabularies for information integration and reuse
Damaratskaya Identification and Visualization of Legal Definitions and their Relations Based on European Regulatory Documents
Zhou et al. MiniDB: A Teaching Oriented Lightweight Database
Pérez et al. Software for planning sport training: Basketball application
JPH05298082A (en) Method and device for editing program
JPH08263280A (en) Method for shifting processing