JP3438805B2 - Database heterogeneity resolution search device - Google Patents

Database heterogeneity resolution search device

Info

Publication number
JP3438805B2
JP3438805B2 JP34589996A JP34589996A JP3438805B2 JP 3438805 B2 JP3438805 B2 JP 3438805B2 JP 34589996 A JP34589996 A JP 34589996A JP 34589996 A JP34589996 A JP 34589996A JP 3438805 B2 JP3438805 B2 JP 3438805B2
Authority
JP
Japan
Prior art keywords
domain
database
user
search
conversion function
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
JP34589996A
Other languages
Japanese (ja)
Other versions
JPH10187742A (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 JP34589996A priority Critical patent/JP3438805B2/en
Publication of JPH10187742A publication Critical patent/JPH10187742A/en
Application granted granted Critical
Publication of JP3438805B2 publication Critical patent/JP3438805B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、複数のデータベー
スが存在する環境において同じ意味を有するが、データ
ベースによってそれぞれ表現が異なるデータ項目をその
表現の違いを解消して検索するデータベース異種性解消
検索装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database heterogeneity resolving search device which has the same meaning in an environment in which a plurality of databases exist, but searches for data items having different expressions depending on the databases by eliminating the difference in the expressions. Regarding

【0002】[0002]

【従来の技術】企業は、顧客の管理や、売り上げの管理
などさまざまな業務のために、多くのデータベースシス
テムを導入し、利用している。当初は、顧客や売り上げ
の情報の記録・変更・利用などのような単純なデータ管
理の目的でデータベースを使用していたが、最近は、例
えば地域別の商品の売れ筋は何かといった情報を求める
などの経営戦略的な情報を得るためにデータベースを利
用することが求められている。
2. Description of the Related Art Companies have introduced and used many database systems for various operations such as customer management and sales management. Initially, the database was used for the purpose of simple data management such as recording, changing, and using information on customers and sales, but recently, information such as what are the selling points of products by region is requested. It is required to use the database to obtain information on management strategies such as.

【0003】そのような目的のためには、1つのデータ
ベースの情報だけからでは不十分な場合があり、例えば
顧客情報と売り上げ情報を組み合わせるといったよう
に、複数のデータベースの情報を統合して利用する必要
がある。しかし、それぞれのデータベースは独立に運用
されているために、同じ内容の情報を異なった表現形式
で表していることがある。複数のデータベースの情報を
統合する場合、その違いをなくすことが必要である。
For such purposes, there are cases where the information in one database alone is insufficient, and the information in a plurality of databases is integrated and used, for example, customer information and sales information are combined. There is a need. However, since each database is operated independently, the same content information may be expressed in different expression formats. When integrating information from multiple databases, it is necessary to eliminate the difference.

【0004】これまで、複数のデータベースを統合して
利用する仕組みとして、マルチデータベースが研究・開
発されている。マルチデータベースシステムとは、グロ
ーバルスキーマと呼ばれるユーザが利用するデータベー
スの仮想的な構造を予め定義することによって、ユーザ
は個別の情報の表現形式や構造を意識しないで、分散す
るデータベースを検索できるというシステムである。
Until now, multi-databases have been researched and developed as a mechanism for integrating and using a plurality of databases. The multi-database system is a system that allows users to search distributed databases without being aware of the expression format and structure of individual information by predefining a virtual structure of a database used by users called a global schema. Is.

【0005】しかし、この方式では、ユーザはこのグロ
ーバルスキーマの形式でしか、データを見ることができ
ず、1つの見方を強制されることになる。
However, in this method, the user can see the data only in the format of this global schema, and one way is forced.

【0006】[0006]

【発明が解決しようとする課題】これまでの方式では、
グローバルスキーマを定義するために、すべてのデータ
ベースにおけるデータの表現形式を知っている必要があ
った。しかし、それには、すべてのデータベースの内容
に通じる必要があり、実際は非常に難しい。よって、自
分の持つデータベース以外の表現形式をできるだけ知ら
なくても、データの表現の違いを解消できる仕組みが必
要である。
[Problems to be Solved by the Invention]
In order to define a global schema, we needed to know the representation of data in all databases. However, it needs to be familiar with the contents of all databases, which is actually very difficult. Therefore, it is necessary to have a mechanism that can eliminate the difference in the representation of data without knowing as much as possible the representation format other than that of the own database.

【0007】また、ユーザは、自分の持っているデータ
ベースと同じ表現形式で、他のデータベースの情報を取
りたいという要求がある。これは、自分の使っているア
プリケーションを用いて他のデータベースのデータを使
いたいが、そのアプリケーションが自分のデータベース
の表現形式に合わせて作られるからである。この要求を
既存のマルチデータベースで実現しようとすると、ユー
ザのデータベースと同じ形式を持ったグローバルスキー
マをユーザ毎に定義する必要があり、非効率であった。
よって、グローバルスキーマを定義することなく、断片
的にデータの違いを定義することによって、データの表
現の違いを解消することが必要である。そして、ユーザ
が利用したい表現形式を容易に変更できる仕組みが必要
である。
[0007] Further, the user is required to obtain information of another database in the same expression format as the database he has. This is because I want to use the data in another database with the application I am using, but that application is made to match the format of my database. If this request is to be realized by an existing multi-database, it is inefficient because it is necessary to define a global schema having the same format as the user's database for each user.
Therefore, it is necessary to eliminate the difference in the representation of the data by defining the difference in the data piece by piece without defining the global schema. And there is a need for a mechanism that allows the user to easily change the expression format he wants to use.

【0008】本発明は、上記に鑑みてなされたもので、
その目的とするところは、各データベースによるデータ
項目の表現が同じ意味にも関わらず異なっていても、各
ユーザ自身の表現形式で各データベースを自由に検索す
ることができるデータベース異種性解消検索装置を提供
することにある。
The present invention has been made in view of the above,
The purpose is to provide a database heterogeneity resolving search device capable of freely searching each database in the expression format of each user, even if the expression of the data item in each database is different despite having the same meaning. To provide.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の本発明は、複数のデータベースが存
在する環境において同じ意味を有するが、データベース
によってそれぞれ表現が異なるデータ項目をその表現の
違いを解消して検索するデータベース異種性解消検索装
置であって、各データベースのデータ項目のデータの表
現形式であるドメインをローカルドメインとして各デー
タベース毎に管理するローカルドメイン管理テーブル
と、同じ意味を有する各ドメインをドメイングループと
して管理するとともに、各ドメイングループ内において
代表して標準的に使用されるグローバルドメインを選択
して管理するドメイングループ管理テーブルと、前記グ
ローバルドメインと前記ローカルドメインとの間の双方
向又は片方向の変換を行う変換関数を管理する変換関数
管理テーブルと、各ドメイングループごとにユーザが見
えるドメインをユーザドメインとして管理するユーザド
メイン管理テーブルと、ユーザから入力された問い合わ
せ文の検索データが記憶されているデータベースおよび
該検索データに対応するローカルドメインを前記ローカ
ルドメイン管理テーブルから探索するとともに、該ロー
カルドメインが含まれるドメイングループと前記ユーザ
からユーザドメインを前記ユーザドメイン管理テーブル
から探索するドメイン探索手段と、データベースへの問
い合わせ文の中に変換関数を記述できる場合であって
該ドメイン探索手段で探索したローカルドメインとユー
ザドメインとが異なる場合、該ローカルドメインをユー
ザドメインに変換する変換関数を前記変換関数管理テー
ブルから探索する変換関数探索手段と、該変換関数探索
手段で探索された変換関数を用いて、前記問い合わせ文
を各データベースに適合した問い合わせ文に翻訳し、こ
の翻訳された問い合わせ文により各データベースを検索
する検索手段とを有することを要旨とする。
In order to achieve the above object, the present invention according to claim 1 represents a data item having the same meaning in an environment in which a plurality of databases exist, but different expressions depending on the databases. This is a database heterogeneity resolving search device that resolves the difference between the above and the same meaning as the local domain management table that manages each database as the local domain, which is the representation format of the data item of each database. A domain group management table that manages each of the domains as a domain group, and selects and manages a global domain that is typically used as a representative in each domain group .
Both between the local domain and the local domain
A conversion function management table that manages conversion functions that perform unidirectional or one-way conversion, and a user
User domain that manages the user domain as a user domain
Main management table, along with searching for a local domain from the local domain management table corresponding to the database and the search data search data query sentence input by the user is stored, and domain group that contains the local domain The user
Domain search means for searching the user domain from the user domain management table , and a query to the database.
When the conversion function can be described in the match statement ,
The local domain and the user searched by the domain search means
If you and The domain is different, you the local domain
Using the conversion function search means for searching the conversion function management table for the conversion function for converting to the domain and the conversion function searched by the conversion function search means, translating the inquiry sentence into an inquiry sentence suitable for each database. However, the gist is to have a search means for searching each database by the translated inquiry text.

【0010】請求項1記載の本発明にあっては、ユーザ
から入力された問い合わせ文の検索データが記憶されて
いるデータベースおよび該検索データに対応するローカ
ルドメインをローカルドメイン管理テーブルから探索す
るとともに、該ローカルドメインが含まれるドメイング
ループとユーザからユーザドメインをユーザドメイン管
理テーブルから探索し、データベースへの問い合わせ文
の中に変換関数を記述できる場合であって、この探索し
たローカルドメインとユーザドメインとが異なる場合、
ローカルドメインをユーザドメインに変換する変換関数
を変換関数管理テーブルから探索し、この変換関数を用
いて、ユーザからの問い合わせ文を各データベースに適
合した問い合わせ文に翻訳し、この翻訳された問い合わ
せ文により各データベースを検索するため、各データベ
ースにおける検索データの表現形式がユーザ自身の表現
形式と異なっても自由に検索することができる。また、
請求項2記載の本発明は、複数のデータベースが存在す
る環境において同じ意味を有するが、データベースによ
ってそれぞれ表現が異なるデータ項目をその表現の違い
を解消して検索するデータベース異種性解消検索装置で
あって、各データベースのデータ項目のデータの表現形
式であるドメインをローカルドメインとして各データベ
ース毎に管理するローカルドメイン管理テーブルと、同
じ意味を有する各ドメインをドメイングループとして管
理するとともに、各ドメイングループ内において代表し
て標準的に使用されるグローバルドメインを選択して管
理するドメイングループ管理テーブルと、前記グローバ
ルドメインと前記ローカルドメインとの間の双方向又は
片方向の変換を行う変換関数を管理する変換関数管理テ
ーブルと、各ドメイングループごとにユーザが見えるド
メインをユーザドメインとして管理するユーザドメイン
管理テーブルと、ユーザから入力された問い合わせ文の
検索データが記憶されているデータベースおよび該検索
データに対応するローカルドメインを前記ローカルドメ
イン管理テーブルから探索するとともに、該ローカルド
メインが含まれるドメイングループと前記ユーザからユ
ーザドメインを前記ユーザドメイン管理テーブルから探
索するドメイン探索手段と、データベースへの問い合わ
せ文の中に変換関数を記述できない場合であって、該ド
メイン探索手段で探索したローカルドメインとユーザド
メインとが異なる 場合、ユーザドメインをローカルドメ
インに変換する第1の変換関数、及びローカルドメイン
をユーザドメインに変換する第2の変換関数を前記変換
関数管理テーブルから探索する変換関数探索手段と、該
変換関数探索手段で探索された前記第1の変換関数を用
いて、前記問い合わせ文に含まれる値をユーザドメイン
からローカルドメインに変換して、各データベースを検
索し、検索された結果の値を前記第2の変換関数を用い
てローカルドメインからユーザドメインに変換する検索
手段とを有することを要旨とする。 請求項2記載の本発
明にあっては、ユーザから入力された問い合わせ文の検
索データが記憶されているデータベースおよび該検索デ
ータに対応するローカルドメインをローカルドメイン管
理テーブルから探索するとともに、該ローカルドメイン
が含まれるドメイングループとユーザからユーザドメイ
ンをユーザドメイン管理テーブルから探索し、データベ
ースへの問い合わせ文の中に変換関数を記述できない場
合であって、この探索したローカルドメインとユーザド
メインとが異なる場合、ユーザドメインをローカルドメ
インに変換する第1の変換関数、及びローカルドメイン
をユーザドメインに変換する第2の変換関数を変換関数
管理テーブルから探索し、この第1の変換関数を用い
て、ユーザからの問い合わせ文に含まれる値をユーザド
メインからローカルドメインに変換して、各データベー
スを検索し、検索された結果の値を第2の変換関数を用
いてローカルドメインからユーザドメインに変換するた
め、各データベースにおける検索データの表現形式がユ
ーザ自身の表現形式と異なっても自由に検索することが
できる。
According to the first aspect of the present invention, the database storing the search data of the inquiry text input by the user and the local domain corresponding to the search data are searched from the local domain management table, and User domain management from the domain group and user that includes the local domain
To search from the management table, the query sentence to the database
If a conversion function can be written in the and the searched local domain and user domain are different,
Search the conversion function management table for the conversion function that converts the local domain to the user domain , and use this conversion function to translate the inquiry text from the user into the inquiry text that matches each database. Since each database is searched, even if the expression format of the search data in each database is different from the expression format of the user himself / herself, it is possible to search freely. Also,
The present invention according to claim 2 has a plurality of databases.
Have the same meaning in different environments, but
Data items with different expressions
Database for resolving and searching for
Yes, the data representation of the data items in each database
The domain that is the expression is used as the local domain for each database.
The same as the local domain management table that is managed for each
Managing each domain that has the same meaning as a domain group
And within each domain group
Select the standard global domain
Management domain group management table and the global
Between the local domain and the local domain or
A conversion function management table that manages conversion functions that perform one-way conversion.
Users and the domain users can see for each domain group.
User domain that manages main as user domain
Management table and the inquiry text entered by the user
Database storing search data and the search
Set the local domain corresponding to the data to the local domain.
Search in the local management table and
The domain group that contains the main and the user
User domain from the user domain management table
Domain search method to search and inquiry to database
If the conversion function cannot be described in the
Local domain and user domain searched by main search means
If different from the main , change the user domain to local domain
First conversion function to convert to in and local domain
A second conversion function for converting a user domain to the user domain
Conversion function search means for searching from the function management table;
Use the first conversion function searched by the conversion function searching means.
And the value included in the inquiry text is the user domain.
To the local domain and check each database.
The second conversion function is used to search and retrieve the retrieved result value.
To convert from local domain to user domain
The gist is to have means. Main claim according to claim 2
As a matter of fact, if the inquiry text entered by the user is
A database storing search data and the search data
The local domain corresponding to the
Search from the management table and the local domain
Domain groups and users that contain
Search the user domain management table for the database
If the conversion function cannot be described in the query
If this is the case, this searched local domain and user
If different from the main, change the user domain to local domain
First conversion function to convert to in and local domain
The second conversion function to convert the user domain to the user domain
Search from the management table and use this first conversion function
The value contained in the inquiry text from the user.
Convert from main to local domain and
Search results and use the second conversion function
Convert from local domain to user domain.
Therefore, the representation format of the search data in each database is
You can freely search even if it is different from your own expression format.
it can.

【0011】また、請求項3記載の本発明は、請求項1
又は2記載の発明において、前記変換関数探索手段は、
前記ローカルドメインと前記ユーザドメイン間を直接変
換する変換関数を探索できない場合には、前記ローカル
ドメインと前記ユーザドメイン間を変換しうる複数の変
換関数の組み合わせを探索する手段を有することを要旨
とする。
[0011] According to a third aspect of the invention, claim 1
Alternatively, in the invention described in 2 , the conversion function searching means is
Direct change between the local domain and the user domain
If the conversion function to be converted cannot be searched, the local
The gist is to have means for searching a combination of a plurality of conversion functions that can convert between a domain and the user domain .

【0012】請求項3記載の本発明にあっては、ローカ
ルドメインとユーザドメイン間を直接変換する変換関数
を探索できない場合には、ローカルドメインとユーザド
メイン間を変換しうる複数の変換関数を組み合わせて、
ローカルドメインとユーザドメイン間の変換をすること
ができる。
[0012] In the present invention according to claim 3, local
Conversion function to directly convert between user domain and user domain
Local domain and user
Combining multiple conversion functions that can convert between mains,
Convert between local domain and user domain
You can

【0013】[0013]

【発明の実施の形態】以下、図面を用いて本発明の実施
の形態について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings.

【0014】図1は、本発明の一実施形態に係るデータ
ベース異種性解消検索装置の構成を示すブロック図であ
る。本実施形態のデータベース異種性解消検索装置は、
複数のデータベースが存在する環境において同じ意味を
有するが、データベースによってそれぞれ表現が異なる
データ項目をその表現の違いを解消して検索するもので
あり、データベースのデータ項目の値の表現形式(これ
をドメインと称する)を管理し、同じ意味を有するドメ
インをドメイングループとし、このドメイングループの
中から代表して標準的に使用されるグローバルドメイン
を選択し、検索時にデータベースのローカルドメインと
グローバルドメインとが異なる場合、ドメイン間の変換
関数を呼び出し、この変換関数を用いてユーザの問い合
わせ文を各データベースに適合した問い合わせ文に翻訳
し、この翻訳した問い合わせ文によりデータベースを検
索するものであり、該データベース異種性解消検索装置
は、図1に示すように、ユーザのアプリケーションプロ
グラム12から入力される問い合わせ文13の構文を解
析する構文解析部1と、この問い合わせ文に対する処理
の全体の流れを制御する問い合わせ処理制御部2、問い
合わせの変換を行う問い合わせ変換部3、ドレイン間の
データ変換を行う関数の集まりである変換関数ライブラ
リ4、および検索されたデータのドメインを変換するデ
ータ処理部6からなる問い合わせ処理部11と、分散デ
ータベースにアクセスするためのデータベースアクセス
部5と、ドメイン、ドメイングループなどの情報、デー
タベースに含まれるテーブルの情報などを記憶し管理す
るメタデータ蓄積部7と、該メタデータ蓄積部7に対す
るメタデータの投入変換などを行うメタデータ管理部8
とから構成され、前記データベースアクセス部5にはそ
れぞれデータベース9および該データベース9を管理す
るデータベース管理システム10からなる複数のデータ
ベースシステムが接続されている。なお、データベース
9はローカルデータベースとも称する。
FIG. 1 is a block diagram showing the configuration of a database heterogeneity resolution search device according to an embodiment of the present invention. The database heterogeneity resolution search device of this embodiment is
It has the same meaning in an environment where multiple databases exist, but it searches for data items that have different expressions depending on the database by eliminating the difference in the expressions. The local domain of the database is different from the local domain of the database at the time of searching. In this case, a conversion function between domains is called, a query text of a user is translated into a query text suitable for each database by using this conversion function, and a database is searched by the translated query text. The resolution search device is shown in Fig. 1. In addition, a syntax analysis unit 1 that analyzes the syntax of a query sentence 13 input from the user's application program 12, a query processing control unit 2 that controls the overall flow of processing for this query sentence, and a query conversion that transforms the query. Part 3, a conversion function library 4 that is a collection of functions for converting data between drains, an inquiry processing part 11 that includes a data processing part 6 that converts the domain of retrieved data, and a database for accessing a distributed database An access unit 5, a metadata storage unit 7 that stores and manages information such as domains and domain groups, information about tables included in a database, and metadata that performs conversion of metadata input to the metadata storage unit 7. Management department 8
A plurality of database systems each including a database 9 and a database management system 10 for managing the database 9 are connected to the database access unit 5. The database 9 is also called a local database.

【0015】このように構成される本実施形態のデータ
ベース異種性解消検索装置は、検索を実行する前にドメ
インの定義などの準備を行う準備フェーズと実際の検索
を行う検索フェーズの2段階の処理を実施する。
The database heterogeneity resolving search apparatus of this embodiment having the above-described configuration has a two-stage process including a preparation phase for preparing a domain definition and the like before executing a search and a search phase for actually performing a search. Carry out.

【0016】まず、準備フェーズについて説明する。こ
の準備フェーズでは、ドメインの定義を行うが、本実施
形態におけるドメインの管理の考え方について図2を参
照して説明する。データベースにおけるデータ項目のデ
ータ値の表現法であるドメインとして、例えば図2に示
すように、血液型を表す場合のドメインとしては、血液
型値で表す場合、血液型コードで表す場合、血液型詳細
で表す場合などのように種々の表現方法がある。このよ
うに種々の表現法の中で同じ意味を有するものをドメイ
ングループとして定義し、この中からただ1つのドメイ
ンをユーザに見えるドメインとして設定することで、ユ
ーザに対して単一な見方を提供することができる。な
お、図2では、ドメイングループとして、年月日も挙
げ、この中には年/月/日や月.日.年などを種々のド
メインを示している。また、図2では、ユーザは血液型
コードおよび年/月/日を使用しており、これらがユー
ザドメインとなる。
First, the preparation phase will be described. In this preparation phase, a domain is defined. The concept of domain management in this embodiment will be described with reference to FIG. As a domain that is a method of expressing the data value of a data item in a database, for example, as shown in FIG. 2, a domain for expressing a blood type includes a blood type value, a blood type code, and a blood type detail. There are various expression methods such as the case of. In this way, by defining those that have the same meaning among various expressions as a domain group and setting only one domain as a domain that can be seen by the user, a single view is provided to the user. can do. In addition, in FIG. 2, the date is also given as a domain group, and the year / month / day and the month. Day. Years, etc. are shown for various domains. Further, in FIG. 2, the user uses the blood group code and the year / month / day, which are the user domain.

【0017】ドメインについては、次に示す4つの設
定、すなわちローカルドメインの設定、ドメイングルー
プの設定、変換関数の作成、ユーザドメインの設定が必
要であり、ユーザはメタデータ管理部8を用いてドメイ
ンなどの情報の設定を行う。また、これらの情報はメタ
データ蓄積部7に保存される。更に、メタデータ蓄積部
7に保存される各情報のテーブルの構成を図3および図
4に示す。各ドメインの設定について説明する。
Regarding the domain, the following four settings are required: local domain setting, domain group setting, conversion function creation, and user domain setting. The user uses the metadata management unit 8 to set the domain. Set information such as. Further, these pieces of information are stored in the metadata storage unit 7. Further, the configuration of the table of each information stored in the metadata storage unit 7 is shown in FIGS. 3 and 4. The setting of each domain will be described.

【0018】(1)ローカルドメインの設定:ローカル
データベース9の項目に対し、その表現形式を表す概念
である「ドメイン」を設定する。これをローカルドメイ
ンと呼ぶ。例えば、あるデータベースのデータ項目「氏
名」(型はchar(20))に対し、これのドメインをName
であると設定する。このNameというドメインの表す意味
は、単にchar(20)という型だけではなく、「氏名」の
より細かい表現の形式を表す。例えば、このNameは、 ・姓が先で、名が後である。 ・姓と名の間隔は、半角スペースである。
(1) Setting of local domain: For the items of the local database 9, a "domain" which is a concept representing the expression format thereof is set. This is called the local domain. For example, for the data item “name” (type is char (20)) of a database, the domain of this is Name
To be set. The meaning of the name domain is not just the type char (20), but the more detailed form of "name". For example, this Name is: -Last name first, first name later.・ The space between the family name and given name is a space.

【0019】といった表現形式である。列に対するドメ
インの定義は、図3(a)に示すように「列」テーブル
に保持される。
The expression format is as follows. The definition of the domain for the column is held in the "column" table as shown in FIG.

【0020】基本的には、この作業は、ローカルデータ
ベースの管理者が行う。その時、メタデータ管理部8を
用いて、既に定義されているドメインを参照する。も
し、自分のデータベースのデータ項目のドメインとして
使えるドメインが既に定義されているようなら、それを
用い、新たにドメインを作成しない。
Basically, this work is performed by the administrator of the local database. At that time, the metadata management unit 8 is used to refer to the already defined domain. If a domain that can be used as a data item domain in your database is already defined, use it and do not create a new domain.

【0021】(2)ドメイングループの設定:表現の形
式は異なっているが、実際には同じ意味を表しているド
メインのグループをドメイングループと呼ぶ。このグル
ープに入るドメインは、すべて同じ意味の異なった表現
法である。本装置では、ユーザからは、このドメイング
ループに含まれるドメインはすべて1つのドメインに統
一されて見える。
(2) Setting of domain group: Although the format of the expression is different, a group of domains which actually have the same meaning is called a domain group. Domains in this group are all different expressions with the same meaning. In this device, all the domains included in this domain group appear as one domain to the user.

【0022】ローカルデータベースの管理者は、自分が
定義したドメインがどのドメイングループに入るのかを
判断し、そのドメイングループに入れる処理をする。適
当なドメイングループが見つからない場合は、新しいド
メイングループを作成する。もし、既に定義されている
ドメインであれば、どれかのドメイングループに含まれ
ているので設定をする必要はない。図3(b)にドメイ
ングループを示す。
The administrator of the local database determines which domain group the domain defined by him / herself belongs to, and carries out the processing to enter the domain group. If no suitable domain group is found, create a new domain group. If the domain is already defined, you do not need to set it because it is included in any domain group. FIG. 3B shows a domain group.

【0023】ドメイングループの中には、1つの代表し
て標準的に使われるドメインを設定しておく(この設定
は、基本的に本装置の管理者が行う)。そのドメインを
グローバルドメインと呼ぶ。図3(c)にグローバルド
メインを示す。
In the domain group, one standard domain that is used as a standard is set (this setting is basically performed by the administrator of this apparatus). That domain is called the global domain. FIG. 3C shows the global domain.

【0024】(3)変換関数作成:これは、既に変換関
数が定義されている場合は、必要はない。グローバルド
メインとローカルドメインの間の変換関数を一般のプロ
グラミング言語を用いて作成する。作成した関数は、コ
ンパイルし、ダイナミックにリンクできる形式にする。
(3) Conversion function creation: This is not necessary when the conversion function is already defined. A conversion function between the global domain and the local domain is created by using a general programming language. The created function should be in a format that can be compiled and dynamically linked.

【0025】メタデータ管理部8を用いて、この変換関
数とドメインの関係を登録する。変換関数とドメインの
対応、変換関数の所在は、図4に示すように、「変換関
数」テーブルに保持される。
The metadata management unit 8 is used to register the relationship between the conversion function and the domain. The correspondence between the conversion function and the domain and the location of the conversion function are held in the "conversion function" table as shown in FIG.

【0026】変換関数は、グローバルドメイン→ローカ
ルドメイン、ローカルドメイン→グローバルドメインと
いうように双方向の関数を作る。ただし、変換によって
は、双方向に関数を作ることが不可能な場合もある
(例:名前の変換で、「鈴木 源吾」→「鈴木源吾」と
いう変換=空白の削除は可能だが、その逆は一般的には
不可能である)。その場合は、片方向のみの関数を作成
する。双方向の関数を作る理由は、直接変換する関数が
ない場合に、関数を組み合わせて変換を行うためであ
る。
The conversion function creates a bidirectional function such as global domain → local domain and local domain → global domain. However, depending on the conversion, it may not be possible to create a function in both directions (example: name conversion, conversion of "Gengo Suzuki" → "Gengo Suzuki" = blank spaces can be deleted, but the reverse is true). Generally impossible). In that case, create a function in only one direction. The reason for creating a bidirectional function is to combine the functions and perform the conversion when there is no function for the direct conversion.

