JP2002149648A - Method and device for integrated retrieval and storage medium with integrated retrieval program stored therein - Google Patents

Method and device for integrated retrieval and storage medium with integrated retrieval program stored therein

Info

Publication number
JP2002149648A
JP2002149648A JP2000342418A JP2000342418A JP2002149648A JP 2002149648 A JP2002149648 A JP 2002149648A JP 2000342418 A JP2000342418 A JP 2000342418A JP 2000342418 A JP2000342418 A JP 2000342418A JP 2002149648 A JP2002149648 A JP 2002149648A
Authority
JP
Japan
Prior art keywords
search
query
items
item
integrated
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
JP2000342418A
Other languages
Japanese (ja)
Other versions
JP3558032B2 (en
Inventor
Kazuya Konishi
一也 小西
Gengo Suzuki
源吾 鈴木
Yuichi Iizuka
裕一 飯塚
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2000342418A priority Critical patent/JP3558032B2/en
Publication of JP2002149648A publication Critical patent/JP2002149648A/en
Application granted granted Critical
Publication of JP3558032B2 publication Critical patent/JP3558032B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a method and device for integrated retrieval and a storage medium with an integrated retrieval program stored therein which realizes retrieval by a plurality of inquiry sentences having different retrieving items, data form of respective items and retrieving conditions with a plurality of logically and independently constructed tables as objects. SOLUTION: This device receives the a plurality of inquiry sentences from users, extracts all the retrieving items from the inquiry sentences, extracts the combination of identifiable retrieving items by referring to the synonym dictionary defining the synonym of a data item name, defines a data item in accordance with the combination of the identified retrieving items selected by the users, prepares the frame work of the table to be outputted as the result of retrieval, adds an insertion instruction to the respective inquiry sentences corresponding to the frame work of the table, corrects the order of the retrieval items, retrieves the table of the retrieval object by using the corrected inquiry sentence, and outputs the retrieved result to the user.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、統合検索方法及び
装置及び統合検索プログラムを格納した記憶媒体に係
り、特に、データベースの論理的に独立に構築された複
数の表に対し、構造の異なる複数の問い合わせ文を用い
て一つの検索結果を取得するための統合検索方法及び装
置及び統合検索プログラムを格納した記憶媒体に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an integrated search method and apparatus and a storage medium storing an integrated search program, and more particularly, to a plurality of tables having different structures for a plurality of logically independent tables of a database. The present invention relates to an integrated search method and apparatus for obtaining a single search result using the query sentence described above, and a storage medium storing an integrated search program.

【0002】[0002]

【従来の技術】従来のデータベースの統合検索方法は、
予め用意した項目対応表を用いて複数の表の垣根を越え
て項目を同一視、あるいは、複数の表をレコードに従っ
て結合するといった方法が採られている。これらの方法
によって複数の表を結合して、一つの大きな表を作り、
それに対して検索を実施することで、統合検索が実現さ
れる。
2. Description of the Related Art A conventional database integrated search method is as follows.
A method is employed in which items are identified over a plurality of table boundaries using an item correspondence table prepared in advance, or a plurality of tables are joined according to records. By combining multiple tables by these methods, one large table is created,
By executing a search on the other hand, an integrated search is realized.

【0003】データベース問い合わせ言語SQLにおけ
るUNIONは、複数の問い合わせから得られる検索結
果を統合する演算子である。通常、複数の表に対する検
索を実施する場合、各表に対して、問い合わせを行い、
得られた各結果を利用が整理しなければならないが、図
12に示すように、[名簿A]、[名簿B]からUNI
ONを使用することにより、利用者は一つに統合された
検索結果を得ることができる。
[0003] UNION in the database query language SQL is an operator for integrating search results obtained from a plurality of queries. Normally, when performing a search on multiple tables, each table is queried,
The use must sort out the obtained results, but as shown in FIG. 12, [list A] and [list B]
By using ON, the user can obtain a unified search result.

【0004】一方、論理的に独立に構築された複数の表
に対する検索を実施し、統合された検索結果を得たいと
いう要求もある。そこで、各表に含まれる同義データ項
目を同一視し、それらの列を統合する方法や、各表に含
まれる同一レコードに関する検索項目のデータを統合す
る方法がある。
[0004] On the other hand, there is also a demand for performing a search on a plurality of tables that are logically independently constructed and obtaining an integrated search result. Therefore, there is a method of identifying synonymous data items included in each table and integrating those columns, and a method of integrating search item data related to the same record included in each table.

【0005】このような統合検索技術として、特開平5
−891320「情報検索装置」がある。図13は、項
目対応表を用いた項目同一視による検索を示す。この方
法は、図13に示すように、同一名称・同一意味の項目
対応表を自動的・対話的に予め作成しておき、対応項目
を同一視することにより、複数の表に及んで存在する列
を統合する。つまり、各情報源に対して同じ構造の問い
合わせ[SELECT 氏名,年齢]を実施し、結果を
統合する。
As such an integrated search technique, Japanese Patent Laid-Open No.
-891320 "Information search device". FIG. 13 shows a search by item identification using the item correspondence table. In this method, as shown in FIG. 13, an item correspondence table having the same name and the same meaning is automatically and interactively created in advance, and the corresponding items are identified and identified, so that the table exists over a plurality of tables. Merge columns. That is, an inquiry [SELECT name, age] having the same structure is performed for each information source, and the results are integrated.

【0006】また、特開平11−175552「データ
ベース検索装置及びデータベース検索プログラムを記録
したコンピュータ読み取り可能な記録媒体」は、図14
に示すように、問い合わせ文の検索項目から検索対象と
なる表(名簿,身体測定)を特定し、各表において同一
レコード番号(レコード番号:1)のデータを[SEL
ECT 氏名,年齢,身長,体重]により統合する。条
件検索は、統合後の情報を対象に条件検索[WHERE
年齢<30,体重<70]実施する。これにより、個別
の表からは得られない結果[レコード番号:1,氏名:
あいうえお,年齢:20,身長:170,体重:60]
を検索する。
Japanese Patent Application Laid-Open No. 11-175552, entitled "Database Searching Apparatus and Computer-Readable Recording Medium Recording Database Searching Program,"
As shown in (1), the table (name list, body measurement) to be searched is specified from the search item of the query sentence, and in each table, the data of the same record number (record number: 1) is [SEL
ECT name, age, height, weight]. The conditional search is a conditional search for the information after integration [WHERE
Age <30, weight <70]. As a result, results that cannot be obtained from individual tables [record number: 1, name:
AIUEO, age: 20, height: 170, weight: 60]
Search for.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記従
来の方法には以下に示すような問題がある。
However, the above conventional method has the following problems.

【0008】例えば、図15に示す複数の表に対し、図
16に示す問い合わせを実施し、図17に示す検索結果
を導出することを考える。図15に示す各表(診断、虫
垂炎治療、虫垂炎患者)には、患者に関する情報が登録
されている。図16に示す問い合わせ文(〜)は、
「虫垂炎患者に関する情報を検索したい」という要求に
従って作成されたものである。
For example, suppose that the inquiry shown in FIG. 16 is performed on a plurality of tables shown in FIG. 15 and the retrieval result shown in FIG. 17 is derived. In each table shown in FIG. 15 (diagnosis, appendicitis treatment, appendicitis patient), information on the patient is registered. The inquiry sentence (~) shown in FIG.
It is created in accordance with a request to "search for information on appendicitis patients".

【0009】通常、UNION演算子を用いて複数の検
索結果を統合する場合、各問い合わせ文で指定される検
索項目は、項目数、順序、各項目のデータ型が一致して
いる必要がある。しかし、図16に示す各問い合わせ文
は項目数が一致していないため、UNIONによる統合
はできない。
Normally, when a plurality of search results are integrated using a UNION operator, the number of search items specified in each query sentence, the order, and the data type of each item need to match. However, since the number of items in each query sentence shown in FIG. 16 does not match, integration by UNION cannot be performed.

【0010】また、上記の特開平5−81320及び特
開平11−175552では、特定の表に対する検索条
件が考慮されていない。つまり、特定の表に対する検索
条件が指定できないため、表の統合によって項目や表そ
のものが持つ意味が消失する場合がある。従って、図1
6に示す問い合わせが指定されている特定の表に対する
検索条件(の「WHERE結果=虫垂炎」)は無効に
なる。図18に示すように、データ項目の統合のみを実
施した場合は、問い合わせ内容を満たさないデータが検
索結果に含まれる。検索項目と同様に検索条件もすべて
の表に対して指定した場合は、問い合わせ内容を満たす
データが検索結果から漏れる。いずれの場合も、図17
に示す検索結果を得ることはできない。つまり、図18
に示す項目対応表に対して、のデータ項目の合併のみ
を実施した場合([SELECT氏名,年齢,性
別])、[診断.患者氏名、虫垂炎治療.患者名、虫垂
炎患者.氏名]が「氏名」に、[虫垂炎治療.年齢,虫
垂炎患者.年齢]が「年齢」に、[虫垂炎患者.性別]
が「性別」にそれぞれ統合され、検索対象となる。の
検索結果からわかるように、項目対応表の「診断」の項
目から“虫垂炎”以外の患者(正常)も検索されてしま
う。
[0010] Further, in the above-mentioned JP-A-5-81320 and JP-A-11-175552, search conditions for a specific table are not considered. That is, since the search condition for a specific table cannot be specified, the meaning of the items or the table itself may be lost due to the integration of the tables. Therefore, FIG.
The search condition ("WHERE result = appendicitis") for the specific table to which the inquiry shown in FIG. 6 is specified becomes invalid. As shown in FIG. 18, when only the integration of data items is performed, data that does not satisfy the inquiry is included in the search result. If search conditions are specified for all tables as well as search items, data that satisfies the contents of the inquiry will be omitted from the search results. In each case, FIG.
Cannot be obtained. That is, FIG.
If only the merging of the data items in the item correspondence table shown in (1) ([SELECT name, age, and gender]) is performed, [diagnosis. Patient name, appendicitis treatment. Patient name, appendicitis patient. [Name] is changed to [Name] and [Appendicitis treatment. Age, appendicitis patient. "Age" is changed to "Age" and "Appendicitis patient. sex]
Are integrated into “gender”, respectively, and become search targets. As can be seen from the search result, the patient (normal) other than "appendicitis" is also searched from the item of "diagnosis" in the item correspondence table.

【0011】次に、検索条件([SELECT 氏
名,年齢,性別]、[WHERE結果=虫垂炎])を全
ての表に適用すると、表「虫垂炎治療」「虫垂炎患者」
の情報が検索されないという問題が発生する。
Next, when the search conditions ([SELECT name, age, gender], [WHERE result = appendicitis]) are applied to all the tables, the tables “Appendicitis treatment” and “Appendicitis patients” are obtained.
There is a problem that information is not retrieved.

【0012】さらに、特願平5−81320では、対応
定義は静的であるため、検索対象の表を変更する場合
や、利用者が検索要求として入力可能な検索項目名を変
更した場合、あるいは、対象の表が同じであっても利用
場面を変更した場合など、その都度対応定義を修正する
必要がある。予めあらゆる対応を定義しておくことは不
可能である。また、定義が多くなるほど検索結果には不
要な情報が含まれる可能性が高くなる。
Further, in Japanese Patent Application No. 5-83320, the correspondence definition is static, so that the table to be searched is changed, the name of a search item that can be input by the user as a search request is changed, or Even if the target table is the same, it is necessary to correct the correspondence definition each time the usage scene is changed. It is impossible to define every correspondence in advance. Further, the more definitions, the higher the possibility that the search result includes unnecessary information.

【0013】また、リレーショナルデータベースにおい
て、ビューと呼ばれる概念があるが、データの検索操作
は、ベースとなるテーブル(表とも言う)から新しい意
味を持つテーブルを作り出すと解釈できる。この操作及
びテーブルを実体のない仮想的なものとして定義したの
がビューである。ビューは検索操作の結果であるので、
データ構造(スキーマとも言う)の異なる複数の表を対
象とした検索を実施し、一つに統合された検索結果を得
るためには、各表に対する問い合わせ文を調整しなけれ
ばならない。調整をするためには、表の構造や問い合わ
せ方法について熟知している必要がある。
In a relational database, there is a concept called a view. A data search operation can be interpreted as creating a table having a new meaning from a base table (also called a table). The view defines this operation and the table as a virtual object having no substance. Since the view is the result of a search operation,
In order to perform a search on a plurality of tables having different data structures (also called schemas) and obtain an integrated search result, it is necessary to adjust a query sentence for each table. To make adjustments, it is necessary to be familiar with the structure of the table and the query method.

【0014】本発明は、上記の点に鑑みなされたもの
で、論理的に独立に構築された複数の表を対象とした、
検索項目の項目数や順序、各項目のデータ型、検索条件
の異なる複数の問い合わせ文による検索が可能な統合検
索方法及び装置及び統合検索プログラムを格納した記憶
媒体を提供することを目的する。
The present invention has been made in view of the above points, and is intended for a plurality of logically independently constructed tables.
It is an object of the present invention to provide an integrated search method and apparatus capable of searching by a plurality of query sentences having different numbers and orders of search items, data types of each item, and search conditions, and a storage medium storing an integrated search program.

【0015】本発明の更なる目的は、情報源や検索要求
として入力可能な検索項目名、検索の利用場面等の変更
に対する検索機能の柔軟な対応が可能な統合検索方法及
び装置及び統合検索プログラムを格納した記憶媒体を提
供することである。
A further object of the present invention is to provide an integrated search method and apparatus and an integrated search program capable of flexibly coping with a change of a search function such as a search item name that can be input as an information source or a search request, and a use scene of the search. Is to provide a storage medium in which is stored.

【0016】[0016]

【課題を解決するための手段】図1は、本発明の原理を
説明するための図である。
FIG. 1 is a diagram for explaining the principle of the present invention.

【0017】本発明(請求項1)は、データベースの論
理的に独立に構築された複数の表を、構造の異なる複数
の問い合わせ文を用いて検索し、1つの検索結果を取得
するための統合検索方法において、利用者から複数の問
い合わせ文を受け付け(ステップ1)、問い合わせ文か
らすべての検索項目を抽出し(ステップ2)、データ項
目名の同義語を定義した同義語辞書を参照して、同一視
が可能な検索項目の組合せを抽出し(ステップ3)、利
用者によって選択された同一視する検索項目の組合せに
従って、データ項目を定義し、検索結果として出力する
表の枠組みを作成し(ステップ4)、表の枠組みに合わ
せて、各問い合わせ文に挿入命令を付加して、検索項目
の順序を修正し(ステップ5)、修正された問い合わせ
文を用いて、検索対象の表を検索し(ステップ6)、検
索された結果を利用者に出力する(ステップ7)。
The present invention (claim 1) provides an integrated system for searching a plurality of logically independent tables of a database using a plurality of query statements having different structures and obtaining one search result. In the search method, a plurality of query sentences are received from the user (step 1), all search items are extracted from the query sentence (step 2), and a synonym dictionary defining synonyms of data item names is referred to. A combination of search items that can be identified is extracted (step 3), a data item is defined according to the combination of search items to be identified selected by the user, and a framework for a table to be output as a search result is created ( Step 4) In accordance with the framework of the table, an insert instruction is added to each query sentence to correct the order of the search items (Step 5), and the search is performed using the corrected query sentence. Find the table elephant (step 6), and outputs the result retrieved by the user (step 7).

【0018】本発明(請求項2)は、検索対象の表にお
けるデータ項目間の対応関係は管理せずに、登録語の語
彙のみを管理する辞書として、同義語辞書を作成する。
According to the present invention (claim 2), a synonym dictionary is created as a dictionary that manages only the vocabulary of registered words without managing the correspondence between data items in the table to be searched.

【0019】本発明(請求項3)は、検索対象の表を検
索する際に、一つの表形式で検索結果を導出する。
According to the present invention (claim 3), when a table to be searched is searched, a search result is derived in one table format.

【0020】図2は、本発明の原理構成図である。FIG. 2 is a diagram showing the principle of the present invention.

【0021】本発明(請求項4)は、データベースの論
理的に独立に構築された複数の表を、構造の異なる複数
の問い合わせ文を用いて検索し、1つの検索結果を取得
するための統合検索装置であって、各登録語に対して同
義語が設定されている同義語辞書180と、利用者から
複数の問い合わせ文を受け付ける問い合わせ文入力手段
110と、問い合わせ文からすべての検索項目を抽出す
る検索項目取得手段120と、同義語辞書180を参照
して、同一視が可能な検索項目の組合せを抽出する検索
項目同一視判定手段130と、利用者によって選択され
た同一視する検索項目の組合せに従って、データ項目を
定義し、検索結果として出力する表の枠組みを作成する
出力用表作成手段140と、出力表作成手段140によ
り作成された表の枠組みに合わせて、各問い合わせ文に
挿入命令を付加して、検索項目の順序を修正する問い合
わせ文修正手段150と、問い合わせ文修正手段150
で修正された問い合わせ文を用いて、検索対象の表19
0を検索する問い合わせ実施手段160と、検索された
結果を利用者に出力する検索結果出力手段170とを有
する。
[0021] The present invention (claim 4) provides an integrated system for searching a plurality of logically independent tables of a database using a plurality of query statements having different structures and obtaining one search result. A search device, a synonym dictionary 180 in which synonyms are set for each registered word, a query sentence input unit 110 for receiving a plurality of query sentences from a user, and extraction of all search items from the query sentence Search item acquisition means 120, a search item identification determination means 130 that extracts a combination of search items that can be identified with reference to the synonym dictionary 180, and a search item identification An output table creation unit 140 that defines a data item according to the combination and creates a framework of a table to be output as a search result, and a table created by the output table creation unit 140 In accordance with the set, and adds the inserted instructions to each query statement, the query statement modifying means 150 for modifying the order of the search items, query statements modifying means 150
Table 19 to be searched using the query sentence corrected in
It has an inquiry execution unit 160 for searching for "0" and a search result output unit 170 for outputting the searched result to the user.

【0022】本発明(請求項5)は、同義語辞書180
として、検索対象の表におけるデータ項目間の対応関係
は管理せずに、登録語の語彙のみを管理する辞書を用い
る。本発明(請求項6)は、問い合わせ実施手段160
において、一つの表形式で検索結果を導出する。
The present invention (claim 5) provides a synonym dictionary 180
A dictionary that manages only the vocabulary of registered words without managing the correspondence between data items in the table to be searched is used. The present invention (claim 6) provides an inquiry execution means 160
, The retrieval result is derived in one table format.

【0023】本発明(請求項7)は、問い合わせ文修正
手段150において、検索項目の数、順序、各項目のデ
ータ型が同一である問い合わせ文については、演算子U
NIONを用いて一つの問い合わせ文にする手段を含
む。
According to the present invention (claim 7), in the query sentence correcting means 150, for a query sentence in which the number, order, and data type of each search item are the same, the operator U
Includes means for making one inquiry sentence using NION.

【0024】本発明(請求項8)は、データベースの論
理的に独立に構築された複数の表を、構造の異なる複数
の問い合わせ文を用いて検索し、1つの検索結果を取得
するための統合検索プログラムを格納した記憶媒体であ
って、利用者から複数の問い合わせ文を受け付ける問い
合わせ文入力プロセスと、問い合わせ文からすべての検
索項目を抽出する検索項目取得プロセスと、データ項目
名の同義語を定義した同義語辞書を参照して、同一視が
可能な検索項目の組合せを抽出する検索項目同一視判定
プロセスと、利用者によって選択された同一視する検索
項目の組合せに従って、データ項目を定義し、検索結果
として出力する表の枠組みを作成する出力用表作成プロ
セスと、出力表作成プロセスにより作成された表の枠組
みに合わせて、各問い合わせ文に挿入命令を付加して、
検索項目の順序を修正する問い合わせ文修正プロセス
と、問い合わせ文修正プロセスで修正された問い合わせ
文を用いて、検索対象の表を検索する問い合わせ実施プ
ロセスと、検索された結果を利用者に出力する検索結果
出力プロセスとを有する。
The present invention (claim 8) provides an integrated system for searching a plurality of logically independent tables of a database using a plurality of query statements having different structures and obtaining one search result. A storage medium that stores a search program and defines a query sentence input process that accepts multiple query sentences from the user, a search item acquisition process that extracts all search items from the query sentence, and synonyms for data item names. With reference to the synonym dictionary, a data item is defined according to a search item identification determination process for extracting a combination of search items that can be identified, and a combination of search items to be identified that are selected by the user. According to the output table creation process that creates a table framework to be output as search results and the table framework created by the output table creation process, By adding the insertion instruction to have combined statement,
A query modification process that modifies the order of the search items, a query execution process that searches the search target table using the query modified by the query modification process, and a search that outputs the retrieved results to the user And a result output process.

【0025】本発明(請求項9)は、検索対象の表にお
けるデータ項目間の対応関係は管理せずに、登録語の語
彙のみを管理する辞書として、同義語辞書を作成するプ
ロセスを更に有する。
The present invention (claim 9) further includes a process of creating a synonym dictionary as a dictionary that manages only the vocabulary of registered words without managing the correspondence between data items in the table to be searched. .

【0026】本発明(請求項10)は、問い合わせ実施
プロセスにおいて、一つの表形式で検索結果を導出す
る。
According to the present invention (claim 10), in the inquiry execution process, the retrieval result is derived in one table format.

【0027】本発明(請求項11)は、問い合わせ文修
正プロセスにおいて、検索項目の数、順序、各項目のデ
ータ型が同一である問い合わせ文については、演算子U
NIONを用いて一つの問い合わせ文にするプロセスを
含む。
According to the present invention (claim 11), in the query sentence correcting process, for a query sentence in which the number, order, and data type of each item are the same, the operator U
Includes the process of making one query using NION.

【0028】上記のように、本発明は、同義語辞書を用
意し、構造の異なる複数の問い合わせ文を受け付けた時
に、一つの検索結果が得られるように問い合わせ文を変
換することにより、各結果を一つの表に統合することに
より、容易な統合検索結果の導出を可能とする。
As described above, according to the present invention, a synonym dictionary is prepared, and when a plurality of query sentences having different structures are received, the query sentences are converted so that one search result is obtained. Into a single table, it is possible to easily derive integrated search results.

【0029】[0029]

【発明の実施の形態】図3は、本発明の概要を説明する
機能ブロック図である。
FIG. 3 is a functional block diagram for explaining an outline of the present invention.

【0030】同図に示す統合検索装置100は、問い合
わせ文入力部110、検索項目取得部120、検索項目
同一視判定部130、出力用表作成部140、問い合わ
せ文修正部150、問い合わせ実施部160、検索結果
出力部170、データ項目名意味管理辞書180、表1
90から構成される。
The integrated search apparatus 100 shown in FIG. 1 includes a query sentence input unit 110, a search item acquisition unit 120, a search item identification determination unit 130, an output table creation unit 140, a query sentence correction unit 150, and a query execution unit 160. Search result output unit 170, data item name meaning management dictionary 180, Table 1
90.

【0031】データ項目名意味管理辞書180は、各登
録語に対して同義語が設定してある同義語辞書を用い
て、データ項目名を意味的に管理する。以下、データ項
目名意味管理辞書180を同義語辞書と呼ぶ。
The data item name meaning management dictionary 180 manages data item names semantically using a synonym dictionary in which synonyms are set for each registered word. Hereinafter, the data item name meaning management dictionary 180 is referred to as a synonym dictionary.

【0032】問い合わせ文入力部110は、検索項目の
項目数や各項目のデータ型、検索条件の異なる複数の問
い合わせ文を、利用者10から受け付ける。
The query sentence input unit 110 receives from the user 10 a plurality of query sentences having different numbers of search items, data types of respective items, and search conditions.

【0033】検索項目取得部120は、各問い合わせ文
から、全検索項目を抽出する。
The search item obtaining unit 120 extracts all search items from each query sentence.

【0034】検索項目同一視判定部130は、検索項目
取得部120で抽出された各検索項目について、同義語
辞書180を参照して同一性を判断する。項目名が辞書
に同義語として定義されている項目同士は同一視する。
但し、項目名が同義であっても、実際には、意味が異な
る情報を有する項目同士の同一視を防止するため、利用
者に同一視可能な項目同士のすべての組合せを提示し、
出力として要求する組合せを選択させることも可能とす
る。これにより、同一視された検索項目の同一視の組合
せを導出し、利用者による同一視組合せの選択により、
出力用表のデータ項目名を決定する。
The search item identification determination unit 130 determines the identity of each search item extracted by the search item acquisition unit 120 with reference to the synonym dictionary 180. Items whose item names are defined as synonyms in the dictionary are regarded as identical.
However, even if the item names are synonymous, in practice, in order to prevent items having information with different meanings from being identified with each other, the user is presented with all combinations of items that can be identified with each other,
It is also possible to select a combination required as an output. Thereby, the combination of the identification of the identified search items is derived, and the selection of the identification is performed by the user.
Determine the data item name of the output table.

【0035】出力用表作成部140は、検索項目同一視
判定部130による同一視の結果を踏まえ、出力用表作
成のための命令文を生成し、問い合わせ文から抽出され
た全データ項目を有する出力用の表を作成する。なお、
表の形態としては、実表の他に、データベースにおける
view表(仮想的な表、データの実体ななくそれをつ
くり出す定義のみ)も含む。
The output table creator 140 generates a command sentence for creating an output table based on the result of the identification by the search item identification determiner 130, and has all the data items extracted from the query. Create a table for output. In addition,
The form of the table includes, in addition to the base table, a view table (virtual table, only the definition for creating the data without the substance of the data) in the database.

【0036】問い合わせ文修正部150は、検索結果を
出力用の表に挿入するように、入力の各問い合わせ文に
挿入命令を付加し、当該問い合わせ文の検索項目の順序
を修正する。さらに、検索効率の向上を考慮し、検索項
目の数、順序、各項目のデータ型が同一である問い合わ
せ文は演算子UNIONを用いて一つの問い合わせ文に
することも可能とする。
The query sentence correcting unit 150 adds an insert command to each input query sentence so as to insert the search result into the output table, and corrects the order of the search items of the query sentence. Further, in consideration of improvement in search efficiency, a query sentence in which the number, order, and data type of each item are the same can be made into one query sentence using the operator UNION.

【0037】問い合わせ実施部160は、各検索対象の
表に対して、修正したい問い合わせを実施し、検索結果
を順次出力用の表に挿入する。なお、全結果の挿入後、
完全に重複する行は削除することも可能とする。
The query execution unit 160 executes a query to be corrected for each search target table, and sequentially inserts the search results into the output table. After inserting all results,
Completely duplicate lines can be deleted.

【0038】検索結果出力部170は、修正した全ての
問い合わせの結果が挿入された出力用の表を、複数の問
い合わせ文による検索結果として利用者に出力する。
The search result output unit 170 outputs the output table into which the results of all the corrected inquiries have been inserted to the user as search results based on a plurality of query sentences.

【0039】表190は、論理的に独立に構築された検
索対象の表である。
A table 190 is a search target table constructed logically independently.

【0040】次に、本発明の動作について説明する。Next, the operation of the present invention will be described.

【0041】図4は、本発明の動作を説明するためのフ
ローチャートである。
FIG. 4 is a flowchart for explaining the operation of the present invention.

【0042】ステップ101) ステップ102以降の
処理を行う前提として、同義語辞書180を設定する。
同義語辞書180は、データ項目名の同義語を定義する
ものであり、項目間の対応は定義しない。この辞書によ
り同義語と判定された複数のデータ項目は、同一視の候
補となる。また、利用者10は、この辞書に登録された
項目名やその同義語を検索項目として指定することがで
きる。検索対象となる表を追加し、この表に未登録のデ
ータ項目が含まれている場合、あるいは、利用者10が
検索項目として指定可能な項目名を追加する場合は、当
該同義語辞書180にその項目名と同義語を新規登録す
る。同義語辞書180には、検索システムの管理者が設
定した辞書や、市販のシソーラス辞書を適用することが
可能である。
Step 101) A synonym dictionary 180 is set as a precondition for performing the processing after step 102.
The synonym dictionary 180 defines synonyms of data item names, and does not define correspondence between items. A plurality of data items determined as synonyms by this dictionary are candidates for identification. Further, the user 10 can designate an item name registered in this dictionary and its synonyms as a search item. When a table to be searched is added and this table includes unregistered data items, or when the user 10 adds an item name that can be specified as a search item, the table is added to the synonym dictionary 180. Register the item name and synonyms newly. As the synonym dictionary 180, a dictionary set by the administrator of the search system or a commercially available thesaurus dictionary can be used.

【0043】ステップ102) 問い合わせ文入力部1
10において、複数の問い合わせ文を利用者から受け付
ける。
Step 102) Inquiry sentence input unit 1
At 10, a plurality of inquiry messages are received from the user.

