JP6221177B2 - Rule verification device, rule verification method, and program - Google Patents
Rule verification device, rule verification method, and program Download PDFInfo
- 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
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.
ところで、条件と結果とを含む複数の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.
<第一の実施形態>
図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
ルール検証装置10が備える凸包生成部101は、記憶部110が記憶しているレコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のルールの各ルールに基づいて凸包を生成する。なお、レコードの値の範囲の組み合わせとは、IF〜THEN形式で示されるルール(以下、IF〜THENルール)のIFによって示される条件のことである。また、レコードの属性とは、IF〜THENルールのTHENによって示される結果のことである。
The convex
重複判定部102は、凸包生成部101が生成した複数の凸包の間に重複があるか否かを判定する。
重複ルール特定部103は、重複判定部102が重複があると判定した凸包が示すIF〜THENルールの組み合わせを特定する。
The
The 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
ルール分割部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
The inclusive convex
ルール提示部107は、IF〜THENルールの矛盾関係を解消する分割の候補や冗長関係を解消する候補を表示など、ユーザに報知する情報を表示する。
記憶部110は、レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のIF〜THENルールなど、ルール検証装置10の処理で必要となる種々の情報を記憶している。
表示部120は、重複判定部102が包含凸包と他の凸包とに重複がないと判定した場合の包含凸包が示すIF〜THENルールや、ルール分割部105が分割した凸包が示すIF〜THENルールなど、ユーザに報知する種々の情報を表示する。
The
The
The
図2は、本発明の第一の実施形態による記憶部110が記憶しているIF〜THENルールの一例を示す図である。
また、図3は、本発明の第一の実施形態において製品の管理責任の組織(ここでは課)を示す管理元コード(責任課)が識別子RN0であると特定する際に使用されるIF〜THENルールの一例を示す図である。
FIG. 2 is a diagram illustrating an example of IF to THEN rules stored in the
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,
Further, in the
また、図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
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
When the convex
図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
As shown in FIG. 5, the convex
重複判定部102は、凸包生成部101が生成した凸包が示す情報を入力すると、入力した二次元平面上の4つの座標を含む複数の凸包のうち2つの凸包を選択するすべての組み合わせに対して凸包に重複があるか否かを判定する(ステップS3)。例えば、重複判定部102は、凸包多面体の重なりを判定するGJK(Gilbert−Johnson−Keerthi)アルゴリズムなど周知のアルゴリズムを用いて凸包に重複があるか否かを判定すればよい。重複判定部102は、二次元平面上の4つの座標を含む複数の凸包のうち2つの凸包を選択するすべての組み合わせに対して凸包に重複がないと判定した場合、凸包に重複がないと判定する(ステップS3、NO)。
また、重複判定部102は、二次元平面上の4つの座標を含む複数の凸包のうち2つの凸包を選択するすべての組み合わせに対して凸包に重複があると判定した場合、凸包に重複があると判定する(ステップS3、YES)。重複判定部102は、凸包に重複があると判定した場合、重複があると判定された凸包が示す情報を重複ルール特定部103に出力する。
When the
In addition, when the
重複ルール特定部103は、重複があると判定された凸包が示す情報を入力すると、図2で示したような、レコードの値の範囲の組み合わせと当該レコードの属性とを関連付けた複数のIF〜THENルールを記憶部110から読み出す。重複ルール特定部103は、例えば、記憶部110から読み出した複数のIF〜THENルールにおける各条件の範囲と、重複があると判定された凸包に相当するルールにおける各条件の範囲とを比較する。そして、重複ルール特定部103は、記憶部110から読み出した複数のIF〜THENルールにおける各条件の範囲と、重複があると判定された凸包に相当するルールにおける各条件の範囲とが一致するルールの組み合わせを、重複があると判定された凸包が示すルールの組み合わせであると特定する(ステップS4)。重複ルール特定部103は、重複があると判定された凸包が示すルールの組み合わせを関係判定部104に出力する。
When the duplication
関係判定部104は、重複があると判定された凸包が示すルールの組み合わせを重複ルール特定部103から入力すると、それら2つのルールの属性が同一であるか否かを判定する(ステップS5)。
関係判定部104は、重複があると判定された凸包が示す2つのルールの属性が同一であると判定した場合(ステップS5、YES)、その2つのルールが冗長関係にあると判定する(ステップS6)。そして、関係判定部104は、冗長関係にあると判定した2つのルールを包含凸包算出部106に出力する(ステップS7)。
When the
When the
図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
First, with reference to FIG. 6, an inclusion relationship that is determined by the
An example of the inclusion relationship determined by the
Assume that the
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
次に、図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
An example of the division relationship determined by the
Assume that the
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
次に、図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
An example of the overlapping relationship determined by the
As shown in FIG. 8, it is assumed that the
なお、ここで説明した関係判定部104が生成する凸包は、例えば複数のルールの各ルールに対するIF条件の最小値と最大値とを点集合とし、アルゴリズムである分割統治法(Divide and Comquer Method)などの周知のアルゴリズムを用いることで実現することができる。
ここまでが、ステップS7で関係判定部104が読み出した複数のルールの各ルールに対するIF条件の最小値〜最大値(範囲)に基づいて凸包を求める例についての説明である。このステップS7の処理により、包含関係、分割関係、重複関係といった冗長関係を示す複数のルールを縮退することによって冗長関係を解消することができる。
なお、ステップS7で関係判定部104が複数のルールを縮退することによって冗長関係を解消する処理は、各条件における複数のルールのすべての組み合わせに対して行う。
Note that the convex hull generated by the
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
Note that the process of canceling the redundant relationship by the
また、関係判定部104は、重複があると判定された凸包が示す2つのルールの属性が同一でないと判定した場合(ステップS5、NO)、その2つのルールが矛盾関係にあると判定する(ステップS8)。そして、関係判定部104は、矛盾関係にあると判定した2つのルールをルール分割部105に出力する(ステップS9)。
In addition, when the
ルール分割部105は、関係判定部104が矛盾関係にあると判定した2つのルールを入力すると、入力した2つの各ルールに対して生成した凸包が示す二次元平面上の4つの座標を含む範囲の重複する部分、すなわち矛盾関係にある部分をどのように分割し、矛盾関係を解消する候補を生成する(ステップS10)。
When the
図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
As shown in FIG. 9, it is assumed that the convex
図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
When the
When the
Here, the user performs a user operation for designating division based on the division candidates for eliminating the contradiction. Then, the
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
When the
In addition, when the inclusion convex
Moreover, if the
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
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
<第二の実施形態>
次に、本発明の第二の実施形態によるルール検証装置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
図11は、本発明の第二の実施形態による記憶部110が記憶しているIF〜THENルールの一例を示す図である。
また、図12は、本発明の第二の実施形態において製品の管理責任の組織を示す管理元コード(責任課)が識別子RN0であると特定する際に使用されるIF〜THENルールの一例を示す図である。
FIG. 11 is a diagram illustrating an example of IF to THEN rules stored in the
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,
Further, in the
また、図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
次に、第二の実施形態によるルール検証装置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
Accordingly, only the calculation performed by the
ルール検証装置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
次に、表示部110が、4つの条件を表示する表示について説明する。
矛盾関係にあると判定されるのは、包含凸包算出部106が4つの条件が示す範囲がすべて重複していると判定した場合である。しかしながら、表示部110は、3次元表示までしかできない。そのため、表示部110は、例えば、4つの範囲うちの3つの範囲を選択するすべての組み合わせを表示する。また、予め条件に優先順位を設定しておき、表示部110は、その優先順位に基づいて3つの範囲を3次元で表示する。また、ユーザが任意に選択してもよい。
Next, display in which the
The inconsistent relationship is determined when the inclusion convex
以上、本発明の第一の実施形態によるルール検証装置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
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
なお、実施形態によるルール検証装置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
なお本発明の実施形態について説明したが、上述のルール検証装置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 ...
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.
を備える請求項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に記載のルール検証装置。 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または請求項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から請求項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から請求項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.
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)
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)
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 |
-
2013
- 2013-12-17 JP JP2013260269A patent/JP6221177B2/en active Active
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 |