JPS62209617A - Retrieving system for knowledge expressing frame - Google Patents

Retrieving system for knowledge expressing frame

Info

Publication number
JPS62209617A
JPS62209617A JP61030178A JP3017886A JPS62209617A JP S62209617 A JPS62209617 A JP S62209617A JP 61030178 A JP61030178 A JP 61030178A JP 3017886 A JP3017886 A JP 3017886A JP S62209617 A JPS62209617 A JP S62209617A
Authority
JP
Japan
Prior art keywords
frame
search
data
retrieval
retrieving
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.)
Granted
Application number
JP61030178A
Other languages
Japanese (ja)
Other versions
JPH0560631B2 (en
Inventor
Sanpachi Uehara
上原 三八
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61030178A priority Critical patent/JPS62209617A/en
Publication of JPS62209617A publication Critical patent/JPS62209617A/en
Publication of JPH0560631B2 publication Critical patent/JPH0560631B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To attain retrieval in a short time even with a large amount of data with use of a prescribed retrieval key, by securing such a system where only the relevant frame can be retrieved via a hash table. CONSTITUTION:A retrieval deciding part 1 decides whether or not the slots in a frame set as retrieval keys form a hash table. If no has table is formed, a conventional retrieving part 2 retrieves all frames individually and successively. At the same time, a fact that a single retrieving action is carried out is recorded to the column of the corresponding slot at a storing area 20 for the retrieving number of data of a frame control data storing device 10. Then, the second decision is carried out by the part 1 when the same slot is requested as a retrieval key. At the same time, the reference is to the frequency and therefore the prescribed value, e.g., '1' is recorded to decide the 2nd retrieving request. Thus the processing is changed not through the part 2.

Description

【発明の詳細な説明】 [概要] 知識表現をフレームの形式により行う知識データシステ
ムの検索方式において、全フレームを検索することなく
、所定値以上の検索頻度があるとき、フレームの構成要
素のデータによりハツシュテーブルを作成し検索する方
式である。
[Detailed Description of the Invention] [Summary] In a search method of a knowledge data system in which knowledge is expressed in the form of frames, when the search frequency exceeds a predetermined value without searching all frames, data of the constituent elements of the frame is searched. This method creates and searches a hash table.

[産業上の利用分野] 本発明は知識表現をフレームの形式により行う知識デー
タシステムの検索方式において、ハツシュテーブルを介
して高速に検索できる方式に関する。
[Industrial Application Field] The present invention relates to a search method for a knowledge data system in which knowledge is expressed in the form of a frame, and to a method that allows high-speed searching via a hash table.

[従来技術の説明] 知識工学またはエキスパートシステムおいて、大量の知
識情報を構造化して扱うための知識要素として「フレー
ム」の概念が導入された。第5図に示すように例えば「
人」に関する情報を集めるときを考える。予め何と何の
情報を集めるかを定めた管理データ格納装置を20と示
している。管理データは当時に人に関する知識を表現す
る「フレーム」のフォーマット定めている。8亥データ
フオーマントにより具体的な個人について集められたデ
ータ群をそれぞれフレームと云い、23.24と示され
ている。各フレームについて氏名「山田−夫」年令「3
0」のようにフレームを構成する部分を「スロット」と
いう。なお21.22は管理データ格納装置からフレー
ムへのリングデータを示す。多量のデータについて、所
定条件に合致するものをチックするとき例えば「年令2
5才の人」は何人いて、名前は何かという検索のとき、
「年令25」をキーにして全フレームを順次チェックし
て行った。
[Description of Prior Art] In knowledge engineering or expert systems, the concept of a "frame" has been introduced as a knowledge element for structuring and handling a large amount of knowledge information. For example, as shown in Figure 5,
Think about when you want to collect information about people. Reference numeral 20 indicates a management data storage device in which it is determined in advance what information is to be collected. Administrative data is defined in the format of "frames" that express knowledge about people at the time. Each data group collected about a specific individual using the 80 data form is called a frame, and is shown as 23.24. For each frame, name: “Yamada-husband”, age: “3”
The parts that make up a frame, such as "0", are called "slots". Note that 21 and 22 indicate ring data from the management data storage device to the frame. When ticking a large amount of data that matches a predetermined condition, for example, "age 2"
When searching for "5 year olds", how many people are there and what are their names?
All frames were sequentially checked using "age 25" as a key.

[発明が解決しようとする問題点] 従来のフレーム構造では、各フレームが線型に並んでい
るため、前述のようにキー情報により検索するとき、最
初のフレームから最後のフレームまで順次に全部検索し
なければならず、長時間を要して効率が極めて悪かった
[Problems to be Solved by the Invention] In the conventional frame structure, each frame is arranged linearly, so when searching by key information as described above, it is necessary to search all frames sequentially from the first frame to the last frame. This required a long time and was extremely inefficient.

本発明の目的は前述の欠点を改善し、簡易な構成でフレ
ーム検索を能率的に実行できるフレーム検索方式を提供
することにある。
SUMMARY OF THE INVENTION An object of the present invention is to improve the above-mentioned drawbacks and to provide a frame search method that can perform frame searches efficiently with a simple configuration.

[問題点を解決するための手段] 第1図は本発明の基本構成を示すブロック図である。第
1図において10はフレーム管理データ格納装置、11
.12はデータ格納装置10からフレームへのリンクデ
ータ、13.14はフレーム、15はハ・ノシュテーブ
ル、16.17はハツシュテーブルからフレーム13.
14を指すデータ、20は検索頻度データの格納個所を
示す。
[Means for Solving the Problems] FIG. 1 is a block diagram showing the basic configuration of the present invention. In FIG. 1, 10 is a frame management data storage device;
.. 12 is the link data from the data storage device 10 to the frame, 13.14 is the frame, 15 is the Hash table, and 16.17 is the link data from the Hash table to the frame 13.14.
Data 14 indicates a storage location of search frequency data, and 20 indicates a storage location of search frequency data.

[作用] 第2図に示す動作説明図において検索開始のときは、ま
ず検索判定部■において検索キーとして設定したフレー
ム中のスロットが、ハツシュテーブルとなされているか
どうか判断する。ハツシュテーブルを作成していないと
きは従来検索部■において、全フレームを個別に順次検
索する。同時にフレーム管理データ格納装置(第1図1
0)の検索頻度データの格納個所20の当該スロットの
欄に、1回検索がなされた旨を記録する。次に同一スロ
ットを検索キーとして要求されたとき再び判定部■にお
いて判定する。同時に頻度を参照するから、所定値例え
ば1が記録されていて、2回目の検索要求であることが
判ると、ハツシュテーブルを作成するように従来検索部
■ではなく処理が変更される。ハツシュ作成部■におい
てハツシュテーブル15が作成され、次にそのテーブル
により第2図のハツシュ検索部■が検索を行う。このと
きは検索キーが例えば人の年令25才に関するものであ
るとき、すべての人のフレーム13.14−のスロット
のうち、テーブルの25番目の場所から指定されたデー
タ16.17−・についてのみ検索して行く。データ1
6についてリングデータ12を経由してフレーム14の
中から鈴木良子・女というデータを知る。次にデータ1
7について同様にフレームを検索する。このとき年令2
5才以外の人については検索がなされていないから検索
の要処理時間は極めて短い。
[Operation] When starting a search in the operation explanatory diagram shown in FIG. 2, first, the search determination unit (2) determines whether or not the slot in the frame set as the search key is set as a hash table. When a hash table has not been created, the conventional search section (2) sequentially searches all frames individually. At the same time, the frame management data storage device (Fig.
0), the fact that one search has been performed is recorded in the column of the slot in the search frequency data storage location 20. Next, when the same slot is requested as a search key, the decision is made again in the decision section (2). Since the frequency is referenced at the same time, if a predetermined value, for example 1, is recorded and it is determined that this is the second search request, the process is changed to create a hash table instead of the conventional search unit (2). A hash table 15 is created in the hash creation section (2), and then the hash search section (2) shown in FIG. 2 performs a search using the table. In this case, when the search key is related to the age of a person, for example, 25 years old, the data 16.17-. specified from the 25th position of the table among the slots of frames 13.14- of all people. Just search for it. data 1
Regarding No. 6, the data of Yoshiko Suzuki (female) is known from frame 14 via ring data 12. Next data 1
7, the frame is searched in the same way. At this time, age 2
Since no searches have been made for persons other than 5 years old, the processing time required for the search is extremely short.

なお一旦ハッシュテーブル作成がなされた後、更に検索
が要求されたときは判定部■の次に直ぐハツシュ検索部
■が動作するから、従来検索部■が動作することより常
に短時間に検索できる。
Once the hash table has been created, when a further search is requested, the hash search section (2) operates immediately after the determination section (2), so the search can always be performed in a shorter time than when the conventional search section (2) operates.

なお第2図において■はフレームメモリで、検索判定部
■〜ハツシュ作成部■における動作はすべてフレームメ
モリ■に対する動作を行う。その意味は1点鎖線で示し
である。
In FIG. 2, ``■'' is a frame memory, and all operations in the retrieval determination unit ``■'' to the hash creation unit ``■'' are performed on the frame memory ``■''. Its meaning is indicated by a dashed line.

[実施例] 第3図、第4図は本発明の実施例として第2図のハツシ
ュ作成部■及びハツシュ検索部■についての動作フロー
チャートを示す。第3図においてハツシュ作成開始のと
き、ステップ■でハツシュテーブルを作る。次にステッ
プ@でフレームが在るかどうか判定する。在るときステ
ップ0でフレームのスロットの値でハツシュ・キーを作
る。次にステップ■においてハツシュテーブルに加えて
、次のフレームの在る・無しを判定するステップ@へ戻
る。フレームがないときテーブル作成は終了する。
[Embodiment] FIGS. 3 and 4 show operational flowcharts of the hash creation section (2) and the hash search section (2) shown in FIG. 2 as an embodiment of the present invention. In FIG. 3, when starting hash creation, a hash table is created in step (2). Next, in step @, it is determined whether a frame exists. If so, create a hash key using the frame slot value in step 0. Next, in step (2), in addition to the hash table, the process returns to step @ where it is determined whether the next frame exists or not. Table creation ends when there are no frames.

次に第4図においてハツシュ検索開始のとき、ステップ
■において答えを空リストに設定する。ステップ[相]
において「値」でハツシュ・キーを作る。
Next, in FIG. 4, when starting a hash search, the answer is set in the empty list in step (3). step [phase]
Create a hash key with "value" in .

ステップOにおいて該当ハツシュの中に要素が在るかど
うか判定し、在るときステップ0において「値」で比較
し、一致したらリストに加える。ステップOに戻って繰
り返す。若しステップOにおいて要素がないときは処理
を終了する。
In step O, it is determined whether the element exists in the corresponding hash, and if it exists, it is compared by "value" in step 0, and if it matches, it is added to the list. Return to step O and repeat. If there is no element in step O, the process ends.

[発明の効果コ このようにして本発明によると、ハッシュテーブルによ
り該当フレームのみを検索して行うことができるため、
膨大な知識データについても、所定の検索キーを与えれ
ば短時間で検索することができる。ハツシュテーブルそ
れ自体は公知の事実であるが、フレームを扱う知識デー
タンステムに適用し、ハツシュテーブルを介して検索す
ることは前述のとおり、極めて荷動である。
[Effects of the Invention] According to the present invention, it is possible to search only the relevant frame using the hash table.
Even a huge amount of knowledge data can be searched in a short time by providing a predetermined search key. Although the hash table itself is a well-known fact, applying it to a knowledge data system that handles frames and searching through the hash table is extremely labor intensive, as described above.

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

第1図は本発明の基本構成を示す図、 第2図は第1図についての動作説明図、第3図、第4図
は第2図の動作フローチャート、第5図は従来の検索方
式を説明する図である。 10.20・・〜フレーム管理データ格納装置11゜1
2.21.22−−−リンクデータ 1314.23.24−・フレーム 15−・ハツシュテーブル 特許出願人    冨士通株式会社 代理人    弁理士  鈴木栄祐 第1図 [相] 肩 へ 派
Figure 1 is a diagram showing the basic configuration of the present invention, Figure 2 is an explanatory diagram of the operation of Figure 1, Figures 3 and 4 are flowcharts of the operation of Figure 2, and Figure 5 shows the conventional search method. FIG. 10.20...~Frame management data storage device 11゜1
2.21.22--Link data 1314.23.24--Frame 15--Hatstable Patent applicant Fujitsu Co., Ltd. agent Patent attorney Eisuke Suzuki Figure 1 [Phase] Shoulder section

Claims (1)

【特許請求の範囲】 知識表現をフレームの形式により行う知識データシステ
ムの検索方式において、 フレーム管理データ格納装置(10)には検索に対する
頻度を管理するデータを格納する個所(20)を具備し
、 該頻度が所定値を越えたとき、各フレーム中の検索キー
となるデータ値をもとにハッシュテーブル(15)を作
成し、 該テーブル(15)を介して検索すること を特徴とする知識表現フレームの検索方式。
[Claims] In a search method for a knowledge data system in which knowledge is expressed in the form of frames, a frame management data storage device (10) is provided with a location (20) for storing data for managing frequency of searches; A knowledge expression characterized in that when the frequency exceeds a predetermined value, a hash table (15) is created based on data values serving as a search key in each frame, and a search is performed via the table (15). Frame search method.
JP61030178A 1986-02-14 1986-02-14 Retrieving system for knowledge expressing frame Granted JPS62209617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61030178A JPS62209617A (en) 1986-02-14 1986-02-14 Retrieving system for knowledge expressing frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61030178A JPS62209617A (en) 1986-02-14 1986-02-14 Retrieving system for knowledge expressing frame

Publications (2)

Publication Number Publication Date
JPS62209617A true JPS62209617A (en) 1987-09-14
JPH0560631B2 JPH0560631B2 (en) 1993-09-02

Family

ID=12296499

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61030178A Granted JPS62209617A (en) 1986-02-14 1986-02-14 Retrieving system for knowledge expressing frame

Country Status (1)

Country Link
JP (1) JPS62209617A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5129074A (en) * 1988-09-22 1992-07-07 Hitachi Vlsi Engineering Corporation Data string storage device and method of storing and retrieving data strings

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5129074A (en) * 1988-09-22 1992-07-07 Hitachi Vlsi Engineering Corporation Data string storage device and method of storing and retrieving data strings

Also Published As

Publication number Publication date
JPH0560631B2 (en) 1993-09-02

Similar Documents

Publication Publication Date Title
US20060080282A1 (en) Data management method and storage medium storing data management program
JP2005011109A (en) Job management method, information processor, program, and recording medium
JPS62209617A (en) Retrieving system for knowledge expressing frame
JP2006114047A (en) Performance management data processing device using single table and its method
JP3478558B2 (en) Object storage search method in database
JP3260587B2 (en) Time series data management method
JP3039632B2 (en) Data management method
JP2827658B2 (en) Figure analysis device and figure search device
JPH07121417A (en) Data management device
JPS63153630A (en) Retrieval system for document to be cited
JP2000148782A (en) Method and system for retrieval from relational data base and information recording medium where retrieving program for relational data base is recorded
JP2004287628A (en) Database system
JP2003249961A (en) Method, device and program for storing traffic information, recoding medium recorded with the program, and method, device and program for retrieving traffic information, and recording medium recorded with the program
JPS61228537A (en) Multiplex index order formation file
JPH10247196A (en) Data extraction and retrieval system
JPH03230273A (en) Holding system for retrieval condition formula
JPH0284849A (en) Telephone number input system
JPH09282326A (en) Fast document structure retrieval system
JPH09330322A (en) Data retrieval device
JPH0512335A (en) Data base retrieval system
JPH07295993A (en) System for retrieving relational record
JPH05313971A (en) Key word managing system in relational data base
JPS6391753A (en) Managing system for plural files
JPH06222970A (en) History information storing method
JPH0224737A (en) File processor