JP6221177B2 - Rule verification device, rule verification method, and program - Google Patents

Rule verification device, rule verification method, and program Download PDF

Info

Publication number
JP6221177B2
JP6221177B2 JP2013260269A JP2013260269A JP6221177B2 JP 6221177 B2 JP6221177 B2 JP 6221177B2 JP 2013260269 A JP2013260269 A JP 2013260269A JP 2013260269 A JP2013260269 A JP 2013260269A JP 6221177 B2 JP6221177 B2 JP 6221177B2
Authority
JP
Japan
Prior art keywords
rule
rules
convex hull
unit
indicated
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.)
Active
Application number
JP2013260269A
Other languages
Japanese (ja)
Other versions
JP2015118449A (en
Inventor
苑田 義明
義明 苑田
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.)
Mitsubishi Heavy Industries Ltd
Original Assignee
Mitsubishi Heavy Industries 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 Mitsubishi Heavy Industries Ltd filed Critical Mitsubishi Heavy Industries Ltd
Priority to JP2013260269A priority Critical patent/JP6221177B2/en
Publication of JP2015118449A publication Critical patent/JP2015118449A/en
Application granted granted Critical
Publication of JP6221177B2 publication Critical patent/JP6221177B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

本発明は、ルール検証装置、ルール検証方法、及びプログラムに関する。   The present invention relates to a rule verification device, a rule verification method, and a program.

膨大なデータを、それらのデータが有する各属性における条件の数値範囲の組み合わせで分類あるいは検索する際、分類あるいは検索のルールが複数のIF〜THEN形式のルールで規定されていることがある。
特許文献1には、関連する技術として、分析対象であるデータに基づき、ユーザが指定したルール評価基準になるように調整対象として指定したルールを調整する技術が記載されている。
When a large amount of data is classified or searched by a combination of numerical ranges of conditions in each attribute of the data, classification or search rules may be defined by a plurality of IF-THEN rules.
Patent Document 1 describes a technique for adjusting a rule specified as an adjustment target so as to be a rule evaluation standard specified by a user based on data to be analyzed as a related technique.

特開2001−312408号公報JP 2001-312408 A

ところで、条件と結果とを含む複数のIF〜THEN形式のルールにおいて、各IFが示す分類あるいは検索の条件を数値範囲で示し、それらの数値範囲の組み合わせによりTHENが示す属性と対応付けられている場合、新たなデータが追加される度にIF〜THEN形式のルールで示される数値範囲と属性とが追加される。例えば、企業の経理部門などは、表計算ソフトウェアなどを使用して、各製品に対して各組織が負担する経費を示す一覧表を作成し、管理することがある。各製品に対して各組織が負担する経費を示す一覧表には、各組織が負担する経費が製品の開発開始から製品の量産完了までの長期にわたりデータとIF〜THEN形式のルールが逐次的に追加されることがある。そのような場合、同一製品に対して、追加したIF〜THEN形式のルールとそれ以前に追加したIF〜THEN形式のルールとの間で、IFが示す条件は同一であるのにTHENが示す結果が異なるという矛盾関係や、IF〜THENルールが同一または一部が重複するという冗長関係が生じている可能性がある。
そのため、IF〜THEN形式のルールが逐次的に追加される場合、複数のIF〜THEN形式のルール間で矛盾関係や冗長関係が生じている可能性のあるルールを特定する技術が求められていた。
By the way, in a plurality of IF to THEN format rules including conditions and results, the classification or search condition indicated by each IF is indicated by a numerical range, and is associated with the attribute indicated by THEN by a combination of the numerical ranges. In this case, each time new data is added, a numerical value range and an attribute indicated by the IF-THEN rule are added. For example, an accounting department of a company may create and manage a list showing expenses to be borne by each organization for each product using spreadsheet software or the like. In the list showing the expenses that each organization bears for each product, the expenses that each organization bears are data and rules in the IF to THEN format over time from the start of product development to the completion of mass production of the product. Sometimes added. In such a case, for the same product, the result indicated by THEN even though the conditions indicated by IF are the same between the added IF-THEN rule and the previously added IF-THEN rule. There is a possibility that a contradictory relationship in which the two are different and a redundant relationship in which the IF to THEN rules are the same or a part of the rules overlap.
For this reason, when rules in the IF-THEN format are added sequentially, there is a need for a technique for identifying a rule that may have a contradiction or redundancy relationship between a plurality of rules in the IF-THEN format. .

そこでこの発明は、上記の課題を解決することのできるルール検証装置、ルール検証方法、及びプログラムを提供することを目的としている。   Accordingly, an object of the present invention is to provide a rule verification device, a rule verification method, and a program that can solve the above-described problems.

上記目的を達成するために、本発明の一態様によれば、ルール検証装置は、凸包生成部と、重複判定部と、重複ルール特定部と、ルール分割部とを備える。前記凸包生成部は、レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のルールの各ルールに基づいて凸包を生成する。前記重複判定部は、前記凸包生成部が生成した複数の凸包の間に重複があるか否かを判定する。前記重複ルール特定部は、前記重複判定部が重複があると判定した凸包が示すルールの組み合わせを特定する。前記ルール分割部は、前記重複ルール特定部が特定したルールの組み合わせのうちの1つのルールを構成する前記レコードの値の範囲の組み合わせから他のルールと重複する範囲の何れか1つを除外することで、前記重複を解消する分割の新たなルールを生成する。 In order to achieve the above object, according to one aspect of the present invention, a rule verification device includes a convex hull generation unit, a duplication determination unit, a duplication rule specification unit, and a rule division unit. The convex hull generating unit generates a convex hull based on each rule of a plurality of rules in which a combination of record value ranges is associated with an attribute of the record. The overlap determination unit determines whether there is an overlap between the plurality of convex hulls generated by the convex hull generation unit. The duplication rule specifying unit specifies a combination of rules indicated by a convex hull that the duplication judgment unit judges to have duplication. The rule division unit excludes any one of the ranges overlapping with other rules from the combination of the value ranges of the records constituting one rule of the rule combinations specified by the duplication rule specifying unit. Thus, a new division rule for eliminating the duplication is generated.

また本発明の別の態様によれば、前記ルール検証装置は、関係判定部を備える。前記関係判定部は、前記重複ルール特定部が特定した凸包が示すルールの組み合わせのうちの2つのルールが示す属性に基づいて、当該2つのルールが矛盾関係と冗長関係の何れであるかを判定する。   According to another aspect of the present invention, the rule verification device includes a relationship determination unit. The relationship determination unit determines whether the two rules are inconsistent or redundant based on attributes indicated by two rules of the combination of rules indicated by the convex hull specified by the duplication rule specifying unit. judge.

また本発明の別の態様によれば、前記ルール検証装置が備える前記関係判定部は、前記重複ルール特定部が特定した凸包が示すルールの組み合わせのうちの2つのルールが示す属性が異なる場合、当該2つのルールが矛盾関係にあると判定する。   Moreover, according to another aspect of the present invention, the relation determination unit provided in the rule verification device has different attributes indicated by two rules of a combination of rules indicated by the convex hull specified by the duplication rule specifying unit , It is determined that the two rules are in a contradictory relationship.

また本発明の別の態様によれば、前記ルール検証装置備える前記ルール分割部は、前記凸包が示すルールを分割する。当該ルール分割部は、前記重複ルール特定部が特定した凸包が示すルールの組み合わせのうちの2つのルールが矛盾関係にあると前記関係判定部が判定した場合、当該2つのルールをユーザ指示に基づいて分割する。 According to another aspect of the present invention, the rule division portion in which the rule verification device comprises divides a rule the convex hull is shown. When the relation determination unit determines that two rules out of a combination of rules indicated by the convex hull specified by the duplication rule specification unit are in a contradiction, the rule division unit uses the two rules as a user instruction. Split based on.

また本発明の別の態様によれば、前記ルール検証装置が備える前記関係判定部は、前記重複ルール特定部が特定した凸包が示すルールの組み合わせのうちの2つのルールが示す属性が同一である場合、当該2つのルールが冗長関係にあると判定する。   According to another aspect of the present invention, the relationship determination unit included in the rule verification device has the same attribute indicated by two rules in the combination of rules indicated by the convex hull specified by the duplication rule specifying unit. If there is, it is determined that the two rules are in a redundant relationship.

また本発明の別の態様によれば、前記ルール検証装置は、包含凸包算出部を備える。前記包含凸包算出部は、前記重複ルール特定部が特定した凸包が示すルールの組み合わせのうちの2つのルールが冗長関係にあると前記関係判定部が判定した場合、当該2つのルールに対応する2つの凸包を包含する包含凸包を算出する。   According to another aspect of the present invention, the rule verification device includes an inclusive convex hull calculation unit. The inclusion convex hull calculation unit corresponds to the two rules when the relation determination unit determines that two rules of the combination of rules indicated by the convex hull specified by the duplication rule specification unit are in a redundant relationship. An inclusive convex hull including two convex hulls is calculated.

また本発明の別の態様によれば、ルール検証装置は、ルール提示部を備える。前記ルール提示部は、前記凸包または前記包含凸包が示すルールを表示部に表示する。当該ルール提示部は、前記包含凸包算出部が算出した前記包含凸包と他の凸包とに重複があるか否かを前記重複判定部が判定し、当該重複判定部が前記包含凸包と他の凸包とに重複がないと判定した場合の前記包含凸包が示すルールや、前記ルール分割部が分割した前記凸包が示すルールを表示部に表示する。   According to another aspect of the present invention, the rule verification device includes a rule presentation unit. The rule presentation unit displays a rule indicated by the convex hull or the inclusion convex hull on a display unit. The rule presenting unit determines whether or not there is an overlap between the inclusion convex hull calculated by the inclusion convex hull calculation unit and another convex hull, and the duplication determination unit determines whether the overlapping determination hull is the inclusion convex hull. And the rule indicated by the convex hull when it is determined that there is no overlap between the convex hull and the rule indicated by the convex hull divided by the rule dividing unit are displayed on the display unit.