【0027】(4)ユーザドメインの設定:ドメイング
ループの中から、ユーザに実際に見えるドメインを(ユ
ーザ毎に)選んでおく。これをユーザドメインと呼ぶ。
ユーザが本装置に問い合わせを行う場合、さまざまなド
メインにより表現されている項目があっても、すべてこ
のユーザドメインによる表現に統一される。また、この
ユーザドメインを変更することによって、ユーザからの
データの見え方を変更することができる。図3(d)に
ユーザドメインを示す。
(4) Setting of user domain: A domain that the user actually sees is selected (for each user) from the domain group. This is called a user domain.
When the user makes an inquiry to the device, even if there are items expressed by various domains, they are all unified by the expression by this user domain. Also, by changing this user domain, the appearance of the data to the user can be changed. FIG. 3D shows the user domain.

【0028】次に、検索フェーズについて説明する。ド
メインの情報を用いて以下のように検索を行う。ユーザ
は、一般にアプリケーションプログラムから、本装置の
機能をライブラリなどの形で呼び出し使用する。ユーザ
からの問い合わせは、関係データベースの検索言語であ
るSQL言語で作成する。
Next, the search phase will be described. Search using the domain information as follows. A user generally calls and uses the function of this apparatus in the form of a library from an application program. Inquiries from users are created in the SQL language, which is the search language for relational databases.

