JPH0464130A - Knowledge base searching system - Google Patents

Knowledge base searching system

Info

Publication number
JPH0464130A
JPH0464130A JP2174833A JP17483390A JPH0464130A JP H0464130 A JPH0464130 A JP H0464130A JP 2174833 A JP2174833 A JP 2174833A JP 17483390 A JP17483390 A JP 17483390A JP H0464130 A JPH0464130 A JP H0464130A
Authority
JP
Japan
Prior art keywords
search
searched
range
knowledge base
class
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2174833A
Other languages
Japanese (ja)
Inventor
Toshihiko Oda
利彦 小田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2174833A priority Critical patent/JPH0464130A/en
Publication of JPH0464130A publication Critical patent/JPH0464130A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To operate a high-speed searching process by searching the object being an object to be searched in the connection direction of a genealogical tree according to an index from a high-order class object searched by a width priority searching means. CONSTITUTION:When a class object 3(P) is searched, a designation P of the class object 3 to be searched and a designation C of the high-order class object 3 are set in an index setting means. Then, the width priority searching means width-priority searches each class object 3 from a root object 2 based on the index C, so that a class object 3(C) can be searched. Then, a depth priority searching means depth-priority searches each object 3 and 4 from the searched class object 3(C) according to the index P, so that an object 3(P) being the object to be searched can be searched. Therefore, a useless search for the objects 3 and 4 lower than the high-oder class object 3 can not be operated. Thus, a range to be searched is reduced so that the searching process can be operated at the high-speed.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は知識ベースのオブジェクトが系統樹状に連結さ
れた知識ベース検索システムに関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a knowledge base search system in which knowledge base objects are connected in a phylogenetic tree.

従来の技術 知識ベース検索システムでは、推論実行時や知識編集実
行時には検索手段が知識ベース内の多数のオブジェクト
から一つを所定のインデクスに基づいて検索するように
なっている。ここで、知識ベースにはオブジェクトが系
統樹状に連結されたものが存しており、この場合、オブ
ジェクトは先端部に位置するルートオブジェクトと中間
部に位置するクラスオブジェクト及び末端部に位置する
インスタンスオブジェクトで構成される。
In conventional technical knowledge base search systems, when performing inference or knowledge editing, the search means searches for one object from a large number of objects in the knowledge base based on a predetermined index. Here, the knowledge base has objects connected in a phylogenetic tree, and in this case, the objects are a root object located at the tip, a class object located in the middle, and an instance located at the end. Consists of objects.

そして、上述のようにオブジェクトが系統樹状に連結さ
れた知識ベースから一つのオブジェクトを検索する従来
方式では、通常は検索手段のインデクスとして検索する
オブジェクトの名称を設定し、ルートオブジェクトから
系統樹の分岐方向に検索を順次行なう幅優先検索や、系
統樹の連結方向に検索を順次行なう深さ優先検索を実行
してオブジェクトを検索するようになっている。
In the conventional method of searching for a single object from a knowledge base in which objects are connected in a phylogenetic tree as described above, the name of the object to be searched is usually set as the index of the search method, and the phylogenetic tree is searched from the root object. Objects are searched by performing breadth-first search, which searches sequentially in the branching direction, and depth-first search, which searches sequentially in the direction of connection of the phylogenetic tree.

発明が解決しようとする課題 上述のようにすることで、オブジェクトが系統樹状に連
結された知識ベースから一つのオブジェクトを検索する
ことができるが、これでは検索範囲が大きいために検索
処理の高速化が困難である。
Problems to be Solved by the Invention By doing the above, it is possible to search for a single object from a knowledge base in which objects are connected in a phylogenetic tree, but this method does not allow for high-speed search processing because the search range is large. It is difficult to

そこで、このような課題を解決するため、オブジェクト
の名称と実体へのポインタを二分木等のテーブルで管理
することやハツシングを行なうことが提案されている。
In order to solve this problem, it has been proposed to manage object names and pointers to entities in a table such as a binary tree or to perform hashing.

しかし、これらの方式は知識ベースの構造とは別にオブ
ジェクトの情報を管理する機構を要するのでシステムの
構造が複雑であり、さらに、上述のような管理テーブル
は知識ベースの構造が変化した場合には更新する必要が
あるのでシステムの維持が困難である。
However, these methods require a mechanism to manage object information separately from the knowledge base structure, resulting in a complex system structure.Furthermore, the above-mentioned management table cannot be used when the knowledge base structure changes. The system is difficult to maintain because it needs to be updated.