また本発明の別の態様によれば、ルール検証装置は、包含凸包算出部と、ルール提示部とを備える。前記包含凸包算出部は、前記レコードの同一の属性に係るルールに基づいて生成された凸包を包含する包含凸包を算出する。前記ルール提示部は、前記凸包または前記包含凸包が示すルールを表示部に表示する。 According to another aspect of the present invention, rule verification apparatus comprises a hull含凸follicle calculator, and a rule presentation unit. Before SL inclusion convex hull calculation unit calculates the inclusion convex hull encompasses convex hull generated based on rules according to the same attribute of the record. The rule presentation unit displays a rule indicated by the convex hull or the inclusion convex hull on a display unit.

また本発明の別の態様によれば、ルール検証方法は、レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のルールの各ルールに基づいて凸包を生成し、複数の凸包の間に重複があるか否かを判定し、重複があると判定した凸包が示すルールの組み合わせを特定し、特定したルールの組み合わせのうちの1つのルールを構成する前記レコードの値の範囲の組み合わせから他のルールと重複する範囲の何れか1つを除外することで、前記重複を解消する分割の新たなルールを生成する。 According to another aspect of the present invention, the rule verification method generates a convex hull based on each rule of a plurality of rules in which a combination of record value ranges and attributes of the record are associated with each other. It is determined whether or not there is overlap between hulls, the combination of rules indicated by the convex hull that is determined to be overlapping is specified, and the value of the record that constitutes one rule of the specified rule combinations By excluding any one of the ranges overlapping with other rules from the combination of ranges, a new rule for division that eliminates the overlap is generated.

また本発明の別の態様によれば、プログラムは、ルール検証装置のコンピュータを、レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のルールの各ルールに基づいて凸包を生成する凸包生成手段と、前記凸包生成手段が生成した複数の凸包の間に重複があるか否かを判定する重複判定手段と、前記重複判定手段が重複があると判定した凸包が示すルールの組み合わせを特定する重複ルール特定手段、前記重複ルール特定手段が特定したルールの組み合わせのうちの1つのルールを構成する前記レコードの値の範囲の組み合わせから他のルールと重複する範囲の何れか1つを除外することで、前記重複を解消する分割の新たなルールを生成するルール分割手段として機能させる。
According to another aspect of the present invention, a program generates a convex hull based on each rule of a plurality of rules that associates a combination of a record value range and a record attribute. A convex hull generation unit, a duplication determination unit for determining whether there is an overlap between the plurality of convex hulls generated by the convex hull generation unit, and a convex hull for which the duplication determination unit determines that there is an overlap. Duplicate rule specifying means for specifying a combination of rules to be displayed , any of ranges that overlap with other rules from a combination of value ranges of the records constituting one rule among the combinations of rules specified by the duplicate rule specifying means By excluding one of these, it is made to function as a rule dividing means for generating a new rule for dividing to eliminate the duplication.

本発明の実施形態によるルール検証装置によれば、IF〜THEN形式のルールが逐次的に追加される場合、追加したIF〜THEN形式のルールとそれ以前に追加したIF〜THEN形式のルールとの間で矛盾関係や冗長関係が生じている可能性のあるルールを特定することができる。   According to the rule verification device according to the embodiment of the present invention, when the IF-THEN format rule is added sequentially, the added IF-THEN format rule and the previously added IF-THEN format rule It is possible to identify rules that may have contradictory relationships or redundant relationships between them.

本発明の第一の実施形態によるルール検証装置10の構成の一例を示す図である。It is a figure which shows an example of a structure of the rule verification apparatus 10 by 1st embodiment of this invention. 本発明の第一の実施形態による記憶部110が記憶しているIF〜THENルールの一例を示す図である。It is a figure which shows an example of the IF-THEN rule which the memory | storage part 110 by 1st embodiment of this invention has memorize | stored. 本発明の第一の実施形態において製品の管理責任の組織(ここでは課)を示す管理元コード(責任課)が識別子RN0であると特定する際に使用されるIF〜THENルールの一例を示す図である。An example of the IF-THEN rule used when specifying that the management source code (responsibility section) indicating the organization responsible for product management (here, section) in the first embodiment of the present invention is the identifier RN0 is shown. FIG. 本発明の第一の実施形態によるルール検証装置10の処理フローの一例を示す図である。It is a figure which shows an example of the processing flow of the rule verification apparatus 10 by 1st embodiment of this invention. 凸包生成部101がステップS2の処理で生成する凸包の一例を示す図である。It is a figure which shows an example of the convex hull which the convex hull production | generation part 101 produces | generates by the process of step S2. 関係判定部104が冗長関係にある部分を包含する包含凸包を算出する際に行う判断の例を示す図である。It is a figure which shows the example of the judgment performed when the relationship determination part 104 calculates the inclusion convex hull which includes the part in a redundant relationship. 関係判定部104が冗長関係にある部分を包含する包含凸包を算出する際に行う判断の例を示す図である。It is a figure which shows the example of the judgment performed when the relationship determination part 104 calculates the inclusion convex hull which includes the part in a redundant relationship. 関係判定部104が冗長関係にある部分を包含する包含凸包を算出する際に行う判断の例を示す図である。It is a figure which shows the example of the judgment performed when the relationship determination part 104 calculates the inclusion convex hull which includes the part in a redundant relationship. 図9は、IF〜THEN形式のルールにおける矛盾関係の例を示す図である。FIG. 9 is a diagram illustrating an example of the contradiction in the IF to THEN format rules. IFが示す条件が2つあり2つのルールの管理元コード(責任課)が異なる場合にルール検証装置10が行う矛盾があるか否かの判定の一例を示す図である。It is a figure which shows an example of determination of whether there is a contradiction which the rule verification apparatus 10 performs when there are two conditions which IF shows and the management source codes (responsibility section) of two rules differ. 本発明の第二の実施形態による記憶部110が記憶しているIF〜THENルールの一例を示す図である。It is a figure which shows an example of the IF-THEN rule which the memory | storage part 110 by 2nd embodiment of this invention has memorize | stored. 本発明の第二の実施形態において製品の管理責任の組織を示す管理元コード(責任課)が識別子RN0であると特定する際に使用されるIF〜THENルールの一例を示す図である。It is a figure which shows an example of IF-THEN rule used when specifying that the management origin code (responsibility section) which shows the organization of the responsibility of management of a product is identifier RN0 in 2nd embodiment of this invention.

<第一の実施形態>
図1は、本発明の第一の実施形態によるルール検証装置10の構成の一例を示す図である。
図1で示すように、第一の実施形態によるルール検証装置10は、凸包生成部101と、重複判定部102と、重複ルール特定部103と、関係判定部104と、ルール分割部105と、包含凸包算出部106と、ルール提示部107と、記憶部110と、表示部120とを備える。
<First embodiment>
FIG. 1 is a diagram showing an example of the configuration of the rule verification device 10 according to the first embodiment of the present invention.
As shown in FIG. 1, the rule verification device 10 according to the first embodiment includes a convex hull generation unit 101, an overlap determination unit 102, an overlap rule specification unit 103, a relationship determination unit 104, and a rule division unit 105. , An inclusive convex hull calculation unit 106, a rule presentation unit 107, a storage unit 110, and a display unit 120.

ルール検証装置10が備える凸包生成部101は、記憶部110が記憶しているレコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のルールの各ルールに基づいて凸包を生成する。なお、レコードの値の範囲の組み合わせとは、IF〜THEN形式で示されるルール(以下、IF〜THENルール)のIFによって示される条件のことである。また、レコードの属性とは、IF〜THENルールのTHENによって示される結果のことである。   The convex hull generation unit 101 included in the rule verification device 10 generates a convex hull based on each rule of a plurality of rules in which combinations of record value ranges stored in the storage unit 110 are associated with attributes of the record. To do. The combination of the record value ranges is a condition indicated by IF of a rule (hereinafter referred to as IF-THEN rule) indicated in IF-THEN format. The record attribute is a result indicated by THEN of the IF to THEN rule.

重複判定部102は、凸包生成部101が生成した複数の凸包の間に重複があるか否かを判定する。
重複ルール特定部103は、重複判定部102が重複があると判定した凸包が示すIF〜THENルールの組み合わせを特定する。
The overlap determination unit 102 determines whether there is an overlap between the plurality of convex hulls generated by the convex hull generation unit 101.
The duplication rule specifying unit 103 specifies a combination of IF to THEN rules indicated by the convex hulls that the duplication determination unit 102 has determined to have duplication.

関係判定部104は、重複ルール特定部103が特定した凸包が示すIF〜THENルールの組み合わせのうちの2つのIF〜THENルールが示す属性に基づいて、当該2つのIF〜THENルールが矛盾関係と冗長関係の何れであるかを判定する。関係判定部104は、重複ルール特定部103が特定した凸包が示すIF〜THENルールの組み合わせのうちの2つのIF〜THENルールが示す属性が異なる場合、当該2つのIF〜THENルールが矛盾関係にあると判定する。また、関係判定部104は、重複ルール特定部103が特定した凸包が示すIF〜THENルールの組み合わせのうちの2つのIF〜THENルールが示す属性が同一である場合、当該2つのIF〜THENルールが冗長関係にあると判定する。   The relationship determination unit 104 determines whether the two IF to THEN rules are inconsistent based on the attributes indicated by the two IF to THEN rules among the combinations of IF to THEN rules indicated by the convex hull specified by the duplication rule specifying unit 103. And the redundant relationship is determined. When the attributes indicated by the two IF-THEN rules in the combination of IF-THEN rules indicated by the convex hull specified by the duplication rule specifying unit 103 are different, the relationship determination unit 104 determines that the two IF-THEN rules are inconsistent. It is determined that Further, when the attributes indicated by the two IF to THEN rules in the combination of IF to THEN rules indicated by the convex hull specified by the duplication rule specifying unit 103 are the same, the relationship determination unit 104 determines that the two IF to THEN It is determined that the rule is in a redundant relationship.

ルール分割部105は、重複ルール特定部103が特定した凸包が示すIF〜THENルールの組み合わせのうちの2つのIF〜THENルールが矛盾関係にあると関係判定部104が判定した場合、当該2つのIF〜THENルールをユーザ指示に基づいて分割する。
包含凸包算出部106は、重複ルール特定部103が特定した凸包が示すIF〜THENルールの組み合わせのうちの2つのIF〜THENルールが冗長関係にあると関係判定部104が判定した場合、当該2つのIF〜THENルールに対応する2つの凸包を包含する包含凸包を算出する。
When the relationship determination unit 104 determines that two IF to THEN rules of the combination of IF to THEN rules indicated by the convex hull specified by the duplication rule specifying unit 103 are in a contradictory relationship, the rule dividing unit 105 One IF-THEN rule is divided based on a user instruction.
The inclusive convex hull calculating unit 106, when the relationship determining unit 104 determines that two IF to THEN rules of the combination of IF to THEN indicated by the convex hull specified by the duplication rule specifying unit 103 are in a redundant relationship, An inclusive convex hull including two convex hulls corresponding to the two IF to THEN rules is calculated.

ルール提示部107は、IF〜THENルールの矛盾関係を解消する分割の候補や冗長関係を解消する候補を表示など、ユーザに報知する情報を表示する。
記憶部110は、レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のIF〜THENルールなど、ルール検証装置10の処理で必要となる種々の情報を記憶している。
表示部120は、重複判定部102が包含凸包と他の凸包とに重複がないと判定した場合の包含凸包が示すIF〜THENルールや、ルール分割部105が分割した凸包が示すIF〜THENルールなど、ユーザに報知する種々の情報を表示する。
The rule presenting unit 107 displays information to be notified to the user, such as displaying a division candidate for canceling the contradictory relationship of the IF to THEN rules and a candidate for canceling the redundant relationship.
The storage unit 110 stores various information necessary for processing of the rule verification device 10 such as a plurality of IF to THEN rules in which combinations of record value ranges are associated with attributes of the record.
The display unit 120 indicates the IF to THEN rule indicated by the inclusion convex hull when the overlap determination unit 102 determines that there is no overlap between the inclusion convex hull and other convex hulls, or the convex hull divided by the rule division unit 105 Various information notified to the user, such as IF to THEN rules, is displayed.

図2は、本発明の第一の実施形態による記憶部110が記憶しているIF〜THENルールの一例を示す図である。
また、図3は、本発明の第一の実施形態において製品の管理責任の組織(ここでは課)を示す管理元コード(責任課)が識別子RN0であると特定する際に使用されるIF〜THENルールの一例を示す図である。
FIG. 2 is a diagram illustrating an example of IF to THEN rules stored in the storage unit 110 according to the first embodiment of the present invention.
FIG. 3 is a diagram illustrating an example of IF to be used when the management source code (responsibility section) indicating the product management responsibility organization (section in this case) is the identifier RN0 in the first embodiment of the present invention. It is a figure which shows an example of a THEN rule.

図2は、ルール#と、シリアル#と、製品#と、品目コードと、原価要素と、管理元コード(管理課)とを関連付けている複数のIF〜THENルールを示している。例えば、ルール#1は、シリアル#の識別子172と製品#の識別子1とで特定される製品である。そして、品目コード“pn〜pn+1”、原価要素“an〜an+1”は、“最小値〜最大値”の形式で表したIF〜THENルールにおけるIFが示す条件の数値範囲である。例えば、ルール#1において、品目コードの最小値はpnであり、最大値はpn+1である。また、ルール#1において、原価要素の最小値はanであり、最大値はan+1である。
また、ルール#1において、シリアル#の識別子172と製品#の識別子1とで特定される製品に対して、IFが示す条件が、品目コードがpn〜pn+1の間であり、原価要素がan〜an+1である場合、THENが示す製品の管理責任の組織(責任課)はRU1となる。なお、シリアル#は、#1から記録されている。
FIG. 2 shows a plurality of IF to THEN rules that associate rule #, serial #, product #, item code, cost element, and management source code (management section). For example, rule # 1 is a product specified by an identifier 172 of serial # and an identifier 1 of product #. The item code “pn to pn + 1” and the cost element “an to an + 1” are the numerical range of the condition indicated by the IF in the IF to THEN rule expressed in the format of “minimum value to maximum value”. For example, in rule # 1, the minimum value of the item code is pn, and the maximum value is pn + 1. In rule # 1, the minimum value of the cost element is an, and the maximum value is an + 1.
Further, in the rule # 1, for the product specified by the serial number identifier 172 and the product # identifier 1, the condition indicated by the IF is that the item code is between pn and pn + 1, and the cost element is an In the case of an + 1, the organization (responsibility section) responsible for managing the product indicated by THEN is RU1. Serial # is recorded from # 1.

また、図3で示したIF〜THENルールの例は、図2におけるルール#2に対するルールを示している。この図3は、IFが示す条件として、品目コードのレコードの値がcnとcn+1との間であり、かつ、原価要素のレコードの値がdnとdn+1との間である場合、THENが示す結果として管理元コード(責任課)のレコードの値がRN0となることを意味する。
なお、本発明の第一の実施形態によるルール検証装置10は、このようなIF〜THENルールが複数存在する場合に、その複数のルールにおいて、ルールの重複や矛盾を検出し、ルールの簡単化やルールの矛盾を是正する処理を行うものである。
Further, the example of the IF to THEN rule shown in FIG. 3 shows the rule for rule # 2 in FIG. This FIG. 3 shows the result indicated by THEN when the value of the item code record is between cn and cn + 1 and the value of the cost element record is between dn and dn + 1 as the condition indicated by the IF. It means that the value of the record of the management source code (responsibility section) is RN0.
Note that the rule verification device 10 according to the first embodiment of the present invention detects rule duplication and contradiction in a plurality of such IF to THEN rules, and simplifies the rules. And processing to correct the contradiction of rules.

図4は、本発明の第一の実施形態によるルール検証装置10の処理フローの一例を示す図である。
次に、図4から図8を用いて第一の実施形態によるルール検証装置10の処理フローについて説明する。
図4で示す第一の実施形態によるルール検証装置10が行う処理は、レコードの値の範囲の組み合わせ(IF〜THENルールのIFが示す条件)と当該レコードの属性(IF〜THENルールのTHENが示す結果)とを関連付けた複数のルールの各ルールに基づいて凸包を生成し、複数の凸包の間に重複があるか否かを判定し、重複があると判定された凸包が示すルールの組み合わせ、すなわち矛盾関係や冗長関係が生じている可能性のあるルールを特定する処理を含む。
FIG. 4 is a diagram illustrating an example of a processing flow of the rule verification device 10 according to the first embodiment of the present invention.
Next, the processing flow of the rule verification device 10 according to the first embodiment will be described with reference to FIGS.
The processing performed by the rule verification device 10 according to the first embodiment shown in FIG. 4 includes a combination of record value ranges (conditions indicated by IF of the IF to THEN rule) and an attribute of the record (THEN of the IF to THEN rule). A convex hull is generated based on each rule of the plurality of rules associated with each other, and it is determined whether or not there is an overlap between the plurality of convex hulls. It includes a process for specifying a rule combination, that is, a rule that may have a contradiction or redundancy.

まず、ルール検証装置10が備える凸包生成部101は、レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のルール、すなわち複数のIF〜THENルールを記憶部110から読み出す(ステップS1)。例えば、凸包生成部101が記憶部110から読み出す複数のIF〜THENルールは、図2で示したような、ルール#と、シリアル#と、製品#と、品目コードと、原価要素と、管理元コード(管理課)とを関連付けているルールである。
凸包生成部101は、記憶部110から複数のIF〜THENルールを読み出すと、読み出した複数の各IF〜THENルールのIFが示す各条件(この場合、品目コードと原価要素)の最小値〜最大値(範囲)に基づいて、凸包を求める(ステップS2)。
First, the convex hull generation unit 101 included in the rule verification device 10 reads out a plurality of rules, that is, a plurality of IF to THEN rules, associated with a combination of record value ranges and attributes of the record from the storage unit 110 (step S100). S1). For example, the plurality of IF to THEN rules that the convex hull generation unit 101 reads from the storage unit 110 include rule #, serial #, product #, item code, cost element, management, and the like as shown in FIG. This is a rule that associates the original code (management section).
When the convex hull generating unit 101 reads a plurality of IF to THEN rules from the storage unit 110, the minimum value of each condition (in this case, the item code and the cost element) indicated by the IF of each of the plurality of IF to THEN rules to be read A convex hull is obtained based on the maximum value (range) (step S2).

図5は、凸包生成部101がステップS2の処理で生成する凸包の一例を示す図である。
凸包生成部101は、図5で示すように、記憶部110から読み出した図2で示したような各IF〜THENルールにおける品目コードの最小値と最大値の2点と、各IF〜THENルールにおける原価要素の最小値と最大値の2点との組み合わせによって示される二次元平面上の4つの座標の点集合に対して凸包を求める。例えば、凸包生成部101は、分割統治法などの周知のアルゴリズムを用いて点集合から凸包を求めればよい。そして、凸包生成部101は、求めた凸包が示す情報を重複判定部102に出力する。
FIG. 5 is a diagram illustrating an example of the convex hull generated by the convex hull generating unit 101 in the process of step S2.
As shown in FIG. 5, the convex hull generation unit 101 has two points, the minimum value and the maximum value of the item code in each IF to THEN rule read from the storage unit 110 as shown in FIG. 2, and each IF to THEN. A convex hull is obtained for a point set of four coordinates on a two-dimensional plane indicated by a combination of the minimum value and the maximum value of the cost element in the rule. For example, the convex hull generation unit 101 may obtain a convex hull from a point set using a known algorithm such as a divide-and-conquer method. Then, the convex hull generation unit 101 outputs the information indicated by the obtained convex hull to the duplication determination unit 102.