【0029】(1)問い合わせDBの決定:構文解析部
1により問い合わせを解析し、問い合わせに含まれるテ
ーブル・列を含むデータベースをメタデータ蓄積部7の
「列」テーブルを検索することによって知る。
(1) Determination of inquiry DB: The syntax analysis unit 1 analyzes the inquiry and finds the database including the table / column included in the inquiry by searching the "column" table of the metadata storage unit 7.

【0030】(2)問い合わせに含まれる列のドメイン
の検索:問い合わせに含まれる列のドメインを図3
(a)に示す「列」テーブルを検索することによって知
る。
(2) Search for domain of column included in inquiry: FIG. 3 shows domain of column included in inquiry.
Know by searching the "column" table shown in (a).

【0031】(3)ユーザドメインの検索:問い合わせ
ているユーザとドメインから、図3(d)に示す「ドメ
イングループユーザ」テーブルを検索することにより、
ユーザドメインを検索する。
(3) User domain search: By searching the "domain group user" table shown in FIG. 3D from the inquiring user and domain,
Search for user domain.

【0032】(4)変換関数の探索:ユーザドメインと
(2)のドメインの間の変換関数を図4に示す「変換関
数」テーブルを用いて調べる。A→Bと直接適用できる
変換関数が見つからない場合、A→C,C→Bと組み合
わせて変換できないかを探索する。これは、ドメインを
ノード、ドメイン間の変換関数の存在をエッジにしたグ
ラフ上の探索問題であり、グラフ理論で検討されている
アルゴリズムを用いて容易に実現することができる。
(4) Search for conversion function: The conversion function between the user domain and the domain of (2) is checked using the "conversion function" table shown in FIG. When a conversion function that can be directly applied to A → B is not found, it is searched for in combination with A → C and C → B. This is a search problem on a graph in which the domain is a node and the existence of a conversion function between domains is an edge, and can be easily realized by using an algorithm studied in graph theory.