また、知識ベース検索システムで実際にオブジェクトの
検索作業を行なう場合、関連するオブジェクトを順次検
索することが必然的に多くなっている。つまり、前回の
検索処理で検索したオブジェクトと関連するオブジェク
トを優先的に検索することで検索処理を高速化すること
ができるので、これを簡易に実現するシステムの提案が
要望されている。
Furthermore, when actually searching for objects using a knowledge base search system, it is inevitable that related objects are searched sequentially. In other words, since it is possible to speed up the search process by preferentially searching for objects related to the object searched in the previous search process, there is a need for a system that easily realizes this.

課題を解決するための手段 請求項1記載の発明は、先端部に位置するルートオブジ
ェクトと中間部に位置するクラスオブジェクトと末端部
に位置するインスタンスオブジェクトとが系統樹状に連
結された知識ベースから一つのオブジェクトを検索する
検索手段を設けた知識ベース検索システムにおいて、検
索手段のインデクスとして検索するオブジェクトの名称
と前記オブジェクトの上位に位置するクラスオブジェク
トの名称とを設定するインデクス設定手段を設け、この
インデクス設定手段に設定されたインデクスに従って上
位のクラスオブジェクトをルートオブジェクトから系統
樹の分岐方向に検索する幅優先検索手段を設け、この幅
優先検索手段が検索した上位のクラスオブジェクトから
インデクスに従って系統樹の連結方向に検索対象のオブ
ジェクトを検索する深さ優先検索手段を設けた。
Means for Solving the Problems The invention according to claim 1 is a knowledge base in which a root object located at the tip, a class object located at the middle, and an instance object located at the end are connected in a phylogenetic tree. In a knowledge base search system provided with a search means for searching for one object, an index setting means is provided for setting the name of the object to be searched and the name of a class object located above the object as an index of the search means, and A breadth-first search means is provided to search for upper class objects from the root object in the branching direction of the phylogenetic tree according to the index set in the index setting means, and from the upper class objects searched by this breadth-first search means in the concatenation direction of the phylogenetic tree according to the index. A depth-first search method was installed to search for the object to be searched.

請求項2記載の発明は、先端部に位置するルートオブジ
ェクトと中間部に位置するクラスオブジェクトと末端部
に位置するインスタンスオブジェクトとが系統樹状に連
結された知識ベースから一つのオブジェクトを検索する
検索手段を設けた知識ベース検索システムにおいて、オ
ブジェクトの検索範囲が前回検索したオブジェクトに対
する所定条件に従って予め複数設定された検索範囲規定
手段を設け、検索されたオブジェクトのポインタを一時
記憶するラストオブジェクト記憶手段を設け、このラス
トオブジェクト記憶手段が一時記憶したポインタから選
定した前回検索のオブジェクトに基づいて検索範囲規定
手段から検索範囲を読出して次のオブジェクトを検索す
る範囲内検索手段を設け、この範囲内検索手段のオブジ
ェクトの検索回数を各検索範囲毎に積算する有効検索範
囲検出手段を設け、この有効検索範囲検出手段の積算値
に従って検索範囲規定手段から範囲内検索手段に出力さ
れる検索範囲の優先順位を変更する検索効率向上手段を
設けた。
The invention according to claim 2 provides a search for searching for one object from a knowledge base in which a root object located at the tip, a class object located at the middle, and an instance object located at the end are connected in a phylogenetic tree. In the knowledge base search system provided with means, a search range defining means is provided in which a plurality of object search ranges are set in advance according to predetermined conditions for the previously searched object, and a last object storage means is provided for temporarily storing a pointer of a searched object. and an in-range search means for reading the search range from the search range defining means to search for the next object based on the object of the previous search selected from the pointer temporarily stored by the last object storage means; An effective search range detection means is provided for accumulating the number of searches for objects in each search range, and the priority order of the search range output from the search range definition means to the within-range search means is determined according to the integrated value of the effective search range detection means. We have provided means to improve search efficiency.

作用 請求項1記載の発明は、先端部に位置するルートオブジ
ェクトと中間部に位置するクラスオブジェクトと末端部
に位置するインスタンスオブジェクトとが系統樹状に連
結された知識ベースから一つのオブジェクトを検索する
検索手段を設けた知識ベース検索システムにおいて、検
索手段のインデクスとして検索するオブジェクトの名称
と前記オブジェクトの上位に位置するクラスオブジェク
トの名称とを設定するインデクス設定手段を設け、この
インデクス設定手段に設定されたインデクスに従って上
位のクラスオブジェクトをルートオブジェクトから系統
樹の分岐方向に検索する幅優先検索手段を設け、この幅
優先検索手段が検索した上位のクラスオブジェクトから
インデクスに従って系統樹の連結方向に検索対象のオブ
ジェクトを検索する深さ優先検索手段を設けたことによ
り、検索対象のオブジェクトの上位のクラスオブジェク
トより下位のオブジェクトに対する無用な検索が行なわ
れないので、検索範囲が小さくなって検索処理が高速化
される。
The invention according to claim 1 searches for one object from a knowledge base in which a root object located at the tip, a class object located at the middle, and an instance object located at the end are connected in a phylogenetic tree. In a knowledge base search system provided with a search means, an index setting means is provided for setting the name of an object to be searched and the name of a class object located above the object as an index of the search means, and A breadth-first search means is provided to search for higher class objects from the root object in the branching direction of the phylogenetic tree according to the index, and the object to be searched is searched from the upper class object searched by this breadth-first search means in the concatenation direction of the phylogenetic tree according to the index. By providing the depth-prioritized search means, unnecessary searches for objects lower than the upper class object of the object to be searched are not performed, so the search range is reduced and the search process is speeded up.

請求項2記載の発明は、オブジェクトの検索範囲が前回
検索したオブジェクトに対する所定条件に従って予め複
数設定された検索範囲規定手段を設け、検索されたオブ
ジェクトのポインタを一時記憶するラストオブジェクト
記憶手段を設け、このラストオブジェクト記憶手段が一
時記憶したポインタから選定した前回検索のオブジェク
トに基づいて検索範囲規定手段から検索範囲を読出して
次のオブジェクトを検索する範囲内検索手段を設けたこ
とにより、前回検索したオブジェクトに関連するオブジ
ェクトが優先的に検索されるので、関連するオブジェク
トを順次検索する作業時の検索処理を高速化することが
でき、さらに、範囲内検索手段のオブジェクトの検索回
数を各検索範囲毎に積算する有効検索範囲検出手段を設
け、この有効検索範囲検出手段の積算値に従って検索範
囲規定手段から範囲内検索手段に出力される検索範囲の
優先順位を変更する検索効率向上手段を設けたことによ
り、検索処理を繰返すことで作業者の作業形態に対応し
て検索範囲の優先順位が変更される。
The invention according to claim 2 provides a search range defining means in which a plurality of object search ranges are set in advance according to predetermined conditions for the previously searched object, and a last object storage means for temporarily storing a pointer of the searched object; The last object storage means reads the search range from the search range defining means based on the object of the previous search selected from the temporarily stored pointer, and searches for the next object. Objects related to objects are searched preferentially, so it is possible to speed up the search process when sequentially searching for related objects.Furthermore, the number of times the within-range search method searches for objects can be adjusted for each search range. By providing an effective search range detecting means that performs integration, and providing a search efficiency improving means that changes the priority order of the search range output from the search range defining means to the within-range searching means according to the integrated value of the effective search range detecting means. By repeating the search process, the priority order of the search range is changed according to the worker's work style.

実施例 請求項1記載の発明の実施例を第1図に基づいて説明す
る。まず、本実施例の知識ベース検索システム(図示せ
ず)では、図示するように、知識ベース1が系統樹構造
になっており、そのオブジェクトA−Yは先端部に位置
するルートオブジェクト2(A)と中間部に位置するク
ラスオブジェクト3(B−E、H〜L、O,P)と末端
部に位置するインスタンスオブジェクト4(F、G、M
、N。
Embodiment An embodiment of the invention set forth in claim 1 will be described based on FIG. First, in the knowledge base search system (not shown) of this embodiment, as shown in the figure, the knowledge base 1 has a phylogenetic tree structure, and the objects A to Y are the root objects 2 (A ), class objects 3 (B-E, H to L, O, P) located in the middle, and instance objects 4 (F, G, M
,N.

Q−Y)とで形成されている。Q-Y).

そして、この知識ベース検索システムでは、検索手段の
インデクスとして検索するオブジェクト3.4の名称と
、この上位に位置するクラスオブジェクト3の名称とを
設定するインデクス設定手段が設けられており、このイ
ンデクス設定手段に設定されたインデクスに従って上位
のクラスオブジェクト3をルートオブジェクト2から系
統樹の分岐方向に検索する幅優先検索手段と、この幅優
先検索手段が検索した上位のクラスオブジェクト3から
インデクスに従って系統樹の連結方向に検索対象のオブ
ジェクト3,4を検索する深さ優先検索手段とが設けら
れている。
This knowledge base search system is provided with an index setting means for setting the name of the object 3.4 to be searched and the name of the class object 3 located above this as an index of the search means. A breadth-first search means searches for a higher class object 3 from the root object 2 in the branching direction of the phylogenetic tree according to an index set in the means, and a concatenation direction of the phylogenetic tree from the upper class object 3 searched by this breadth-first search means according to the index. A depth-priority search means for searching objects 3 and 4 to be searched is provided.

そこで、この知識ベース検索システムでクラスオブジェ
クト3(P)を検索する場合の動作を図面に基づいて詳
述する。まず、例えば、インデクス設定手段には検索す
るクラスオブジェクト3の名称Pと上位のクラスオブジ
ェクト3の名称Cとが設定される。すると、第1図(a
)に例示するように、設定されたインデクスCに基づい
て幅優先検索手段がルートオブジェクト2から各グラス
オブジェクト3を(A→に→B−C)と云うように幅優
先検索することでクラスオブジェクト3(C)が検索さ
れ、第1図(b)に例示するように、次に深さ優先検索
手段がインデクスPに従って検索されたクラスオブジェ
クト3(C)から各オブジェクト3゜4を(C→D−P
)と云うように深さ優先検索することで検索対象のオブ
ジェクト3(P)が検索される。
Therefore, the operation when searching for class object 3 (P) using this knowledge base search system will be described in detail based on the drawings. First, for example, the name P of the class object 3 to be searched and the name C of the upper class object 3 are set in the index setting means. Then, Figure 1 (a
), the breadth-first search means performs a breadth-first search from the root object 2 to each glass object 3 from the root object 2 to (A→to→B-C) based on the set index C, thereby finding the class object 3 ( C) is retrieved, and then, as illustrated in FIG. P
), the object 3(P) to be searched is retrieved by depth-first searching.

上述のように、この知識ベース検索システムでは、オブ
ジェクト3,4の検索を、その上位に位置するクラスオ
ブジェクト3を幅優先検索してから深さ優先検索するこ
とで、検索対象のオブジェクト3,4の上位のクラスオ
ブジェクト3より下位のオブジェクト3,4に対する無
用な検索は行なわれないので、検索範囲が小さくなって
検索処理が高速である。しかも、この知識ベース検索シ
ステムでは、二分木等のテーブルによるオブジェクト名
称と実体へのポインタとの管理やハツシングを行なわず
、知識ベースの構造とは別にオブジェクトの情報を管理
する機構等を要しないので、システムの構造が簡易でシ
ステムの維持も容易である。
As mentioned above, in this knowledge base search system, the search for objects 3 and 4 is performed by performing a breadth-first search on the class object 3 located above them, and then performing a depth-first search. Since unnecessary searches for objects 3 and 4 lower than the upper class object 3 are not performed, the search range becomes smaller and the search processing is faster. Moreover, this knowledge base search system does not use a table such as a binary tree to manage or hash object names and pointers to entities, and does not require a mechanism to manage object information separately from the knowledge base structure. , the system structure is simple and the system is easy to maintain.

つぎに、請求項2記載の発明の実施例を第2図に基づい
て説明する。この知識ベース検索システム(図示せず)
は、前回の検索処理で検索したオブジェクト2〜4をラ
ストオブジェクトとして次の検索処理に利用するように
なっており、ラストオブジェクト2〜4に対する次のオ
ブジェクト2〜4の検索範囲が検索範囲規定手段に予め
複数設定されている。そして、検索されたオブジェクト
2〜4のポインタを一時記憶するラストオブジェクト記
憶手段が設けられ、このラストオブジェクト記憶手段が
一時記憶したポインタからラストオブジェクト2〜4を
選定して検索範囲規定手段から検索範囲を読出すことで
範囲内検索手段が次のオブジェクトを検索するようにな
っている。
Next, an embodiment of the invention set forth in claim 2 will be described based on FIG. 2. This knowledge base search system (not shown)
Objects 2 to 4 searched in the previous search process are used as the last objects in the next search process, and the search range for the next objects 2 to 4 relative to the last objects 2 to 4 is determined by the search range specifying means. There are multiple settings in advance. A last object storage means for temporarily storing the pointers of the searched objects 2 to 4 is provided, and the last object storage means selects the last objects 2 to 4 from the temporarily stored pointers and selects the last objects from the search range defining means. By reading , the within-range search means searches for the next object.