【0044】ステップ103) 検索項目取得部120
において、各問い合わせ文から全検索項目を抽出する。
Step 103) Search item acquisition unit 120
, All search items are extracted from each inquiry sentence.

【0045】ステップ104) 検索項目同一視判定部
130において、同義語辞書を参照し、すべての検索項
目について同義語を確認し、項目名同士が同義語である
検索項目は同一のものとみなす。
Step 104) The search item identification judgment unit 130 refers to the synonym dictionary, checks synonyms for all search items, and regards search items whose item names are synonyms as the same.

【0046】ステップ105) 出力用表作成部140
において、同一視の結果を考慮して、すべての検索項目
をデータ項目として有する表を作成する。
Step 105) Output table creation unit 140
, A table having all the search items as data items is created in consideration of the result of the identification.

【0047】ステップ106) 問い合わせ文修正部1
50において、出力用を前提にして、検索項目の順序を
修正し(あるいは、NULLを使用して各検索命令文の
構造が同一になるように修正し)、検索結果を出力用表
に挿入するように修正する。ステップ107) 問い合
わせ実施部160において、各情報源に対して修正した
各検索命令文を実施する。
Step 106) Inquiry sentence correcting unit 1
At 50, the order of the search items is corrected on the premise of output (or the structure of each search statement is corrected to be the same using NULL), and the search result is inserted into the output table. Modify as follows. Step 107) The query execution unit 160 executes each of the corrected search statements for each information source.

【0048】ステップ108) 検索結果出力部170
は、修正したすべての問い合わせの結果が挿入された出
力用の表を、複数の問い合わせ文による検索結果として
出力する。
Step 108) Search result output section 170
Outputs an output table into which the results of all modified queries have been inserted as search results using a plurality of query statements.

【0049】上記により、検索項目の項目数や各項目の
データ型、検索条件の異なる複数の問い合わせ文による
検索を実現することができる。
As described above, it is possible to realize a search using a plurality of query sentences having different numbers of search items, data types of respective items, and search conditions.

【0050】[0050]

【実施例】以下、図面と共に本発明の実施例を説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0051】以下の実施例では、前述の図4に示すフロ
ーチャートに基づいて、前述の図15示す3つの情報源
(診断、虫垂炎治療、虫垂炎患者)を対象に検索を実施
する例を説明する。
In the following embodiment, an example will be described in which a search is performed for the three information sources (diagnosis, appendicitis treatment, and appendicitis patients) shown in FIG. 15 based on the flowchart shown in FIG.

【0052】図5は、本発明の一実施例の同義語辞書の
例を示す。同図中の*は後方一致を示し、例えば、患者
氏名は「*氏名」に含まれる。
FIG. 5 shows an example of a synonym dictionary according to an embodiment of the present invention. In the figure, * indicates a backward match, for example, the patient's name is included in “* Name”.