【0033】(5)問い合わせの翻訳と実行:データベ
ースアクセス部5に用いるシステムの差で、2つの実現
方式がある。データベースアクセス部5は、データベー
ス統合のためのミドルウェアを用いる。
(5) Translation and execution of inquiry: There are two implementation methods depending on the system used for the database access unit 5. The database access unit 5 uses middleware for database integration.

【0034】実現方式1はデータベースアクセス部5が
拡張可能データベース的な機能を許す場合である。
The realization method 1 is a case where the database access unit 5 permits a function like an expandable database.

【0035】ユーザが定義した関数を使って、機能を拡
張できるようなデータベース管理システムを拡張可能デ
ータベース管理システム(拡張可能DBMS)と呼ぶ。
これに相当する機能がデータベースアクセス部に用いる
ことのできる場合、変換関数は、拡張可能DBMSのユ
ーザ定義関数として実現することができる。そして、そ
の関数を問い合わせ言語の中で用いることができる。
A database management system whose functions can be expanded by using a function defined by the user is called an expandable database management system (extensible DBMS).
If a function equivalent to this can be used in the database access unit, the conversion function can be realized as a user-defined function of the extensible DBMS. The function can then be used in the query language.

【0036】データベースアクセス部に渡す問い合わせ
を作るために、ユーザの問い合わせの文中に含まれる列
を、変換関数を含む形に置き換える。
In order to make a query to be passed to the database access unit, the column included in the user's query text is replaced with a form including a conversion function.