二こで、この検索範囲規定手段に設定された検索範囲の
一例を図面に基づいて以下に詳述する。
Now, an example of the search range set in this search range defining means will be described in detail below based on the drawings.

まず、ラストオブジェクトがクラスオブジェクト3(f
)とすると、第2図(a)に例示するように、このラス
トオブジェクト3(f)が第一の検索範囲5、となる。
First, the last object is class object 3 (f
), this last object 3(f) becomes the first search range 5, as illustrated in FIG. 2(a).

そして、以下は第2図(b)〜(h)に例示するように
、第二の検索範囲58としてラストオブジェクト3(f
)と同一レベルのクラスオブジェクト3の集合(H,Z
)、第三の検索範囲5Iとしてラストオブジェクト3(
f)の下位のクラスオブジェクト3の集合(○、G)、
第四の検索範囲54としてラストオブジェクト3(f)
の上位のクラスオブジェクト3(B)、第五の検索範囲
5.としてラストオブジェクト3(f)と同一レベルの
クラスオブジェクト3(H,Z)の下位のインスタンス
オブジェクト4(N)、第六の検索範囲5□としてラス
トオブジェクト3(f)の下位のクラスオブジェクト3
(0,G)の下位のインスタンスオブジェクト4の集合
(S、U、W)、第七の検索範囲5.としてラストオブ
ジェクト3(f)の上位のクラスオブジェクト3(B)
の上位のルートオブジェクト2(A)、第への検索範囲
5.とじてラストオブジェクト3(f)の上位のクラス
オブジェクト3(B)の上位のルートオブジェクト2(
A)の下位のオブジェクト3,4の集合(K、E・・・
Y、X)等が設定されている。なお、上述のような検索
範囲5は、各オブジェクト2〜4毎に同様に設定されて
いる。
Then, as illustrated in FIGS. 2(b) to (h), the last object 3 (f) is used as the second search range 58.
) and the set of class objects 3 at the same level (H, Z
), and the last object 3 (
f) a set of lower class objects 3 (○, G),
Last object 3 (f) as the fourth search range 54
Upper class object 3 (B), fifth search range 5. Instance object 4 (N) below class object 3 (H, Z) at the same level as last object 3 (f), and class object 3 below last object 3 (f) as sixth search range 5 □
Set of instance objects 4 below (0, G) (S, U, W), seventh search range 5. As class object 3(B) above last object 3(f)
Upper root object 2 (A), search range to 5. The root object 2 (which is the upper class object 3 (B) which is the upper class object 3 (B) of the last object 3 (f))
A set of objects 3 and 4 below A) (K, E...
Y, X), etc. are set. Note that the search range 5 as described above is similarly set for each of the objects 2 to 4.

つまり、この知識ベース検索システムでは、例えば、前
回の検索処理で検索したラストオブジェクトがクラスオ
ブジェクト3(■)ならば上述のように検索範囲5.〜
5.に順次従って次のオブジェクト2〜4を検索する。
In other words, in this knowledge base search system, for example, if the last object searched in the previous search process is class object 3 (■), the search range is 5. ~
5. The next objects 2 to 4 are searched for in sequence.

これは実際の検索作業では関連するオブジェクト2〜4
を順次検索することが多いことに対応したものであり、
ラストオブジェクトに関連するオブジェクトを優先的に
検索することで検索処理を高速化するようになっている
In actual search work, this is related objects 2 to 4.
This is in response to the fact that searches are often performed sequentially.
Search processing is sped up by preferentially searching for objects related to the last object.

さらに、この知識ベース検索システムでは、上述のよう
な検索処理のオブジェクト2〜4の検索回数が有効検索
範囲検出手段により各検索範囲毎に積算され、この積算
値に従って検索効率向上手段が検索範囲規定手段から範
囲内検索手段に出力される検索範囲の優先順位を変更す
るようになっている。
Furthermore, in this knowledge base search system, the number of searches for objects 2 to 4 in the search process as described above is accumulated for each search range by the effective search range detection means, and the search efficiency improvement means defines the search range according to this integrated value. The priority order of the search range output from the means to the within-range search means is changed.