【0053】以下では、ステップ102以降の問い合わ
せ文入力処理以降について説明する。
In the following, a description will be given of the query sentence input processing after step 102.

【0054】問い合わせ文入力処理(ステップ102)
として、複数の問い合わせ文を利用者から受け付ける。
例では、図15に示す3つの情報源から「虫垂炎患者」
の検索を目的として、図16に示す3つの問い合わせ文
が入力されたとする。なお、各問い合わせを個別に実施
した場合、図6に示す検索結果(〜)がそれぞれ得
られる。
Query sentence input processing (step 102)
To accept a plurality of inquiry messages from the user.
In the example, “appendicitis patient” is obtained from the three information sources shown in FIG.
It is assumed that three query sentences shown in FIG. 16 are input for the purpose of searching for. Note that, when each inquiry is individually performed, search results (to) shown in FIG. 6 are obtained.

【0055】次に、検索項目取得処理(ステップ10
3)として、各問い合わせ文からすべての検索項目を洗
い出す。例では、3つの問い合わせ文から以下に示す6
項目が検索項目として洗い出される。[診断.患者氏
名,虫垂炎治療.患者名,虫垂炎治療.年齢,虫垂炎患
者.氏名,虫垂炎患者.性別,虫垂炎患者.年齢] 次に、検索項目同一視判定処理(ステップ104)とし
て、同義語辞書180を参照し、同一視が可能な検索項
目の組合せを洗い出す。図5に示す同義語辞書180を
参照した場合、最小で3項目にまで纏めることができ
る。
Next, retrieval item acquisition processing (step 10)
As 3), all search items are identified from each query. In the example, 6
Items are identified as search items. [Diagnosis. Patient name, appendicitis treatment. Patient name, appendicitis treatment. Age, appendicitis patient. Name, appendicitis patient. Gender, appendicitis patient. Age] Next, as a search item identification determination process (step 104), a combination of search items that can be identified is identified by referring to the synonym dictionary 180. When the synonym dictionary 180 shown in FIG. 5 is referred to, it is possible to summarize at least three items.

【0056】[患者氏名,患者名,氏名は「氏名」,年
齢は「年齢」、性別は「性別」]同一視する検索項目同
士の組合せにより、検索結果として出力する表のデータ
項目は異なる。そこで、すべての組合せを候補として出
力し、利用者の要求に最適な組合せを選択できるように
する。図7に、同一視する検索項目同士のすべての組合
せを示す。同図において、同じ番号の項目同士が同一視
されることを意味する。このようにして取得した図7に
示す検索項目同士の全ての組合せを利用者に提示して、
利用者に選択させる。
[Patient name, patient name, name is “name”, age is “age”, and gender is “sex”] The data items of the table output as search results differ depending on the combination of search items to be identified. Therefore, all combinations are output as candidates so that the most suitable combination for the user's request can be selected. FIG. 7 shows all combinations of search items to be identified. In the figure, it means that items having the same number are identified with each other. All the combinations of the search items shown in FIG. 7 thus obtained are presented to the user,
Let the user choose.

【0057】次に、出力用表作成処理(ステップ10
5)として、利用者により選択された同一視する検索項
目の組合せに従ってデータ項目を定義し、検索結果とし
て出力する表の枠組みを作成する。これは、同一視する
検索項目の組合せに従った表(仮想的なものを含む)を
作成する手段であればよい。ここでは、実際にデータベ
ースに表を作成する例を説明する。図8は、本発明の一
実施例の検索結果出力用の表の作成を説明するための図
であり、検索項目を3項目にまとめた場合(同一視の組
合せとして図7のが選択された場合)の、表作成命令
文の例を示す。
Next, an output table creation process (step 10)
As 5), a data item is defined in accordance with a combination of search items identified by the user and identified, and a table framework to be output as a search result is created. This may be a unit that creates a table (including a virtual table) according to the combination of search items to be identified. Here, an example in which a table is actually created in a database will be described. FIG. 8 is a diagram for explaining the creation of a search result output table according to one embodiment of the present invention. In the case where search items are grouped into three items (FIG. Here is an example of the table creation command statement in (case).

【0058】なお、出力用の表における各データ項目の
データ型については、検索対象の表190におけるデー
タ型をそのまま適用する。同一視を実施したデータ項目
については、同一視前の各検索項目のデータ型をすべて
吸収可能なデータ型を適用する。例えば、20文字の文
字型の検索項目と15文字の文字型の検索項目を同一視
した場合、出力用の表におけるデータ項目は20文字の
文字型とする。
As for the data type of each data item in the output table, the data type in the search target table 190 is applied as it is. For data items that have been identified, a data type that can absorb all data types of each search item before identification is applied. For example, when a search item having a character type of 20 characters and a search item having a character type of 15 characters are identified, the data item in the output table has a character type of 20 characters.

【0059】次に、問い合わせ文修正処理(ステップ1
06)として、検索結果を出力用の表に挿入するよう
に、入力の各問い合わせ文において挿入命令を付加し、
検索項目の順序を修正する。修正した各問い合わせ文を
図9に示す。また、仮想的な表であるview表の形式
で結果を得るための問い合わせ文を図10に示す。
Next, a query sentence correcting process (step 1)
06), an insertion instruction is added to each input query so as to insert the search result into the output table,
Modify the order of search items. FIG. 9 shows the modified query sentences. FIG. 10 shows a query sentence for obtaining a result in the form of a virtual table, a view table.

【0060】次に、問い合わせ実施処理(ステップ10
7)として、図9に示す命令が挿入された問い合わせ文
を用いて、検索対象の表190に対して各問い合わせを
実施する。この結果、出力用の表は、図17のようにな
る。なお、検索効率向上のため、問い合わせ実施の段階
で、検索項目の数、順序、各項目のデータ型が同一であ
る問い合わせ文同士は、UNION演算子を用いて一つ
の問い合わせ文とし、検索を実施する。
Next, an inquiry execution process (step 10)
As 7), each query is performed on the search target table 190 using the query sentence into which the command shown in FIG. 9 is inserted. As a result, the output table is as shown in FIG. In order to improve search efficiency, at the stage of query execution, query sentences having the same number, order, and data type of search items are combined into one query sentence using the UNION operator, and the search is performed. I do.

【0061】また、全検索の挿入後、完全に重複する行
は削除することも可能である。
After the full search is inserted, completely duplicated rows can be deleted.

【0062】最後に、検索結果出力処理(ステップ10
8)として、出力用の表(図17)を、検索結果として
利用者に出力する。
Finally, search result output processing (step 10)
8) The output table (FIG. 17) is output to the user as a search result.

【0063】上記の処理により、本発明では以下のこと
が可能となる。
With the above processing, the present invention enables the following.

【0064】従来は、構造の異なる複数の問い合わせ文
から一つの表を結果として得る検索は実現できないが、
本発明では、まず、検索結果の出力用の表を作成し、そ
こに複数の問い合わせ結果を順次挿入することにより、
検索項目の項目数や、各項目のデータ型、検索条件の異
なる複数の問い合わせ文による検索を実現することによ
り、検索結果は常に一つの表として出力されるため、利
用者の検索結果成立にかかる負担を軽減することができ
る。
Conventionally, a search for obtaining one table as a result from a plurality of query sentences having different structures cannot be realized.
In the present invention, first, a table for outputting search results is created, and a plurality of query results are sequentially inserted therein,
By realizing a search using multiple query sentences with different numbers of search items, data types of each item, and search conditions, the search results are always output as one table, and it takes time for the user to fulfill the search results. The burden can be reduced.

【0065】また、従来は、検索対象の表の変更につい
ては、項目名を追加した上に、既登録の項目との対応を
定義する必要があるが、本発明では、検索対象となる表
を変更した場合、データ項目名管理に関する設定は、未
対応のデータ項目名と同義の追加登録だけで済むため、
検索対象の表の変更に対する柔軟な対応ができる。
Conventionally, in order to change a table to be searched, it is necessary to add an item name and define a correspondence with a registered item. If you change it, the setting related to data item name management only needs to be added and registered in the same way as unsupported data item name.
Flexible response to changes in the table to be searched.

【0066】さらに、従来は、項目対応表を予め用意
し、定義された対応に従った静的な統合をのみを実施し
ており、利用者要求が変更されると、それに従って項目
対応表も変更する必要があるが、本発明では、複数の問
い合わせ文からすべての検索項目を洗い出し、同義語辞
書の参照により同一視が可能な各項目の組合せをすべて
出力して、選択可能にすることにより、いつでも利用者
の要求する検索結果の統合を実現することが可能とな
る。例えば、上記の実施例において、情報源「虫垂炎治
療」の年齢は、治療時の年齢を指し、「虫垂炎患者」の
年齢は、現在の年齢を指している場合を想定する。この
場合、これらのデータ項目は同一視するべきではない。
本発明では、項目同一視の組合せの選択において、これ
らを同一視しない組合せを選択することにより、図11
に示すような検索結果を得ることができる。従来の項目
対応表を利用した検索方法では、このような変更を行う
ためには、対応表を修正しなければならない。
Further, conventionally, an item correspondence table is prepared in advance, and only static integration according to a defined correspondence is performed. When a user request is changed, the item correspondence table is also changed accordingly. Although it is necessary to change, in the present invention, all search items are identified from a plurality of query sentences, and all combinations of items that can be identified by referring to the synonym dictionary are all output, so that selection is possible. Thus, it is possible to always integrate search results requested by the user. For example, in the above embodiment, it is assumed that the age of the information source "appendicitis treatment" refers to the age at the time of treatment, and the age of "appendicitis patient" refers to the current age. In this case, these data items should not be identified.
In the present invention, in selecting a combination of item identification, by selecting a combination that does not identify these items, FIG.
Can be obtained. In the conventional search method using the item correspondence table, in order to make such a change, the correspondence table must be corrected.

【0067】また、上記の実施例では、図4に示すフロ
ーチャートに基づいて説明したが、当該フローチャート
をプログラムとして構築し、統合検索装置として利用さ
れるコンピュータに接続されるディスク装置や、フロッ
ピー(登録商標)ディスク、CD−ROM等の可搬記憶
媒体に格納しておき、本発明を実施する際にインストー
ルすることにより、容易に本発明を実現できる。
Although the above embodiment has been described based on the flowchart shown in FIG. 4, the flowchart is constructed as a program, and a disk device connected to a computer used as an integrated search device, a floppy (registered) The present invention can be easily realized by storing it in a portable storage medium such as a trademark (trademark) disk, a CD-ROM, or the like and installing it when implementing the present invention.

【0068】なお、本発明は、上記の実施例に限定され
ることなく、特許請求の範囲内において、種々変更・応
用が可能である。
It should be noted that the present invention is not limited to the above-described embodiment, and various modifications and applications are possible within the scope of the claims.

【0069】[0069]

【発明の効果】上述のように、本発明によれば、自動生
成されたような複数の構造の異なる問い合わせ文による
検索により、表の構造などを知らない利用者の要求を満
たすことが可能となる。
As described above, according to the present invention, it is possible to satisfy a request of a user who does not know the structure of a table or the like by performing a search using a plurality of query sentences having different structures as automatically generated. Become.

【0070】また、情報源や検索要求として入力可能な
検索項目名、検索の利用場面等の変更に対して検索機能
の柔軟な対応ができる。
Further, the search function can flexibly respond to changes in information sources, search item names that can be input as search requests, search use scenes, and the like.

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

【図1】本発明の原理を説明するための図である。FIG. 1 is a diagram for explaining the principle of the present invention.

【図2】本発明の原理構成図である。FIG. 2 is a principle configuration diagram of the present invention.

【図3】本発明の概要を説明する機能ブロック図であ
る。
FIG. 3 is a functional block diagram illustrating an outline of the present invention.

【図4】本発明の動作を説明するためのフローチャート
である。
FIG. 4 is a flowchart for explaining the operation of the present invention.

【図5】本発明の一実施例の同義語辞書の例である。FIG. 5 is an example of a synonym dictionary according to an embodiment of the present invention.

【図6】本発明の一実施例の各問い合わせの実施結果で
ある。
FIG. 6 is a diagram showing a result of executing each inquiry according to the embodiment of the present invention.

【図7】本発明の一実施例のデータ項目同一視の組合せ
の例である。
FIG. 7 is an example of a combination of data item identification according to an embodiment of the present invention.

【図8】本発明の一実施例の検索結果出力用の表の作成
を説明するための図である。
FIG. 8 is a diagram for explaining creation of a search result output table according to one embodiment of the present invention;

【図9】本発明の一実施例の検索実施及び結果の出力表
への挿入の例である。
FIG. 9 is an example of performing a search and inserting a result into an output table according to an embodiment of the present invention.

【図10】本発明の一実施例の検索結果をview表と
して得るための問い合わせ文の例である。
FIG. 10 is an example of a query sentence for obtaining a search result as a view table according to an embodiment of the present invention.

【図11】本発明の一実施例のデータ項目同一視の組合
せを変更した検索結果である。
FIG. 11 shows a search result obtained by changing a combination of data items being identified in one embodiment of the present invention.

【図12】UNIONによる問い合わせ文結合と統合検
索を説明するための図である。
FIG. 12 is a diagram for explaining query sentence combination and integrated search by UNION.

【図13】項目対応表を用いた項目同一視による検索を
説明するための図である。
FIG. 13 is a diagram for describing a search by item identification using an item correspondence table.

【図14】レコード番号に従ったデータ統合による検索
を説明するための図である。
FIG. 14 is a diagram illustrating a search by data integration according to a record number.

【図15】検索対象情報源の例である。FIG. 15 is an example of a search target information source.

【図16】構造の異なる問い合わせ文の例である。FIG. 16 is an example of a query sentence having a different structure.

【図17】目標検索結果である。FIG. 17 shows a target search result.

【図18】特定の表に対する条件指定ができない問題を
説明するための図である。
FIG. 18 is a diagram for explaining a problem that a condition cannot be specified for a specific table.

【符号の説明】[Explanation of symbols]

10 利用者 100 統合検索装置 110 問い合わせ文入力手段、問い合わせ文入力部 120 検索項目取得手段、検索項目取得部 130 検索項目同一視判定手段、検索項目同一視判定
部 140 出力用表作成手段、出力用表作成部 150 問い合わせ文修正手段、問い合わせ文修正部 160 問い合わせ実施手段、問い合わせ実施部 170 検索結果出力手段、検索結果出力部 180 同義語辞書(データ項目名意味管理辞書) 190 検索対象の表
DESCRIPTION OF SYMBOLS 10 User 100 Integrated search apparatus 110 Inquiry sentence input means, Inquiry sentence input part 120 Search item acquisition means, search item acquisition part 130 Search item identification determination means, Search item identification determination part 140 Output table preparation means, Output Table creation unit 150 Query sentence modification unit, Query sentence modification unit 160 Query execution unit, Query execution unit 170 Search result output unit, Search result output unit 180 Synonym dictionary (data item name meaning management dictionary) 190 Table to be searched

───────────────────────────────────────────────────── フロントページの続き (72)発明者 飯塚 裕一 東京都千代田区大手町二丁目3番1号 日 本電信電話株式会社内 Fターム(参考) 5B075 ND20 NK35 PQ02 QP03  ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Yuichi Iizuka 2-3-1 Otemachi, Chiyoda-ku, Tokyo Nippon Telegraph and Telephone Corporation F-term (reference) 5B075 ND20 NK35 PQ02 QP03

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 データベースの論理的に独立に構築され
た複数の表を、構造の異なる複数の問い合わせ文を用い
て検索し、1つの検索結果を取得するための統合検索方
法において、 利用者から複数の問い合わせ文を受け付け、 前記問い合わせ文からすべての検索項目を抽出し、 データ項目名の同義語を定義した同義語辞書を参照し
て、同一視が可能な検索項目の組合せを抽出し、 前記利用者によって選択された同一視する検索項目の組
合せに従って、データ項目を定義し、検索結果として出
力する表の枠組みを作成し、 前記表の枠組みに合わせて、前記各問い合わせ文に挿入
命令を付加して、検索項目の順序を修正し、 修正された問い合わせ文を用いて、検索対象の表を検索
し、 検索された結果を前記利用者に出力することを特徴とす
る統合検索方法。
1. An integrated search method for searching a plurality of logically independent tables of a database using a plurality of query statements having different structures and obtaining one search result. Accepting a plurality of query sentences, extracting all search items from the query sentences, referring to a synonym dictionary defining synonyms of data item names, extracting combinations of search items that can be identified, According to the combination of search items to be identified by the user, data items are defined, a table framework to be output as a search result is created, and an insertion instruction is added to each of the query statements according to the table framework. And correcting the order of the search items, searching the table to be searched using the corrected query, and outputting the searched result to the user. If the search method.
【請求項2】 前記検索対象の表におけるデータ項目間
の対応関係は管理せずに、登録語の語彙のみを管理する
辞書として、前記同義語辞書を作成する請求項1記載の
統合検索方法。
2. The integrated search method according to claim 1, wherein the synonym dictionary is created as a dictionary that manages only the vocabulary of registered words without managing the correspondence between data items in the table to be searched.
【請求項3】 前記検索対象の表を検索する際に、 一つの表形式で検索結果を導出する請求項1記載の統合
検索方法。
3. The integrated search method according to claim 1, wherein a search result is derived in one table format when searching the search target table.
【請求項4】 データベースの論理的に独立に構築され
た複数の表を、構造の異なる複数の問い合わせ文を用い
て検索し、1つの検索結果を取得するための統合検索装
置であって、 各登録語に対して同義語が設定されている同義語辞書
と、 利用者から複数の問い合わせ文を受け付ける問い合わせ
文入力手段と、 前記問い合わせ文からすべての検索項目を抽出する検索
項目取得手段と、 前記同義語辞書を参照して、同一視が可能な検索項目の
組合せを抽出する検索項目同一視判定手段と、 前記利用者によって選択された同一視する検索項目の組
合せに従って、データ項目を定義し、検索結果として出
力する表の枠組みを作成する出力用表作成手段と、 前記出力表作成手段により作成された前記表の枠組みに
合わせて、前記各問い合わせ文に挿入命令を付加して、
検索項目の順序を修正する問い合わせ文修正手段と、 前記問い合わせ文修正手段で修正された問い合わせ文を
用いて、検索対象の表を検索する問い合わせ実施手段
と、 検索された結果を前記利用者に出力する検索結果出力手
段とを有することを特徴とする統合検索装置。
4. An integrated search apparatus for searching a plurality of logically independent tables of a database using a plurality of query statements having different structures and obtaining one search result, A synonym dictionary in which synonyms are set for registered words, a query sentence input unit for receiving a plurality of query sentences from a user, a search item acquisition unit for extracting all search items from the query sentence, With reference to the synonym dictionary, a search item identification determination means for extracting a combination of search items that can be identified with each other, and defining a data item according to the combination of search items to be identified that are selected by the user, Output table creating means for creating a framework of a table to be output as a search result; and inserting into each of the query sentences according to the framework of the table created by the output table creating means. With an input command
Query sentence correcting means for correcting the order of the search items; query execution means for searching a search target table using the query sentence corrected by the query sentence correcting means; and outputting the searched result to the user. And a search result output means for performing the search.
【請求項5】 前記同義語辞書は、 検索対象の表におけるデータ項目間の対応関係は管理せ
ずに、登録語の語彙のみを管理する請求項4記載の統合
検索装置。
5. The integrated search device according to claim 4, wherein the synonym dictionary manages only the vocabulary of registered words without managing the correspondence between data items in a table to be searched.
【請求項6】 前記問い合わせ実施手段は、 一つの表形式で検索結果を導出する請求項4記載の統合
検索装置。
6. The integrated search apparatus according to claim 4, wherein said query execution means derives the search result in one table format.
【請求項7】 前記問い合わせ文修正手段は、 検索項目の数、順序、各項目のデータ型が同一である問
い合わせ文については、演算子UNIONを用いて一つ
の問い合わせ文にする手段を含む請求項4記載の統合検
索装置。
7. The query sentence correcting means includes means for making a single query sentence using an operator UNION for a query sentence in which the number, order, and data type of each item are the same. 4. The integrated search device according to 4.
【請求項8】 データベースの論理的に独立に構築され
た複数の表を、構造の異なる複数の問い合わせ文を用い
て検索し、1つの検索結果を取得するための統合検索プ
ログラムを格納した記憶媒体であって、 利用者から複数の問い合わせ文を受け付ける問い合わせ
文入力プロセスと、 前記問い合わせ文からすべての検索項目を抽出する検索
項目取得プロセスと、 データ項目名の同義語を定義した同義語辞書を参照し
て、同一視が可能な検索項目の組合せを抽出する検索項
目同一視判定プロセスと、 前記利用者によって選択された同一視する検索項目の組
合せに従って、データ項目を定義し、検索結果として出
力する表の枠組みを作成する出力用表作成プロセスと、 前記出力表作成プロセスにより作成された前記表の枠組
みに合わせて、前記各問い合わせ文に挿入命令を付加し
て、検索項目の順序を修正する問い合わせ文修正プロセ
スと、 前記問い合わせ文修正プロセスで修正された問い合わせ
文を用いて、検索対象の表を検索する問い合わせ実施プ
ロセスと、 検索された結果を前記利用者に出力する検索結果出力プ
ロセスとを有することを特徴とする統合検索プログラム
を格納した記憶媒体。
8. A storage medium storing an integrated search program for searching a plurality of logically independent tables of a database using a plurality of query statements having different structures and obtaining one search result. A query sentence input process for receiving a plurality of query sentences from a user, a search item acquisition process for extracting all search items from the query sentence, and a synonym dictionary defining synonyms for data item names. Then, a data item is defined in accordance with a search item identification determination process for extracting a combination of search items that can be identified, and a combination of search items to be identified that are selected by the user, and is output as a search result. An output table creation process for creating a table framework, and according to the table framework created by the output table creation process, A query sentence correction process for adding an insert instruction to the query sentence to correct the order of the search items; anda query execution process for searching the search target table using the query sentence corrected in the query sentence correction process, A search result output process for outputting a search result to the user. A storage medium storing an integrated search program.
【請求項9】 前記検索対象の表におけるデータ項目間
の対応関係は管理せずに、登録語の語彙のみを管理する
辞書として、前記同義語辞書を作成するプロセスを更に
有する請求項8記載の統合検索プログラムを格納した記
憶媒体。
9. The method according to claim 8, further comprising the step of creating the synonym dictionary as a dictionary for managing only the vocabulary of registered words without managing the correspondence between data items in the table to be searched. A storage medium storing an integrated search program.
【請求項10】 前記問い合わせ実施プロセスは、 一つの表形式で検索結果を導出する請求項8記載の統合
検索プログラムを格納した記憶媒体。
10. The storage medium storing the integrated search program according to claim 8, wherein the inquiry execution process derives a search result in one tabular form.
【請求項11】 前記問い合わせ文修正プロセスは、 検索項目の数、順序、各項目のデータ型が同一である問
い合わせ文については、演算子UNIONを用いて一つ
の問い合わせ文にするプロセスを含む請求項8記載の統
合検索プログラムを格納した記憶媒体。
11. The query sentence correcting process includes a process of making a query sentence using the operator UNION for a query sentence having the same number, order, and data type of each search item. A storage medium storing the integrated search program according to claim 8.
JP2000342418A 2000-11-09 2000-11-09 Integrated search method and apparatus, and storage medium storing integrated search program Expired - Lifetime JP3558032B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000342418A JP3558032B2 (en) 2000-11-09 2000-11-09 Integrated search method and apparatus, and storage medium storing integrated search program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000342418A JP3558032B2 (en) 2000-11-09 2000-11-09 Integrated search method and apparatus, and storage medium storing integrated search program

Publications (2)

Publication Number Publication Date
JP2002149648A true JP2002149648A (en) 2002-05-24
JP3558032B2 JP3558032B2 (en) 2004-08-25

Family

ID=18816981

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000342418A Expired - Lifetime JP3558032B2 (en) 2000-11-09 2000-11-09 Integrated search method and apparatus, and storage medium storing integrated search program

Country Status (1)

Country Link
JP (1) JP3558032B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006092078A (en) * 2004-09-22 2006-04-06 Apex:Kk After-sale service management system for real estate property
JP2007304796A (en) * 2006-05-10 2007-11-22 Mitsubishi Electric Corp Database analysis system, database analysis method and program
US10073852B2 (en) 2012-12-28 2018-09-11 Fujitsu Limited Computer-readable storage medium, file management apparatus, and file management method
JP2019185683A (en) * 2018-04-17 2019-10-24 カシオ計算機株式会社 Computer program, information processing method and information processing device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006092078A (en) * 2004-09-22 2006-04-06 Apex:Kk After-sale service management system for real estate property
JP2007304796A (en) * 2006-05-10 2007-11-22 Mitsubishi Electric Corp Database analysis system, database analysis method and program
US10073852B2 (en) 2012-12-28 2018-09-11 Fujitsu Limited Computer-readable storage medium, file management apparatus, and file management method
JP2019185683A (en) * 2018-04-17 2019-10-24 カシオ計算機株式会社 Computer program, information processing method and information processing device

Also Published As

Publication number Publication date
JP3558032B2 (en) 2004-08-25

Similar Documents

Publication Publication Date Title
US6466931B1 (en) Method and system for transparently caching and reusing query execution plans efficiently
JP4634715B2 (en) Search for matching documents by querying in any national language
JP2783558B2 (en) Summary generation method and summary generation device
US20060149716A1 (en) Computer readable medium, method and apparatus for preserving filtering conditions to query multilingual data sources at various locales when regenerating a report
US6343286B1 (en) Efficient technique to defer large object access with intermediate results
JPH11203311A (en) Device for extracting related word and method therefor and computer readable recording medium for recording related word extraction program
JPH10240588A (en) Database processing method
JP2000194699A (en) Translation support device and method and computer readable recording medium
JP2001075969A (en) Method and device for image management retrieval and storage medium
US20050044065A1 (en) Method and apparatus for enabling national language support of a database engine
CN112015722A (en) Database management method, data blood relationship analysis method and related device
US11301441B2 (en) Information processing system and information processing method
JP2009146084A (en) Table management device
JP2000163307A (en) Method and device for data base processing, and medium where processing program thereof is recorded
JP3786233B2 (en) Information search method and information search system
JP2002149648A (en) Method and device for integrated retrieval and storage medium with integrated retrieval program stored therein
US20170242880A1 (en) B-tree index structure with grouped index leaf pages and computer-implemented method for modifying the same
JP2000163445A (en) Data base managing system
JP2002063165A (en) Method and system and program for information retrieval, and recording medium having the same program recorded thereon
JP2020009273A (en) Search system
US20220366714A1 (en) Inter-word score calculation apparatus, question and answer extraction system and inter-word score calculation method
JPH10171815A (en) Integrated retrieving device
JP2006106907A (en) Structured document management system, method for constructing index, and program
JPH08249341A (en) Document storage and retrieval device for document data base
JP2000099512A (en) Document managing system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040331

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: 20040427

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040510

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3558032

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090528

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090528

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100528

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100528

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110528

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120528

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130528

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140528

Year of fee payment: 10

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term