【0037】 の形式である。検索する列と条件式の列のドメインがユ
ーザドメインと異なる場合、以下の置き換えを行う。
[0037] Format. If the domain of the column to be searched and the column of the conditional expression are different from the user domain, perform the following replacement.

【0038】A)(検索する列)を(ローカルドメイン
→ユーザドメインへの変換関数)((検索する列))に
置き換える。 B)(条件式に含まれる列)を(ローカルドメイン→ユ
ーザドメインへの変換関数)((条件式に含まれる
列))に置き換える。
A) Replace (search column) with (local domain → user domain conversion function) ((search column)). B) Replace (column included in conditional expression) with (conversion function from local domain to user domain) ((column included in conditional expression)).

【0039】実現方式2はデータベースアクセス部5が
関係データベースの機能しか持たない場合である。関係
データベースと同じ機能でしか、データベースアクセス
できないミドルウェアでは、拡張可能データベースのよ
うに、ユーザ定義関数を問い合わせ言語内で用いること
ができないので、実現方式1のように問い合わせを書き
換えることでは、変換を実現できない。以下のようにし
てデータの変換を実現する必要がある。
The realization method 2 is a case where the database access unit 5 has only the function of the relational database. With middleware that can access the database only with the same function as the relational database, user-defined functions cannot be used in the query language like the extensible database, so by rewriting the query as in implementation method 1, conversion is realized. Can not. It is necessary to realize data conversion as follows.

【0040】・問い合わせの中に含まれる値の変換:問
い合わせに含まれる値をユーザドメインからローカルド
メインに変換する。 ・検索結果の変換:データ処理部6が、検索された結果
の値をローカルドメインからユーザドメインに変換す
る。
Conversion of the value contained in the inquiry: The value contained in the inquiry is converted from the user domain to the local domain. Conversion of search result: The data processing unit 6 converts the value of the search result from the local domain to the user domain.

【0041】それぞれの方式ともに、複数のデータベー
スにアクセスを行うが、結果はそれぞれのデータベース
への検索結果の和を取ることとする。
In each method, a plurality of databases are accessed, and the result is the sum of search results for each database.

【0042】次に、具体的に合成変換を行う場合と行わ
ない場合の2つの例について説明する。図5に使用する
サンプルデータベース(DB)を示す。ドメインなどの
メタデータについては、図3および図4の値はこの例に
沿っている。例1、例2の両方で同じデータベースを用
いる。2つの例は、準備フェーズの変換関数の定義まで
は共通である。ユーザドメインの設定から先が異なって
いる。2つのデータベース(DB)は以下の形式であ
る。
Next, two examples of the case where the synthetic conversion is performed and the case where the synthetic conversion is not performed will be described. FIG. 5 shows a sample database (DB) used. For metadata such as domains, the values in Figures 3 and 4 are in line with this example. The same database is used in both Example 1 and Example 2. The two examples are common until the definition of the conversion function in the preparation phase. The destination is different from the user domain setting. The two databases (DB) are in the following formats.

【0043】 つまり、DB1の「氏名」は名字と名前の間に空白をお
かず、DB2の「氏名」は名字と名前の間に半角の空白
をおく。DB1の血液型は、コードで表現され、DB2
の血液型は値で表現されている。
[0043] That is, the "name" of DB1 does not leave a space between the surname and the name, and the "name" of DB2 puts a half-width space between the surname and the name. The blood type of DB1 is represented by a code, DB2
The blood type of is represented by a value.

【0044】まず、例1として、合成変換を行わない場
合について説明する。例1の準備フェーズとして、上述
したようにローカルドメイン、ドメイングループ、変換
関数の定義およびユーザドメインの決定がそれぞれ以下
のように行われる。
First, as Example 1, the case where the synthesis conversion is not performed will be described. As the preparation phase of Example 1, the local domain, the domain group, the definition of the conversion function, and the determination of the user domain are performed as described above, respectively, as follows.

【0045】(1)ローカルドメインの定義:DB1,
DB2の管理者は、それぞれ自分のDBの列に対してそ
のローカルドメインを設定する。DB1の氏名のドメイ
ンは姓名間のスペースがないので、NameNoSpace とす
る。DB1の血液型のドメインはコードで表現されてい
るので、BloodTypeCode とする。DB2の氏名のドメイ
ンは姓名間にスペースがあるので、NameSpace とする。
DB2の血液型のドメインは半角の値で表現されている
ので、BloodTypeValueとする。
(1) Definition of local domain: DB1,
The DB2 administrator sets the local domain for each DB column. Since there is no space between first and last name in the domain of full name in DB1, it is NameNoSpace. Since the blood type domain of DB1 is represented by a code, it is BloodTypeCode. Since there is a space between the surname and surname in the domain of the name of DB2, it is named NameSpace.
Since the blood type domain of DB2 is expressed by a half-width value, it is BloodTypeValue.

【0046】(2)ドメイングループの定義:ここで
は、ドメイングループとして ・Name(含まれるドメインは、NameNoSpace ,NameSpac
e 、グローバルドメインは、NameNoSpace )、 ・BloodType (含まれるドメインは、BloodTypeCode ,
BloodTypeValue,BloodTypeValueLarge 、グローバルド
メインは、BloodTypeValueLarge ) の2つを設定する。ここで、BloodTypeValueLarge と
は、(A,B,O,AB)という全角文字で値の入って
いるドメインである。
(2) Definition of domain group: Here, as a domain group, ・ Name (the included domain is NameNoSpace, NameSpac
e, global domain is NameNoSpace), BloodType (included domain is BloodTypeCode,
BloodTypeValue, BloodTypeValueLarge, and global domain are BloodTypeValueLarge). Here, BloodTypeValueLarge is a domain having a value in double-byte characters (A, B, O, AB).

【0047】 (4)ユーザドメインの決定:この例では、ユーザドメ
インはグローバルドメインと等しいとする(図3(d)
にあるユーザgsuzuki が使う場合である)。つまり、 とする。
[0047] (4) Determination of user domain: In this example, the user domain is equal to the global domain (FIG. 3 (d)).
This is the case when the user gsuzuki in. That is, And