このようにすることで、この知識ベース検索システムは
、検索処理を繰返すと作業者の作業形態に対応して検索
範囲の優先順位が変更されるので、作業を繰返すと共に
無用な検索処理を実行する回数が低減され、より検索処
理が高速化されることになる。
By doing this, this knowledge base search system changes the priority of the search range according to the worker's work style when the search process is repeated, so that the search process is not repeated and unnecessary search processes are executed. The number of searches is reduced, and the search process becomes faster.

なお、この知識ベース検索システムも、知識ベースの構
造とは別にオブジェクトの情報を管理する機構等を要し
ないので、システムの構造が簡易でシステムの維持も容
易である。
Note that this knowledge base search system also does not require a mechanism for managing object information apart from the structure of the knowledge base, so the system structure is simple and the system is easy to maintain.

発明の効果 請求項1記載の発明は、上述のように先端部に位置する
ルートオブジェクトと中間部に位置するクラスオブジェ
クトと末端部に位置するインスタンスオブジェクトとが
系統樹状に連結された知識ベースから一つのオブジェク
トを検索する検索手段を設けた知識ベース検索システム
において、検索手段のインデクスとして検索するオブジ
ェクトの名称と前記オブジェクトの上位に位置するクラ
スオブジェクトの名称とを設定するインデクス設定手段
を設け、このインデクス設定手段に設定されたインデク
スに従って上位のクラスオブジェクトをルートオブジェ
クトから系統樹の分岐方向に検索する幅優先検索手段を
設け、この幅優先検索手段が検索した上位のクラスオブ
ジェクトからインデクスに従って系統樹の連結方向に検
索対象のオブジェクトを検索する深さ優先検索手段を設
けたことにより、検索対象のオブジェクトの上位のクラ
スオブジェクトより下位のオブジェクトに対する無用な
検索が行なわれないので、検索範囲が小さくなって検索
処理が高速化され、しかも、二分木等のテーブルによる
オブジェクト名称と実体へのポインタとの管理やハツシ
ングを行なわず、知識ベースの構造とは別にオブジェク
トの情報を管理する機構等を要しないので、システムの
構造が簡易でシステムの維持も容易である等の効果を有
するものである。
Effects of the Invention The invention as claimed in claim 1 is based on a knowledge base in which a root object located at the tip, a class object located at the middle, and an instance object located at the end are connected in a phylogenetic tree. In a knowledge base search system provided with a search means for searching for one object, an index setting means is provided for setting the name of the object to be searched and the name of a class object located above the object as an index of the search means, and A breadth-first search means is provided to search for upper class objects from the root object in the branching direction of the phylogenetic tree according to the index set in the index setting means, and from the upper class objects searched by this breadth-first search means in the concatenation direction of the phylogenetic tree according to the index. By providing a depth-first search method to search for the object to be searched, unnecessary searches are not performed for objects lower than class objects higher than the object to be searched, so the search range becomes smaller and the search process becomes faster. In addition, the system does not require management or hashing of object names and pointers to entities using a table such as a binary tree, and does not require a mechanism to manage object information separately from the knowledge base structure. The structure is simple and the system is easy to maintain.

