JP2004013906A - Multiple database heterogeneity elimination searching method and device, and recording medium recorded with multiple database heterogeneity elimination searching program - Google Patents
Multiple database heterogeneity elimination searching method and device, and recording medium recorded with multiple database heterogeneity elimination searching program Download PDFInfo
- Publication number
- JP2004013906A JP2004013906A JP2003271200A JP2003271200A JP2004013906A JP 2004013906 A JP2004013906 A JP 2004013906A JP 2003271200 A JP2003271200 A JP 2003271200A JP 2003271200 A JP2003271200 A JP 2003271200A JP 2004013906 A JP2004013906 A JP 2004013906A
- Authority
- JP
- Japan
- Prior art keywords
- data
- search
- database
- formats
- 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.)
- Granted
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本発明は、データ構造、データベースマネージメントシステム(以下、DBMSと略称する)、データ表現の少なくとも一部でも異なる複数のデータベース(以下、DBと略称する)の異種性を解消して、該複数のデータベースからデータの検索を行う複数データベース異種性解消検索方法および装置と複数データベース異種性解消検索プログラムを記録した記録媒体に関する。 The present invention eliminates the heterogeneity of a data structure, a database management system (hereinafter abbreviated as “DBMS”), and a plurality of databases (hereinafter abbreviated as “DB”) that differ in at least a part of a data expression, and TECHNICAL FIELD The present invention relates to a method and an apparatus for resolving multiple database dissimilarity for retrieving data from a database and a recording medium on which a program for resolving multiple database dissimilarity is recorded.
企業は、顧客の管理や売り上げの管理などさまざまな業務のために、多くのデータベースシステムを導入し、利用している。当初は、顧客や売り上げの情報の記録、変更、利用などのような単純なデータ管理の目的でデータベースを使用していたが、最近は、例えば地域別の商品の売れ筋が何かといった情報を求めるなどの経営戦略的な情報を得るためにデータベースを利用することが求められている。 Companies have introduced and used many database systems for various tasks such as customer management and sales management. Initially, the database was used for simple data management purposes, such as recording, changing, and using customer and sales information, but recently, for example, it has been asked for information on what sells products by region. It is required to use a database to obtain management strategic information such as.
そのような目的のためには、1つのデータベースの情報だけからでは不十分な場合があり、例えば顧客情報と売り上げ情報を組み合わせるといったように、複数のデータベースの情報を統合して利用する必要がある。しかし、それぞれのデータベースは独立に運用されているために、同じ内容の情報を異なった表現形式、異なったデータ構造で表していることがある。 For such a purpose, information from one database alone may not be sufficient, and it is necessary to integrate and use information from a plurality of databases, for example, combining customer information and sales information. . However, since each database is operated independently, information having the same contents may be represented in different expression formats and different data structures.
これまで、複数のデータベースを統合して利用する仕組みとして、マルチデータベースが研究・開発されている。マルチデータベースシステムとはグローバルスキーマと呼ばれるユーザが利用するデータベースの仮想的な構造を予め定義することによって、ユーザは個別の情報の表現形式や構造を意識しないで、分散するデータベースを検索できるというシステムである。 マ ル チ Multi-databases have been researched and developed as a mechanism for integrating and using multiple databases. A multi-database system is a system called a global schema that predefines the virtual structure of the database used by the user so that the user can search the distributed database without being aware of the expression format and structure of individual information. is there.
このグローバルスキーマを構築するため、同じ意味のもつデータ項目同士を対応づける必要がある。また、グローバルスキーマをもたない場合であっても、検索要求としてあげられた検索項目と、複数のデータベースのデータ項目同士を対応づける必要がある。 た め In order to construct this global schema, it is necessary to associate data items with the same meaning. Further, even when there is no global schema, it is necessary to associate a search item given as a search request with data items of a plurality of databases.
これまで、グローバルスキーマ、または検索項目とデータ項目間の対応関係では、単一のDBに対して複数の項目から、検索文の中で常に組み合わせ操作を指定して、検索結果を1項目として得ることは可能であった。また、異なるDBMSを使用している複数のDBに対して、項目間の対応が1対n対応のとき、文字列の単純な接続、四則演算などDBMSのSQL文で表現可能な単純な変換に関しては実施されている。更に、単一DBに対して項目間の対応が1対n対応時に、検索要求文の中で変換規則と対応する項目を指定することで、検索条件として指定は可能であった(例えば、非特許文献1参照)。
上述した従来の方法では、検索要求毎にデータ項目間の対応関係とその変換規則を指定する必要があるとともに、複数のデータベースの検索項目として指定した場合、複雑な変換には対応することができず、複数のデータベースの検索条件項目として指定することができないという問題がある。 In the conventional method described above, it is necessary to specify the correspondence between data items and its conversion rule for each search request, and when specifying as a search item of a plurality of databases, it is possible to cope with complicated conversion. Therefore, there is a problem that it cannot be specified as a search condition item of a plurality of databases.
本発明は、上記に鑑みてなされたもので、その目的とするところは、検索要求毎に対応関係や変換規則を指定しなくても、データ構造、DBMS、データ表現の少なくとも一部でも異なる複数のデータベースの異種性を解消して、複数のデータベースからデータの検索を行う複数データベース異種性解消検索方法および装置と複数データベース異種性解消検索プログラムを記録した記録媒体を提供することにある。 The present invention has been made in view of the above, and it is an object of the present invention to specify a plurality of data structures, DBMSs, and data expressions that are different even at least in part from each other without specifying a correspondence or a conversion rule for each search request. It is an object of the present invention to provide a multi-database dissimilarity search method and apparatus for resolving the heterogeneity of a database and searching for data from a plurality of databases, and a recording medium on which a multi-database dissimilarity search program is recorded.
請求項1記載の本発明は、データ構造、データベースマネージメントシステム、データ表現の少なくとも一部でも異なる複数のデータベースの異種性を解消して、該複数のデータベースからデータの検索を行う複数データベース異種性解消検索方法であって、データ項目、データ表現形式、データ表現形式同士の関係および複数のデータ表現形式と1つのデータ表現形式間の関係を定義し、データ表現形式間の変換関数、複数のデータ表現形式から1つのデータ表現形式への変換関数および1つのデータ表現形式から複数のデータ表現形式への変換関数を定義し、前記定義された関係および変換関数を使用して、検索項目に対して同じ意味を有する複数のデータ項目を組み合わせたものを検索項目として取得し、この複数のデータ項目を組み合わせた検索項目によって複数のデータベースを検索することを要旨とする。
The present invention according to
請求項1記載の本発明にあっては、データ表現形式の関係およびデータ表現形式間の変換関数を定義し、この定義された関係および変換関数を使用して、検索項目に対して同じ意味を有する複数のデータ項目を組み合わせたものを検索項目として取得し、この複数のデータ項目を組み合わせた検索項目によって複数のデータベースを検索するため、データ構造等が異なる複数のデータベースに対して、1つの検索項目が複数のデータ項目に対応している場合でも適確に検索を行うことができる。 According to the first aspect of the present invention, a relationship between data expression formats and a conversion function between data expression formats are defined, and the same meaning is used for a search item using the defined relationship and conversion function. A combination of a plurality of data items is acquired as a search item, and a plurality of databases are searched by the search item obtained by combining the plurality of data items. Therefore, one search is performed for a plurality of databases having different data structures and the like. Even when an item corresponds to a plurality of data items, a search can be accurately performed.
また、請求項2記載の本発明は、データ構造、データベースマネージメントシステム、データ表現の少なくとも一部でも異なる複数のデータベースの異種性を解消して、該複数のデータベースからデータの検索を行う複数データベース異種性解消検索方法であって、データ項目、データ表現形式、データ表現形式同士の関係、および複数のデータ表現形式と1つのデータ表現形式間の関係を記憶管理し、データ表現形式間の変換関数、複数のデータ表現形式から1つのデータ表現形式への変換関数、および1つのデータ表現形式から複数のデータ表現形式への変換関数を記憶管理し、検索要求を受け付け、該検索要求の検索項目の検索対象データベースを検出するとともに、前記データ表現形式および表現形式間の関係情報および前記表現形式間の変換関数を用いて、検索要求のデータの表現形式を検索対象データベースで使用されているデータの表現形式に変換して、検索対象データベースで処理可能な検索要求文を作成し、この作成された検索要求文を用いて、検索対象データベースを検索し、この検索結果を検索要求に応じた構造に変換して出力することを要旨とする。 In addition, the present invention according to claim 2 eliminates the heterogeneity of a plurality of databases that differ in at least a part of a data structure, a database management system, and a data expression, and searches for data from the plurality of databases. And a data function, a data expression format, a relationship between data expression formats, and a relationship between a plurality of data expression formats and one data expression format, and a conversion function between data expression formats. It stores and manages a conversion function from a plurality of data expression formats to one data expression format and a conversion function from one data expression format to a plurality of data expression formats, receives a search request, and searches for a search item of the search request. Detecting a target database, as well as the data expression format and relation information between the expression formats and the expression Using a conversion function between expressions, the search request data expression format is converted to the data expression format used in the search target database, and a search request statement that can be processed by the search target database is created. The gist of the present invention is to search a search target database using the search request sentence, convert the search result into a structure corresponding to the search request, and output the structure.
請求項2記載の本発明にあっては、データ表現形式およびデータ表現形式間の変換関数等を記憶管理し、このデータ表現形式および表現形式間の変換関数を用いて、検索要求のデータの表現形式を検索対象データベースで使用されているデータの表現形式に変換して検索要求文を作成し、この検索要求文を用いて検索対象データベースを検索するため、データ構造、データベースマネージメントシステム、データ表現が異なる複数のデータベースに対しても、その異種性を解消して、データの検索を適確に行うことができる。 According to the second aspect of the present invention, a data expression format and a conversion function between the data expression formats are stored and managed, and the data of the search request is expressed using the data expression format and the conversion function between the expression formats. To convert the format to the expression format of the data used in the search target database and create a search request sentence, and to search the search target database using this search request sentence, the data structure, database management system, data expression Even for a plurality of different databases, the heterogeneity can be eliminated, and data retrieval can be performed accurately.
更に、請求項3記載の本発明は、データ構造、データベースマネージメントシステム、データ表現の少なくとも一部でも異なる複数のデータベースの異種性を解消して、該複数のデータベースからデータの検索を行う複数データベース異種性解消検索装置であって、データ項目、データ表現形式、データ表現形式同士の関係、および複数のデータ表現形式と1つのデータ表現形式間の関係を記憶管理するデータ記憶管理手段と、データ表現形式間の変換関数、複数のデータ表現形式から1つのデータ表現形式への変換関数、および1つのデータ表現形式から複数のデータ表現形式への変換関数を記憶管理する変換関数記憶管理手段と、検索要求を受け付け、該検索要求の検索項目の検索対象データベースを検出するとともに、前記データ記憶管理手段に記憶されているデータ表現形式および表現形式間の関係情報および前記変換関数記憶管理手段に記憶されている表現形式間の変換関数を用いて、検索要求のデータの表現形式を検索対象データベースで使用されているデータの表現形式に変換して、検索対象データベースで処理可能な検索要求文を作成する検索要求文作成手段と、該検索要求文作成手段で作成された検索要求文を用いて、検索対象データベースを検索する検索手段と、前記データ記憶管理手段および前記変換関数記憶管理手段を使用して、前記検索手段の検索結果を前記検索要求に応じた構造に変換して出力する変換出力手段とを有することを要旨とする。 Further, the present invention according to claim 3 eliminates the heterogeneity of a plurality of databases differing even in at least a part of a data structure, a database management system, and a data expression, and searches for data from the plurality of databases. And a data storage management means for storing and managing a data item, a data expression format, a relationship between the data expression formats, and a relationship between a plurality of data expression formats and one data expression format. Conversion function storage management means for storing and managing a conversion function between a plurality of data representation formats, a conversion function from a plurality of data representation formats to a single data representation format, and a conversion function from a single data representation format to a plurality of data representation formats; To detect the search target database of the search item of the search request, and Using the data expression format stored in the management means and the relation information between the expression formats and the conversion function between the expression formats stored in the conversion function storage management means, the expression format of the data of the search request is searched for in the database to be searched. Using a search request sentence creating means for creating a search request sentence that can be processed in the search target database by converting the data into an expression form of the data used in the search request sentence created by the search request sentence creating means A conversion unit that converts a search result of the search unit into a structure corresponding to the search request using a search unit that searches a search target database, and the data storage management unit and the conversion function storage management unit, and outputs the result. And the means.
請求項3記載の本発明にあっては、データ表現形式およびデータ表現形式間の変換関数等を記憶管理し、このデータ表現形式および表現形式間の変換関数を用いて、検索要求のデータの表現形式を検索対象データベースで使用されているデータの表現形式に変換して検索要求文を作成し、この検索要求文を用いて検索対象データベースを検索するため、データ構造、データベースマネージメントシステム、データ表現が異なる複数のデータベースに対しても、その異種性を解消して、データの検索を適確に行うことができる。 According to the third aspect of the present invention, a data expression format and a conversion function between the data expression formats are stored and managed, and the data of the search request is expressed using the data expression format and the conversion function between the expression formats. To convert the format to the expression format of the data used in the search target database and create a search request sentence, and to search the search target database using this search request sentence, the data structure, database management system, data expression Even for a plurality of different databases, the heterogeneity can be eliminated, and data retrieval can be performed accurately.
請求項4記載の本発明は、データ構造、データベースマネージメントシステム、データ表現の少なくとも一部でも異なる複数のデータベースの異種性を解消して、該複数のデータベースからデータの検索を行う複数データベース異種性解消検索プログラムを記録した記録媒体であって、データ項目、データ表現形式、データ表現形式同士の関係および複数のデータ表現形式と1つのデータ表現形式間の関係を定義し、データ表現形式間の変換関数、複数のデータ表現形式から1つのデータ表現形式への変換関数および1つのデータ表現形式から複数のデータ表現形式への変換関数を定義し、前記定義された関係および変換関数を使用して、検索項目に対して同じ意味を有する複数のデータ項目を組み合わせたものを検索項目として取得し、この複数のデータ項目を組み合わせた検索項目によって複数のデータベースを検索する複数データベース異種性解消検索プログラムを記録媒体に記録することを要旨とする。 The present invention according to claim 4 eliminates the heterogeneity of a plurality of databases that differ in at least a part of a data structure, a database management system, and a data expression, and eliminates the heterogeneity of a plurality of databases that retrieves data from the plurality of databases. A recording medium on which a search program is recorded, which defines a data item, a data expression format, a relationship between data expression formats, a relationship between a plurality of data expression formats and one data expression format, and a conversion function between data expression formats. , A conversion function from a plurality of data representation formats to a single data representation format and a conversion function from a single data representation format to a plurality of data representation formats, and searching using the defined relationship and the conversion function. Obtain as a search item a combination of multiple data items that have the same meaning for the item, And summarized in that a plurality database heterologous eliminating search program to search multiple databases by the search items by combining a plurality of data items recorded in a recording medium.
以上説明したように、本発明によれば、データ表現形式の関係およびデータ表現形式間の変換関数を定義し、この定義された関係および変換関数を使用して、検索項目に対して同じ意味を有する複数のデータ項目を組み合わせたものを検索項目として取得し、この複数のデータ項目を組み合わせた検索項目によって複数のデータベースを検索するので、DBMS、データ構造、データ表現形式等が異なる複数のデータベースに対して、1つの検索項目が複数のデータ項目に対応している場合でもデータ表現形式間の定義のみで、データ項目の検索を適確に行うことができる。また、本発明によれば、データ表現形式およびデータ表現形式間の変換関数等を記憶管理し、このデータ表現形式および表現形式間の変換関数を用いて、検索要求のデータの表現形式を検索対象データベースで使用されているデータの表現形式に変換して検索要求文を作成し、この検索要求文を用いて検索対象データベースを検索するので、データ構造、DBMS、データ表現が異なる複数のデータベースに対しても、その異種性を解消して、データの検索を適確に行うことができる。 As described above, according to the present invention, a relationship between data representation formats and a conversion function between data representation formats are defined, and the same meaning is used for a search item using the defined relationship and conversion function. A combination of a plurality of data items is obtained as a search item, and a plurality of databases are searched by the search item obtained by combining the plurality of data items. Therefore, a plurality of databases having different DBMSs, data structures, data expression formats, and the like can be obtained. On the other hand, even when one search item corresponds to a plurality of data items, data items can be searched accurately only by defining data expression formats. Further, according to the present invention, a data expression format and a conversion function between data expression formats are stored and managed, and the data expression format of the search request is searched for using the data expression format and the conversion function between expression formats. A search request sentence is created by converting the data into the expression format of the data used in the database, and the search target database is searched using the search request sentence. Therefore, for a plurality of databases having different data structures, DBMS, and data expressions, Even so, it is possible to eliminate the heterogeneity and perform data search accurately.
以下、図面を用いて本発明の実施の形態について説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の一実施形態に係る複数データベース異種性解消検索装置の構成を示すブロック図である。同図に示す複数データベース異種性解消検索装置は、複数のデータベースが存在する環境において同じ意味を有するが、データベースによってそれぞれ表現が異なるデータ項目をその表現の違いを解消し、更にデータ構造の違いを解消して複数のデータベースから検索を行うものであり、ユーザ1、アプリケーションプログラム3、問い合わせ変換部5、情報資源辞書7aを含む情報資源管理部7、変換関数ライブラリ9、データベース通信制御部11、および検索結果統合部13を有し、データベース通信制御部11にはネットワーク23を介して複数のデータベース21が接続されている。
FIG. 1 is a block diagram showing the configuration of a multiple database dissimilarity search apparatus according to an embodiment of the present invention. The multiple-database dissimilarity resolving and searching apparatus shown in the figure has the same meaning in an environment in which a plurality of databases exist, but eliminates differences in the expressions of data items that have different expressions depending on the database, and further reduces the differences in the data structure. The search is performed from a plurality of databases by solving the problem. The
図1に示す複数データベース異種性解消検索装置においては、まずユーザ1がアプリケーションプログラム3を通して、検索要求として検索結果となる検索項目、検索条件として指定する検索項目、検索条件値を入力する。この検索要求はアプリケーションプログラム3から問い合わせ変換部5に渡される。問い合わせ変換部5では、情報資源管理部7で管理されている情報資源辞書7aの情報を用いて、検索項目の検索対象データベース21上での所在を明らかにし、それぞれのデータベース21のデータ構造に応じた検索対象データベースで処理可能な検索要求文を作成する。このとき、検索条件値のデータの表現形式が検索要求と検索対象データベース21で異なる場合、変換関数ライブラリ9の変換関数を使用し、データの表現形式を検索対象データベース21で用いているデータの表現形式に変換する。
In the multi-database dissimilarity search apparatus shown in FIG. 1, first, the
問い合わせ変換部5で作成された検索対象データベース21への検索要求文は、データベース通信制御部11を経由して、ネットワーク23で接続された検索対象データベース21へ送られ、各データベース21で検索処理が実行される。
The search request sentence to the
そして、各データベースの検索結果は、データベース通信制御部11へ送られ、アプリケーションプログラム3から渡された検索要求とともに、検索結果統合部13へ送られる。
Then, the search result of each database is sent to the database
検索結果統合部13では、アプリケーションプログラム3からの検索要求と、情報資源管理部7の情報資源辞書7aの情報にしたがって、変換関数ライブラリ9の変換関数を使用して、検索要求に応じた構造、表現形式、ユーザが指定した表現形式に検索結果を変換する。この検索結果統合部13で変換された検索結果はアプリケーションプログラム3へ返却され、ユーザ1へ出力される。
The search
上記を実現するため、本実施形態では、データ項目のデータの表現形式であるドメインを情報資源辞書7aにて管理する。具体的には、検索対象となる各データベースのデータ項目のデータ表現形式を表わすローカルドメイン、同じ意味をもつドメインで構成するドメイングループ、ドメイングループを代表するドメインであるグローバルドメイン、ドメイングループのうちユーザが出力を希望するドメインであるユーザドメイン、ユーザが検索条件として指定するであろうドメイン、複数のドメイングループのグローバルドメインを組み合わせ変換することで作成される複合ドメイン、複合ドメインの要素となるドメイングループである要素ドメインである。
In order to realize the above, in the present embodiment, the domain, which is the data representation format of the data item, is managed by the
また、それぞれのドメインを変換する関数として、グローバルドメインとそれぞれのドメイン間の変換を行うドメイン変換関数、複数の要素ドメインから複合ドメインを生成する複合ドメイン変換関数、複合ドメインから1つの要素ドメインを生成する要素ドメイン変換関数を情報資源辞書7aにて管理し、変換関数ライブラリ9に組み込んでいる。
In addition, as a function for converting each domain, a domain conversion function for converting between a global domain and each domain, a composite domain conversion function for generating a composite domain from a plurality of element domains, and generating one element domain from a composite domain The element domain conversion function to be performed is managed by the
更に、上記ドメイン情報を管理するため、情報資源辞書7aに、ローカルドメインとデータ項目を管理するための、例えば図4に示すデータベースに対しては図5に示すようなデータ項目管理テーブル、ドメイングループとドメインとグローバルドメインを管理する図6(a)に示すようなドメイングループ管理テーブル、ドメイン間の変換関数を管理する図6(b)に示すようなドメイン変換管理テーブル、複合ドメインと要素ドメインと要素ドメインへの変換関数を管理する図6(c)に示すような複合ドメイン管理テーブル、複合ドメインへの変換関数を管理する図6(d)に示すような複合ドメイン変換管理テーブル、ユーザとそのユーザドメインを管理する図6(e)に示すようなユーザドメイン管理テーブルを持ち、それぞれの情報を管理、蓄積する。更に、情報資源辞書7a内の上記のテーブルにドレイン情報を予め設定し、変換関数ライブラリ9には必要な変換関数を登録している。
Further, in order to manage the domain information, the
次に、図2および図3に示すフローチャートを参照して、問い合わせ変換部5および検索結果統合部13の作用についてそれぞれ説明する。
Next, the operations of the
まず、図2に示すフローチャートを参照して、問い合わせ変換部5の作用について説明する。問い合わせ変換部5がアプリケーションプログラム3から検索要求を受け取り、それぞれの検索項目毎に分割して処理を行う(ステップS11)。まず、検索項目に対して、「検索項目対応データ項目推定」機能にて、各項目が対応するデータ項目とローカルデータベース上での所在を明らかにするとともに(ステップS13)、「推定データ項目ドメイングループ検索」機能にて、推定されたデータ項目のドメイン、ドメイングループをデータ項目管理テーブルと、ドメイングループ管理テーブルより明らかにする(ステップS15)。続いて、そのドメイングループが複合ドメインであるか否かを複合ドメイン管理テーブルにより調べる(ステップS17)。このとき複合ドメインであった場合、「要素ドメイン検索」機能にて、その要素ドメインを複合ドメイン管理テーブルより列挙する(ステップS19)。それぞれの要素ドメインに対応するデータ項目を「要素ドメイン対応データ項目推定」機能にて、ローカルデータベース上での所在を明らかにする(ステップS21)。
First, the operation of the
これまで扱っていた検索項目が検索条件として指定された項目であるか否かをチェックし(ステップS23)、そうであった場合、検索条件値として指定されたデータ値を、「検索条件値要素ドメイン分解」機能を用いて、複合ドメインで表現されていた値を要素ドメインへと変換する(ステップS25)。更に「検索条件値ローカルドメイン変換」機能を用いて、検索条件値として指定されたデータを、ローカルドメインへ変換する(ステップS27)。 It is checked whether or not the search item handled so far is the item specified as the search condition (step S23). If so, the data value specified as the search condition value is replaced with the "search condition value element". Using the "domain decomposition" function, the value expressed in the composite domain is converted into the element domain (step S25). Further, the data specified as the search condition value is converted into the local domain by using the "search condition value local domain conversion" function (step S27).
検索項目が複合ドメインに対応していない場合は(ステップS17のNO)、「ドメイングループ対応データ項目推定」機能を実施し(ステップS29)、検索条件として指定された検索項目であるか否かをチェックし(ステップS31)、そうである場合は「検索条件値ローカルドメイン変換」機能を用いて、検索要求を作成する(ステップS33)。 If the search item does not correspond to the composite domain (NO in step S17), a "domain group corresponding data item estimation" function is performed (step S29), and it is determined whether or not the search item is specified as a search condition. Check (step S31), and if so, create a search request using the "search condition value local domain conversion" function (step S33).
この結果得られた検索項目、検索条件を組み合わせて、検索対象となるデータベースに適合した検索要求文を生成する。 組 み 合 わ せ By combining the search items and search conditions obtained as a result, a search request sentence suitable for the database to be searched is generated.
この生成された検索要求文をデータベース通信制御部からネットワーク23を介して、検索対象の各データベース21へ送信し、各データベース21でそれぞれ検索を行い、検索結果を再びデータベース通信制御部11で受け取る。データベース通信制御部11は、アプリケーションプログラム3から受け取った検索要求と検索結果を検索結果統合部13へ渡す。
The generated search request sentence is transmitted from the database communication control unit to each
次に、図3に示すフローチャートを参照して、検索結果統合部13の作用について説明する。上述したように得られた検索結果を「ローカルドメイン→グローバルドメイン変換」機能を用いて、ローカルドメインで表現された値をグローバルドメインへと変換する(ステップS51)。検索結果のデータのうち、複合ドメインから生成された検索項目に対応するものについては、「複合ドメイン変換」機能を用いて、複数の検索結果項目から1つの検索結果項目へ変換を行う(ステップS53,S55)。ユーザドメインが設定されているドメイングループの場合には、「ユーザドメイン変換」機能にて、グローバルドメインからユーザドメインへ変換する(ステップS57,S59)。
Next, the operation of the search
複合ドメインから生成されたものでない検索結果についても同様に、ユーザドメインが設定されているドメイングループの場合には、「ユーザドメイン変換」機能にて、ユーザドメインへ変換する(ステップS61,S63)。最後に、この変換された検索結果をアプリケーションプログラムへ返却する。 Similarly, in the case of a search result that is not generated from the composite domain, in the case of a domain group in which a user domain is set, the search result is converted into a user domain by the “user domain conversion” function (steps S61 and S63). Finally, the converted search result is returned to the application program.
次に、具体的例をあげて図1に示す複数データベース異種性解消検索装置の作用を更に詳細に説明する。この具体例において、検索対象となるデータベースと該データベースが管理するデータ項目およびデータを図4に示す。この例では、食物の売上を管理している食物DBと衣類の売上を管理している衣類DBの2つを検索対象データベースとする。 Next, the operation of the multiple-database heterogeneity resolving and searching apparatus shown in FIG. 1 will be described in further detail with a specific example. In this specific example, FIG. 4 shows a database to be searched and data items and data managed by the database. In this example, two databases, a food DB that manages food sales and a clothing DB that manages clothing sales, are set as search target databases.
また、図5および図6に示すように、情報資源辞書7aにデータベース情報、ドメイン情報を情報資源辞書7aに予め登録する。更に、定義されているドメイン間の変換を行うドメイン変換関数の名称とその処理概要は次の通りである。
(5) As shown in FIGS. 5 and 6, database information and domain information are registered in the
・ドメイン変換関数:
・区切追加変換:YYYYMMDD形式の年月日を、区切り記号「/」を加え、MM/DD/YYYY形式に変換する
・区切削除変換:MM/DD/YYYY形式の年月日から、区切り記号をとり、YYYYMMDD形式に変換する
・平成西暦変換:2桁表示の平成年を4桁の西暦年に変換する
・西暦平成変換:4桁表示の西暦年を2桁表示の平成年に変換する
・複合ドメイン変換関数:
・年月日結合変換:西暦4桁表示、月2桁表示、日2桁表示を結合する
・要素ドメイン変換関数:
・年月日年抽出:YYYYMMDD形式の年月日から、年であるYYYYを取り出す
・年月日月抽出:YYYYMMDD形式の年月日から、月であるMMを取り出す
・年月日日抽出:YYYYMMDD形式の年月日から、日であるDDを取り出す
以上のように設定された環境において検索を行う。まずユーザ1から「1998年1月1日に売れた商品の商品名と売上年月日がほしい」という検索要求がアプリケーション3に対して与えられたとする。アプリケーションでは、これを「select商品名,売上年月日where =“01/01/1998”」と記述し、問い合わせ変換部5に検索要求を引き渡す。なお、このとき、アプリケーションからの記述法は任意であり、例えば検索要求項目および検索条件をそれぞれ指定するだけであるようにしても良い。
・ Domain conversion function:
-Separation addition conversion: Converts YYYYMMDD format date to MM / DD / YYYY format by adding delimiter "/".-Separation deletion conversion: Converts delimiter from MM / DD / YYYY format date. To be converted to YYYYMMDD format ・ Heisei AD conversion: Convert two-digit year of Heisei to four-digit year ・ Heisei conversion: Convert four-digit year to 2-digit year of Heisei Domain conversion function:
-Year / month / day combination conversion: Combines 4-digit year display, 2-month month display, 2-day day display-Element domain conversion function:
・ Year / Year / Year Extraction: Extract YYYY which is a year from YYYYMMDD format ・ Year / Year / Month / Year Extraction: Extract MM which is month from YYYYMMDD format ・ Year / Year / Year Extraction: YYYYMMDD The DD which is the day is extracted from the date of the format. The search is performed in the environment set as described above. First, it is assumed that a search request for “product name and sales date of the product sold on January 1, 1998 is requested” from
問い合わせ変換部5の処理をそれぞれの項目毎にみると、検索項目である「商品名」に対しては、情報資源辞書7aから、「商品名」をデータとして持つデータベースの所在推定を行う。この結果、「商品名」は、「食物DB」と「衣類DB」に、それぞれ「商品名」というデータ項目として所在していることがわかる。続いて、この2つのデータ項目にドメインが設定されているかを情報資源辞書7aのデータ項目管理テーブルより検索する。この結果、ともにドメインは設定されていないことがわかる。
Looking at the processing of the
次に、検索条件としても指定されている検索項目である「売上年月日」に対しても情報資源辞書7aのデータ項目管理テーブルを用いて、「売上年月日」をデータとして持つデータベースの所在推定を行う。この結果、「売上年月日」は、「食物DB」に「売上年月日」というデータ項目で存在していることがわかる。
Next, for the "sales date", which is a search item also specified as a search condition, the data item management table of the
このデータ項目にドメイン設定がされているかを情報資源辞書7aのデータ項目管理テーブルより検索する。この結果、「YYYYMMDDドメイン」として設定されていることがわかる。この「YYYYMMDDドメイン」のドメイン情報を情報資源辞書7aのドメイングループ管理テーブルより検索する。この結果、ドメイングループは「年月日ドメイングループ」、グローバルドメインは「YYYYMMDDドメイン」であることがわかる。このドメイングループが複合ドメインとして登録されているかを情報資源辞書7aの複合ドメイン管理テーブルより検索する。これから「年月日ドメイングループ」は複合ドメインとして登録済みであることがわかる。
A search is made from the data item management table of the
次に、複合ドメインである「年月日ドメイングループ」の要素ドメイングループを情報資源辞書7aの複合ドメイン管理テーブルより検索する。要素ドメインが「年ドメイングループ」、「月ドメイングループ」、「日ドメイングループ」であることがわかる。それぞれのドメイングループに属しているドメインを情報資源辞書7aのドメイングループ管理テーブルより検索する。「年ドメイングループ」には[西暦年4桁表示、平成年2桁表示]が、月ドメイングループには[月2桁表示]が、日ドメイングループには[日2桁表示]がそれぞれ属していることがわかる。それぞれのドメインを設定している列を情報資源辞書7aのデータ項目管理テーブルより検索する。すると、「平成年2桁表示」、「月2桁表示」、「日2桁表示」の3つすべてに対応するデータ項目が「衣類DB」に属していることがわかる。
Next, an element domain group of the “year / month / day domain group” which is a composite domain is searched from the composite domain management table of the
検索条件値である、“01/01/1998”については、検索項目である「売上年月日」の検索対象データベースでの所在により変換される。すなわち、食物DBに対しては、「売上年月日」データ項目が対応し、「年月日ドメイン」はグローバルドメインなので、変換は行わないが、「衣類DB」に対しては、入力された「売上年月日」に対応するのは、「年」、「月」、「日」のデータ項目で、それぞれのドメインは「平成年2桁表示」、「月2桁表示」、「日2桁表示」であるので、検索条件値である“01/01/1998”は、ドメイン変換関数「区切削除変換」によりグローバルドメインである「19980101」に変換されたのち、要素ドメイン変換関数「年月日年抽出」、「年月日月抽出」、「年月日日抽出」により、要素ドメイン“1998”,“01”,“01”に分解する。更に「年」データ項目のローカルドメインは「平成2桁表示」であるので、ドメイン変換関数「西暦平成変換」によりグローバルドメインからローカルドメインである“H10”に変換する。 The search condition value “01/01/1998” is converted according to the location of the search item “sales date” in the search target database. That is, the “sales date” data item corresponds to the food DB, and the “date domain” is a global domain, so no conversion is performed, but the “clothing DB” is input. "Sales date" corresponds to the data items "Year", "Month", and "Day", and the respective domains are "Heisei 2 digits display", "Month 2 digits display", "Day 2" Digit display ”, the search condition value“ 01/01/1998 ”is converted to the global domain“ 19980101 ”by the domain conversion function“ delimited deletion conversion ”, and then the element domain conversion function“ year / month / year ” It is decomposed into element domains “1998”, “01”, and “01” by “date extraction”, “date extraction”, and “date extraction”. Furthermore, since the local domain of the "year" data item is "Heisei 2 digits display", the global domain is converted to "H10", which is the local domain, by the domain conversion function "History conversion".
最後に、それぞれの項目を組み合わせて検索文を作成する。食物DBに対しては、「select商品名、売上年月日from売上where 売上年月日=“19980101”」となる。また衣類DBに対しては「select商品名、年、月、日fromお買い上げwhere 年=“H10”and 月=“01”and 日=“01”」となる。 Finally, create a search sentence by combining each item. For the food DB, “select product name, sales date from sales where sales date =“ 19980101 ””. For the clothing DB, “select product name, year, month, day from purchase where year =“ H10 ”and month =“ 01 ”and day =“ 01 ””.
これをデータベース通信制御部11から、それぞれのデータベース21へ検索要求として送信する。それぞれデータベース21は対応する検索文を使用して、それぞれのデータベースを検索する。検索結果は、データベース通信制御部11から、検索結果統合部13へ送られる。
(4) This is transmitted from the database
検索結果統合部13では、食物DBの検索結果は、設定されているドメインがグローバルドメインであり、複合ドメイン関連の操作を行っていないが、「売上年月日」の属するドメイングループである「年月日ドメイングループ」のユーザドメインがグローバルドメインと異なるため、ドメイン変換関数「区切追加変換」で変換した後、出力する。
In the search
衣類DBには複合ドメインを用いた検索を行ったため、検索結果に対して、以下の処理を行う。まず、データベース出力結果のうち、「年」のデータ値を、ドメイン変換関数「平成西暦変換」を用いて、グローバルドメインである「西暦年4桁表示」に変換する。続いて、この変換されたデータと「月」、「日」のデータ値を、複合ドメイン変換関数「年月日結合」を用いて、複合ドメインである「年月日ドメイングループ」へ変換する。複合ドメインに変換された結果は、「食物DB」と同様にユーザドメインとは異なるので、ユーザドメインにドメイン変換された後、この結果を出力する。 (4) Since a search using the composite domain was performed on the clothing DB, the following processing is performed on the search result. First, in the database output result, the data value of “year” is converted into “4-digit year display”, which is a global domain, using a domain conversion function “Heisei Era conversion”. Subsequently, the converted data and the data values of “month” and “day” are converted into a “date / month / date domain group” that is a composite domain using a composite domain conversion function “date / month / date combination”. Since the result converted into the composite domain is different from the user domain as in the case of the “food DB”, the domain is converted into the user domain, and this result is output.
この結果、アプリケーション、ユーザへ返却される検索結果は、以下のようになる。
5 問い合わせ変換部
7 情報資源管理部
7a 情報資源辞書
9 変換関数ライブラリ
11 データベース通信制御部
13 検索結果統合部
21 データベース
5
Claims (4)
データ項目、データ表現形式、データ表現形式同士の関係および複数のデータ表現形式と1つのデータ表現形式間の関係を定義し、
データ表現形式間の変換関数、複数のデータ表現形式から1つのデータ表現形式への変換関数および1つのデータ表現形式から複数のデータ表現形式への変換関数を定義し、
前記定義された関係および変換関数を使用して、検索項目に対して同じ意味を有する複数のデータ項目を組み合わせたものを検索項目として取得し、この複数のデータ項目を組み合わせた検索項目によって複数のデータベースを検索すること
を特徴とする複数データベース異種性解消検索方法。 A data structure, a database management system, a multi-database heterogeneity resolving search method for resolving the heterogeneity of a plurality of databases differing even in at least a part of a data expression, and searching for data from the plurality of databases,
Define data items, data representation formats, relationships between data representation formats, and relationships between multiple data representation formats and one data representation format,
Define a conversion function between data representation formats, a conversion function from multiple data representation formats to one data representation format, and a conversion function from one data representation format to multiple data representation formats,
Using the defined relationship and the conversion function, a combination of a plurality of data items having the same meaning with respect to the search item is obtained as a search item, and a plurality of data items are obtained by combining the plurality of data items. A search method for resolving multiple database heterogeneity, characterized by searching a database.
データ項目、データ表現形式、データ表現形式同士の関係、および複数のデータ表現形式と1つのデータ表現形式間の関係を記憶管理し、
データ表現形式間の変換関数、複数のデータ表現形式から1つのデータ表現形式への変換関数、および1つのデータ表現形式から複数のデータ表現形式への変換関数を記憶管理し、
検索要求を受け付け、該検索要求の検索項目の検索対象データベースを検出するとともに、前記データ表現形式および表現形式間の関係情報および前記表現形式間の変換関数を用いて、検索要求のデータの表現形式を検索対象データベースで使用されているデータの表現形式に変換して、検索対象データベースで処理可能な検索要求文を作成し、
この作成された検索要求文を用いて、検索対象データベースを検索し、
この検索結果を検索要求に応じた構造に変換して出力すること
を特徴とする複数データベース異種性解消検索方法。 A data structure, a database management system, a multi-database heterogeneity resolving search method for resolving the heterogeneity of a plurality of databases differing in at least a part of a data expression, and searching for data from the plurality of databases,
Storing and managing data items, data expression formats, relationships between data expression formats, and relationships between a plurality of data expression formats and one data expression format;
Storing and managing a conversion function between data representation formats, a conversion function from a plurality of data representation formats to one data representation format, and a conversion function from one data representation format to a plurality of data representation formats;
A search request is received, a database to be searched for the search item of the search request is detected, and the data expression format of the search request is expressed using the data expression format and the relation information between the expression formats and the conversion function between the expression formats. Is converted to the representation format of the data used in the search target database, and a search request statement that can be processed in the search target database is created.
Using the created search request statement, search the search target database,
A search method for resolving disparities in multiple databases, wherein the search result is converted into a structure according to the search request and output.
データ項目、データ表現形式、データ表現形式同士の関係、および複数のデータ表現形式と1つのデータ表現形式間の関係を記憶管理するデータ記憶管理手段と、
データ表現形式間の変換関数、複数のデータ表現形式から1つのデータ表現形式への変換関数、および1つのデータ表現形式から複数のデータ表現形式への変換関数を記憶管理する変換関数記憶管理手段と、
検索要求を受け付け、該検索要求の検索項目の検索対象データベースを検出するとともに、前記データ記憶管理手段に記憶されているデータ表現形式および表現形式間の関係情報および前記変換関数記憶管理手段に記憶されている表現形式間の変換関数を用いて、検索要求のデータの表現形式を検索対象データベースで使用されているデータの表現形式に変換して、検索対象データベースで処理可能な検索要求文を作成する検索要求文作成手段と、
該検索要求文作成手段で作成された検索要求文を用いて、検索対象データベースを検索する検索手段と、
前記データ記憶管理手段および前記変換関数記憶管理手段を使用して、前記検索手段の検索結果を前記検索要求に応じた構造に変換して出力する変換出力手段と
を有することを特徴とする複数データベース異種性解消検索装置。 A data structure, a database management system, a multi-database heterogeneity resolving search device for resolving the heterogeneity of a plurality of databases differing in at least a part of a data expression, and searching for data from the plurality of databases,
Data storage management means for storing and managing data items, data expression formats, relationships between data expression formats, and relationships between a plurality of data expression formats and one data expression format;
Conversion function storage management means for storing and managing a conversion function between data representation formats, a conversion function from a plurality of data representation formats to one data representation format, and a conversion function from one data representation format to a plurality of data representation formats ,
A search request is received, a database to be searched for the search item of the search request is detected, and data expression formats and relation information between the expression formats stored in the data storage management unit and stored in the conversion function storage management unit. Creates a search request sentence that can be processed by the search target database by converting the data format of the search request to the data use format of the search target database using the conversion function between the expression formats Means for creating a search request sentence,
A search unit for searching a search target database using the search request sentence created by the search request sentence creation unit;
A conversion output unit that converts the search result of the search unit into a structure corresponding to the search request using the data storage management unit and the conversion function storage management unit, and outputs the converted structure. Heterogeneity resolution search device.
データ項目、データ表現形式、データ表現形式同士の関係および複数のデータ表現形式と1つのデータ表現形式間の関係を定義し、
データ表現形式間の変換関数、複数のデータ表現形式から1つのデータ表現形式への変換関数および1つのデータ表現形式から複数のデータ表現形式への変換関数を定義し、
前記定義された関係および変換関数を使用して、検索項目に対して同じ意味を有する複数のデータ項目を組み合わせたものを検索項目として取得し、この複数のデータ項目を組み合わせた検索項目によって複数のデータベースを検索することを特徴とする複数データベース異種性解消検索プログラムを記録した記録媒体。 A recording medium that records a data structure, a database management system, and a multiple database heterogeneity resolving search program for resolving the heterogeneity of a plurality of databases differing in at least a part of a data expression and searching for data from the plurality of databases. hand,
Define data items, data representation formats, relationships between data representation formats, and relationships between multiple data representation formats and one data representation format,
Define a conversion function between data representation formats, a conversion function from multiple data representation formats to one data representation format, and a conversion function from one data representation format to multiple data representation formats,
Using the defined relationship and the conversion function, a combination of a plurality of data items having the same meaning with respect to the search item is obtained as a search item, and a plurality of data items are obtained by combining the plurality of data items. A recording medium storing a search program for resolving multiple database heterogeneity, characterized by searching a database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003271200A JP3929944B2 (en) | 2003-07-04 | 2003-07-04 | Multiple database heterogeneity elimination search method and apparatus, and recording medium recording multiple database heterogeneity elimination search program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003271200A JP3929944B2 (en) | 2003-07-04 | 2003-07-04 | Multiple database heterogeneity elimination search method and apparatus, and recording medium recording multiple database heterogeneity elimination search program |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10033240A Division JPH11232154A (en) | 1998-02-16 | 1998-02-16 | Retrieval method and device for resolving heter-ogeneousness of plural data bases, and recording medium having recorded multi-data base heterogeneousness resolving retrieval program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004013906A true JP2004013906A (en) | 2004-01-15 |
JP3929944B2 JP3929944B2 (en) | 2007-06-13 |
Family
ID=30438584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003271200A Expired - Lifetime JP3929944B2 (en) | 2003-07-04 | 2003-07-04 | Multiple database heterogeneity elimination search method and apparatus, and recording medium recording multiple database heterogeneity elimination search program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3929944B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2022018435A (en) * | 2020-07-15 | 2022-01-27 | 株式会社日立製作所 | Data management apparatus and data management method |
-
2003
- 2003-07-04 JP JP2003271200A patent/JP3929944B2/en not_active Expired - Lifetime
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2022018435A (en) * | 2020-07-15 | 2022-01-27 | 株式会社日立製作所 | Data management apparatus and data management method |
JP7458259B2 (en) | 2020-07-15 | 2024-03-29 | 株式会社日立製作所 | Data management device and data management method |
Also Published As
Publication number | Publication date |
---|---|
JP3929944B2 (en) | 2007-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8886617B2 (en) | Query-based searching using a virtual table | |
US7152074B2 (en) | Extensible framework supporting deposit of heterogenous data sources into a target data repository | |
US9436779B2 (en) | Techniques of efficient XML query using combination of XML table index and path/value index | |
US8756495B2 (en) | Computer-implemented system and method for tagged and rectangular data processing | |
US7844623B2 (en) | Method to provide management of query output | |
EP1639503A1 (en) | A data processing method and system | |
US9081767B2 (en) | Browsing of contextual information | |
US11100098B2 (en) | Systems and methods for providing multilingual support for data used with a business intelligence server | |
CN109299219A (en) | Data query method, apparatus, electronic equipment and computer readable storage medium | |
JP4855080B2 (en) | Schema integration support apparatus, schema integration support method of schema integration support apparatus, and schema integration support program | |
US11645299B2 (en) | Data management device and data management method | |
KR20160117965A (en) | Method and apparatus for generating NoSQL model | |
US20110302220A1 (en) | Sql processing for data conversion | |
JP3671765B2 (en) | Heterogeneous information source query conversion method and apparatus, and storage medium storing heterogeneous information source query conversion program | |
JPH11232154A (en) | Retrieval method and device for resolving heter-ogeneousness of plural data bases, and recording medium having recorded multi-data base heterogeneousness resolving retrieval program | |
JP3786233B2 (en) | Information search method and information search system | |
JPH09212517A (en) | Method and device for information substitutional retrieval | |
JPH11250073A (en) | Method and device for retrieving semantic hierarchy of plural databases and medium for storing program therefor | |
JP2004013906A (en) | Multiple database heterogeneity elimination searching method and device, and recording medium recorded with multiple database heterogeneity elimination searching program | |
Bing et al. | Using aligned ontology model to convert cultural heritage resources into semantic web | |
Hentschel et al. | Just-in-time data integration in action | |
EP3764243A1 (en) | An industrial information identification and retrieval system | |
JP2002063165A (en) | Method and system and program for information retrieval, and recording medium having the same program recorded thereon | |
JP2020091630A (en) | Document creation assisting system | |
US20210141773A1 (en) | Configurable Hyper-Referenced Associative Object Schema |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20041129 |
|
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: 20070220 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070307 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110316 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110316 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120316 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130316 Year of fee payment: 6 |
|
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 |