【0048】次に、例1の検索フェーズについて説明す
る。◎ユーザの問い合わせを次のようにSQL文に変換
する。 問い合わせ:select氏名 where血液型=”A” (1)血液型と氏名を含むテーブルの検索:「列」テー
ブルを検索して、DB1とDB2を発見する。
Next, the search phase of Example 1 will be described. ◎ Convert user inquiries into SQL sentences as follows. Inquiry: select name where blood type = “A” (1) Search for table containing blood type and name: Search “column” table to find DB1 and DB2.

【0049】 以下(4)以降は、上述した実現方式1と実現方式2に
分けて説明する。
[0049] In the following (4) and subsequent steps, the above-described realization method 1 and realization method 2 will be described separately.

【0050】実現方式1の場合について説明する。 (6)問い合わせ実行:各DB毎の検索結果は、次のよ
うになる。 DB1:鈴木美紀 DB2:町原宏毅 最終的な検索結果はその和をとって、 鈴木美紀 町原宏毅 となる。
The case of implementation method 1 will be described. (6) Query execution: The search results for each DB are as follows. DB1: Miki Suzuki DB2: Hiroki Machihara The final search result is the sum of the results, which is Miki Suzuki Hiroki Machihara.

【0051】次に、実現方式2の場合について説明す
る。 (6)問い合わせの翻訳を行う。
Next, the case of the realization method 2 will be described. (6) Translate the inquiry.

【0052】 DB1:select氏名 where血液型=”0” DB2:select氏名 where血液型=”A” となる。DB1: select name where blood type = "0" DB2: select name where blood type = "A" Becomes

【0053】次に、例2として、合成変換を行う場合に
ついて説明する。DB1を使用するユーザが、DB1の
形式で情報を得たいという状況を考える。このとき、ユ
ーザドメインをDB1の型にすることになる(図3にあ
るユーザsatoh が使う場合である)。
Next, as Example 2, description will be made on the case where the synthetic conversion is performed. Consider a situation where a user who uses DB1 wants to obtain information in the format of DB1. At this time, the user domain is set to the DB1 type (this is the case when the user satoh in FIG. 3 uses it).

【0054】まず、準備フェーズについて説明するが、
(3)までは、例1と同様であるので、次のように
(4)を行う。
First, the preparation phase will be described.
The procedure up to (3) is the same as in Example 1, so (4) is performed as follows.

【0055】(4)ユーザドメインの決定:Nameのユー
ザドメインをNameNoSpace とする。BloodType のユーザ
ドメインをBloodTypeCode とする。次に、例2の検索フ
ェーズについて説明する。ユーザの問い合わせを次のよ
うにSQL文に変更する。
(4) Determination of user domain: The user domain of Name is NameNoSpace. Let BloodTypeCode be the user domain of BloodType. Next, the search phase of Example 2 will be described. The user's inquiry is changed to the SQL statement as follows.

【0056】以上説明したように、本発明によれば、ユ
ーザから入力された問い合わせ文の検索データが記憶さ
れているデータベースおよび該検索データに対応するロ
ーカルドメインをローカルドメイン管理テーブルから探
索するとともに、該ローカルドメインが含まれるドメイ
ングループとユーザからユーザドメインをユーザドメイ
ン管理テーブルから探索し、データベースへの問い合わ
せ文の中に変換関数を記述できる場合であって、この探
索したローカルドメインとユーザドメインとが異なる場
合、ローカルドメインをユーザドメインに変換する変換
関数を変換関数管理テーブルから探索し、この変換関数
を用いて、ユーザからの問い合わせ文を各データベース
に適合した問い合わせ文に翻訳し、この翻訳された問い
合わせ文により各データベースを検索するので、各デー
タベースにおける検索データの表現形式がユーザ自身の
表現形式と異なっても、ユーザは自分の欲しい表現形式
でデータを自由に検索して容易に得ることができ、デー
タベースのデータをより自由に利用することが可能とな
る。また、グローバルスキーマの定義を必要とせず、表
現形式の違いを解消することができる。また、本発明に
よれば、ユーザから入力された問い合わせ文の検索デー
タが記憶されているデータベースおよび該検索データに
対応するローカルドメインをローカルドメイン管理テー
ブルから探索するとともに、該ローカルドメインが含ま
れるドメイングループとユーザからユーザドメインをユ
ーザドメイン管理テーブルから探索し、データベースへ
の問い合わせ文の中に変換関数を記述できない場合であ
って、この探索したローカルドメインとユーザドメイン
とが異なる場合、ユーザドメインをローカルドメインに
変換する第1の変換関数、及びローカルドメインをユー
ザドメインに変換する第2の変換関数を変換関数管理テ
ーブルから探索し、この第1の変換関数を用いて、ユー
ザからの問い合わせ文に含まれる値をユーザドメインか
らローカルドメインに変換して、各データベースを検索
し、検索された結果の値を第2の変換関数を用いてロー
カルドメインからユーザドメインに変換するので、各デ
ータベースにおける検索データの表現形式がユーザ自身
の表現形式と異なっても、ユーザは自分の欲しい表現形
式でデータを自由に検索して容易に得ることができ、デ
ータベースのデータをより自由に利用すること が可能と
なる。また、グローバルスキーマの定義を必要とせず、
表現形式の違いを解消することができる。
As described above, according to the present invention, the database storing the search data of the inquiry text input by the user and the local domain corresponding to the search data are searched from the local domain management table, and A user domain is created from the domain group and users that include the local domain.
Search from the management table and query the database
When a conversion function can be written in a statement and the searched local domain and the user domain are different, a conversion function for converting the local domain to the user domain is searched from the conversion function management table, and this conversion function is searched. Is used to translate the query text from the user into a query text that is suitable for each database, and the translated query text is used to search each database, so the expression format of the search data in each database is the same as the user's own expression format. Even if it is different, the user can freely search and easily obtain the data in the desired expression format, and can use the data in the database more freely. In addition, it is possible to eliminate the difference in expression format without the need to define the global schema. In addition, in the present invention
According to the search data of the inquiry text entered by the user.
Data stored in the database and the search data
Replace the corresponding local domain with the local domain management table.
Search from Bull and include the local domain
User domain from the domain group and user
Search from user domain management table to database
When a conversion function cannot be written in the
So, this searched local domain and user domain
Is different from, change the user domain to the local domain
The first conversion function to convert and the local domain are used.
The second conversion function for converting to the domain
Table, and using this first conversion function,
Is the value included in the inquiry text from the user domain
To a local domain and search each database
Then, the retrieved result value is read using the second conversion function.
Since each domain is converted from the local domain to the user domain,
The expression format of the search data in the database is the user
Even if it is different from the expression format of
You can freely search the data with the formula and get it easily.
Database data can be used more freely
Become. Also, without the need to define a global schema,
It is possible to eliminate the difference in expression format.

【0057】また、既存のマルチデータベースにおいて
は、すべてのデータベースにおける表現形式を知らなけ
れば、表現形式の違いを解消できないのに対して、本発
明では、ローカルデータベースの管理者が自分の持って
いるデータベースにおける表現形式であるローカルドメ
インと標準的な表現形式であるグローバルドメインのみ
を意識すればよく、他のデータベースでどのように表現
されているかを意識する必要がない。
In addition, in the existing multi-database, the difference in expression format cannot be resolved without knowing the expression format in all databases, whereas in the present invention, the administrator of the local database has it. Only the local domain, which is the expression format in the database, and the global domain, which is the standard expression format, need to be considered, and it is not necessary to be aware of how they are expressed in other databases.

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

【図1】本発明の一実施形態に係るデータベース異種性
解消検索装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a database heterogeneity resolution search device according to an embodiment of the present invention.

【図2】ドメイン管理の考え方を示す説明図である。FIG. 2 is an explanatory diagram showing a concept of domain management.

【図3】図1のデータベース異種性解消検索装置に使用
されているメタデータ蓄積部に蓄積される列テーブル、
ドメインテーブル、ドメイングループテーブル、ドメイ
ングループユーザテーブルの構成を示す図である。
3 is a column table stored in a metadata storage unit used in the database heterogeneity resolution search device of FIG. 1;
It is a figure which shows the structure of a domain table, a domain group table, and a domain group user table.

【図4】図1のデータベース異種性解消検索装置に使用
されているメタデータ蓄積部に蓄積される変換関数テー
ブルの構成を示す図である。
FIG. 4 is a diagram showing a configuration of a conversion function table stored in a metadata storage unit used in the database heterogeneity resolution search device of FIG. 1.

【図5】サンプルのデータベースを示す図である。FIG. 5 is a diagram showing a sample database.

【図6】変換関数が使用する血液型対応表の例を示す図
である。
FIG. 6 is a diagram showing an example of a blood type correspondence table used by a conversion function.

【図7】ドメインの合成変換を示す説明図である。FIG. 7 is an explanatory diagram showing a synthesis conversion of domains.

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

1 構文解析部 2 問い合わせ処理制御部 3 問い合わせ変換部 4 変換関数ライブラリ 5 データベースアクセス部 6 データ処理部 7 メタデータ蓄積部 8 メタデータ管理部 9 データベース 10 データベース管理システム 1 Parsing part 2 Inquiry processing control unit 3 Inquiry converter 4 Conversion function library 5 Database access department 6 Data processing unit 7 Metadata storage section 8 Metadata management section 9 Database 10 database management system

フロントページの続き (56)参考文献 特開 平7−65032(JP,A) 特開 平6−67867(JP,A) 西澤格,高須淳宏,安達淳,情報検索 におけるスキーマの統合と質問処理,情 報処理学会研究報告(93−DBS−94− 9),日本,社団法人情報処理学会, 1993年 7月23日,第93巻,第65号, p.69−77 DURAND,J.et al.,O bject View Broker: A Mediation Servic e and Architecture to Provide Object −Oriented Views o f,Computer Scienc e,1994年 7月,Vol.819,p. 412−428,タイトルの続き:Heter ogeneous Databases (58)調査した分野(Int.Cl.7,DB名) G06F 17/30 G06F 12/00 JICSTファイル(JOIS)Continuation of the front page (56) Reference JP-A-7-65032 (JP, A) JP-A-6-67867 (JP, A) Nishizawa Satoshi, Takasu Atsuhiro, Adachi Atsushi, schema integration and query processing in information retrieval, Information Processing Society of Japan Research Report (93-DBS-9-4), Japan, Information Processing Society of Japan, July 23, 1993, Vol. 93, No. 65, p. 69-77 DURAND, J. et al. , Object View Broker: A Mediation Service and Architecture to Provided Object-Oriented Views of, Computer Science, July 1994, Vol. 819, p. 412-428, Continuation of title: Heterogeneous Databases (58) Fields investigated (Int.Cl. 7 , DB name) G06F 17/30 G06F 12/00 JISST file (JOIS)

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数のデータベースが存在する環境にお
いて同じ意味を有するが、データベースによってそれぞ
れ表現が異なるデータ項目をその表現の違いを解消して
検索するデータベース異種性解消検索装置であって、 各データベースのデータ項目のデータの表現形式である
ドメインをローカルドメインとして各データベース毎に
管理するローカルドメイン管理テーブルと、 同じ意味を有する各ドメインをドメイングループとして
管理するとともに、各ドメイングループ内において代表
して標準的に使用されるグローバルドメインを選択して
管理するドメイングループ管理テーブルと、前記グローバルドメインと前記ローカルドメインとの間
の双方向又は片方向の 変換を行う変換関数を管理する変
換関数管理テーブルと、各ドメイングループごとにユーザが見えるドメインをユ
ーザドメインとして管理するユーザドメイン管理テーブ
ルと、 ユーザから入力された問い合わせ文の検索データが記憶
されているデータベースおよび該検索データに対応する
ローカルドメインを前記ローカルドメイン管理テーブル
から探索するとともに、該ローカルドメインが含まれる
ドメイングループと前記ユーザからユーザドメインを前
記ユーザドメイン管理テーブルから探索するドメイン探
索手段と、データベースへの問い合わせ文の中に変換関数を記述で
きる場合であって、 該ドメイン探索手段で探索したロー
カルドメインとユーザドメインとが異なる場合、該ロー
カルドメインをユーザドメインに変換する変換関数を前
記変換関数管理テーブルから探索する変換関数探索手段
と、 該変換関数探索手段で探索された変換関数を用いて、前
記問い合わせ文を各データベースに適合した問い合わせ
文に翻訳し、この翻訳された問い合わせ文により各デー
タベースを検索する検索手段とを有することを特徴とす
るデータベース異種性解消検索装置。
1. A database heterogeneity resolving search device for retrieving data items having the same meaning in an environment having a plurality of databases, but having different expressions depending on the databases, by resolving the differences in the expressions, and each database comprising: The local domain management table that manages each database as a local domain, which is the data representation format of the data items of, and each domain that has the same meaning is managed as a domain group, and the standard in each domain group is standard. Between the global domain and the local domain, and a domain group management table for selecting and managing the globally used global domain.
Yu and conversion function management table for managing the transformation functions for bidirectional or unidirectional conversion, the domain where the user looks for each domain group
User domain management table to manage as user domain
And a database storing search data of inquiry texts entered by a user and a local domain corresponding to the search data from the local domain management table, and a domain group including the local domain and the user. From user domain before
The domain search means to search from the user domain management table , and the conversion function can be described in the inquiry text to the database.
A case that can, if the local domain and a user domain searched by the domain search means are different, the conversion function search means for searching for a conversion function that converts the local domain to the user domain from the conversion function management table, the And a search unit for translating the inquiry sentence into an inquiry sentence suitable for each database using the conversion function searched by the conversion function searching unit and searching each database by the translated inquiry sentence. Database heterogeneity resolving search device.
【請求項2】 複数のデータベースが存在する環境にお
いて同じ意味を有するが、データベースによってそれぞ
れ表現が異なるデータ項目をその表現の違いを解消して
検索するデータベース異種性解消検索装置であって、 各データベースのデータ項目のデータの表現形式である
ドメインをローカルドメインとして各データベース毎に
管理するローカルドメイン管理テーブルと、 同じ意味を有する各ドメインをドメイングループとして
管理するとともに、各ドメイングループ内において代表
して標準的に使用されるグローバルドメインを選択して
管理するドメイングループ管理テーブルと、 前記グローバルドメインと前記ローカルドメインとの間
の双方向又は片方向の変換を行う変換関数を管理する変
換関数管理テーブルと、 各ドメイングループごとにユーザが見えるドメインをユ
ーザドメインとして管理するユーザドメイン管理テーブ
ルと、 ユーザから入力された問い合わせ文の検索データが記憶
されているデータベースおよび該検索データに対応する
ローカルドメインを前記ローカルドメイン管理テーブル
から探索するとともに、該ローカルドメインが含まれる
ドメイングループと前記ユーザからユーザドメインを前
記ユーザドメイン管理テーブルから探索するドメイン探
索手段と、 データベースへの問い合わせ文の中に変換関数を記述で
きない場合であって、該ドメイン探索手段で探索したロ
ーカルドメインとユーザドメインとが異なる場合、ユー
ザドメインをローカルドメインに変換する第1の変換関
数、及びローカルドメインをユーザドメインに変換する
第2の変換関数を前記変換関数管理テーブルから探索す
る変換関数探索手段と、 該変換関数探索手段で探索された前記第1の変換関数を
用いて、前記問い合わせ文に含まれる値をユーザドメイ
ンからローカルドメインに変換して、各データベースを
検索し、検索された結果の値を前記第2の変換関数を用
いてローカルドメインからユーザドメインに変換する検
索手段と を有することを特徴とするデータベース異種性
解消検索装置。
2. In an environment having a plurality of databases
Have the same meaning, but depending on the database
For data items with different expressions, eliminate the difference in the expressions.
A database heterogeneity resolving search device for searching, which is a data representation format of data items in each database.
Domain as local domain for each database
Each domain that has the same meaning as the local domain management table to be managed as a domain group
Manage and represent within each domain group
And select the standard global domain
Between the domain group management table to manage and the global domain and the local domain
A conversion function that manages the conversion function that performs bidirectional or unidirectional conversion of
The conversion function management table and the domains that users can see for each domain group
User domain management table to manage as user domain
And the search data of the inquiry text entered by the user are stored.
Corresponding to the database and the search data
Local domain to the local domain management table
Search from and include the local domain
User domain from domain group and said user
Domain search to search from the user domain management table
A conversion function can be described in the search means and in the inquiry statement to the database.
If the domain search method is not available,
If the local domain and the user domain are different,
The first conversion function for converting the domain to the local domain
Number, and convert local domain to user domain
The second conversion function is searched from the conversion function management table.
And a conversion function searching means for searching for the first conversion function searched by the conversion function searching means.
Use the value included in the inquiry text to
Database to local domain
Search and use the value of the retrieved result by the second conversion function
To convert from local domain to user domain.
Database heterogeneity characterized by having search means
Resolution search device.
【請求項3】 前記変換関数探索手段は、前記ローカル
ドメインと前記ユーザドメイン間を直接変換する変換関
数を探索できない場合には、前記ローカルドメインと前
記ユーザドメイン間を変換しうる複数の変換関数の組み
合わせを探索する手段を有することを特徴とする請求項
1又は2記載のデータベース異種性解消検索装置。
3. The conversion function searching means is the local
A conversion function that directly converts between the domain and the user domain.
If the number cannot be searched, then the local domain and the previous
3. The database heterogeneity resolving search device according to claim 1, further comprising means for searching a combination of a plurality of conversion functions capable of converting between user domains .
JP34589996A 1996-12-25 1996-12-25 Database heterogeneity resolution search device Expired - Lifetime JP3438805B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34589996A JP3438805B2 (en) 1996-12-25 1996-12-25 Database heterogeneity resolution search device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34589996A JP3438805B2 (en) 1996-12-25 1996-12-25 Database heterogeneity resolution search device