重複判定部102は、凸包生成部101が生成した凸包が示す情報を入力すると、入力した二次元平面上の4つの座標を含む複数の凸包のうち2つの凸包を選択するすべての組み合わせに対して凸包に重複があるか否かを判定する(ステップS3)。例えば、重複判定部102は、凸包多面体の重なりを判定するGJK(Gilbert−Johnson−Keerthi)アルゴリズムなど周知のアルゴリズムを用いて凸包に重複があるか否かを判定すればよい。重複判定部102は、二次元平面上の4つの座標を含む複数の凸包のうち2つの凸包を選択するすべての組み合わせに対して凸包に重複がないと判定した場合、凸包に重複がないと判定する(ステップS3、NO)。
また、重複判定部102は、二次元平面上の4つの座標を含む複数の凸包のうち2つの凸包を選択するすべての組み合わせに対して凸包に重複があると判定した場合、凸包に重複があると判定する(ステップS3、YES)。重複判定部102は、凸包に重複があると判定した場合、重複があると判定された凸包が示す情報を重複ルール特定部103に出力する。
When the duplication determination unit 102 receives the information indicated by the convex hull generated by the convex hull generation unit 101, all of the plurality of convex hulls including the four coordinates on the input two-dimensional plane are selected. It is determined whether or not there is an overlap in the convex hull for the combination (step S3). For example, the overlap determination unit 102 may determine whether or not there is an overlap in the convex hull using a known algorithm such as a GJK (Gilbert-Johnson-Keerthi) algorithm that determines the overlap of the convex hull polyhedron. If the overlap determining unit 102 determines that there is no overlap in the convex hulls for all combinations that select two convex hulls out of a plurality of convex hulls including four coordinates on the two-dimensional plane, the overlapping hull overlaps It is determined that there is no (step S3, NO).
In addition, when the overlap determining unit 102 determines that there is an overlap in the convex hull for all combinations that select two convex hulls out of a plurality of convex hulls including four coordinates on the two-dimensional plane, Are determined to be duplicated (step S3, YES). If the overlap determination unit 102 determines that there is an overlap in the convex hull, the overlap determination unit 102 outputs information indicated by the convex hull determined to have overlap to the overlap rule specifying unit 103.

重複ルール特定部103は、重複があると判定された凸包が示す情報を入力すると、図2で示したような、レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のIF〜THENルールを記憶部110から読み出す。重複ルール特定部103は、例えば、記憶部110から読み出した複数のIF〜THENルールにおける各条件の範囲と、重複があると判定された凸包に相当するルールにおける各条件の範囲とを比較する。そして、重複ルール特定部103は、記憶部110から読み出した複数のIF〜THENルールにおける各条件の範囲と、重複があると判定された凸包に相当するルールにおける各条件の範囲とが一致するルールの組み合わせを、重複があると判定された凸包が示すルールの組み合わせであると特定する(ステップS4)。重複ルール特定部103は、重複があると判定された凸包が示すルールの組み合わせを関係判定部104に出力する。   When the duplication rule specifying unit 103 inputs information indicated by the convex hull that is determined to have duplication, a plurality of IFs associating the combination of record value ranges and the attributes of the record as shown in FIG. Read the ~ THEN rule from the storage unit 110. For example, the duplication rule specifying unit 103 compares the range of each condition in the plurality of IF to THEN rules read from the storage unit 110 with the range of each condition in the rule corresponding to the convex hull determined to have duplication. . Then, the duplication rule specifying unit 103 matches the range of each condition in the plurality of IF to THEN rules read from the storage unit 110 with the range of each condition in the rule corresponding to the convex hull determined to have duplication. The rule combination is identified as the rule combination indicated by the convex hull that is determined to have an overlap (step S4). The duplication rule specifying unit 103 outputs a combination of rules indicated by the convex hull determined to have duplication to the relationship judgment unit 104.

関係判定部104は、重複があると判定された凸包が示すルールの組み合わせを重複ルール特定部103から入力すると、それら2つのルールの属性が同一であるか否かを判定する(ステップS5)。
関係判定部104は、重複があると判定された凸包が示す2つのルールの属性が同一であると判定した場合(ステップS5、YES)、その2つのルールが冗長関係にあると判定する(ステップS6)。そして、関係判定部104は、冗長関係にあると判定した2つのルールを包含凸包算出部106に出力する(ステップS7)。
When the relationship determination unit 104 inputs a combination of rules indicated by the convex hull determined to have overlap from the overlap rule specifying unit 103, the relationship determination unit 104 determines whether the attributes of the two rules are the same (step S5). .
When the relationship determination unit 104 determines that the attributes of the two rules indicated by the convex hulls that are determined to have overlap are the same (YES in step S5), the relationship determination unit 104 determines that the two rules are in a redundant relationship ( Step S6). Then, the relationship determination unit 104 outputs the two rules determined to be in a redundant relationship to the inclusion convex hull calculation unit 106 (step S7).