請求項2記載の発明は、オブジェクトの検索範囲が前回
検索したオブジェクトに対する所定条件に従って予め複
数設定された検索範囲規定手段を設け、検索されたオブ
ジェクトのポインタを一時記憶するラストオブジェクト
記憶手段を設け、このラストオブジェクト記憶手段が一
時記憶したポインタから選定した前回検索のオブジェク
トに基づいて検索範囲規定手段から検索範囲を読出して
次のオブジェクトを検索する範囲内検索手段を設けたこ
とにより、前回検索したオブジェクトに関連するオブジ
ェクトが優先的に検索されるので、関連するオブジェク
トを順次検索する作業時の検索処理を高速化することが
でき、さらに、範囲内検索手段のオブジェクトの検索回
数を各検索範囲毎に積算する有効検索範囲検出手段を設
け、この有効検索範囲検出手段の積算値に従って検索範
囲規定手段から範囲内検索手段に出力される検索範囲の
優先順位を変更する検索効率向上手段を設けたことによ
り、検索処理を繰返すと作業者の作業形態に対応して検
索範囲の優先順位が変更されるので、作業を繰返すと共
に無用な検索処理を実行する回数が低減されて検索処理
が高速化され、しかも、二分木等のテーブルによるオブ
ジェクト名称と実体へのポインタとの管理やハツシング
を行なわず、知識ベースの構造とは別にオブジェクトの
情報を管理する機構等を要しないので、システムの構造
が簡易でシステムの維持も容易である等の効果を有する
ものである。
The invention according to claim 2 provides a search range defining means in which a plurality of object search ranges are set in advance according to predetermined conditions for the previously searched object, and a last object storage means for temporarily storing a pointer of the searched object; The last object storage means reads the search range from the search range defining means based on the object of the previous search selected from the temporarily stored pointer, and searches for the next object. Objects related to objects are searched preferentially, so it is possible to speed up the search process when sequentially searching for related objects.Furthermore, the number of times the within-range search method searches for objects can be adjusted for each search range. By providing an effective search range detecting means that performs integration, and providing a search efficiency improving means that changes the priority order of the search range output from the search range defining means to the within-range searching means according to the integrated value of the effective search range detecting means. When the search process is repeated, the priority order of the search range is changed according to the worker's work style, so the number of times the work is repeated and unnecessary search processes are reduced, speeding up the search process. , there is no need to manage or hash object names and pointers to entities using a table such as a binary tree, and there is no need for a mechanism to manage object information apart from the knowledge base structure, so the system structure is simple and the system This has the advantage of being easy to maintain.

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

図面は本発明の実施例を示すものであり、第1図は請求
項1記載の発明の実施例を示す動作説明図、第2図は請
求項2記載の発明の実施例を示す検索範囲の構造説明図
である。 1・・・知識ベース、2・・・ルートオブジェクト、3
・・・クラスオブジェクト、4・・・インスタンスオブ
ジェクト、5・・・検索範囲 出 願 人   株式会社 リコー
The drawings show an embodiment of the present invention, and FIG. 1 is an operation explanatory diagram showing the embodiment of the invention as claimed in claim 1, and FIG. 2 is an illustration of the search range showing the embodiment of the invention as claimed in claim 2. It is a structural explanatory diagram. 1...Knowledge base, 2...Root object, 3
...Class object, 4...Instance object, 5...Search scope Applicant Ricoh Co., Ltd.

Claims (1)

【特許請求の範囲】 1、先端部に位置するルートオブジェクトと中間部に位
置するクラスオブジェクトと末端部に位置するインスタ
ンスオブジェクトとが系統樹状に連結された知識ベース
から一つのオブジェクトを検索する検索手段を設けた知
識ベース検索システムにおいて、検索手段のインデクス
として検索するオブジェクトの名称と前記オブジェクト
の上位に位置するクラスオブジェクトの名称とを設定す
るインデクス設定手段を設け、このインデクス設定手段
に設定されたインデクスに従って上位のクラスオブジェ
クトをルートオブジェクトから系統樹の分岐方向に検索
する幅優先検索手段を設け、この幅優先検索手段が検索
した上位のクラスオブジェクトから前記インデクスに従
って系統樹の連結方向に検索対象の前記オブジェクトを
検索する深さ優先検索手段を設けたことを特徴とする知
識ベース検索システム。 2、先端部に位置するルートオブジェクトと中間部に位
置するクラスオブジェクトと末端部に位置するインスタ
ンスオブジェクトとが系統樹状に連結された知識ベース
から一つのオブジェクトを検索する検索手段を設けた知
識ベース検索システムにおいて、オブジェクトの検索範
囲が前回検索したオブジェクトに対する所定条件に従っ
て予め複数設定された検索範囲規定手段を設け、検索さ
れたオブジェクトのポインタを一時記憶するラストオブ
ジェクト記憶手段を設け、このラストオブジェクト記憶
手段が一時記憶したポインタから選定した前回検索のオ
ブジェクトに基づいて前記検索範囲規定手段から検索範
囲を読出して次のオブジェクトを検索する範囲内検索手
段を設け、この範囲内検索手段のオブジェクトの検索回
数を各検索範囲毎に積算する有効検索範囲検出手段を設
け、この有効検索範囲検出手段の積算値に従って前記検
索範囲規定手段から前記範囲内検索手段に出力される検
索範囲の優先順位を変更する検索効率向上手段を設けた
ことを特徴とする知識ベース検索システム。
[Claims] 1. Search for one object from a knowledge base in which a root object located at the tip, a class object located at the middle, and an instance object located at the end are connected in a phylogenetic tree. In a knowledge base search system provided with a means, an index setting means is provided for setting the name of an object to be searched and the name of a class object positioned above the object as an index of the search means, and the index setting means is provided with the name of a class object located above the object. Breadth-first search means is provided to search for higher class objects from the root object in the branching direction of the phylogenetic tree according to the index, and from the upper class object searched by the breadth-first search means, the objects to be searched are searched in the concatenation direction of the phylogenetic tree according to the index. A knowledge base search system characterized by providing a depth-first search means for searching. 2. A knowledge base equipped with a search means for searching for a single object from a knowledge base in which a root object located at the tip, a class object located at the middle, and an instance object located at the end are connected in a phylogenetic tree. In the search system, there is provided a search range defining means in which a plurality of object search ranges are set in advance according to predetermined conditions for the previously searched object, and a last object storage means is provided for temporarily storing a pointer of a searched object. An in-range search means is provided for reading a search range from the search range defining means to search for the next object based on the object of the previous search selected from a pointer temporarily stored by the means, and the number of times the within-range search means searches for the object is provided. An effective search range detection means is provided for integrating the search range for each search range, and the priority order of the search range output from the search range definition means to the within-range search means is changed according to the integrated value of the effective search range detection means. A knowledge base search system characterized by providing efficiency improvement means.
JP2174833A 1990-07-02 1990-07-02 Knowledge base searching system Pending JPH0464130A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2174833A JPH0464130A (en) 1990-07-02 1990-07-02 Knowledge base searching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2174833A JPH0464130A (en) 1990-07-02 1990-07-02 Knowledge base searching system

