JPH01282634A - Data base device - Google Patents
Data base deviceInfo
- Publication number
- JPH01282634A JPH01282634A JP63113047A JP11304788A JPH01282634A JP H01282634 A JPH01282634 A JP H01282634A JP 63113047 A JP63113047 A JP 63113047A JP 11304788 A JP11304788 A JP 11304788A JP H01282634 A JPH01282634 A JP H01282634A
- Authority
- JP
- Japan
- Prior art keywords
- classification
- index
- data
- items
- use purpose
- 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
Links
- 238000010276 construction Methods 0.000 abstract 4
- 238000010586 diagram Methods 0.000 description 5
- 238000000034 method Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000009835 boiling Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、互いに関連付けられたデータを蓄積し、この
中の所望のデータを多用な形態で検索することができる
データベース装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a database device that accumulates mutually associated data and is capable of searching for desired data therein in a variety of formats.
従来、この種のデータベース装置では複数の分類項目か
ら成るデータを1組のレコードデータを磁気ディスクメ
モリ装置などの大容量記憶装置に保持している。例えば
、社e1個人情報につし1て一例を挙げると、第5図に
示すように、氏名2年齢。Conventionally, in this type of database device, a set of record data consisting of a plurality of classification items is held in a mass storage device such as a magnetic disk memory device. For example, to give an example of personal information for company e1, as shown in FIG. 5, name, age, and age.
所属部、所属課2年収などの分類項目に分け、個人別に
保持している。この場合、各個人に関するデータを保持
する領域はレコード、各レコードの中で氏名2年齢等の
分類項目別のデータを保持する領域はフィールドと呼ば
れている。Data are divided into classification items such as department, department, and annual income, and are maintained for each individual. In this case, the area that holds data regarding each individual is called a record, and the area within each record that holds data classified by category such as name, age, etc. is called a field.
そこで、このようにデータ@造のデータから所望のデー
タを検索するに際しては、どのフィールドを大項目、中
項目、小項目とするかを決め、これらの各項目を上位か
ら辿る検索式を作り、この検索式を入力する。すると、
この検索式に従った検索処理が行なわれ、所望のデータ
を得ることができる。Therefore, when searching for desired data from data@structured data in this way, decide which fields should be large items, medium items, and small items, and create a search formula that traces each of these items from the top. Enter this search expression. Then,
A search process is performed according to this search formula, and desired data can be obtained.
一方、分類項目が増加すると、検索式を作成するのが困
難になるため、氏名1年齢等の分類項目を階層構造に分
類した分類インデックスを設定し、この分類インデック
スを順に辿ることによって所望のデータを検索するとい
う形態が商用のデータベース等で実用されている。On the other hand, as the number of classification items increases, it becomes difficult to create a search formula. Therefore, by setting a classification index in which classification items such as name, age, etc. are classified into a hierarchical structure, and following this classification index in order, the desired data can be retrieved. This method of searching is used in commercial databases, etc.
(発明が解決しようとする課題)
ところが、上記商用データベースで実用されている分類
インデックスは、その階層構造の種類が1種類だけであ
る。このため、利用目的を異にする複数の利用者が利用
する場合、あるいは1人の利用者が多くの目的を持って
利用する場合などでは、不要な階層も辿らざるを得なく
なる場合が多くなり、かえって利用し難いという問題が
ある。(Problem to be Solved by the Invention) However, the classification index used in the commercial database has only one type of hierarchical structure. For this reason, when multiple users with different purposes use the service, or when a single user uses the service for many purposes, unnecessary layers are often forced to be traced. However, the problem is that it is difficult to use.
本発明の目的は、利用目的毎に最適な検索を行うことが
できるデータベース装置を提供することにある。An object of the present invention is to provide a database device that can perform optimal searches for each purpose of use.
(課題を解決するための手段)
本発明は、複数の分類項目から成るデータを1組のレコ
ードデータとして複数組保持するデータ保持手段と、前
記レコードデータ中の所望の分類項目のデータを検索す
るためにIIF[構造の分類インデックスを作成するイ
ンデックス作成手段と、作成された分類インデックスを
複数組保持するインデックス保持手段と、保持されてい
る分類インデックスのうち1つを選択するインデックス
選択手段と、選択された分類インデックスに従って前記
データ保持手段に保持されているレコードデータの検索
を行う検索手段とを備えることにより、上記目的を達成
するものである。(Means for Solving the Problems) The present invention provides a data holding means for holding a plurality of sets of data consisting of a plurality of classification items as one set of record data, and a method for searching for data of a desired classification item in the record data. For this purpose, an index creating means for creating a classification index of the structure, an index holding means for holding a plurality of sets of created classification indexes, an index selection means for selecting one of the held classification indexes, and a selection means. The above object is achieved by comprising a search means for searching the record data held in the data holding means according to the classified index.
〔作用)
インデックス作成手段は、任意の分類項目からの組合せ
から成る階層構造の分類項目が指定されると、これらの
分類項目を辿る階層構造の分類インデックスを作成し、
インデックス保持手段に保持させる。従って、利用目的
に合わせて15層構造の分類項目を指定しておけば、こ
れらの分類項目を辿る分類インデックスがインデックス
保持手段に保持されているため、利用目的にあった分類
インデックスを選択することにより、所望のデータに辿
り着くことができるようになり、利用目的毎に最適な検
索を行うことができる。[Operation] When a hierarchically structured classification item consisting of a combination of arbitrary classification items is specified, the index creation means creates a hierarchically structured classification index that traces these classification items,
The index is held in the index holding means. Therefore, if you specify the classification items in the 15-layer structure according to the purpose of use, the classification index that traces these classification items is held in the index holding means, so you can select the classification index that matches the purpose of use. This makes it possible to arrive at the desired data and perform an optimal search for each purpose of use.
〔実施例]
第1図は本発明の一実施例を示すブロック図であり、磁
気ディスクメモリ装置等で構成されたデータ保持装W1
1(以下、データベース本体と言う)と、複数種類の分
類インデックスを保持するインデックス保持装置2と、
分類インデックスの作成やデータ検索を行う処M31n
3とから構成されている。[Embodiment] FIG. 1 is a block diagram showing an embodiment of the present invention, in which a data holding device W1 composed of a magnetic disk memory device, etc.
1 (hereinafter referred to as the database body), an index holding device 2 that holds multiple types of classification indexes,
Process for creating classification indexes and data searches M31n
It is composed of 3.
処理装置3は、利用者が操作する端末装置(図示せず)
との間で検索要求や研削結果を送受するための通信制御
部30と、処理装置3の中の各部を制■すると共に、利
用目的に応じた分類インデックスを作成する中央部n装
置31とを有している。さらに、インデックス保持装置
Q2に保持されている複数種類のインデックスの切替や
、利用目的に応じて作成された分類インデックスを保持
装置2に格納する分類インデックス処理部32と、分類
インデックスの編集を行う分類インデックス編集部33
と、データベース本体1に保持されているデータに対し
てキーワードやレコード番号による検索を行うデータベ
ース検索部34と、データベース本体1に保持されてい
るデータの削除、編集あるいは追加を行うデータベース
編集部35とを備えている。The processing device 3 is a terminal device (not shown) operated by a user.
a communication control unit 30 for transmitting and receiving search requests and grinding results to and from the processing unit 3, and a central unit 31 that controls each unit in the processing unit 3 and creates a classification index according to the purpose of use. have. Furthermore, there is a classification index processing unit 32 that switches between multiple types of indexes held in the index holding device Q2 and stores in the holding device 2 a classification index created according to the purpose of use, and a classification index processing unit 32 that edits the classification index. Index editorial department 33
, a database search unit 34 that searches data held in the database body 1 using keywords and record numbers, and a database editing unit 35 that deletes, edits, or adds data held in the database body 1. It is equipped with
以上の構成において、例えば第5図で示した社員個人情
報がデータベース本体1に保持されているものとし、こ
の社員個人情報から第2図に示すように総務部所属で、
20才代の年齢の年収500万円以下の人を検索する場
合の分類インデックス作成手順を例に挙げて説明する。In the above configuration, for example, it is assumed that the employee personal information shown in FIG. 5 is held in the database main body 1, and from this employee personal information, as shown in FIG.
The procedure for creating a classification index when searching for people in their 20s with an annual income of 5 million yen or less will be explained as an example.
この場合、まず、分類項目の最上位IIPi層が所属部
、次位階層が年齢、さらに次の階層が年収であるため、
第3図の分類インデックス作成アルゴリズムのフローチ
ャートに示すように、各階層のフィールド名とその検索
範囲を入力して指定する。In this case, first, the highest IIPi layer of the classification items is the department, the next layer is age, and the next layer is annual income, so
As shown in the flowchart of the classification index creation algorithm in FIG. 3, the field name of each layer and its search range are input and specified.
すなわち、所属部9年齢のフィールド名を指定し、この
うち年齢については20才〜29才を指定し、さらに年
収についてはO〜500万円を指定する(第3図のステ
ップ100)。That is, the field name of department 9 age is specified, and the age is specified as 20 to 29 years old, and the annual income is specified as 0 to 5 million yen (step 100 in FIG. 3).
この各階層の分類項目(すなわちフィールド名)は、利
用者が操作する端末装置において入力され、通信回線等
を介して通信制御部30で受信された後、中央演算装置
31に入力される。The classification items (i.e., field names) of each layer are input into a terminal device operated by a user, received by the communication control unit 30 via a communication line, etc., and then input into the central processing unit 31.
中央演算装置31Gよ、すべての階層の分類項目が入力
されたならば、入力された各階層の分類項目を最上位階
層から最下位階層まで辿る検索式の論理式を作成する(
第3図ステップ101.102)。Central processing unit 31G, once the classification items of all the layers have been input, create a logical expression for a search formula that traces the input classification items of each layer from the top layer to the bottom layer (
Steps 101 and 102 in Figure 3).
ここで、分類インデックスの各階層は第4図(a)に示
すようにAAA、BBB、EEE、というようなキーワ
ードで記述され、AAAを所属部、BBBを年齢、EE
Eを年収のキーワードであるとすると、これらのキーワ
ードとそれに対応する内容が1つの分類インデックスフ
ァイルとして分類インデックス保持装c!2の中のファ
イル2A〜2Cのいずれかに格納される。例えば、AA
A、BBB、EEEをキーワードとする分類インデック
スファイルを2八であるとすると、このファイル2Aは
w54図(b)に示すように、キーワードとその内容、
および各キーワードで示される分類項目の下位につなが
る分類項目の識別子とから構成されたテーブル構造のフ
ァイルとして格納される。この場合、識別子のrOJ、
NJの「0」は当該階層における分類項目が格納されて
いることを示し、「1」は論理式に合致した条件のレコ
ードの番号が格納されていることを示しており、AAA
のキーワードで示される最上位の階層の分類項目は$
T−OP $というキーワードで検索される。Here, each layer of the classification index is described using keywords such as AAA, BBB, and EEE, as shown in Figure 4(a), where AAA is the department, BBB is the age, and EE is the keyword.
Assuming that E is a keyword for annual income, these keywords and their corresponding contents are stored as one classification index file in the classification index holding device c! 2 is stored in one of files 2A to 2C. For example, A.A.
Assuming that the classification index file with keywords A, BBB, and EEE is 28, this file 2A has keywords and their contents, as shown in w54 figure (b).
and identifiers of classification items that are subordinate to the classification item indicated by each keyword. In this case, the identifier rOJ,
"0" in NJ indicates that the classification item in the relevant hierarchy is stored, "1" indicates that the record number of the condition that matches the logical expression is stored, and AAA
The top level classification item indicated by the keyword is $
Searched using the keyword T-OP $.
そこで、中央演算vR置31は作成した論理式をデータ
ベース検索部34に転送し、論理式で示された条件に合
致するデータをデータベース本体1において検索させる
。Therefore, the central processing vR unit 31 transfers the created logical formula to the database search section 34, and searches the database main body 1 for data that match the conditions indicated by the logical formula.
データベース検索部34は、社員個人情報の中から論理
式で示された条件に合致するデータが格納されているレ
コードを検出したならば、そのレコードの番号を中央演
算装@31に返信する。If the database search unit 34 detects a record in which data matching the condition expressed by the logical formula is stored from among the employee personal information, the database search unit 34 returns the number of the record to the central processing unit @31.
ここで、総務部所属で、20才代の年収500万円以下
の人を検索するための分類インデックスを格納するファ
イルが2A〜2Cのファイルのうち2Aであったとする
と、中央演算装置31は入力されたレコード番号をファ
イル2Aのうち最下位階層の分類項目「年収」に対応す
るテーブルエリアに格納する(第3図のステップ103
)。Here, if the file that stores the classification index for searching for people in their 20s who belong to the general affairs department and have an annual income of 5 million yen or less is 2A of files 2A to 2C, the central processing unit 31 inputs The recorded record number is stored in the table area corresponding to the classification item "annual income" at the lowest level in file 2A (step 103 in Figure 3).
).
すなわち、第4図(b)で示したテーブル構造の分類イ
ンデックスフフィル2AのうちキーワードEEEに対応
するテーブルエリアに論理式に合致するデータが格納さ
れているデータベース本体1のレコード番号を格納する
。That is, the record number of the database main body 1 in which data matching the logical formula is stored is stored in the table area corresponding to the keyword EEE in the classification index file 2A having the table structure shown in FIG. 4(b).
これによって、第2図に示した総務部所属で、年齢が2
0才代の年収500万円以下の人の分類インデックスが
第4図(a)に示すような階層構造で作成される。As a result, the age of the person belonging to the General Affairs Department shown in Figure 2 is 2.
A classification index for people under the age of 5 with an annual income of 5 million yen or less is created in a hierarchical structure as shown in FIG. 4(a).
従って、検索目的に応じた分類インデックスを作成し、
インデックスファイル2の中に予め格納しておけば、そ
の中から目的に応じた分類インデックスを選択し、その
中の階層を辿れることによって所望のデータに辿り着く
ことができる。従って、検索に際して不要な階層を辿る
手順がなくなり、利用者目的にあった効率的な検索が可
能になる。また、その都度検索式を入力することもない
ため、操作も簡単になり、未熟棟台でも簡単に検索作業
を進めることができる。Therefore, we created a classification index according to the search purpose,
If the index file 2 is stored in advance, the desired data can be reached by selecting a classification index according to the purpose and tracing the hierarchy therein. Therefore, there is no need to trace unnecessary hierarchies during a search, making it possible to perform an efficient search that suits the user's purpose. In addition, since there is no need to input a search formula each time, the operation becomes simple, and even inexperienced users can easily proceed with the search work.
ところで、第2図で示したような階層構造に区分される
データに対して新たなWA層のデータが追加あるいは削
除が行なわれた場合は、特別の処理を行う必要がある。By the way, when new WA layer data is added or deleted from data classified into a hierarchical structure as shown in FIG. 2, special processing must be performed.
例えば、A、B、Cという階層区分のデータがあるとき
、lI5層Aの下位に新たなデータが追加された場合は
他の階層B、Cでは追加されたデータをアクセスするた
めのレコード番号が不明となる。そこで、このような場
合には、最上位の階層Aに「未整理」という項目を設け
、この未整理項目の中に追加されたデータのレコード番
号を格納しておくことにより、下位の階層B。For example, when there is data in hierarchical divisions A, B, and C, if new data is added below layer A in 5th layer, the record number for accessing the added data in other layers B and C is It becomes unknown. Therefore, in such a case, by setting an item called "unorganized" in the top layer A and storing the record number of the added data in this unorganized item, the lower layer B .
Cでは追加されたデータのレコード番号を知ることがで
きる。In C, you can know the record number of the added data.
一方、ある階層の下位のレコードが削除された場合は、
データそのものを削除してしまうと、他の階層からアク
セスすることが不可能になってしまう。そこで、このよ
うな場合にはその階層に付されているレコード番号のみ
を削除し、レコードそのものは削除しないようにする。On the other hand, if a lower record in a certain hierarchy is deleted,
If the data itself is deleted, it becomes impossible to access it from other hierarchies. Therefore, in such a case, only the record number assigned to that hierarchy is deleted, but the record itself is not deleted.
これによって、他の階層からでもアクセスすることが可
能になる。This allows access even from other hierarchies.
なお、最下位の階層に検索式を格納しておけば、動的に
データベース本体1をアクセスすることも可能になる。Note that if the search formula is stored in the lowest hierarchy, it becomes possible to access the database main body 1 dynamically.
〔発明の効果]
以上説明したように本発明によれば、利用目的に応じた
分類項目を指定することにより。その利用目的に応じた
階層構造の分類インデックスが自動的に作成されて保持
されるため、その保持されている分類インデックスのう
ち所望のものを選択することにより、利用目的に応じた
最適な研削を行うことができる。[Effects of the Invention] As explained above, according to the present invention, by specifying classification items according to the purpose of use. A hierarchical classification index according to the purpose of use is automatically created and maintained, so by selecting the desired classification index from among the maintained classification indexes, the optimum grinding according to the purpose of use can be performed. It can be carried out.
第1図は本発明の一実施例を示すブロック図、第2図は
階層構造の分類インデックスを作成する庁、のデータの
一例を示す説明図、第3図は分類インデックスの作成ア
ルゴリズムを示すフローチャート、第4図は分類インデ
ックスの階層構造と格納形態を示す説明図、第5図はデ
ータベース本体に格納されているデータの一例とその格
納形態を示す説明図である。
1・・・データベース本体、2・・・分類インデックス
保持装置、3・・・処理装置、31・・・中央波峰装置
、32・・・分類インデックス処理部、33・・・分類
インデックス編集部、34・・・データベース検索部、
35・・・データベース編集部。
第1図
轡49P 導針 沸収第2図
第3図Fig. 1 is a block diagram showing an embodiment of the present invention, Fig. 2 is an explanatory diagram showing an example of data of an agency that creates a hierarchical classification index, and Fig. 3 is a flowchart showing an algorithm for creating a classification index. , FIG. 4 is an explanatory diagram showing the hierarchical structure and storage format of the classification index, and FIG. 5 is an explanatory diagram showing an example of data stored in the database main body and its storage format. DESCRIPTION OF SYMBOLS 1... Database main body, 2... Classification index holding device, 3... Processing device, 31... Central wave peak device, 32... Classification index processing part, 33... Classification index editing part, 34 ...Database search department,
35...Database editorial department. Figure 1 轡49P Pointer Boiling Figure 2 Figure 3
Claims (1)
として複数組保持するデータ保持手段と、前記レコード
データ中の所望の分類項目のデータを検索するために階
層構造の分類インデックスを作成するインデックス作成
手段と、 作成された分類インデックスを複数組保持するインデッ
クス保持手段と、 保持されている分類インデックスのうち1つを選択する
インデックス選択手段と、 選択された分類インデックスに従つて前記データ保持手
段に保持されているレコードデータの検索を行う検索手
段と を備えるデータベース装置。[Scope of Claims] Data holding means for holding a plurality of sets of data consisting of a plurality of classification items as one set of record data, and a classification index with a hierarchical structure for searching data of a desired classification item in the record data. index creating means for creating a plurality of sets of created classification indexes; index selection means for selecting one of the stored classification indexes; and index selection means for selecting one of the stored classification indexes; A database device comprising a search means for searching record data held in a data holding means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63113047A JP2715443B2 (en) | 1988-05-10 | 1988-05-10 | Database device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63113047A JP2715443B2 (en) | 1988-05-10 | 1988-05-10 | Database device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH01282634A true JPH01282634A (en) | 1989-11-14 |
JP2715443B2 JP2715443B2 (en) | 1998-02-18 |
Family
ID=14602144
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63113047A Expired - Lifetime JP2715443B2 (en) | 1988-05-10 | 1988-05-10 | Database device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2715443B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06103134A (en) * | 1992-09-18 | 1994-04-15 | Hitachi Software Eng Co Ltd | Constructing method for index |
JPH09274620A (en) * | 1996-04-05 | 1997-10-21 | Casio Comput Co Ltd | Data output device |
JP2006318302A (en) * | 2005-05-13 | 2006-11-24 | Omron Corp | Data preparation device |
-
1988
- 1988-05-10 JP JP63113047A patent/JP2715443B2/en not_active Expired - Lifetime
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06103134A (en) * | 1992-09-18 | 1994-04-15 | Hitachi Software Eng Co Ltd | Constructing method for index |
JPH09274620A (en) * | 1996-04-05 | 1997-10-21 | Casio Comput Co Ltd | Data output device |
JP2006318302A (en) * | 2005-05-13 | 2006-11-24 | Omron Corp | Data preparation device |
Also Published As
Publication number | Publication date |
---|---|
JP2715443B2 (en) | 1998-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5257365A (en) | Database system with multi-dimensional summary search tree nodes for reducing the necessity to access records | |
US6236988B1 (en) | Data retrieval system | |
US6920458B1 (en) | Model repository | |
US5544360A (en) | Method for accessing computer files and data, using linked categories assigned to each data file record on entry of the data file record | |
EP0437159B1 (en) | Method for identifying documents having a particular attribute using a vector relational characteristical object | |
US6266660B1 (en) | Secondary index search | |
US6675160B2 (en) | Database processing method, apparatus for carrying out the same and medium storing processing program | |
US20040078355A1 (en) | Information management system | |
JPH11505342A (en) | Method for processing and accessing information objects, in particular documents, and systems for implementing the method | |
CN108984626B (en) | Data processing method and device and server | |
JPH01282634A (en) | Data base device | |
EP1116137B1 (en) | Database, and methods of data storage and retrieval | |
JPH09305622A (en) | Method and system for managing data base having document retrieval function | |
US6735584B1 (en) | Accessing a database using user-defined attributes | |
JPH04340163A (en) | Keyword retrieval system | |
JPH0934906A (en) | Book management device | |
JP2819567B2 (en) | Classification index creation device | |
JP3980326B2 (en) | Data management method and computer-readable recording medium | |
JP2697559B2 (en) | Information retrieval device | |
JP4228267B2 (en) | Collective attribute search system, collective attribute search method, and collective attribute search program | |
JP3498926B2 (en) | Document database management system | |
Dangerfield et al. | Relational Database Management Systems: A New Tool forCoding and Classification | |
JPH11312166A (en) | Data base management device | |
JP2827674B2 (en) | Database search method | |
JP2000322418A (en) | Data base system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081107 Year of fee payment: 11 |
|
EXPY | Cancellation because of completion of term | ||
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081107 Year of fee payment: 11 |