Publications (2)

Publication Number Publication Date
JPH10187742A JPH10187742A (en) 1998-07-21
JP3438805B2 true JP3438805B2 (en) 2003-08-18

Family

ID=18379754

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34589996A Expired - Lifetime JP3438805B2 (en) 1996-12-25 1996-12-25 Database heterogeneity resolution search device

Country Status (1)

Country Link
JP (1) JP3438805B2 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11120245A (en) * 1997-10-16 1999-04-30 Meidensha Corp Management system for facility information
US6424980B1 (en) 1998-06-10 2002-07-23 Nippon Telegraph And Telephone Corporation Integrated retrieval scheme for retrieving semi-structured documents
JP2000224255A (en) * 1999-01-29 2000-08-11 Jisedai Joho Hoso System Kenkyusho:Kk Data transmitter and data transmission method
JP2000224257A (en) * 1999-01-29 2000-08-11 Jisedai Joho Hoso System Kenkyusho:Kk Transmitter and receiver
JP2001076005A (en) 1999-06-30 2001-03-23 Hitachi Ltd Data base system
JP2001282818A (en) * 2000-04-03 2001-10-12 Toshiba Corp Business application data analysis system
KR20020005186A (en) * 2000-06-21 2002-01-17 김기용 Method for forwarding domain and computer readable medium having stored thereon computer executable instruction for performing the method
JP2002351717A (en) * 2001-05-29 2002-12-06 Toshiba Corp Data access system, and system/program/method for data cooperation
US7295755B2 (en) 2001-06-22 2007-11-13 Thomson Licensing Method and apparatus for simplifying the access of metadata
JP2004021880A (en) 2002-06-20 2004-01-22 Fuji Xerox Co Ltd Device retrieval system and its method
AU2003299837B2 (en) * 2002-12-23 2010-03-25 Antenna Dexterra, Inc. Mobile data and software update system and method
JP2006018450A (en) * 2004-06-30 2006-01-19 Toshiba Corp Search system and program
JP2011094828A (en) * 2009-10-27 2011-05-12 Mitsubishi Electric Corp Air filter and air conditioner including the same
US8549026B2 (en) * 2010-10-12 2013-10-01 Clinicomp International, Inc. Standardized database access system and method
US11403328B2 (en) * 2019-03-08 2022-08-02 International Business Machines Corporation Linking and processing different knowledge graphs

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0667867A (en) * 1992-06-15 1994-03-11 Fuji Xerox Co Ltd Data base accessing system for application program
JPH0765032A (en) * 1993-08-27 1995-03-10 Toshiba Corp Information processing system having data base language converting function

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DURAND,J.et al.,Object View Broker:A Mediation Service and Architecture to Provide Object−Oriented Views of,Computer Science,1994年 7月,Vol.819,p.412−428,タイトルの続き:Heterogeneous Databases
西澤格,高須淳宏,安達淳,情報検索におけるスキーマの統合と質問処理,情報処理学会研究報告(93−DBS−94−9),日本,社団法人情報処理学会,1993年 7月23日,第93巻,第65号,p.69−77

Also Published As

Publication number Publication date
JPH10187742A (en) 1998-07-21

Similar Documents

Publication Publication Date Title
Meijer et al. Linq: reconciling object, relations and xml in the. net framework
US7152074B2 (en) Extensible framework supporting deposit of heterogenous data sources into a target data repository
JP3438805B2 (en) Database heterogeneity resolution search device
US6233578B1 (en) Method and system for information retrieval
US7310639B2 (en) Providing query correlation attributes
US7991782B2 (en) Iterative data analysis enabled through query result abstraction
US5428737A (en) Comprehensive bilateral translation between SQL and graphically depicted queries
US7752197B2 (en) SQL query construction using durable query components
US7747640B2 (en) Method for regenerating selected rows for an otherwise static result set
WO2003091829A2 (en) A method, computer program and computer for accessing data in an environment of multiple data repositories
KR20050117525A (en) Real-time aggregation of unstructured data into structured data for sql processing by a relational database engine
US6915303B2 (en) Code generator system for digital libraries
KR20060008296A (en) Rule application management in an abstract database
JP3786233B2 (en) Information search method and information search system
JPH11250073A (en) Method and device for retrieving semantic hierarchy of plural databases and medium for storing program therefor
Carey et al. Data access interoperability in the IBM database family
US20040249792A1 (en) Automated query file conversions upon switching database-access applications
Lawrence et al. Unity-a database integration tool
Antipin et al. Efficient virtual data integration based on XML
Blakeley et al. Enabling component databases with OLE DB
Peng et al. Using XQuery to describe mappings from global schemas to local data sources
Hammer et al. Overview of the integration wizard project for querying and managing semistructured data in heterogeneous sources
Cannataro et al. Using views to query xml documents
Hinds et al. A semantic data dictionary method for database schema integration in CIESIN
Win Data Integration of Separated Databases Using Schema Based Approach

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090613

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090613

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100613

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100613

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110613

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130613

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20140613

Year of fee payment: 11

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