Publications (1)

Publication Number Publication Date
JPH0464130A true JPH0464130A (en) 1992-02-28

Family

ID=15985456

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2174833A Pending JPH0464130A (en) 1990-07-02 1990-07-02 Knowledge base searching system

Country Status (1)

Country Link
JP (1) JPH0464130A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2146251A1 (en) 2008-07-15 2010-01-20 Ricoh Company, Ltd. Electrophotographic photoconductor, image forming apparatus using the same, and process cartridge
JP2011150546A (en) * 2010-01-21 2011-08-04 Toshiba Corp Recognition device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2146251A1 (en) 2008-07-15 2010-01-20 Ricoh Company, Ltd. Electrophotographic photoconductor, image forming apparatus using the same, and process cartridge
JP2011150546A (en) * 2010-01-21 2011-08-04 Toshiba Corp Recognition device

Similar Documents

Publication Publication Date Title
Dial et al. A computational analysis of alternative algorithms and labeling techniques for finding shortest path trees
EP1393206B1 (en) Data structure for information systems
EP0497543A2 (en) Augmented doubly-linked list search and management method for a system having stored listed data elements
US20090240655A1 (en) Bit String Seacrching Apparatus, Searching Method, and Program
JPH11212980A (en) Production of index and retrieval method
AU2002249161A1 (en) Data structure for information systems
EP2631815A1 (en) Method and device for ordering search results, method and device for providing information
WO2003012689A1 (en) Method for fast searching and analyzing inter-relations between patents from a patent database
CN102169491B (en) Dynamic detection method for multi-data concentrated and repeated records
CN101477555B (en) Fast retrieval and generation display method for task tree based on SQL database
JPH10240765A (en) Method for retrieving similar object and device therefor
CN114491172A (en) Method, device and equipment for quickly searching tree structure nodes and storage medium
JPH0464130A (en) Knowledge base searching system
JP3505393B2 (en) Similar object search method and apparatus, and recording medium storing similar object search program
JP2629034B2 (en) File management method for data with identifiers of unlimited length
CN110347676A (en) Uncertain temporal data management and querying method based on relationship R tree
JP3552339B2 (en) Database system
JP2000250921A (en) Method and system for managing database
JPS61141035A (en) Data retrieval system
CN103699574A (en) Retrieval optimization method and system for complex retrieval formula
CN115687246A (en) Bidirectional K-V file management method and system of self-adaptive dynamic identification
CN106570172A (en) Stream processing-based mode updating method
JPH06103134A (en) Constructing method for index
JPH05158984A (en) Device for extracting character string
JPH10320402A (en) Method and device for generating retrieval expression, and record medium