JPH0659950A - Database system - Google Patents
Database systemInfo
- Publication number
- JPH0659950A JPH0659950A JP4213836A JP21383692A JPH0659950A JP H0659950 A JPH0659950 A JP H0659950A JP 4213836 A JP4213836 A JP 4213836A JP 21383692 A JP21383692 A JP 21383692A JP H0659950 A JPH0659950 A JP H0659950A
- Authority
- JP
- Japan
- Prior art keywords
- data
- keyword
- unit
- storage unit
- key
- 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
- 238000013500 data storage Methods 0.000 claims abstract description 21
- 238000006243 chemical reaction Methods 0.000 claims abstract description 13
- 238000000034 method Methods 0.000 claims description 4
- 238000007726 management method Methods 0.000 abstract 2
- 238000010586 diagram Methods 0.000 description 3
- 238000013523 data management Methods 0.000 description 2
- 238000013499 data model Methods 0.000 description 2
- LFYJSSARVMHQJB-QIXNEVBVSA-N bakuchiol Chemical compound CC(C)=CCC[C@@](C)(C=C)\C=C\C1=CC=C(O)C=C1 LFYJSSARVMHQJB-QIXNEVBVSA-N 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はデータベースシステムに
関し、特に、テキスト形式データのフルサーチにより直
接固定長レコードの照合を行うデータベースシステムに
関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database system, and more particularly to a database system for directly collating fixed length records by full search of text format data.
【0002】[0002]
【従来の技術】従来一般に普及しているデータベースシ
ステムは大きく分類して、関係型データモデルを用いた
データベース(リレーショナル・データベース)と網型
データモデルを用いたデータベース(ネットワーク・デ
ータベース)とがある。関係型データベースは、レコー
ドの各項目を表形式で表現した概念モデルを持ち、集合
演算に基づく関係代数演算により表の参照操作などが行
われる。また、網型データベースはデータを節点で表
し、その親子関係などを有向辺で表現するようなグラフ
表現で示される概念モデルを持つ。これらは、蓄積され
ている各データレコードやその内部のデータ項目を関係
づけることにより、膨大な量のデータの高速なデータ検
索やデータ管理の一元化をはかろうとするものである。2. Description of the Related Art Conventionally widely used database systems are roughly classified into a database using a relational data model (relational database) and a database using a network data model (network database). The relational database has a conceptual model in which each item of a record is expressed in a table format, and table reference operations and the like are performed by relational algebraic operations based on set operations. In addition, the mesh database has a conceptual model represented by a graph representation in which data is represented by nodes and the parent-child relationship is represented by directed edges. These relate to each data record that has been accumulated and the data items inside the data records, thereby attempting to perform high-speed data retrieval of a vast amount of data and centralize data management.
【0003】[0003]
【発明が解決しようとする課題】従来のデータベース
は、各データを関係づけることによりデータ管理の一元
化などがなされるが、利用に関してはいくつかの問題点
もある。In the conventional database, data management is unified by associating each data with each other, but there are some problems in use.
【0004】まず、各レコードや内部項目データの関係
を十分に把握しなければデータベース構築及び運用管理
が困難である。特に網型データベースなどでは物理的な
データ構造やデータへのアクセスパスなどについての知
識が必要となり、データベースに関する知識のない者に
は利用が難しい。また、データ同士の関係などをデータ
ベースが保持するため、データそのもの以外に必要とさ
れる情報が多く、実際のデータ量と比較してデータベー
ス自体の規模が大きくなり易い。First, it is difficult to construct a database and manage the operation unless the relationship between each record and internal item data is sufficiently grasped. In particular, a net-type database requires knowledge of the physical data structure and access paths to the data, and is difficult to use for those who have no knowledge of the database. Further, since the database holds the relationship between data and the like, much information is required in addition to the data itself, and the scale of the database itself tends to be large compared to the actual amount of data.
【0005】また、データ検索という意味においては、
蓄積されたデータの先頭から終わりまで全てを検索し
て、該当するレコードを抽出するという方法も考えられ
るが、従来の装置においては検索速度が遅く実用的では
ない。In the sense of data retrieval,
A method of searching all of the accumulated data from the beginning to the end and extracting the corresponding record can be considered, but in the conventional device, the search speed is slow and not practical.
【0006】[0006]
【課題を解決するための手段】本発明は、データを記憶
するデータ蓄積部と、検索すべきキーワードや検索条件
を入力するキーワード入力部と、入力されたキーワード
を前記データ蓄積部のデータに適した形に変換するキー
ワード変換部と、前記キーワード変換部によって変換,
生成されたキーと前記データ蓄積部のデータとの照合を
行う照合部と、前記照合部によって照合された結果、前
記検索条件に合致した該当レコード情報を蓄積する検索
結果蓄積部と、前記検索結果蓄積部による検索結果を利
用者に提示する検索結果表示部とを備えたデータベース
システムにおいて、前記照合部が、文字列照合プロセッ
サであり、前記データ蓄積部のデータを直接キーとして
検索することが可能であることを特徴とするものであ
る。According to the present invention, a data storage unit for storing data, a keyword input unit for inputting a keyword to be searched and a search condition, and the input keyword are suitable for the data of the data storage unit. And a keyword conversion unit for converting into a form
A collation unit that collates the generated key with the data of the data storage unit, a search result storage unit that stores the corresponding record information that matches the search condition as a result of the collation by the collation unit, and the search result In a database system including a search result display unit that presents a search result by the storage unit to a user, the collation unit is a character string collation processor, and data in the data storage unit can be directly used as a key for retrieval. It is characterized by being.
【0007】[0007]
【実施例】本発明の実施例について、図面を参照して説
明する。Embodiments of the present invention will be described with reference to the drawings.
【0008】図1に本発明によるデータベースシステム
の一実施例を示す。FIG. 1 shows an embodiment of a database system according to the present invention.
【0009】データ蓄積部11は、データベースとして
登録されるデータを記憶する。The data storage unit 11 stores data registered as a database.
【0010】キーワード入力部12は、データベース利
用者が検索しようとするキーワードや検索条件を設定す
るための装置である。The keyword input unit 12 is a device for setting keywords to be searched by a database user and search conditions.
【0011】キーワード変換部13は、キーワード入力
部12より入力されたキーワードや検索条件から、デー
タ蓄積部11のデータ形式に対応した形式のデータを生
成する。The keyword conversion unit 13 generates data in a format corresponding to the data format of the data storage unit 11 from the keyword or search condition input from the keyword input unit 12.
【0012】照合部14は、文字列照合プロセッサであ
り、変換されたキーワードとデータ蓄積部11のデータ
の照合を行う。本プロセッサは1つの文字列だけではな
く、複数個の文字列を同時に照合する能力を持つ。ま
た、本プロセッサにより照合の結果一致した文字列の終
端アドレスあるいは始端アドレスが得られる。The collation unit 14 is a character string collation processor, and collates the converted keyword with the data in the data storage unit 11. This processor has the ability to collate not only one character string but a plurality of character strings at the same time. Further, the present processor obtains the end address or the start address of the matched character string as a result of the collation.
【0013】検索結果蓄積部15は、照合結果として検
索条件に合致したデータレコード情報を蓄積する。The search result storage unit 15 stores the data record information that matches the search condition as a collation result.
【0014】検索結果表示部16は、検索結果の情報を
利用者に提示する。The search result display section 16 presents the information of the search result to the user.
【0015】次に、図2のフローチャートを用いて動作
を説明する。まず、本データベース利用者はキーワード
入力部12より、自分の検索したいキーワードを入力す
る。この時キーワードを複数指定したり、検索条件(〜
AND 〜、〜OR〜)を指定することができる(ステップ2
1)。キーワード変換部13は、キーワード入力部12
から入力されたキーワード及び検索条件を基に、照合部
14における照合時のキーとなるデータを生成する(ス
テップ22)。キーワード変換部13の動作及びデータ
蓄積部11のデータ形式は、ともに密接に関連するた
め、詳しくは図3,図4を用いて後述するものとする。
キーワード変換部13で変換生成されたデータは検索キ
ーとして、照合部14に送られ、照合部14においてデ
ータ蓄積部11のデータとの照合を行う(ステップ2
3)。照合の結果、抽出すべきデータとして検索された
結果データの情報を検索結果蓄積部15に蓄積し(ステ
ップ24)、検索結果表示部16に検索結果が表示でき
る(ステップ25)。Next, the operation will be described with reference to the flowchart of FIG. First, the user of this database inputs the keyword he or she wants to search from the keyword input unit 12. At this time, you can specify multiple keywords and search conditions (~
AND ~, ~ OR ~) can be specified (Step 2)
1). The keyword conversion unit 13 uses the keyword input unit 12
Based on the keyword and the search condition input from, the data that is the key at the time of matching in the matching unit 14 is generated (step 22). Since the operation of the keyword converting unit 13 and the data format of the data accumulating unit 11 are closely related to each other, the details will be described later with reference to FIGS. 3 and 4.
The data converted and generated by the keyword conversion unit 13 is sent as a search key to the collation unit 14, and the collation unit 14 collates with the data of the data storage unit 11 (step 2).
3). As a result of the collation, the information of the result data searched as the data to be extracted is stored in the search result storage unit 15 (step 24), and the search result can be displayed on the search result display unit 16 (step 25).
【0016】次に、本データベースシステムにおける検
索方式を説明する。本データベースシステムにおいて
は、照合部14に文字列照合プロセッサを用いているた
め、データの検索は文字列の照合で一致したものを抽出
するという方式である。従って、データベースのデータ
形式及び照合時の検索キーとなるキーワードデータの変
換生成処理を特徴とする。Next, a search method in this database system will be described. In the present database system, since the collating unit 14 uses the character string collating processor, the data is retrieved by matching the character strings by collating. Therefore, it is characterized by the conversion and generation processing of the data format of the database and the keyword data which is the search key at the time of matching.
【0017】そこで、「氏名」「出身地」「性別」「生
年月日」を項目とする名簿のようなものを本データベー
スに適用する場合を例として示す。まず、データ蓄積部
11に蓄積されているデータベースデータの表現方式に
ついて、図3を用いて説明する。例に示した各項目から
成るレコードは、概念的には図3(A)のような形式で
表現することができるが、本データベースにおいては図
3(B)のようなテキスト形式でデータを表現する。こ
れは各レコードの開始位置にレコードの開始を示す「始
端コード」、終了位置にレコードの終了を示す「終端コ
ード」を付加した固定長レコードである。Therefore, a case where a kind of name list having "name,""place of origin,""sex," and "date of birth" is applied to this database will be described as an example. First, the expression method of the database data stored in the data storage unit 11 will be described with reference to FIG. The record consisting of each item shown in the example can be conceptually expressed in a format as shown in FIG. 3A, but in this database, data is expressed in a text format as shown in FIG. 3B. To do. This is a fixed-length record in which a "start end code" indicating the start of the record is added to the start position of each record, and a "end code" indicating the end of the record is added to the end position.
【0018】次に、入力されたキーワードと検索条件か
ら、前記のデータ形式に適したキー生成を行うキーワー
ド変換部13の動作を図4を用いて説明する。図3
(B)のようなテキスト形式ファイルに対して、次のよ
うな検索条件及びキーワードが入力されたものとする
(この例では ”?”はどのような文字が入っても一致
とする1文字分のワイルドカードを示す)。Next, the operation of the keyword converting unit 13 for generating a key suitable for the above data format from the input keyword and search condition will be described with reference to FIG. Figure 3
It is assumed that the following search conditions and keywords are input to the text format file as shown in (B). (In this example, "?" Is a character that matches any character. Wild card).
【0019】 姓=山? AND 出身地=(千葉県 OR 神奈川県) すると、キーワード変換部では、レコードデータ形式に
合わせて図4に示す2つのキーを生成する。ここで変換
生成された2つのキーはそれぞれを1つの文字列とみな
すことができるので、これらを照合部14にキーとして
渡す。照合部の文字列照合プロセッサでは、図3(B)
に示されたテキスト形式をもつデータ蓄積部13のデー
タとキーとの照合を行う。本データベースシステムで使
用しているプロセッサは、複数キーワードの照合やワイ
ルドカードの使用が可能であるため、1回のデータ検索
でこれらのキーの照合を行う。照合部では、一致した文
字列の始端あるいは終端アドレスを知ることができるた
め、図3(B)に示したレコード形式、あるいは図4に
示したキーの形式のように、蓄積データとキーの双方に
始端・終端コードを付加しておけば、必ず一致レコード
のアドレスを得られる。得られた情報は図2のフローチ
ャートに示したように検索結果蓄積部に蓄積される。Last name = mountain? AND Birthplace = (Chiba prefecture OR Kanagawa prefecture) Then, the keyword conversion unit generates two keys shown in Fig. 4 according to the record data format. Since the two keys generated by conversion here can be regarded as one character string, these are passed to the matching unit 14 as keys. In the character string collating processor of the collating unit, as shown in FIG.
The data in the data storage unit 13 having the text format shown in FIG. Since the processor used in this database system can collate multiple keywords and use wildcards, these keys are collated by one data search. Since the collating unit can know the start or end address of the matched character string, both the accumulated data and the key can be obtained as in the record format shown in FIG. 3B or the key format shown in FIG. If you add the start and end codes to, you can always get the address of the matching record. The obtained information is stored in the search result storage unit as shown in the flowchart of FIG.
【0020】[0020]
【発明の効果】以上説明したように本発明によれば、照
合部は文字列照合の専用プロセッサを用いているため高
速な文字列照合が可能である。従って、データベースの
文字列データを直接検索することが可能であり、インデ
ックス登録を行う必要がなく、通常のテキストファイル
としてデータベースの登録,更新が簡単にできる。ま
た、インデックスやデータ同士の関係などの冗長な情報
を持たないため、従来のデータベースと比較して少ない
ディスク使用量でデータを格納することが可能である。As described above, according to the present invention, since the collating unit uses the dedicated processor for collating the character string, the character string collation can be performed at high speed. Therefore, it is possible to directly search the character string data in the database, and it is not necessary to register the index, and the database can be easily registered and updated as a normal text file. In addition, since it does not have redundant information such as indexes and relationships between data, it is possible to store data with a smaller disk usage amount as compared with a conventional database.
【図1】本発明によるデータベースシステムの一実施例
を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a database system according to the present invention.
【図2】図1のデータベースシステムの動作を説明する
ためのフローチャートである。FIG. 2 is a flowchart for explaining the operation of the database system of FIG.
【図3】図1のデータベースシステムを構成するデータ
蓄積部のデータ形式を説明するための図である。FIG. 3 is a diagram for explaining a data format of a data storage unit that constitutes the database system of FIG.
【図4】図1のデータベースシステムを構成するキーワ
ード変換部の動作を説明するための図である。FIG. 4 is a diagram for explaining the operation of a keyword conversion unit that constitutes the database system of FIG.
11 データ蓄積部 12 キーワード入力部 13 キーワード変換部 14 照合部 15 検索結果蓄積部 16 検索結果表示部 11 data storage unit 12 keyword input unit 13 keyword conversion unit 14 collation unit 15 search result storage unit 16 search result display unit
Claims (3)
入力部と、 入力されたキーワードを前記データ蓄積部のデータに適
した形に変換するキーワード変換部と、 前記キーワード変換部によって変換,生成されたキーと
前記データ蓄積部のデータとの照合を行う照合部と、 前記照合部によって照合された結果、前記検索条件に合
致した該当レコード情報を蓄積する検索結果蓄積部と、 前記検索結果蓄積部による検索結果を利用者に提示する
検索結果表示部とを備えたデータベースシステムにおい
て、 前記照合部が、文字列照合プロセッサであり、前記デー
タ蓄積部のデータを直接キーとして検索することが可能
であることを特徴とするデータベースシステム。1. A data storage unit for storing data, a keyword input unit for inputting a keyword to be searched and a search condition, and a keyword conversion unit for converting the input keyword into a form suitable for the data in the data storage unit. And a collating unit that collates the key converted and generated by the keyword converting unit with the data of the data storage unit, and stores the corresponding record information that matches the search condition as a result of the collation by the collating unit. In a database system including a search result storage unit and a search result display unit that presents a search result by the search result storage unit to a user, the collation unit is a character string collation processor, and the data of the data storage unit A database system characterized in that it is possible to search using as a direct key.
ドおよび終端コードを有する固定長レコードから成るテ
キストファイルをデータ表現方式として用いることを特
徴とする請求項1記載のデータベースシステム。2. The database system according to claim 1, wherein the data storage unit uses a text file composed of fixed-length records having a record start code and an end code as a data representation method.
ーワード及び検索条件から前記データ蓄積部のデータと
同形式のキーを生成し前記照合部へ送ることを特徴とす
る請求項1記載のデータベースシステム。3. The database system according to claim 1, wherein the keyword conversion unit generates a key having the same format as the data in the data storage unit from the input keyword and search condition and sends the key to the collation unit. .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21383692A JP3202341B2 (en) | 1992-08-11 | 1992-08-11 | Database system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21383692A JP3202341B2 (en) | 1992-08-11 | 1992-08-11 | Database system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0659950A true JPH0659950A (en) | 1994-03-04 |
| JP3202341B2 JP3202341B2 (en) | 2001-08-27 |
Family
ID=16645836
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP21383692A Expired - Fee Related JP3202341B2 (en) | 1992-08-11 | 1992-08-11 | Database system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3202341B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003244133A (en) * | 2002-02-13 | 2003-08-29 | Nippon Telegr & Teleph Corp <Ntt> | Matching rule information storage device, matching rule information storage method, public key certificate acquisition device, public key certificate acquisition method, usability judging device, usability judging method, computer program, and recording medium recording computer program |
| JP2003258786A (en) * | 2002-02-27 | 2003-09-12 | Nippon Telegr & Teleph Corp <Ntt> | Public key certificate search device, public key certificate search method, computer program, and recording medium recording computer program |
-
1992
- 1992-08-11 JP JP21383692A patent/JP3202341B2/en not_active Expired - Fee Related
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003244133A (en) * | 2002-02-13 | 2003-08-29 | Nippon Telegr & Teleph Corp <Ntt> | Matching rule information storage device, matching rule information storage method, public key certificate acquisition device, public key certificate acquisition method, usability judging device, usability judging method, computer program, and recording medium recording computer program |
| JP2003258786A (en) * | 2002-02-27 | 2003-09-12 | Nippon Telegr & Teleph Corp <Ntt> | Public key certificate search device, public key certificate search method, computer program, and recording medium recording computer program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3202341B2 (en) | 2001-08-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6035303A (en) | Object management system for digital libraries | |
| US6931408B2 (en) | Method of storing, maintaining and distributing computer intelligible electronic data | |
| JP5138046B2 (en) | Search system, search method and program | |
| US20120166414A1 (en) | Systems and methods for relevance scoring | |
| US20140250119A1 (en) | Domain based keyword search | |
| JP3803961B2 (en) | Database generation apparatus, database generation processing method, and database generation program | |
| US20160041975A1 (en) | Document tagging and retrieval using per-subject dictionaries including subject-determining-power scores for entries | |
| CN116340468A (en) | Subject Literature Retrieval Prediction Method | |
| JP2001188802A (en) | Information retrieval apparatus and information retrieval method | |
| JP3786233B2 (en) | Information search method and information search system | |
| JP3526198B2 (en) | Database similarity search method and apparatus, and storage medium storing similarity search program | |
| JP3202341B2 (en) | Database system | |
| JP3591813B2 (en) | Data retrieval method, apparatus and recording medium | |
| JP2000322416A (en) | Document search device | |
| JP2001318935A (en) | Information processor, its method, recording medium recording information processing software, and relational database | |
| JP4081236B2 (en) | Database processing method | |
| KR20110021019A (en) | Searchable recommendations and methods | |
| JPH08249341A (en) | Document storage and retrieval device for document data base | |
| Jee et al. | High speed bitwise search for digital forensic system | |
| Ivanova et al. | Database Integration Based on the Selection of Preliminary Knowledge Using a Semantic Network | |
| JP2001312517A (en) | Index generation device and document search device | |
| JPH07319890A (en) | Document registration/retrieval system | |
| JP3508842B2 (en) | Database search system and recording medium storing database search program | |
| JPH0410062A (en) | Document search method with vocabulary expansion function | |
| JPH07104853B2 (en) | Operation procedure generation method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |