JP3558032B2 - Integrated search method and apparatus, and storage medium storing integrated search program - Google Patents

Integrated search method and apparatus, and storage medium storing integrated search program Download PDF

Info

Publication number
JP3558032B2
JP3558032B2 JP2000342418A JP2000342418A JP3558032B2 JP 3558032 B2 JP3558032 B2 JP 3558032B2 JP 2000342418 A JP2000342418 A JP 2000342418A JP 2000342418 A JP2000342418 A JP 2000342418A JP 3558032 B2 JP3558032 B2 JP 3558032B2
Authority
JP
Japan
Prior art keywords
search
items
query
result
item
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.)
Expired - Lifetime
Application number
JP2000342418A
Other languages
Japanese (ja)
Other versions
JP2002149648A (en
Inventor
一也 小西
源吾 鈴木
裕一 飯塚
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

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は、統合検索方法及び装置及び統合検索プログラムを格納した記憶媒体に係り、特に、データベースの論理的に独立に構築された複数の表に対し、構造の異なる複数の問い合わせ文を用いて一つの検索結果を取得するための統合検索方法及び装置及び統合検索プログラムを格納した記憶媒体に関する。
【0002】
【従来の技術】
従来のデータベースの統合検索方法は、予め用意した項目対応表を用いて複数の表の垣根を越えて項目を同一視、あるいは、複数の表をレコードに従って結合するといった方法が採られている。これらの方法によって複数の表を結合して、一つの大きな表を作り、それに対して検索を実施することで、統合検索が実現される。
【0003】
データベース問い合わせ言語SQLにおけるUNIONは、複数の問い合わせから得られる検索結果を統合する演算子である。通常、複数の表に対する検索を実施する場合、各表に対して、問い合わせを行い、得られた各結果を利用が整理しなければならないが、図12に示すように、[名簿A]、[名簿B]からUNIONを使用することにより、利用者は一つに統合された検索結果を得ることができる。
【0004】
一方、論理的に独立に構築された複数の表に対する検索を実施し、統合された検索結果を得たいという要求もある。そこで、各表に含まれる同義データ項目を同一視し、それらの列を統合する方法や、各表に含まれる同一レコードに関する検索項目のデータを統合する方法がある。
【0005】
このような統合検索技術として、特開平5−891320「情報検索装置」がある。図13は、項目対応表を用いた項目同一視による検索を示す。この方法は、図13に示すように、同一名称・同一意味の項目対応表を自動的・対話的に予め作成しておき、対応項目を同一視することにより、複数の表に及んで存在する列を統合する。つまり、各情報源に対して同じ構造の問い合わせ
[SELECT 氏名,年齢]
を実施し、結果を統合する。
【0006】
また、特開平11−175552「データベース検索装置及びデータベース検索プログラムを記録したコンピュータ読み取り可能な記録媒体」は、図14に示すように、問い合わせ文の検索項目から検索対象となる表(名簿,身体測定)を特定し、各表において同一レコード番号(レコード番号:1)のデータを
[SELECT 氏名,年齢,身長,体重]
により統合する。条件検索は、統合後の情報を対象に条件検索[WHERE年齢<30,体重<70]実施する。これにより、個別の表からは得られない結果
[レコード番号:1,氏名:あいうえお,年齢:20,身長:170,体重:60]
を検索する。
【0007】
【発明が解決しようとする課題】
しかしながら、上記従来の方法には以下に示すような問題がある。
【0008】
例えば、図15に示す複数の表に対し、図16に示す問い合わせを実施し、図17に示す検索結果を導出することを考える。図15に示す各表(診断、虫垂炎治療、虫垂炎患者)には、患者に関する情報が登録されている。図16に示す問い合わせ文(▲1▼〜▲3▼)は、「虫垂炎患者に関する情報を検索したい」という要求に従って作成されたものである。
【0009】
通常、UNION演算子を用いて複数の検索結果を統合する場合、各問い合わせ文で指定される検索項目は、項目数、順序、各項目のデータ型が一致している必要がある。しかし、図16に示す各問い合わせ文は項目数が一致していないため、UNIONによる統合はできない。
【0010】
また、上記の特開平5−81320及び特開平11−175552では、特定の表に対する検索条件が考慮されていない。つまり、特定の表に対する検索条件が指定できないため、表の統合によって項目や表そのものが持つ意味が消失する場合がある。従って、図16に示す問い合わせが指定されている特定の表に対する検索条件(▲1▼の「WHERE結果=虫垂炎」)は無効になる。図18に示すように、データ項目の統合のみを実施した場合は、問い合わせ内容を満たさないデータが検索結果に含まれる。検索項目と同様に検索条件もすべての表に対して指定した場合は、問い合わせ内容を満たすデータが検索結果から漏れる。いずれの場合も、図17に示す検索結果を得ることはできない。つまり、図18に示す項目対応表に対して、▲1▼のデータ項目の合併のみを実施した場合([SELECT氏名,年齢,性別])、[診断.患者氏名、虫垂炎治療.患者名、虫垂炎患者.氏名]が「氏名」に、[虫垂炎治療.年齢,虫垂炎患者.年齢]が「年齢」に、[虫垂炎患者.性別]が「性別」にそれぞれ統合され、検索対象となる。▲1▼の検索結果からわかるように、項目対応表の「診断」の項目から“虫垂炎”以外の患者(正常)も検索されてしまう。
【0011】
次に、▲2▼検索条件([SELECT 氏名,年齢,性別]、[WHERE結果=虫垂炎])を全ての表に適用すると、表「虫垂炎治療」「虫垂炎患者」の情報が検索されないという問題が発生する。
【0012】
さらに、特願平5−81320では、対応定義は静的であるため、検索対象の表を変更する場合や、利用者が検索要求として入力可能な検索項目名を変更した場合、あるいは、対象の表が同じであっても利用場面を変更した場合など、その都度対応定義を修正する必要がある。予めあらゆる対応を定義しておくことは不可能である。また、定義が多くなるほど検索結果には不要な情報が含まれる可能性が高くなる。
【0013】
また、リレーショナルデータベースにおいて、ビューと呼ばれる概念があるが、データの検索操作は、ベースとなるテーブル(表とも言う)から新しい意味を持つテーブルを作り出すと解釈できる。この操作及びテーブルを実体のない仮想的なものとして定義したのがビューである。ビューは検索操作の結果であるので、データ構造(スキーマとも言う)の異なる複数の表を対象とした検索を実施し、一つに統合された検索結果を得るためには、各表に対する問い合わせ文を調整しなければならない。調整をするためには、表の構造や問い合わせ方法について熟知している必要がある。
【0014】
本発明は、上記の点に鑑みなされたもので、論理的に独立に構築された複数の表を対象とした、検索項目の項目数や順序、各項目のデータ型、検索条件の異なる複数の問い合わせ文による検索が可能な統合検索方法及び装置及び統合検索プログラムを格納した記憶媒体を提供することを目的する。
【0015】
本発明の更なる目的は、情報源や検索要求として入力可能な検索項目名、検索の利用場面等の変更に対する検索機能の柔軟な対応が可能な統合検索方法及び装置及び統合検索プログラムを格納した記憶媒体を提供することである。
【0016】
【課題を解決するための手段】
図1は、本発明の原理を説明するための図である。
【0017】
本発明(請求項1)は、データベースの論理的に独立に構築された複数の検索対象の表を、構造の異なる複数の問い合わせ文を用いて検索し、1つの検索結果を取得するための統合検索方法において、
問い合わせ文入力手段において、利用者から入力される、複数の問い合わせ文を受け付け(ステップ1)、
検索項目取得手段において、問い合わせ文から全ての検索項目を抽出し(ステップ2)、
項目同一視判定手段において、データ項目名の同義語を定義した同義語辞書を、抽出された検索項目に基づいて参照し、データ項目名同士が同義語である項目は同一ものとして同一視の結果を抽出し、利用者に提示し(ステップ3)
出力用表作成手段において、利用者によって選択された同一視の結果に従って、問い合わせ文から抽出した検索項目をデータ項目として定義した出力用の表を作成してデータベースに格納し(ステップ4)
問い合わせ文修正手段において、出力用表作成手段で作成された出力用の表のデータ項目に合わせて、問い合わせ文の検索項目の順序を修正し、検索結果を該出力用の表に挿入するための挿入命令を付加し(ステップ5)、
問い合わせ実施手段において、修正された問い合わせ文を用いて、検索対象の表の検索を行い(ステップ6)、
検索結果出力手段において、検索された結果を利用者に出力する(ステップ7)。
【0018】
本発明(請求項2)は、検索対象の表におけるデータ項目間の対応関係は管理せずに、登録語の語彙のみを管理する辞書として、同義語辞書を作成する。
【0019】
本発明(請求項3)は、問い合わせ実施手段において、検索対象の表を検索する際に、一つの表形式で検索結果を導出する。
【0020】
図2は、本発明の原理構成図である。
【0021】
本発明(請求項4)は、データベースの論理的に独立に構築された複数の検索対象の表を、構造の異なる複数の問い合わせ文を用いて検索し、1つの検索結果を取得するための統合検索装置であって、
データ項目名の同義語を定義した同義語辞書180と、
利用者から複数の問い合わせ文を受け付ける問い合わせ文入力手段110と、
問い合わせ文から全ての検索項目を抽出する検索項目取得手段120と、
同義語辞書180を、抽出された検索項目に基づいて参照し、データ項目名同士が同義語である項目は同一ものとして同一視の結果を抽出し、利用者に提示する項目同一視判定手段130と、
利用者によって選択された同一視の結果に従って、問い合わせ文から抽出した検索項目をデータ項目として定義した出力用の表を作成し、データベースに格納する出力用表作成手段140と、
作成された出力用の表のデータ項目に合わせて、問い合わせ文の検索項目の順序を修正し、検索結果を該出力用の表に挿入するための挿入命令を付加する問い合わせ文修正手段150と、
修正された問い合わせ文を用いて、検索対象の表の検索を行う問い合わせ実施手段160と、
検索された結果を利用者に出力する検索結果出力手段170とを有する。
【0022】
本発明(請求項5)は、同義語辞書180として、検索対象の表における対応関係は管理せずに、登録後の語彙のみを管理する辞書とする
本発明(請求項6)は、問い合わせ実施手段160において、検索対象の表を検索する際に、一つの表形式で検索結果を導出する。
【0023】
本発明(請求項7)は、問い合わせ文修正手段150において、検索項目の数、順序、各項目のデータ型が同一である問い合わせ文については、演算子UNIONを用いて一つの問い合わせ文にする手段を含む。
【0024】
本発明(請求項8)は、データベースの論理的に独立に構築された複数の検索対象の表を、構造の異なる複数の問い合わせ文を用いて検索し、1つの検索結果を取得するための統合検索プログラムを格納した記憶媒体であって、
コンピュータに、
利用者から複数の問い合わせ文を受け付ける問い合わせ文入力ステップと、
問い合わせ文から全ての検索項目を抽出する検索項目取得ステップと、
データ項目名の同義語を定義した同義語辞書を、抽出された検索項目に基づいて参照し、データ項目名同士が同義語である項目は同一ものとして同一視の結果を抽出し、利用者に提示する検索項目同一視判定ステップと、
利用者によって選択された同一視の結果に従って、問い合わせ文から抽出した検索項目をデータ項目として定義した出力用の表を作成し、データベースに格納する出力用表作成ステップと、
作成された出力用の表のデータ項目に合わせて、問い合わせ文の検索項目の順序を修正し、検索結果を該出力用の表に挿入するための挿入命令を付加する問い合わせ文修正ステップと、
修正された問い合わせ文を用いて、検索対象の表の検索を行う問い合わせ実施ステップと、
検索された結果を利用者に出力する検索結果出力ステップと、を実行させるプログラムを格納した記憶媒体である。
【0025】
本発明(請求項9)は、検索対象の表におけるデータ項目間の対応関係は管理せずに、登録語の語彙のみを管理する辞書として、同義語辞書を作成するステップを更に実行させる
【0026】
本発明(請求項10)は、問い合わせ実施ステップにおいて、検索対象の表を検索する際に、一つの表形式で検索結果を導出する。
【0027】
本発明(請求項11)は、問い合わせ文修正ステップにおいて、検索項目の数、順序、各項目のデータ型が同一である問い合わせ文については、演算子UNIONを用いて一つの問い合わせ文にするステップを実行させる。
【0028】
上記のように、本発明は、同義語辞書を用意し、構造の異なる複数の問い合わせ文を受け付けた時に、一つの検索結果が得られるように問い合わせ文を変換することにより、各結果を一つの表に統合することにより、容易な統合検索結果の導出を可能とする。
【0029】
【発明の実施の形態】
図3は、本発明の概要を説明する機能ブロック図である。
【0030】
同図に示す統合検索装置100は、問い合わせ文入力部110、検索項目取得部120、検索項目同一視判定部130、出力用表作成部140、問い合わせ文修正部150、問い合わせ実施部160、検索結果出力部170、データ項目名意味管理辞書180、表190から構成される。
【0031】
データ項目名意味管理辞書180は、各登録語に対して同義語が設定してある同義語辞書を用いて、データ項目名を意味的に管理する。以下、データ項目名意味管理辞書180を同義語辞書と呼ぶ。
【0032】
問い合わせ文入力部110は、検索項目の項目数や各項目のデータ型、検索条件の異なる複数の問い合わせ文を、利用者10から受け付ける。
【0033】
検索項目取得部120は、各問い合わせ文から、全検索項目を抽出する。
【0034】
検索項目同一視判定部130は、検索項目取得部120で抽出された各検索項目について、同義語辞書180を参照して同一性を判断する。項目名が辞書に同義語として定義されている項目同士は同一視する。但し、項目名が同義であっても、実際には、意味が異なる情報を有する項目同士の同一視を防止するため、利用者に同一視可能な項目同士のすべての組合せを提示し、出力として要求する組合せを選択させることも可能とする。これにより、同一視された検索項目の同一視の組合せを導出し、利用者による同一視組合せの選択により、出力用表のデータ項目名を決定する。
【0035】
出力用表作成部140は、検索項目同一視判定部130による同一視の結果を踏まえ、出力用表作成のための命令文を生成し、問い合わせ文から抽出された全データ項目を有する出力用の表を作成する。なお、表の形態としては、実表の他に、データベースにおけるview表(仮想的な表、データの実体なくそれを作り出す定義のみ)も含む。
【0036】
問い合わせ文修正部150は、検索結果を出力用の表に挿入するように、入力の各問い合わせ文に挿入命令を付加し、当該問い合わせ文の検索項目の順序を修正する。さらに、検索効率の向上を考慮し、検索項目の数、順序、各項目のデータ型が同一である問い合わせ文は演算子UNIONを用いて一つの問い合わせ文にすることも可能とする。
【0037】
問い合わせ実施部160は、各検索対象の表に対して、修正したい問い合わせを実施し、検索結果を順次出力用の表に挿入する。なお、全結果の挿入後、完全に重複する行は削除することも可能とする。
【0038】
検索結果出力部170は、修正した全ての問い合わせの結果が挿入された出力用の表を、複数の問い合わせ文による検索結果として利用者に出力する。
【0039】
表190は、論理的に独立に構築された検索対象の表である。
【0040】
次に、本発明の動作について説明する。
【0041】
図4は、本発明の動作を説明するためのフローチャートである。
【0042】
ステップ101) ステップ102以降の処理を行う前提として、同義語辞書180を設定する。同義語辞書180は、データ項目名の同義語を定義するものであり、項目間の対応は定義しない。この辞書により同義語と判定された複数のデータ項目は、同一視の候補となる。また、利用者10は、この辞書に登録された項目名やその同義語を検索項目として指定することができる。検索対象となる表を追加し、この表に未登録のデータ項目が含まれている場合、あるいは、利用者10が検索項目として指定可能な項目名を追加する場合は、当該同義語辞書180にその項目名と同義語を新規登録する。同義語辞書180には、検索システムの管理者が設定した辞書や、市販のシソーラス辞書を適用することが可能である。
【0043】
ステップ102) 問い合わせ文入力部110において、複数の問い合わせ文を利用者から受け付ける。
【0044】
ステップ103) 検索項目取得部120において、各問い合わせ文から全検索項目を抽出する。
【0045】
ステップ104) 検索項目同一視判定部130において、同義語辞書を参照し、すべての検索項目について同義語を確認し、項目名同士が同義語である検索項目は同一のものとみなす。
【0046】
ステップ105) 出力用表作成部140において、同一視の結果を考慮して、すべての検索項目をデータ項目として有する表を作成する。
【0047】
ステップ106) 問い合わせ文修正部150において、出力用を前提にして、検索項目の順序を修正し(あるいは、NULLを使用して各検索命令文の構造が同一になるように修正し)、検索結果を出力用表に挿入するように修正する。ステップ107) 問い合わせ実施部160において、各情報源に対して修正した各検索命令文を実施する。
【0048】
ステップ108) 検索結果出力部170は、修正したすべての問い合わせの結果が挿入された出力用の表を、複数の問い合わせ文による検索結果として出力する。
【0049】
上記により、検索項目の項目数や各項目のデータ型、検索条件の異なる複数の問い合わせ文による検索を実現することができる。
【0050】
【実施例】
以下、図面と共に本発明の実施例を説明する。
【0051】
以下の実施例では、前述の図4に示すフローチャートに基づいて、前述の図15示す3つの情報源(診断、虫垂炎治療、虫垂炎患者)を対象に検索を実施する例を説明する。
【0052】
図5は、本発明の一実施例の同義語辞書の例を示す。同図中の*は後方一致を示し、例えば、患者氏名は「*氏名」に含まれる。
【0053】
以下では、ステップ102以降の問い合わせ文入力処理以降について説明する。
【0054】
問い合わせ文入力処理(ステップ102)として、複数の問い合わせ文を利用者から受け付ける。例では、図15に示す3つの情報源から「虫垂炎患者」の検索を目的として、図16に示す3つの問い合わせ文が入力されたとする。なお、各問い合わせを個別に実施した場合、図6に示す検索結果(▲1▼〜▲3▼)がそれぞれ得られる。
【0055】
次に、検索項目取得処理(ステップ103)として、各問い合わせ文からすべての検索項目を洗い出す。例では、3つの問い合わせ文から以下に示す6項目が検索項目として洗い出される。
[診断.患者氏名,虫垂炎治療.患者名,虫垂炎治療.年齢,虫垂炎患者.氏名,虫垂炎患者.性別,虫垂炎患者.年齢]
次に、検索項目同一視判定処理(ステップ104)として、同義語辞書180を参照し、同一視が可能な検索項目の組合せを洗い出す。図5に示す同義語辞書180を参照した場合、最小で3項目にまで纏めることができる。
【0056】
[患者氏名,患者名,氏名は「氏名」,年齢は「年齢」、性別は「性別」]
同一視する検索項目同士の組合せにより、検索結果として出力する表のデータ項目は異なる。そこで、すべての組合せを候補として出力し、利用者の要求に最適な組合せを選択できるようにする。図7に、同一視する検索項目同士のすべての組合せを示す。同図において、同じ番号の項目同士が同一視されることを意味する。このようにして取得した図7に示す検索項目同士の全ての組合せを利用者に提示して、利用者に選択させる。
【0057】
次に、出力用表作成処理(ステップ105)として、利用者により選択された同一視する検索項目の組合せに従ってデータ項目を定義し、検索結果として出力する表の枠組みを作成する。これは、同一視する検索項目の組合せに従った表(仮想的なものを含む)を作成する手段であればよい。ここでは、実際にデータベースに表を作成する例を説明する。図8は、本発明の一実施例の検索結果出力用の表の作成を説明するための図であり、検索項目を3項目にまとめた場合(同一視の組合せとして図7の▲6▼が選択された場合)の、表作成命令文の例を示す。
【0058】
なお、出力用の表における各データ項目のデータ型については、検索対象の表190におけるデータ型をそのまま適用する。同一視を実施したデータ項目については、同一視前の各検索項目のデータ型をすべて吸収可能なデータ型を適用する。例えば、20文字の文字型の検索項目と15文字の文字型の検索項目を同一視した場合、出力用の表におけるデータ項目は20文字の文字型とする。
【0059】
次に、問い合わせ文修正処理(ステップ106)として、検索結果を出力用の表に挿入するように、入力の各問い合わせ文において挿入命令を付加し、検索項目の順序を修正する。修正した各問い合わせ文を図9に示す。また、仮想的な表であるview表の形式で結果を得るための問い合わせ文を図10に示す。
【0060】
次に、問い合わせ実施処理(ステップ107)として、図9に示す命令が挿入された問い合わせ文を用いて、検索対象の表190に対して各問い合わせを実施する。この結果、出力用の表は、図17のようになる。なお、検索効率向上のため、問い合わせ実施の段階で、検索項目の数、順序、各項目のデータ型が同一である問い合わせ文同士は、UNION演算子を用いて一つの問い合わせ文とし、検索を実施する。
【0061】
また、全検索の挿入後、完全に重複する行は削除することも可能である。
【0062】
最後に、検索結果出力処理(ステップ108)として、出力用の表(図17)を、検索結果として利用者に出力する。
【0063】
上記の処理により、本発明では以下のことが可能となる。
【0064】
従来は、構造の異なる複数の問い合わせ文から一つの表を結果として得る検索は実現できないが、本発明では、まず、検索結果の出力用の表を作成し、そこに複数の問い合わせ結果を順次挿入することにより、検索項目の項目数や、各項目のデータ型、検索条件の異なる複数の問い合わせ文による検索を実現することにより、検索結果は常に一つの表として出力されるため、利用者の検索結果成立にかかる負担を軽減することができる。
【0065】
また、従来は、検索対象の表の変更については、項目名を追加した上に、既登録の項目との対応を定義する必要があるが、本発明では、検索対象となる表を変更した場合、データ項目名管理に関する設定は、未対応のデータ項目名と同義の追加登録だけで済むため、検索対象の表の変更に対する柔軟な対応ができる。
【0066】
さらに、従来は、項目対応表を予め用意し、定義された対応に従った静的な統合をのみを実施しており、利用者要求が変更されると、それに従って項目対応表も変更する必要があるが、本発明では、複数の問い合わせ文からすべての検索項目を洗い出し、同義語辞書の参照により同一視が可能な各項目の組合せをすべて出力して、選択可能にすることにより、いつでも利用者の要求する検索結果の統合を実現することが可能となる。例えば、上記の実施例において、情報源「虫垂炎治療」の年齢は、治療時の年齢を指し、「虫垂炎患者」の年齢は、現在の年齢を指している場合を想定する。この場合、これらのデータ項目は同一視するべきではない。本発明では、項目同一視の組合せの選択において、これらを同一視しない組合せを選択することにより、図11に示すような検索結果を得ることができる。従来の項目対応表を利用した検索方法では、このような変更を行うためには、対応表を修正しなければならない。
【0067】
また、上記の実施例では、図4に示すフローチャートに基づいて説明したが、当該フローチャートをプログラムとして構築し、統合検索装置として利用されるコンピュータに接続されるディスク装置や、フロッピーディスク、CD−ROM等の可搬記憶媒体に格納しておき、本発明を実施する際にインストールすることにより、容易に本発明を実現できる。
【0068】
なお、本発明は、上記の実施例に限定されることなく、特許請求の範囲内において、種々変更・応用が可能である。
【0069】
【発明の効果】
上述のように、本発明によれば、自動生成されたような複数の構造の異なる問い合わせ文による検索により、表の構造などを知らない利用者の要求を満たすことが可能となる。
【0070】
また、情報源や検索要求として入力可能な検索項目名、検索の利用場面等の変更に対して検索機能の柔軟な対応ができる。
【図面の簡単な説明】
【図1】本発明の原理を説明するための図である。
【図2】本発明の原理構成図である。
【図3】本発明の概要を説明する機能ブロック図である。
【図4】本発明の動作を説明するためのフローチャートである。
【図5】本発明の一実施例の同義語辞書の例である。
【図6】本発明の一実施例の各問い合わせの実施結果である。
【図7】本発明の一実施例のデータ項目同一視の組合せの例である。
【図8】本発明の一実施例の検索結果出力用の表の作成を説明するための図である。
【図9】本発明の一実施例の検索実施及び結果の出力表への挿入の例である。
【図10】本発明の一実施例の検索結果をview表として得るための問い合わせ文の例である。
【図11】本発明の一実施例のデータ項目同一視の組合せを変更した検索結果である。
【図12】UNIONによる問い合わせ文結合と統合検索を説明するための図である。
【図13】項目対応表を用いた項目同一視による検索を説明するための図である。
【図14】レコード番号に従ったデータ統合による検索を説明するための図である。
【図15】検索対象情報源の例である。
【図16】構造の異なる問い合わせ文の例である。
【図17】目標検索結果である。
【図18】特定の表に対する条件指定ができない問題を説明するための図である。
【符号の説明】
10 利用者
100 統合検索装置
110 問い合わせ文入力手段、問い合わせ文入力部
120 検索項目取得手段、検索項目取得部
130 検索項目同一視判定手段、検索項目同一視判定部
140 出力用表作成手段、出力用表作成部
150 問い合わせ文修正手段、問い合わせ文修正部
160 問い合わせ実施手段、問い合わせ実施部
170 検索結果出力手段、検索結果出力部
180 同義語辞書(データ項目名意味管理辞書)
190 検索対象の表
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an integrated search method and apparatus, and a storage medium storing an integrated search program. In particular, the present invention relates to a plurality of logically independent tables of a database using a plurality of query statements having different structures. The present invention relates to an integrated search method and apparatus for acquiring two search results and a storage medium storing an integrated search program.
[0002]
[Prior art]
The conventional database integrated search method employs a method 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 a plurality of tables by these methods to create one large table and performing a search on it, an integrated search is realized.
[0003]
UNION in the database query language SQL is an operator that integrates search results obtained from a plurality of queries. Normally, when performing a search on a plurality of tables, it is necessary to make an inquiry to each table and use the obtained results to organize the results. However, as shown in FIG. By using the UNION from the list B], the user can obtain a unified search result.
[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 their columns, and a method of integrating search item data related to the same record included in each table.
[0005]
As such an integrated search technology, there is Japanese Patent Application Laid-Open No. 5-89320 "Information search device". FIG. 13 shows a search based on item identification using an 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. In other words, queries with the same structure for each information source
[SELECT name, age]
And integrate the results.
[0006]
Japanese Unexamined Patent Application Publication No. 11-175552 "Computer-readable recording medium recording a database search device and a database search program", as shown in FIG. ), And the data of the same record number (record number: 1)
[SELECT name, age, height, weight]
To integrate. In the condition search, a condition search [WHERE age <30, weight <70] is performed on the information after integration. This results in results not available from separate tables
[Record number: 1, Name: Aiyou, Age: 20, Height: 170, Weight: 60]
Search for.
[0007]
[Problems to be solved by the invention]
However, the above conventional method has the following problems.
[0008]
For example, suppose that the inquiry shown in FIG. 16 is performed on a plurality of tables shown in FIG. 15 to derive the search results shown in FIG. In each table shown in FIG. 15 (diagnosis, appendicitis treatment, appendicitis patient), information on the patient is registered. The inquiry sentence ((1) to (3)) shown in FIG. 16 is created in response to a request to “search for information on appendicitis patients”.
[0009]
Normally, when a plurality of search results are integrated using a UNION operator, the number of search items specified in each query statement, the order, and the data type of each item need to match. However, since the number of items in each inquiry sentence shown in FIG. 16 does not match, integration by UNION cannot be performed.
[0010]
Further, in the above-mentioned JP-A-5-83320 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, the search condition (“WHERE result = appendicitis” of (1)) for the specific table to which the inquiry shown in FIG. 16 is specified becomes invalid. As shown in FIG. 18, when only the integration of the data items is performed, data that does not satisfy the inquiry content 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 query will be omitted from the search results. In any case, the search results shown in FIG. 17 cannot be obtained. That is, when only the merging of the data items of (1) is performed on the item correspondence table shown in FIG. 18 ([SELECT name, age, gender]), [diagnosis. Patient name, appendicitis treatment. Patient name, appendicitis patient. [Name] is changed to [Name] and [Appendicitis treatment. Age, appendicitis patient. "Age" to "age" and "Appendicitis patient. Gender] is integrated into “gender”, respectively, and becomes a search target. As can be seen from the search result of (1), patients (normal) other than "appendicitis" are also searched from the item of "diagnosis" in the item correspondence table.
[0011]
Next, when the search conditions ([SELECT name, age, gender], [WHERE result = appendicitis]) are applied to all tables, the information of the table "Appendicitis treatment" and "Appendicitis patients" is not retrieved. appear.
[0012]
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 when the table is the same, it is necessary to modify the correspondence definition each time the usage scene is changed. It is impossible to define every correspondence in advance. Also, as the definition increases, the possibility that the search result includes unnecessary information increases.
[0013]
In a relational database, there is a concept called a view, and 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 the 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 integrated search results, a query statement for each table is required. Must be adjusted. In order 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 directed to a plurality of tables that are logically independently constructed. The number and order of search items, the data type of each item, and a plurality of different search conditions are different. An object of the present invention is to provide an integrated search method and apparatus capable of searching by a query sentence and a storage medium storing an integrated search program.
[0015]
A further object of the present invention is to store 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 search use scene. It is to provide a storage medium.
[0016]
[Means for Solving the Problems]
FIG. 1 is a diagram for explaining the principle of the present invention.
[0017]
The present invention (claim 1) provides a plurality of logically independently constructed databases.Search targetIn an integrated search method for searching a table using a plurality of query sentences having different structures and obtaining one search result,
In the query sentence input means,From the userInput,Accepts multiple inquiries (step 1),
In the search item obtaining means,Extract all search items from the query (step 2)
In the item identification determination means,A synonym dictionary that defines synonyms for data item names,Refer to based on the extracted search items, extract items that have the same data item name as synonyms, identify them as identical, and present them to the user.(Step 3),
In the output table creation means,Identification identified by the userResultAccording toCreate an output table that defines the search items extracted from the query statement as data items and store them in the database.(Step 4),
Data items of the output table created by the output table creation means in the query sentence correction meansInquiries according toCorrect the order of the search items and add an insert instruction to insert the search results into the output table.(Step 5),
In the inquiry execution means,Using the modified query,Search the table to be searched(Step 6),
In the search result output means,The searched result is output to the user (step 7).
[0018]
The present invention (claim 2) creates 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.
[0019]
The present invention (claim 3)In the inquiry execution means,When searching the table to be searched, the search result is derived in one table format.
[0020]
FIG. 2 is a diagram illustrating the principle of the present invention.
[0021]
The present invention (Claim 4) provides a plurality of logically independently constructed databases.Search targetAn integrated search device for searching a table using a plurality of query sentences having different structures and obtaining one search result,
Defined synonyms for data item namesA synonym dictionary 180,
A query sentence input unit 110 for receiving a plurality of query sentences from a user;
Search item obtaining means 120 for extracting all search items from the query sentence;
Synonym dictionary 180, Refer to based on the extracted search items, extract the results of identification as items having the same data item name as synonyms, and present them to the userItem identification determination means 130,
Identification identified by the userResultAccording toOutput table that defines search items extracted from query statements as data itemsCreateAnd store it in the databaseOutput table creation means 140,
Data items in the created output tableInquiries according toCorrect the order of the search items and add an insert instruction to insert the search results into the output tableQuery sentence correcting means 150;
Using the modified query,Search the table to be searchedInquiry execution means 160;
A search result output unit 170 for outputting a search result to a user;,Having.
[0022]
According to the present invention (claim 5), the synonym dictionary 180 manages only the registered vocabulary without managing the correspondence in the table to be searched.To be.
According to the present invention (claim 6), in the inquiry execution means 160,When searching the table to be searched,Deriving search results in one table format.
[0023]
According to the present invention (claim 7), in the query sentence correcting unit 150, a query sentence having the same number of search items, the order, and the data type of each item is made into one query sentence using the operator UNION. including.
[0024]
The present invention (claim 8) relates to a plurality of logically independently constructed databases.Search targetA storage medium storing an integrated search program for searching a table using a plurality of query sentences having different structures and obtaining one search result,
On the computer,
Query sentence input that accepts multiple query sentences from the userStepsWhen,
Search item acquisition to extract all search items from query textStepsWhen,
A synonym dictionary that defines synonyms for data item names,Refer to based on the extracted search items, extract items with the same data item names as synonyms, identify them as identical, and present them to the user.Search item identificationStepsWhen,
Identification identified by the userResultAccording toCreate an output table that defines the search items extracted from the query statement as data items and store them in the databaseCreate output tableStepsWhen,
Data items in the created output tableInquiries according toCorrect the order of the search items and add an insert instruction to insert the search results into the output tableInquiry sentence correctionSteps and
Using the modified query,Search the table to be searchedInquiry executionSteps and
Search result output to output search results to the userAnd a storage medium storing a program for executing the steps.
[0025]
The present invention (claim 9) creates 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.StepsMoreRun.
[0026]
The present invention (claim 10) implements an inquiryStepsAtWhen searching the table to be searched,Deriving search results in one table format.
[0027]
According to the present invention (claim 11), an inquiry sentence is corrected.StepsIn the above, for a query sentence in which the number, order, and data type of each item are the same, one query sentence is created using the operator UNION.StepsIs executed.
[0028]
As described above, the present invention prepares a synonym dictionary and, when a plurality of query sentences having different structures are received, converts each result into one by converting the query sentence so as to obtain one search result. Integration into a table enables easy retrieval of integrated search results.
[0029]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 3 is a functional block diagram illustrating an outline of the present invention.
[0030]
The integrated search device 100 shown in the figure 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, a query execution unit 160, a search result. It comprises an output unit 170, a data item name meaning management dictionary 180, and a table 190.
[0031]
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]
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 the respective items, and search conditions.
[0033]
The search item obtaining unit 120 extracts all search items from each inquiry sentence.
[0034]
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, all combinations of items that can be identified with each other are presented to the user and output as It is also possible to select a required combination. As a result, a combination of identifications of identified search items is derived, and a data item name of an output table is determined by a user selecting an identification combination.
[0035]
The output table creating unit 140 generates a command sentence for creating an output table based on the result of the identification by the search item identification determining unit 130, and generates an output sentence having all data items extracted from the query sentence. Create a table. The form of the table may be a view table (virtual table, data entity) in the database in addition to the base table.IsWithout itMakingDefinition only).
[0036]
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 having the same number, order, and data type of each search item can be made into one query sentence using the operator UNION.
[0037]
The inquiry execution unit 160 executes an inquiry to be corrected for each search target table, and sequentially inserts search results into a table for output. After inserting all the results, completely duplicated rows can be deleted.
[0038]
The search result output unit 170 outputs the output table in which the results of all the corrected inquiries are inserted to the user as search results based on a plurality of query sentences.
[0039]
The table 190 is a search target table that is constructed logically independently.
[0040]
Next, the operation of the present invention will be described.
[0041]
FIG. 4 is a flowchart for explaining the operation of the present invention.
[0042]
Step 101) The 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 the correspondence between items. A plurality of data items determined as synonyms by this dictionary are candidates for identification. In addition, the user 10 can designate an item name registered in the dictionary or a synonym thereof as a search item. If a table to be searched is added and the table contains unregistered data items, or if 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 synonym 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]
Step 102) The query input unit 110 receives a plurality of query from the user.
[0044]
Step 103) The search item acquisition unit 120 extracts all search items from each inquiry sentence.
[0045]
Step 104) The search item identification determination unit 130 refers to the synonym dictionary, confirms synonyms for all search items, and regards search items whose item names are synonyms to be the same.
[0046]
Step 105) The output table creation unit 140 creates a table having all search items as data items in consideration of the result of identification.
[0047]
Step 106) The query sentence correcting section 150 corrects the order of the search items on the premise of output (or corrects the structure of each search command sentence to be the same using NULL), and returns the search result. To be inserted into the output table. Step 107) The query execution unit 160 executes each of the corrected search statements for each information source.
[0048]
Step 108) The search result output unit 170 outputs the output table into which the results of all the corrected inquiries have been inserted as search results based on a plurality of query sentences.
[0049]
As described above, a search using a plurality of query sentences having different numbers of search items, data types of the respective items, and search conditions can be realized.
[0050]
【Example】
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0051]
In the following embodiment, based on the flowchart shown in FIG.ToAn example in which a search is performed on the three information sources shown (diagnosis, appendicitis treatment, and appendicitis patients) will be described.
[0052]
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]
In the following, a description will be given of the inquiry sentence input processing after step 102.
[0054]
As a query sentence input process (step 102), a plurality of query sentences are received from the user. In the example, it is assumed that three inquiry sentences shown in FIG. 16 are input for the purpose of searching for “appendicitis patient” from the three information sources shown in FIG. When each inquiry is performed individually, search results (1) to (3) shown in FIG. 6 are obtained.
[0055]
Next, as search item acquisition processing (step 103), all search items are identified from each inquiry sentence. In the example, the following six items are identified as search items from three query sentences.
[Diagnosis. Patient name, appendicitis treatment. Patient name, appendicitis treatment. Age, appendicitis patient. Name, patient with appendicitis. 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 referring to the synonym dictionary 180 shown in FIG. 5, it is possible to collect up to three items at a minimum.
[0056]
[Patient name, patient name, name is “name”, age is “age”, and gender is “gender”]
The data items of the table output as the search result differ depending on the combination of the search items to be identified. Therefore, all combinations are output as candidates, so that an optimal combination can be selected according to a user's request. FIG. 7 shows all combinations of search items to be identified. In the figure, it means that items with the same number are identified with each other. All the combinations of the search items shown in FIG. 7 acquired in this way are presented to the user, and the user is made to select.
[0057]
Next, as an output table creation process (step 105), data items are defined in accordance with a combination of search items identified by the user and identified, and a framework of a table to be output as a search result is created. This may be any means that creates a table (including virtual ones) 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 the search items are grouped into three items ((6) in FIG. Here is an example of a table creation command statement (when selected).
[0058]
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 the data types of each search item before identification is applied. For example, when a search item of a character type of 20 characters and a search item of a character type of 15 characters are identified, the data item in the output table is a character type of 20 characters.
[0059]
Next, as an inquiry sentence correction process (step 106), an insertion instruction is added to each input inquiry sentence so as to insert a search result into an output table, and the order of search items is corrected. FIG. 9 shows each of the modified inquiry sentences. FIG. 10 shows a query sentence for obtaining a result in the form of a virtual table, a view table.
[0060]
Next, as a query execution process (step 107), each query is performed on the search target table 190 using a 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 each search item are combined into one query sentence using the UNION operator, and the search is performed. I do.
[0061]
Also, after inserting the full search, completely duplicated rows can be deleted.
[0062]
Finally, as a search result output process (step 108), an 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 that obtains a single table as a result from a plurality of query sentences having different structures cannot be realized, but in the present invention, first, a table for outputting a search result is created, and a plurality of query results are sequentially inserted therein. By performing a search using multiple query statements with different numbers of search items, data types of each item, and search conditions, the search results are always output as a single table. It is possible to reduce the burden on establishing the result.
[0065]
Conventionally, when changing the table to be searched, it is necessary to add the item name and define the correspondence with the already registered items. However, in the present invention, when the table to be searched is changed, In addition, the setting relating to the data item name management only requires additional registration having the same meaning as an unsupported data item name, so that it is possible to flexibly cope with a change in the table to be searched.
[0066]
Conventionally, an item correspondence table is prepared in advance, and only static integration according to the defined correspondence is performed. When a user request is changed, the item correspondence table needs to be changed accordingly. However, 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 a synonym dictionary are output and can be selected, so that they can be used at any time. It is possible to realize the integration of 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, a search result as shown in FIG. 11 can be obtained by selecting a combination that does not identify them when selecting combinations of item identification. In the conventional search method using the item correspondence table, in order to make such a change, the correspondence table must be corrected.
[0067]
In the above embodiment, the description has been given based on the flowchart shown in FIG. 4. However, the flowchart is constructed as a program, and a disk device connected to a computer used as an integrated search device, a floppy disk, a CD-ROM The present invention can be easily realized by storing it in a portable storage medium such as the above and installing it when implementing the present invention.
[0068]
It should be noted that the present invention is not limited to the embodiments described above, and various modifications and applications are possible within the scope of the claims.
[0069]
【The invention's effect】
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.
[0070]
In addition, 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]
FIG. 1 is a diagram for explaining the principle of the present invention.
FIG. 2 is a principle configuration diagram of the present invention.
FIG. 3 is a functional block diagram illustrating an outline of the present invention.
FIG. 4 is a flowchart for explaining the operation of the present invention.
FIG. 5 is an example of a synonym dictionary according to an embodiment of the present invention.
FIG. 6 is a diagram showing a result of executing each inquiry according to the embodiment of the present invention.
FIG. 7 is an example of a combination of identifying data items according to an embodiment of the present invention.
FIG. 8 is a diagram for explaining creation of a table for outputting search results according to one embodiment of the present invention.
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.
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.
FIG. 11 shows a search result obtained by changing a combination of data items being identified in one embodiment of the present invention.
FIG. 12 is a diagram for explaining union query combination and unified search by UNION.
FIG. 13 is a diagram for explaining a search based on item identification using an item correspondence table.
FIG. 14 is a diagram illustrating a search by data integration according to a record number.
FIG. 15 is an example of a search target information source.
FIG. 16 is an example of a query sentence having a different structure.
FIG. 17 shows a target search result.
FIG. 18 is a diagram for explaining a problem that a condition cannot be specified for a specific table.
[Explanation of symbols]
10 Users
100 Integrated search device
110 Query sentence input means, Query sentence input unit
120 search item acquisition means, search item acquisition unit
130 search item identification determination means, search item identification determination unit
140 output table creation means, output table creation section
150 Inquiry sentence correcting means, Inquiry sentence correcting unit
160 inquiry execution means, inquiry execution section
170 Search result output means, search result output unit
180 Synonym dictionary (data item name meaning management dictionary)
190 Table to be searched

Claims (11)

データベースの論理的に独立に構築された複数の検索対象の表を、構造の異なる複数の問い合わせ文を用いて検索し、1つの検索結果を取得するための統合検索方法において、
問い合わせ文入力手段において、利用者から入力される、複数の問い合わせ文を受け付け、
検索項目取得手段において、前記問い合わせ文から全ての検索項目を抽出し、
項目同一視判定手段において、データ項目名の同義語を定義した同義語辞書を、抽出された前記検索項目に基づいて参照し、データ項目名同士が同義語である項目は同一ものとして同一視の結果を抽出し、前記利用者に提示し、
出力用表作成手段において、前記利用者によって選択された同一視の結果に従って、前記問い合わせ文から抽出した検索項目をデータ項目として定義した出力用の表を作成してデータベースに格納し、
問い合わせ文修正手段において、前記出力用表作成手段で作成された前記出力用の表の前記データ項目に合わせて、前記問い合わせ文の検索項目の順序を修正し、検索結果を該出力用の表に挿入するための挿入命令を付加し、
問い合わせ実施手段において、修正された問い合わせ文を用いて、前記検索対象の表の検索を行い、
検索結果出力手段において、検索された結果を前記利用者に出力することを特徴とする統合検索方法。
In an integrated search method for searching a plurality of search target tables logically independent of a database using a plurality of query statements having different structures and obtaining one search result,
In the query sentence input means, a plurality of query sentences input by the user are received,
In a search item obtaining means, extract all search items from the inquiry sentence,
In the item identification determining means, a synonym dictionary defining synonyms of the data item names is referred to based on the extracted search items, and items in which the data item names are synonyms are regarded as being the same and are regarded as being identical. Extract the result, present it to the user,
In the output table creation means, according to the result of the identification selected by the user, create a table for output defining the search items extracted from the query sentence as data items, and store it in the database,
In the query sentence correcting means, the order of the search items of the query sentence is corrected in accordance with the data items of the output table created by the output table creating means, and the search result is stored in the output table. Add an insert instruction to insert,
In the query execution means, using the corrected query sentence, search the table of the search target,
An integrated search method, wherein the search result output means outputs the searched result to the user.
前記検索対象の表における対応関係は管理せずに、登録後の語彙のみを管理する辞書として、前記同義語辞書を作成する請求項1記載の統合検索方法。The integrated search method according to claim 1, wherein the synonym dictionary is created as a dictionary that manages only the registered vocabulary without managing the correspondence in the table to be searched. 前記問い合わせ実施手段において、前記検索対象の表を検索する際に、
一つの表形式で検索結果を導出する請求項1記載の統合検索方法。
In the inquiry performing means, when searching the table to be searched,
2. The integrated search method according to claim 1, wherein the search results are derived in one table format.
データベースの論理的に独立に構築された複数の検索対象の表を、構造の異なる複数の問い合わせ文を用いて検索し、1つの検索結果を取得するための統合検索装置であって、
データ項目名の同義語を定義した同義語辞書と、
利用者から複数の問い合わせ文を受け付ける問い合わせ文入力手段と、
前記問い合わせ文から全ての検索項目を抽出する検索項目取得手段と、
前記同義語辞書を、抽出された前記検索項目に基づいて参照し、データ項目名同士が同義語である項目は同一ものとして同一視の結果を抽出し、前記利用者に提示する項目同一視判定手段と、
前記利用者によって選択された同一視の結果に従って、前記問い合わせ文から抽出した検索項目をデータ項目として定義した出力用の表を作成し、データベースに格納する出力用表作成手段と、
作成された前記出力用の表の前記データ項目に合わせて、前記問い合わせ文の検索項目の順序を修正し、検索結果を該出力用の表に挿入するための挿入命令を付加する問い合わせ文修正手段と、
修正された問い合わせ文を用いて、前記検索対象の表の検索を行う問い合わせ実施手段と、
検索された結果を前記利用者に出力する検索結果出力手段とを有することを特徴とする統合検索装置。
An integrated search device for searching a plurality of search target tables logically independent of a database using a plurality of query statements having different structures and acquiring one search result,
A synonym dictionary that defines synonyms for data item names ,
A query sentence input means for receiving a plurality of query sentences from a user,
Search item obtaining means for extracting all search items from the query sentence,
The synonym dictionary is referred to based on the extracted search item, and items whose data item names are synonyms are extracted as the same item, and a result of identification is extracted, and an item identification determination to be presented to the user is performed. Means,
According to the identification result selected by the user, an output table creating means for creating an output table defining search items extracted from the query sentence as data items , and storing the table in a database ,
Query sentence correcting means for correcting the order of the search items of the query sentence in accordance with the data items of the created output table, and adding an insert command for inserting a search result into the output table. When,
Inquiry executing means for performing a search of the table to be searched using the corrected query,
Integrated search apparatus characterized by comprising: a search result output means for outputting the results retrieved to the user, the.
前記同義語辞書は、
前記検索対象の表における対応関係は管理せずに、登録後の語彙のみを管理する辞書とする請求項4記載の統合検索装置。
The synonym dictionary,
The search correspondence relationship in table subject without administration integrated search apparatus to that claim 4, wherein the dictionary management only vocabulary after the registration.
前記問い合わせ実施手段は、
前記検索対象の表を検索する際に、一つの表形式で検索結果を導出する請求項4記載の統合検索装置。
The inquiry execution means,
The integrated search device according to claim 4, wherein when searching the table to be searched , the search result is derived in one table format.
前記問い合わせ文修正手段は、
検索項目の数、順序、各項目のデータ型が同一である問い合わせ文については、演算子UNIONを用いて一つの問い合わせ文にする手段を含む請求項4記載の統合検索装置。
The inquiry sentence correcting means,
5. The integrated retrieval apparatus according to claim 4, further comprising means for using the operator UNION to form a single query sentence for a query sentence having the same number, order, and data type of each search item.
データベースの論理的に独立に構築された複数の検索対象の表を、構造の異なる複数の問い合わせ文を用いて検索し、1つの検索結果を取得するための統合検索プログラムを格納した記憶媒体であって、
コンピュータに、
利用者から複数の問い合わせ文を受け付ける問い合わせ文入力ステップと、
前記問い合わせ文から全ての検索項目を抽出する検索項目取得ステップと、
データ項目名の同義語を定義した同義語辞書を、抽出された前記検索項目に基づいて参照し、データ項目名同士が同義語である項目は同一ものとして同一視の結果を抽出し、前記利用者に提示する検索項目同一視判定ステップと、
前記利用者によって選択された同一視の結果に従って、前記問い合わせ文から抽出した検索項目をデータ項目として定義した出力用の表を作成し、データベースに格納する出力用表作成ステップと、
作成された前記出力用の表の前記データ項目に合わせて、前記問い合わせ文の検索項目の順序を修正し、検索結果を該出力用の表に挿入するための挿入命令を付加する問い合わせ文修正ステップと、
修正された問い合わせ文を用いて、前記検索対象の表の検索を行う問い合わせ実施ステップと、
検索された結果を前記利用者に出力する検索結果出力ステップと、を実行させるプログラムを格納したことを特徴とする統合検索プログラムを格納した記憶媒体。
A storage medium storing an integrated search program for searching a plurality of search target tables constructed independently of a database using a plurality of query statements having different structures and obtaining one search result. hand,
On the computer,
A query sentence input step for receiving a plurality of query sentences from a user;
A search item acquisition step of extracting all search items from the inquiry sentence,
A synonym dictionary that defines synonyms of data item names is referred to based on the extracted search items, and items in which data item names are synonyms are extracted as the same item, and a result of identification is extracted. A search item identification determination step to be presented to the user,
According to the result of the identification selected by the user, an output table creating step of creating an output table defining search items extracted from the query sentence as data items, and storing the table in a database ;
Inquiry sentence correcting step of correcting the order of the search items of the inquiry sentence according to the data items of the created output table and adding an insert instruction for inserting a search result into the output table. When,
A query execution step of performing a search of the table to be searched using the corrected query sentence ,
A storage medium storing an integrated search program, wherein a program for executing a search result output step of outputting a searched result to the user is stored .
前記検索対象の表におけるデータ項目間の対応関係は管理せずに、登録語の語彙のみを管理する辞書として、前記同義語辞書を作成するステップを更に実行させる請求項8記載の統合検索プログラムを格納した記憶媒体。9. The integrated search program according to claim 8, further comprising the step of creating the 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. The storage medium in which it was stored. 前記問い合わせ実施ステップは、
前記検索対象の表を検索する際に、一つの表形式で検索結果を導出する請求項8記載の統合検索プログラムを格納した記憶媒体。
The inquiry execution step includes:
9. The storage medium storing the integrated search program according to claim 8, wherein a search result is derived in one table format when searching the table to be searched .
前記問い合わせ文修正ステップは、
検索項目の数、順序、各項目のデータ型が同一である問い合わせ文については、演算子UNIONを用いて一つの問い合わせ文にするステップを実行させる請求項8記載の統合検索プログラムを格納した記憶媒体。
The query sentence correcting step includes:
9. A storage medium storing an integrated search program according to claim 8, wherein a step of using the operator UNION to make a single query sentence is performed for a query sentence having the same number, order, and data type of each search item. .
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 JP2002149648A (en) 2002-05-24
JP3558032B2 true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5159020B2 (en) * 2004-09-22 2013-03-06 株式会社アペックス Real estate information browsing system
JP4832952B2 (en) * 2006-05-10 2011-12-07 三菱電機株式会社 Database analysis system, database analysis method and program
JP6110139B2 (en) 2012-12-28 2017-04-05 富士通株式会社 File management program, file management apparatus, and file management method
JP7255082B2 (en) * 2018-04-17 2023-04-11 カシオ計算機株式会社 Computer program, information processing method and information processing apparatus

Also Published As

Publication number Publication date
JP2002149648A (en) 2002-05-24

Similar Documents

Publication Publication Date Title
US7373341B2 (en) Computer readable medium, method and apparatus for preserving filtering conditions to query multilingual data sources at various locales when regenerating a report
US8886617B2 (en) Query-based searching using a virtual table
US20020078041A1 (en) System and method of translating a universal query language to SQL
US6427145B1 (en) Database processing method, apparatus for carrying out the same and medium storing processing program
JP2010541079A5 (en)
CN112015722A (en) Database management method, data blood relationship analysis method and related device
JP4237813B2 (en) Structured document management system
CN110119404B (en) Intelligent access system and method based on natural language understanding
US11301441B2 (en) Information processing system and information processing method
JP3763982B2 (en) Database processing method, apparatus for implementing the same, and medium on which processing program is recorded
JP3558032B2 (en) Integrated search method and apparatus, and storage medium storing integrated search program
JP4177070B2 (en) Document search device
JP3786233B2 (en) Information search method and information search system
JP2000003366A (en) Document registration method, document retrieval method, execution device therefor and medium having recorded its processing program thereon
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
US20060136483A1 (en) System and method of decomposition of multiple items into the same table-column pair
USH2189H1 (en) SQL enhancements to support text queries on speech recognition results of audio data
JPH1021125A (en) System for managing location of distributed database system
KR100873808B1 (en) How to Integrate Data Using Metadata in Multiple Database Middleware Systems
JPH0877201A (en) System and method for document database retrieval
JP4384736B2 (en) Image search device and computer-readable recording medium storing program for causing computer to function as each means of the device
JP2006106907A (en) Structured document management system, method for constructing index, and program
JP3498926B2 (en) Document database management system
JP4368550B2 (en) Document search apparatus, document search method, and program causing computer to execute the method

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