図6から図8は、関係判定部104が冗長関係にある部分を包含する包含凸包を算出する際に行う判断の例を示す図である。
まず、図6を用いて、複数のルールが包含関係にある場合に関係判定部104が判断する包含関係について説明する。
図6に示す関係判定部104が判断する包含関係の例は、図2で示したIF〜THENルール#1とルール#3についての包含関係である。
図6における(1)で示すように、関係判定部104が記憶部110からルール#1とルール#3とを読み出したとする。ルール#1における原価要素の範囲がan〜an+1であり、ルール#3における原価要素の範囲がbn〜bn+1であり、bn<an<an+1<bn+1の関係が成り立つ場合、ルール#3はルール#1を包含している。この場合、関係判定部104は、新たな原価要素のルールとして、bn〜bn+1を生成する。
ただし、図6における(2)で示すように、例えば、bn<an<an+1<sn<sn+1<bn+1の関係が成り立ち、管理元コード(この場合、識別子USZ)となるルール(この場合、ルール#5)がbn〜bn+1に1つでも存在している場合には、関係判定部104は、新たな原価要素のルールは生成しない。
6 to 8 are diagrams illustrating examples of determinations performed when the relationship determination unit 104 calculates an inclusive convex hull including a portion having a redundant relationship.
First, with reference to FIG. 6, an inclusion relationship that is determined by the relationship determination unit 104 when a plurality of rules have an inclusion relationship will be described.
An example of the inclusion relationship determined by the relationship determination unit 104 illustrated in FIG. 6 is the inclusion relationship for the IF to THEN rule # 1 and the rule # 3 illustrated in FIG.
Assume that the relationship determination unit 104 reads out rule # 1 and rule # 3 from the storage unit 110, as indicated by (1) in FIG. When the range of cost elements in rule # 1 is an to an + 1, the range of cost elements in rule # 3 is bn to bn + 1, and the relationship bn <an <an + 1 <bn + 1 holds, rule # 3 is rule # 1 Is included. In this case, the relationship determination unit 104 generates bn to bn + 1 as new cost element rules.
However, as indicated by (2) in FIG. 6, for example, a rule (in this case, rule #) in which the relationship of bn <an <an + 1 <sn <sn + 1 <bn + 1 holds and becomes the management source code (in this case, the identifier USZ). When at least one of 5) exists in bn to bn + 1, the relationship determination unit 104 does not generate a new cost element rule.

次に、図7を用いて、複数のルールが分割関係にある場合に関係判定部104が判断する分割関係について説明する。
図7に示す関係判定部104が判断する分割関係の例は、図2で示したIF〜THENルール#1とルール#3とルール#6についての分割関係である。
図7における(1)で示すように、関係判定部104が記憶部110からルール#1とルール#3とルール#6とを読み出したとする。ルール#1における原価要素の範囲がan〜an+1であり、ルール#3における原価要素の範囲がbn〜bn+1であり、ルール#6における原価要素の範囲がcn〜cn+1であり、an<an+1=bn<bn+1<cn<cn+1の関係が成り立つ場合、ルール#1とルール#3とルール#6とは分割されている。この場合、関係判定部104は、最大凸包を用いて新たな原価要素のルールとして、an〜cn+1を生成する。
ただし、図7における(2)で示すように、例えば、an<an+1=bn<bn+1<sn<sn+1<cn<cn+1の関係が成り立ち、管理元コード(この場合、識別子USZ)となるルールがbn+1〜cnに存在している場合には、関係判定部104は、新たな原価要素のルールとして、an〜bn+1を生成する。
Next, with reference to FIG. 7, the division relationship determined by the relationship determination unit 104 when a plurality of rules are in a division relationship will be described.
An example of the division relationship determined by the relationship determination unit 104 illustrated in FIG. 7 is the division relationship for the IF to THEN rule # 1, rule # 3, and rule # 6 illustrated in FIG.
Assume that the relationship determining unit 104 reads out rule # 1, rule # 3, and rule # 6 from the storage unit 110, as indicated by (1) in FIG. The range of cost elements in rule # 1 is an to an + 1, the range of cost elements in rule # 3 is bn to bn + 1, the range of cost elements in rule # 6 is cn to cn + 1, and an <an + 1 = bn When the relationship <bn + 1 <cn <cn + 1 is satisfied, rule # 1, rule # 3, and rule # 6 are divided. In this case, the relationship determination unit 104 generates an to cn + 1 as a new cost element rule using the maximum convex hull.
However, as indicated by (2) in FIG. 7, for example, the relationship of an <an + 1 = bn <bn + 1 <sn <sn + 1 <cn <cn + 1 holds, and the rule that becomes the management source code (in this case, the identifier USZ) is bn + 1. If it is present in ~ cn, the relationship determination unit 104 generates an ~ bn + 1 as a new cost element rule.

次に、図8を用いて、複数のルールが重複関係にある場合に関係判定部104が判断する重複関係について説明する。
図8に示す関係判定部104が判断する重複関係の例は、図2で示したIF〜THEN形式のルール#1とルール#3についての重複関係である。
図8で示すように、関係判定部104が記憶部110からルール#1とルール#3とを読み出したとする。ルール#1における原価要素の範囲がan〜an+1であり、ルール#3における原価要素の範囲がbn〜bn+1であり、an<bn<an+1<bn+1の関係が成り立つ場合、ルール#1とルール#3は重複している。この場合、関係判定部104は、新たな原価要素のルールとして、an〜bn+1を生成する。
Next, the overlapping relationship determined by the relationship determining unit 104 when a plurality of rules are in an overlapping relationship will be described with reference to FIG.
An example of the overlapping relationship determined by the relationship determining unit 104 illustrated in FIG. 8 is the overlapping relationship for the rules # 1 and # 3 in the IF to THEN format illustrated in FIG.
As shown in FIG. 8, it is assumed that the relationship determination unit 104 reads out rule # 1 and rule # 3 from the storage unit 110. When the range of cost elements in rule # 1 is an to an + 1, the range of cost elements in rule # 3 is bn to bn + 1, and the relationship of an <bn <an + 1 <bn + 1 holds, rule # 1 and rule # 3 Are overlapping. In this case, the relationship determination unit 104 generates an to bn + 1 as a new cost element rule.

なお、ここで説明した関係判定部104が生成する凸包は、例えば複数のルールの各ルールに対するIF条件の最小値と最大値とを点集合とし、アルゴリズムである分割統治法(Divide and Comquer Method)などの周知のアルゴリズムを用いることで実現することができる。
ここまでが、ステップS7で関係判定部104が読み出した複数のルールの各ルールに対するIF条件の最小値〜最大値(範囲)に基づいて凸包を求める例についての説明である。このステップS7の処理により、包含関係、分割関係、重複関係といった冗長関係を示す複数のルールを縮退することによって冗長関係を解消することができる。
なお、ステップS7で関係判定部104が複数のルールを縮退することによって冗長関係を解消する処理は、各条件における複数のルールのすべての組み合わせに対して行う。
Note that the convex hull generated by the relationship determination unit 104 described here uses, for example, the minimum and maximum IF conditions for each rule of a plurality of rules as a point set, and is an algorithm such as Divide and Conquer Method (Divide and Command Method). ) Or the like.
This is the description of the example in which the convex hull is obtained based on the minimum value to the maximum value (range) of the IF condition for each rule of the plurality of rules read by the relationship determination unit 104 in step S7. By the processing in step S7, the redundant relationship can be eliminated by degenerating a plurality of rules indicating the redundant relationship such as the inclusion relationship, the division relationship, and the overlapping relationship.
Note that the process of canceling the redundant relationship by the relationship determining unit 104 degenerating the plurality of rules in step S7 is performed for all combinations of the plurality of rules in each condition.

また、関係判定部104は、重複があると判定された凸包が示す2つのルールの属性が同一でないと判定した場合(ステップS5、NO)、その2つのルールが矛盾関係にあると判定する(ステップS8)。そして、関係判定部104は、矛盾関係にあると判定した2つのルールをルール分割部105に出力する(ステップS9)。   In addition, when the relationship determination unit 104 determines that the attributes of the two rules indicated by the convex hulls that are determined to have overlap are not the same (NO in step S5), the relationship determination unit 104 determines that the two rules are in a contradictory relationship. (Step S8). Then, the relationship determining unit 104 outputs the two rules determined to be in a contradictory relationship to the rule dividing unit 105 (step S9).

ルール分割部105は、関係判定部104が矛盾関係にあると判定した2つのルールを入力すると、入力した2つの各ルールに対して生成した凸包が示す二次元平面上の4つの座標を含む範囲の重複する部分、すなわち矛盾関係にある部分をどのように分割し、矛盾関係を解消する候補を生成する(ステップS10)。   When the rule determination unit 105 inputs two rules determined to be inconsistent by the relationship determination unit 104, the rule division unit 105 includes four coordinates on the two-dimensional plane indicated by the convex hull generated for each of the two input rules. How to divide the overlapping parts, that is, the parts in contradiction, and generate candidates for eliminating the contradiction (step S10).

図9は、IF〜THEN形式のルールにおける矛盾関係の例を示す図である。
図9を用いて説明する矛盾関係の例は、図2で示したIF〜THEN形式のルール#1とルール#6についての矛盾関係である。
図9で示すように、凸包生成部101が記憶部110からルール#1とルール#6とを読み出したとする。ルール#1における原価要素の範囲がan〜an+1であり、ルール#6における原価要素の範囲がsn〜sn+1であり、an<sn<an+1<sn+1の関係が成り立ち、管理元コード(この場合、識別子USZ)を示すルールがan〜an+1に存在している場合には、ルール#1とルール#6は矛盾している。しかしながら、IFを示す条件が1つ(この場合、原価要素)である場合、sn〜an+1の範囲が新ルール#1と新ルール#5の何れに含めるかを判断し、新たな原価要素のルール#1としてan〜a’n+1を生成し、新たな原価要素のルール#5としてa’n+1〜bn+1を生成する。ただし、IFが示す条件が1つである場合、論理的には問題ない。
FIG. 9 is a diagram illustrating an example of the contradiction in the IF to THEN format rules.
An example of the contradiction relationship described with reference to FIG. 9 is the conflict relationship between rule # 1 and rule # 6 in the IF to THEN format shown in FIG.
As shown in FIG. 9, it is assumed that the convex hull generation unit 101 reads out rule # 1 and rule # 6 from the storage unit 110. The range of cost elements in rule # 1 is an to an + 1, the range of cost elements in rule # 6 is sn to sn + 1, and the relationship of an <sn <an + 1 <sn + 1 holds, and the management source code (in this case, identifier When a rule indicating USZ) exists in an to an + 1, rule # 1 and rule # 6 are contradictory. However, if there is one condition indicating IF (in this case, a cost element), it is determined whether the range of sn to an + 1 is included in the new rule # 1 or the new rule # 5, and a new cost element rule An to a′n + 1 are generated as # 1, and a′n + 1 to bn + 1 are generated as rule # 5 of a new cost element. However, if the IF indicates one condition, there is no logical problem.

図10は、IFが示す条件が2つあり2つのルールの管理元コード(責任課)が異なる場合にルール検証装置10が行う矛盾があるか否かの判定の一例を示す図である。
この場合のIFが示す2つの条件は、原価要素と品目コードである。
IFが示す2つの条件の何れにも重複が存在しない場合、ルール検証装置10は、完全に矛盾がないと判定する。IFが示す2つの条件のうちの1条件のみ重複がある場合、ルール検証装置10は、理論的には問題なしと判定する。IFが示す2つの条件の両方の条件で重複がある場合、ルール検証装置10は、矛盾ありと判定する。例えば、ルール分割部105が生成する矛盾関係を解消する分割の候補は、2つのルールの何れか一方から重複する範囲を除外する分割である。ルール分割部105は、生成した矛盾関係を解消する分割の候補をルール指示部107に出力する(ステップS11)。
ルール提示部107は、ルール分割部105が矛盾関係を解消する分割の候補を入力すると、ルール分割部105が生成した矛盾関係を解消する分割の候補を表示させる信号を表示部120に出力する(ステップS12)。
表示部120は、ルール提示部107から矛盾関係を解消する分割の候補を表示させる信号を入力すると、入力した信号に基づいて矛盾関係を解消する分割の候補を表示する(ステップS13)。なお、表示部120は、矛盾関係にある部分をユーザが認識しやすい、例えば赤色で塗りつぶされた四角形で表示する。
ここで、ユーザが矛盾関係を解消する分割の候補に基づいて、分割を指定するユーザ操作を行う。すると、ルール分割部105は、そのユーザ操作に基づいて、ルールを分割する(ステップS14)。
次に、ルール検証装置10の制御部は、ユーザ操作に基づいて、処理を終了するか否かを判定する(ステップS15)。ルール検証装置10の制御部は、ユーザが処理を終了するユーザ操作を行った場合(ステップS15、YES)、ルール検証装置10の処理を終了する。また、ルール検証装置10の制御部は、ユーザが処理を終了しないユーザ操作を行った場合(ステップS15、NO)、ステップS3の処理に戻る。
FIG. 10 is a diagram illustrating an example of determining whether there is a contradiction performed by the rule verification device 10 when there are two conditions indicated by the IF and the management source codes (responsibility section) of the two rules are different.
The two conditions indicated by the IF in this case are a cost element and an item code.
When there is no overlap in any of the two conditions indicated by the IF, the rule verification device 10 determines that there is no complete contradiction. When only one of the two conditions indicated by the IF is duplicated, the rule verification device 10 determines that there is no problem in theory. When there is an overlap in both of the two conditions indicated by the IF, the rule verification device 10 determines that there is a contradiction. For example, a candidate for division that eliminates the contradiction generated by the rule division unit 105 is division that excludes an overlapping range from one of two rules. The rule division unit 105 outputs the generated division candidates for eliminating the generated contradiction to the rule instruction unit 107 (step S11).
When the rule dividing unit 105 inputs a division candidate for eliminating the contradiction, the rule presenting unit 107 outputs a signal for displaying the division candidate for generating the contradiction generated by the rule dividing unit 105 to the display unit 120 ( Step S12).
When the display unit 120 receives a signal for displaying the candidate for division for eliminating the contradiction from the rule presenting unit 107, the display unit 120 displays the candidate for division for eliminating the contradiction based on the input signal (step S13). Note that the display unit 120 displays a part in a contradictory relationship as a rectangle that is easily recognized by the user, for example, painted in red.
Here, the user performs a user operation for designating division based on the division candidates for eliminating the contradiction. Then, the rule dividing unit 105 divides the rule based on the user operation (step S14).
Next, the control unit of the rule verification device 10 determines whether or not to end the process based on the user operation (step S15). When the user performs a user operation to end the process (step S15, YES), the control unit of the rule verification apparatus 10 ends the process of the rule verification apparatus 10. Moreover, the control part of the rule verification apparatus 10 returns to the process of step S3, when a user performs user operation which does not complete | finish a process (step S15, NO).

また、ステップS7で関係判定部104が冗長関係にあると判定した2つのルールを包含凸包算出部106に出力する。すると、包含凸包算出部106は、関係判定部104が冗長関係にあると判定した2つのルールを入力する。包含凸包算出部106は、入力した2つの各ルールに対して生成した凸包を示す二次元平面上の4つの座標を含む範囲の重複する部分、すなわち冗長関係にある部分を包含する包含凸包を算出し(ステップS16)、冗長関係を解消する候補を生成する。例えば、包含凸包算出部106が生成する冗長関係を解消する候補は、2つのルールに対応する2つの凸包を包含する周知のアルゴリズムを用いて求めた包含凸包である。包含凸包算出部106は、生成した冗長関係を解消する候補をルール指示部107に出力する(ステップS17)。
ステップS11でルール分割部105が矛盾関係を解消する分割の候補をルール指示部107に出力すると、ルール提示部107は、ルール分割部105が生成した矛盾関係を解消する分割の候補を表示させる信号を表示部120に出力する(ステップS18)。
また、ステップS13で包含凸包算出部106が冗長関係を解消する候補をルール指示部107に出力すると、ルール提示部107は、包含凸包算出部106が生成した冗長関係を解消する候補を表示させる信号を表示部120に出力する(ステップS19)。
また、表示部120は、ルール提示部107から冗長関係を解消する候補を表示させる信号を入力すると、入力した信号に基づいて冗長関係を解消する候補を表示する(ステップS20)。
次に、ルール検証装置10の制御部は、ユーザ操作に基づいて、処理を終了するか否かを判定する(ステップS21)。ルール検証装置10の制御部は、ユーザが処理を終了するユーザ操作を行った場合(ステップS21、YES)、ルール検証装置10の処理を終了する。また、ルール検証装置10の制御部は、ユーザが処理を終了しないユーザ操作を行った場合(ステップS21、NO)、ステップS3の処理に戻る。
In addition, the two rules that the relationship determining unit 104 determines to have a redundant relationship in step S <b> 7 are output to the inclusive convex hull calculating unit 106. Then, the inclusion convex hull calculation unit 106 inputs two rules that the relationship determination unit 104 determines to have a redundant relationship. The inclusive convex hull calculating unit 106 includes an overlapping convex part including a redundant part of a range including four coordinates on a two-dimensional plane indicating the convex hull generated for each of the two input rules. A hull is calculated (step S16), and a candidate for eliminating the redundant relationship is generated. For example, the candidate for eliminating the redundant relationship generated by the inclusive convex hull calculating unit 106 is an inclusive convex hull obtained using a known algorithm including two convex hulls corresponding to two rules. The inclusion convex hull calculation unit 106 outputs candidates for canceling the generated redundancy relationship to the rule instruction unit 107 (step S17).
When the rule division unit 105 outputs a division candidate for eliminating the contradiction relationship to the rule instruction unit 107 in step S11, the rule presentation unit 107 displays a signal for displaying the division candidate for eliminating the contradiction generated by the rule division unit 105. Is output to the display unit 120 (step S18).
In addition, when the inclusion convex hull calculation unit 106 outputs a candidate for canceling the redundancy relationship to the rule instruction unit 107 in step S13, the rule presentation unit 107 displays the candidate for canceling the redundancy relationship generated by the inclusion convex hull calculation unit 106. The signal to be output is output to the display unit 120 (step S19).
Moreover, if the display part 120 inputs the signal which displays the candidate which cancels a redundant relationship from the rule presentation part 107, it will display the candidate which cancels a redundant relation based on the input signal (step S20).
Next, the control unit of the rule verification device 10 determines whether or not to end the process based on the user operation (step S21). When the user performs a user operation to end the process (step S21, YES), the control unit of the rule verification apparatus 10 ends the process of the rule verification apparatus 10. Moreover, the control part of the rule verification apparatus 10 returns to the process of step S3, when a user performs user operation which does not complete | finish a process (step S21, NO).

以上、本発明の第一の実施形態によるルール検証装置10について説明した。
本発明の実施形態によるルール検証装置10は、凸包生成部101と、重複判定部102と、重複ルール特定部103とを備える。凸包生成部101は、レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のルールの各ルールに基づいて凸包を生成する。重複判定部102は、凸包生成部101が生成した複数の凸包の間に重複があるか否かを判定する。重複ルール特定部103は、重複判定部102が重複があると判定した凸包が示すルールの組み合わせを特定する。
このようにすれば、IF〜THEN形式のルールが逐次的に追加される場合、追加したIF〜THEN形式のルールとそれ以前に追加したIF〜THEN形式のルールとの間で矛盾関係や冗長関係が生じている可能性のあるルールを特定することができる。
また、ルール検証装置10は、関係判定部104、ルール分割部105、包含凸包算出部106、ルール提示部107、表示部120を更に備えることで、重複ルール特定部103が特定した矛盾関係や冗長関係が生じている可能性のあるルールを、視覚的にユーザに報知し、矛盾関係や冗長関係のないルールに是正することができる。
The rule verification device 10 according to the first embodiment of the present invention has been described above.
The rule verification device 10 according to the embodiment of the present invention includes a convex hull generation unit 101, an overlap determination unit 102, and an overlap rule specification unit 103. The convex hull generating unit 101 generates a convex hull based on each rule of a plurality of rules in which combinations of record value ranges are associated with attributes of the record. The overlap determination unit 102 determines whether there is an overlap between the plurality of convex hulls generated by the convex hull generation unit 101. The duplication rule specifying unit 103 specifies a combination of rules indicated by the convex hulls that the duplication determination unit 102 has determined to have duplication.
In this way, when IF-THEN format rules are added sequentially, there is a contradiction or redundancy relationship between the added IF-THEN format rules and the previously added IF-THEN format rules. It is possible to identify rules that may have occurred.
Further, the rule verification device 10 further includes a relationship determination unit 104, a rule division unit 105, an inclusive convex hull calculation unit 106, a rule presentation unit 107, and a display unit 120, so that the contradiction relationship specified by the duplication rule specification unit 103 It is possible to visually notify a user of a rule that may have a redundant relationship and correct it to a rule having no contradiction or redundant relationship.

<第二の実施形態>
次に、本発明の第二の実施形態によるルール検証装置10について説明する。
第二の実施形態による管理システム1の構成は、第一の実施形態による管理システム1と同様である。ただし、第二の実施形態による凸包生成部101が記憶部110から読み出すIF〜THENルールのIF条件は、第一の実施形態における品目コードと原価要素に加え、要求元と計上元が追加されている。
<Second Embodiment>
Next, the rule verification device 10 according to the second embodiment of the present invention will be described.
The configuration of the management system 1 according to the second embodiment is the same as that of the management system 1 according to the first embodiment. However, the IF condition of the IF to THEN rule that the convex hull generation unit 101 according to the second embodiment reads from the storage unit 110 includes a request source and a recording source in addition to the item code and the cost element in the first embodiment. ing.

図11は、本発明の第二の実施形態による記憶部110が記憶しているIF〜THENルールの一例を示す図である。
また、図12は、本発明の第二の実施形態において製品の管理責任の組織を示す管理元コード(責任課)が識別子RN0であると特定する際に使用されるIF〜THENルールの一例を示す図である。
FIG. 11 is a diagram illustrating an example of IF to THEN rules stored in the storage unit 110 according to the second embodiment of the present invention.
FIG. 12 shows an example of IF to THEN rules used when the management source code (responsibility section) indicating the organization responsible for product management is specified as the identifier RN0 in the second embodiment of the present invention. FIG.

図11は、ルール#と、シリアル#と、製品#と、要求元と、計上元と、品目コードと、原価要素と、管理元コード(管理課)とを関連付けている複数のIF〜THENルールを示している。例えば、ルール#1は、シリアル#の識別子172と製品#の識別子1とで特定される製品である。そして、要求元“zn〜zn+1”、計上元“dn〜dn+1”、品目コード“pn〜pn+1”、原価要素“an〜an+1”は、“最小値〜最大値”の形式で表したIF〜THENルールにおけるIFが示す条件の数値範囲である。例えば、ルール#1において、要求元の最小値はznであり、最大値はzn+1である。計上元の最小値はdnであり、最大値はdn+1である。品目コードの最小値はpnであり、最大値はpn+1である。また、ルール#1において、原価要素の最小値はanであり、最大値はan+1である。
また、ルール#1において、シリアル#の識別子172と製品#の識別子1とで特定される製品に対して、IFが示す条件が、要求元がzn〜zn+1の間であり、計上元がdn〜dn+1の間であり、品目コードがpn〜pn+1の間であり、原価要素がan〜an+1である場合、THENが示す製品の管理責任の組織(責任課)はRU1となる。なお、シリアル#は、#1から記録されている。
FIG. 11 shows a plurality of IF to THEN rules that associate rule #, serial #, product #, request source, accounting source, item code, cost element, and management source code (management section). Is shown. For example, rule # 1 is a product specified by an identifier 172 of serial # and an identifier 1 of product #. The request source “zn to zn + 1”, the recording source “dn to dn + 1”, the item code “pn to pn + 1”, and the cost element “an to an + 1” are IF to THEN expressed in the format of “minimum value to maximum value”. It is a numerical range of the condition indicated by IF in the rule. For example, in rule # 1, the minimum value of the request source is zn, and the maximum value is zn + 1. The minimum value of the recording source is dn, and the maximum value is dn + 1. The minimum value of the item code is pn, and the maximum value is pn + 1. In rule # 1, the minimum value of the cost element is an, and the maximum value is an + 1.
Further, in the rule # 1, for the product specified by the serial # identifier 172 and the product # identifier 1, the condition indicated by the IF is that the request source is between zn and zn + 1, and the accounting source is dn If it is between dn + 1, the item code is between pn and pn + 1, and the cost element is an to an + 1, the organization (responsibility section) of product management responsibility indicated by THEN is RU1. Serial # is recorded from # 1.

また、図12で示したIF〜THENルールの例は、図11におけるルール#2に対するルールを示している。この図12は、IFが示す条件として、要求元のレコードの値がznとzn+1との間であり、かつ、計上元のレコードの値がdnとdn+1との間であり、かつ、品目コードのレコードの値がcnとcn+1との間であり、かつ、原価要素のレコードの値がdnとdn+1との間である場合、THENが示す結果として管理元コード(責任課)のレコードの値がRN0となることを意味する。   Further, the example of the IF to THEN rule shown in FIG. 12 shows the rule for rule # 2 in FIG. In FIG. 12, as the condition indicated by the IF, the value of the record of the request source is between zn and zn + 1, the value of the record of the record source is between dn and dn + 1, and the item code When the value of the record is between cn and cn + 1 and the value of the record of the cost element is between dn and dn + 1, the value of the record of the management source code (responsibility section) is RN0 as a result indicated by THEN Means that

次に、第二の実施形態によるルール検証装置10の処理について説明する。
ただし、第二の実施形態によるルール検証装置10が行う処理と、第一の実施形態によるルール検証装置10が行う処理との違いは、IFが示す条件数の違いによるルール検証装置10が行う演算の次数が異なる点と、その演算の次数の違いによる表示部110の表示が異なる点である。
従って、ここでは、主な違いであるルール検証装置10の重複判定部102が行う演算と、表示部110が表示する表示についてのみ説明する。
Next, processing of the rule verification device 10 according to the second embodiment will be described.
However, the difference between the processing performed by the rule verification device 10 according to the second embodiment and the processing performed by the rule verification device 10 according to the first embodiment is the calculation performed by the rule verification device 10 according to the difference in the number of conditions indicated by IF. And the display unit 110 displays differently depending on the order of the calculation.
Accordingly, only the calculation performed by the duplication determination unit 102 of the rule verification device 10 and the display displayed by the display unit 110, which are the main differences, will be described here.

ルール検証装置10の包含凸包算出部106が行う演算は、IFが示す4つの条件である要求元と、計上元と、品目コードと、原価要素の4次元の演算となる。しかしながら、第二の実施形態による包含凸包算出部106は、第一の実施形態による包含凸包算出部106と同様に、例えばGJK(Gilbert−Johnson−Keerthi)アルゴリズムを用いればよい。n次元の場合、2次元平面のアルゴリズムをn(n−1)÷2回演算すればよい。従って、4次元の場合には2次元のアルゴリズムを6回演算することとなる。   The calculation performed by the inclusive convex hull calculation unit 106 of the rule verification device 10 is a four-dimensional calculation of a request source, a recording source, an item code, and a cost element, which are the four conditions indicated by the IF. However, the inclusive convex hull calculating unit 106 according to the second embodiment may use, for example, a GJK (Gilbert-Johnson-Keerthy) algorithm, similarly to the inclusive convex hull calculating unit 106 according to the first embodiment. In the case of n dimensions, a two-dimensional plane algorithm may be calculated n (n−1) ÷ 2 times. Therefore, in the case of four dimensions, the two-dimensional algorithm is calculated six times.

次に、表示部110が、4つの条件を表示する表示について説明する。
矛盾関係にあると判定されるのは、包含凸包算出部106が4つの条件が示す範囲がすべて重複していると判定した場合である。しかしながら、表示部110は、3次元表示までしかできない。そのため、表示部110は、例えば、4つの範囲うちの3つの範囲を選択するすべての組み合わせを表示する。また、予め条件に優先順位を設定しておき、表示部110は、その優先順位に基づいて3つの範囲を3次元で表示する。また、ユーザが任意に選択してもよい。
Next, display in which the display unit 110 displays four conditions will be described.
The inconsistent relationship is determined when the inclusion convex hull calculating unit 106 determines that all the ranges indicated by the four conditions are overlapped. However, the display unit 110 can only perform three-dimensional display. Therefore, the display unit 110 displays, for example, all combinations that select three of the four ranges. Also, priorities are set in advance in the conditions, and the display unit 110 displays the three ranges in three dimensions based on the priorities. Further, the user may arbitrarily select it.

以上、本発明の第一の実施形態によるルール検証装置10について説明した。
本発明の実施形態によるルール検証装置10は、凸包生成部101と、重複判定部102と、重複ルール特定部103とを備える。凸包生成部101は、レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のルールの各ルールに基づいて凸包を生成する。重複判定部102は、凸包生成部101が生成した複数の凸包の間に重複があるか否かを判定する。重複ルール特定部103は、重複判定部102が重複があると判定した凸包が示すルールの組み合わせを特定する。
このようにすれば、IF〜THEN形式のルールが逐次的に追加される場合、追加したIF〜THEN形式のルールとそれ以前に追加したIF〜THEN形式のルールとの間で矛盾関係や冗長関係が生じている可能性のあるルールを特定することができる。
また、ルール検証装置10は、関係判定部104、ルール分割部105、包含凸包算出部106、ルール提示部107、表示部120を更に備えることで、重複ルール特定部103が特定した矛盾関係や冗長関係が生じている可能性のあるルールを、視覚的にユーザに報知し、矛盾関係や冗長関係のないルールに是正することができる。
The rule verification device 10 according to the first embodiment of the present invention has been described above.
The rule verification device 10 according to the embodiment of the present invention includes a convex hull generation unit 101, an overlap determination unit 102, and an overlap rule specification unit 103. The convex hull generating unit 101 generates a convex hull based on each rule of a plurality of rules in which combinations of record value ranges are associated with attributes of the record. The overlap determination unit 102 determines whether there is an overlap between the plurality of convex hulls generated by the convex hull generation unit 101. The duplication rule specifying unit 103 specifies a combination of rules indicated by the convex hulls that the duplication determination unit 102 has determined to have duplication.
In this way, when IF-THEN format rules are added sequentially, there is a contradiction or redundancy relationship between the added IF-THEN format rules and the previously added IF-THEN format rules. It is possible to identify rules that may have occurred.
Further, the rule verification device 10 further includes a relationship determination unit 104, a rule division unit 105, an inclusive convex hull calculation unit 106, a rule presentation unit 107, and a display unit 120, so that the contradiction relationship specified by the duplication rule specification unit 103 It is possible to visually notify a user of a rule that may have a redundant relationship and correct it to a rule having no contradiction or redundant relationship.

なお、実施形態によるルール検証装置10の処理は、まず各ルールについての凸包を求め、重複する領域を求めた後、矛盾関係や冗長関係が生じている可能性のあるルールを特定するものとして説明した。しかしながら、実施形態によるルール検証装置10の処理は、それに限定するものではない。
例えば、ルール検証装置10の処理は、各条件に対して矛盾関係や冗長関係を求めて最適化し、最適化した各条件の組み合わせに対して凸包を求めてもよい。
また本発明の実施形態における処理フローは、適切な処理が行われる範囲において、処理の順番が入れ替わってもよい。
また、IF〜THENルール間に矛盾がない場合、レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のルールの各ルールに基づいて凸包を生成する凸包生成部101と、レコードの同一の属性に係るルールに基づいて生成された凸包を包含する包含凸包を算出する包含凸包算出部106と、凸包または包含凸包が示すルールを表示部120に表示するルール提示部107とを備えるルール検証装置10により、冗長関係を特定してもよい。また、ルール検証装置10は、特定した冗長関係を是正してもよい。
Note that the processing of the rule verification device 10 according to the embodiment first obtains a convex hull for each rule, obtains an overlapping area, and then identifies a rule that may have a contradiction or redundancy relationship. explained. However, the processing of the rule verification device 10 according to the embodiment is not limited to this.
For example, the processing of the rule verification device 10 may be optimized by obtaining a contradiction or redundancy relationship for each condition, and obtain a convex hull for the optimized combination of conditions.
In the processing flow according to the embodiment of the present invention, the order of processing may be changed within a range in which appropriate processing is performed.
When there is no contradiction between IF to THEN rules, a convex hull generating unit 101 that generates a convex hull based on each rule of a plurality of rules that associates a combination of record value ranges and attributes of the record; An inclusion convex hull calculation unit 106 that calculates an inclusion convex hull that includes a convex hull generated based on a rule related to the same attribute of the record, and a rule that displays the convex hull or the rule indicated by the inclusion convex hull on the display unit 120 The redundancy relationship may be specified by the rule verification device 10 including the presentation unit 107. Moreover, the rule verification apparatus 10 may correct the specified redundant relationship.

なお本発明の実施形態について説明したが、上述のルール検証装置10は内部に、コンピュータシステムを有している。そして、上述した処理の過程は、プログラムの形式でコンピュータ読み取り可能な記録媒体に記憶されており、このプログラムをコンピュータが読み出して実行することによって、上記処理が行われる。ここでコンピュータ読み取り可能な記録媒体とは、磁気ディスク、光磁気ディスク、CD−ROM、DVD−ROM、半導体メモリ等をいう。また、このコンピュータプログラムを通信回線によってコンピュータに配信し、この配信を受けたコンピュータが当該プログラムを実行するようにしても良い。   In addition, although embodiment of this invention was described, the above-mentioned rule verification apparatus 10 has a computer system inside. The process described above is stored in a computer-readable recording medium in the form of a program, and the above process is performed by the computer reading and executing this program. Here, the computer-readable recording medium means a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, or the like. Alternatively, the computer program may be distributed to the computer via a communication line, and the computer that has received the distribution may execute the program.

また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。   The program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定するものではない。また、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができるものである。   Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. Various omissions, replacements, and changes can be made without departing from the scope of the invention.

10・・・ルール検証装置
101・・・凸包生成部
102・・・重複判定部
103・・・重複ルール特定部
104・・・関係判定部
105・・・ルール分割部
106・・・包含凸包算出部
107・・・ルール提示部
110・・・記憶部
120・・・表示部
DESCRIPTION OF SYMBOLS 10 ... Rule verification apparatus 101 ... Convex hull production | generation part 102 ... Duplication determination part 103 ... Duplication rule specific | specification part 104 ... Relation determination part 105 ... Rule division part 106 ... Inclusion convex Package calculation unit 107 ... rule presentation unit 110 ... storage unit 120 ... display unit

Claims (10)

レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のルールの各ルールに基づいて凸包を生成する凸包生成部と、
前記凸包生成部が生成した複数の凸包の間に重複があるか否かを判定する重複判定部と、
前記重複判定部が重複があると判定した凸包が示すルールの組み合わせを特定する重複ルール特定部と、
前記重複ルール特定部が特定したルールの組み合わせのうちの1つのルールを構成する前記レコードの値の範囲の組み合わせから他のルールと重複する範囲の何れか1つを除外することで、前記重複を解消する分割の新たなルールを生成するルール分割部と
を備えるルール検証装置。
A convex hull generating unit that generates a convex hull based on each rule of a plurality of rules associating a combination of record value ranges and attributes of the record;
An overlap determination unit that determines whether there is an overlap between the plurality of convex hulls generated by the convex hull generation unit;
A duplication rule identifying unit that identifies a combination of rules indicated by the convex hull that is determined to be duplicated by the duplication judgment unit;
By excluding any one of the ranges overlapping with other rules from the combination of the value ranges of the records constituting one rule of the combination of rules specified by the duplicate rule specifying unit, A rule verification device comprising: a rule division unit that generates a new rule for division to be resolved.
前記重複ルール特定部が特定した凸包が示すルールの組み合わせのうちの2つのルールが示す属性に基づいて、当該2つのルールが矛盾関係と冗長関係の何れであるかを判定する関係判定部
を備える請求項1に記載のルール検証装置。
A relationship determination unit for determining whether the two rules are inconsistent or redundant based on attributes indicated by two rules of the rule combination indicated by the convex hull specified by the duplication rule specifying unit; The rule verification device according to claim 1 provided.
前記関係判定部は、前記重複ルール特定部が特定した凸包が示すルールの組み合わせのうちの2つのルールが示す属性が異なる場合、当該2つのルールが矛盾関係にあると判定する
請求項2に記載のルール検証装置。
The relationship determination unit determines that the two rules are in a contradiction when two of the rules indicated by the convex hull specified by the duplication rule specification unit have different attributes. The rule verification device described.
前記ルール分割部は、前記重複ルール特定部が特定した凸包が示すルールの組み合わせのうちの2つのルールが矛盾関係にあると前記関係判定部が判定した場合、当該2つのルールをユーザ指示に基づいて分割する
請求項2または請求項3に記載のルール検証装置。
When the relation determination unit determines that two rules out of a combination of rules indicated by the convex hull specified by the duplication rule specifying unit are in a contradictory relationship, the rule dividing unit uses the two rules as a user instruction. The rule verification device according to claim 2, wherein the rule verification device is divided based on the rule.
前記関係判定部は、前記重複ルール特定部が特定した凸包が示すルールの組み合わせのうちの2つのルールが示す属性が同一である場合、当該2つのルールが冗長関係にあると判定する
請求項2から請求項4の何れか一項に記載のルール検証装置。
The relationship determination unit determines that the two rules are in a redundant relationship when the attributes indicated by two rules of the combination of rules indicated by the convex hull specified by the duplication rule specification unit are the same. The rule verification device according to any one of claims 2 to 4.
前記重複ルール特定部が特定した凸包が示すルールの組み合わせのうちの2つのルールが冗長関係にあると前記関係判定部が判定した場合、当該2つのルールに対応する2つの凸包を包含する包含凸包を算出する包含凸包算出部
を備える請求項2から請求項5の何れか一項に記載のルール検証装置。
When the relationship determination unit determines that two rules of the rule combination indicated by the convex hull specified by the duplication rule specifying unit are in a redundant relationship, the two convex hulls corresponding to the two rules are included. The rule verification device according to any one of claims 2 to 5, further comprising an inclusion convex hull calculating unit that calculates an inclusion convex hull.
前記凸包または前記包含凸包が示すルールを表示部に表示するルール提示部を備え、
当該ルール提示部は、前記包含凸包算出部が算出した前記包含凸包と他の凸包とに重複があるか否かを前記重複判定部が判定し、当該重複判定部が前記包含凸包と他の凸包とに重複がないと判定した場合の前記包含凸包が示すルールや、前記ルール分割部が分割した前記凸包が示すルールを表示部に表示する
請求項6に記載のルール検証装置。
A rule presenting unit for displaying a rule indicated by the convex hull or the containing convex hull on a display unit;
The rule presenting unit determines whether or not there is an overlap between the inclusion convex hull calculated by the inclusion convex hull calculation unit and another convex hull, and the duplication determination unit determines whether the overlapping determination hull is the inclusion convex hull. The rule which the said inclusion convex hull when it determines with there being no duplication with other convex hulls, and the rule which the said convex hull which the said rule division | segmentation part divided | segmented are displayed on a display part. Verification device.
前記レコードの同一の属性に係るルールに基づいて生成された凸包を包含する包含凸包を算出する包含凸包算出部と、
前記凸包または前記包含凸包が示すルールを表示部に表示するルール提示部と
を備える請求項1に記載のルール検証装置。
An inclusive convex hull calculating unit for calculating an inclusive convex hull including a convex hull generated based on a rule relating to the same attribute of the record;
The rule verification device according to claim 1, further comprising: a rule presenting unit that displays the convex hull or the rule indicated by the containing convex hull on a display unit.
レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のルールの各ルールに基づいて凸包を生成し、
複数の凸包の間に重複があるか否かを判定し、
重複があると判定した凸包が示すルールの組み合わせを特定し、
特定したルールの組み合わせのうちの1つのルールを構成する前記レコードの値の範囲の組み合わせから他のルールと重複する範囲の何れか1つを除外することで、前記重複を解消する分割の新たなルールを生成する
ルール検証方法。
A convex hull is generated based on each rule of a plurality of rules in which a combination of record value ranges and attributes of the record are associated,
Determine if there is overlap between multiple convex hulls,
Identify the combination of rules indicated by the convex hull that is determined to be duplicated,
By excluding any one of the ranges overlapping the other rules from the combination of the value ranges of the records constituting one rule of the identified rule combinations , a new division to eliminate the duplication Generate rules Rule validation method.
ルール検証装置のコンピュータを、
レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のルールの各ルールに基づいて凸包を生成する凸包生成手段と、
前記凸包生成手段が生成した複数の凸包の間に重複があるか否かを判定する重複判定手段と、
前記重複判定手段が重複があると判定した凸包が示すルールの組み合わせを特定する重複ルール特定手段、
前記重複ルール特定手段が特定したルールの組み合わせのうちの1つのルールを構成する前記レコードの値の範囲の組み合わせから他のルールと重複する範囲の何れか1つを除外することで、前記重複を解消する分割の新たなルールを生成するルール分割手段
として機能させるプログラム。
The computer of the rule verification device
A convex hull generating means for generating a convex hull based on each rule of a plurality of rules associating a combination of record value ranges and attributes of the record;
A duplication determination unit that determines whether there is an overlap between the plurality of convex hulls generated by the convex hull generation unit;
A duplication rule specifying means for specifying a combination of rules indicated by the convex hull determined by the duplication judgment means to be duplicated;
By excluding any one of the ranges overlapping with other rules from the combination of the value ranges of the records constituting one rule of the combination of rules specified by the duplicate rule specifying means, A program that functions as a rule division unit that generates new rules for division to be resolved.
JP2013260269A 2013-12-17 2013-12-17 Rule verification device, rule verification method, and program Active JP6221177B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013260269A JP6221177B2 (en) 2013-12-17 2013-12-17 Rule verification device, rule verification method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013260269A JP6221177B2 (en) 2013-12-17 2013-12-17 Rule verification device, rule verification method, and program

Publications (2)

Publication Number Publication Date
JP2015118449A JP2015118449A (en) 2015-06-25
JP6221177B2 true JP6221177B2 (en) 2017-11-01

Family

ID=53531138

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013260269A Active JP6221177B2 (en) 2013-12-17 2013-12-17 Rule verification device, rule verification method, and program

Country Status (1)

Country Link
JP (1) JP6221177B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7030454B2 (en) 2017-09-01 2022-03-07 株式会社 資生堂 Inkjet ink compositions, inkjet cartridges, and cosmetic devices

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0820959B2 (en) * 1992-04-03 1996-03-04 工業技術院長 Knowledge base management method
JPH0883184A (en) * 1994-09-13 1996-03-26 Toshiba Corp Knowledge readjustment device
JPH10143372A (en) * 1996-11-14 1998-05-29 Hitachi Ltd Method for analyzing and evaluating knowledge information
WO2013093682A1 (en) * 2011-12-21 2013-06-27 International Business Machines Corporation Detecting cases with conflicting rules

Also Published As

Publication number Publication date
JP2015118449A (en) 2015-06-25

Similar Documents

Publication Publication Date Title
TWI460648B (en) Ranking visualization types based upon fitness for visualizing a data set
US7886028B2 (en) Method and system for system migration
WO2021044857A1 (en) Material properties prediction system and information processing method
WO2014054230A1 (en) Information system construction device, information system construction method, and storage medium
CN104252412B (en) Method and system for the automatic detection of CSS conflicts
JP6174469B2 (en) Accident analysis utilization support apparatus and method
CN104516994B (en) The method and apparatus of computer implemented auxiliary publication planning
JP6221177B2 (en) Rule verification device, rule verification method, and program
JP2012181821A (en) Logic diagram retrieval device
JP6695847B2 (en) Software parts management system, computer
JP7145118B2 (en) DESIGN SUPPORT SYSTEM, DESIGN VERIFICATION METHOD AND DESIGN VERIFICATION PROGRAM
JP2013077124A (en) Software test case generation device
JP6011618B2 (en) SEARCH PROGRAM, SEARCH METHOD, SEARCH DEVICE, STORAGE PROGRAM, STORAGE METHOD, AND STORAGE DEVICE
KR102411806B1 (en) Systems and methods for database query efficiency improvement
JP2018028776A (en) Software asset management device, software asset management method, and software asset management program
JP6185148B2 (en) Dependency verification device between software specifications and dependency verification method between software specifications
JP2006277282A (en) Model evaluation analysis system and model evaluation analysis program
AU2013333247B2 (en) Information processing apparatus and program
JP2016040707A (en) Software verification program, software verification method and software verification system
US8654123B2 (en) CAD-system projection method, CAD-system, and recording medium
JP2019046243A (en) Design support apparatus, and design support method
JP5892040B2 (en) Information processing apparatus and program
WO2014155840A1 (en) Device, method, and program for predicting design modification effect
JP2560608B2 (en) Micro program check system
KR20170066936A (en) Method and Apparatus for automatic splitting object, and Method, Apparatus and System for Registering File

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20151028

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161018

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20161202

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20170214

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170515

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20170516

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20170605

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170801

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170824

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20170825

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170905

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170915

R150 Certificate of patent or registration of utility model

Ref document number: 6221177

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150