JP2011141687A - Ldap directory data conversion program and device - Google Patents

Ldap directory data conversion program and device Download PDF

Info

Publication number
JP2011141687A
JP2011141687A JP2010001488A JP2010001488A JP2011141687A JP 2011141687 A JP2011141687 A JP 2011141687A JP 2010001488 A JP2010001488 A JP 2010001488A JP 2010001488 A JP2010001488 A JP 2010001488A JP 2011141687 A JP2011141687 A JP 2011141687A
Authority
JP
Japan
Prior art keywords
csv
file
data
item
value
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.)
Withdrawn
Application number
JP2010001488A
Other languages
Japanese (ja)
Inventor
Hiroki Mukoyama
弘樹 向山
Kazuya Hashimoto
和也 橋本
Daisuke Imamura
大輔 今村
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.)
Toshiba Corp
Toshiba Digital Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Solutions 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 Toshiba Corp, Toshiba Solutions Corp filed Critical Toshiba Corp
Priority to JP2010001488A priority Critical patent/JP2011141687A/en
Publication of JP2011141687A publication Critical patent/JP2011141687A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To reduce the labor of an operator when converting a plurality of CSV files having a hierarchical structure or a reference relation into data in an LDIF format. <P>SOLUTION: In an LDAP(Lightweight Directory Access Protocol) directory data conversion device 30, an input part 33 obtains each CSV file from a relational database device 10, and a data conversion part 35 converts an organization CSV file having hierarchical composition among CSV files transmitted from a control part 34 into first data in an LDIF format in which organization names are arranged in the order of organization ID based on host organization ID according to hierarchical composition definition information, and converts a user CSV file having a reference relation into second data in an LDIF format in which user names are arranged for each user ID according to reference relation definition information, and creates third data in an LDIF format by writing the second data after the first data, and an output part 36 outputs the third data to an LDAP directory device 20 as one LDIF file. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、リレーショナルデータベースに格納されたテーブル形式のデータをLDAP(Lightweight Directory Access Protocol)のデータ交換形式であるLDIF(LDAP Data Interchange Format)形式のデータに変換するLDAPディレクトリデータ変換技術に関する。   The present invention relates to an LDAP directory data conversion technique for converting data in a table format stored in a relational database into data in an LDAP Data Interchange Format (LDIF) format, which is an LDAP (Lightweight Directory Access Protocol) data exchange format.

現在、一般的に利用されるデータベースとして、リレーショナルデータベース及びLDAP(Lightweight Directory Access Protocol)ディレクトリがある。リレーショナルデータベースでは、全てのデータを行と列からなる二次元のテーブル形式で格納する。また、LDAPディレクトリでは、リレーショナルデータベースとは異なり、DIT(Directory Information Tree)と呼ばれるツリー形式でデータを格納する。   Currently, there are relational databases and LDAP (Lightweight Directory Access Protocol) directories as commonly used databases. In a relational database, all data is stored in a two-dimensional table format consisting of rows and columns. Also, unlike the relational database, the LDAP directory stores data in a tree format called DIT (Directory Information Tree).

他にリレーショナルデータベースとLDAPディレクトリとは、データ構造やアクセス方法についての標準化の有無の点で相違する。リレーショナルデータベースでは、データ構造やアクセス方法がデータベースの設計者に独自に決められるために標準化されておらず、データ構造やアクセス方法の仕様を知らない者が基本的に利用できない。これに対し、LDAPディレクトリでは、データ構造やアクセス方法がX.500やLDAPの仕様で標準化されているため、この仕様に準じていれば容易に利用可能である。   In addition, the relational database and the LDAP directory differ in the presence or absence of standardization of the data structure and access method. Relational databases are not standardized because the data structure and access method are uniquely determined by the database designer, and basically cannot be used by those who do not know the specifications of the data structure and access method. On the other hand, in the LDAP directory, since the data structure and the access method are standardized in the specifications of X.500 and LDAP, they can be easily used if they comply with this specification.

その他、リレーショナルデータベースは、トランザクション制御が定義されており、大量のデータの更新処理に向いている利点がある。これに対し、LDAPディレクトリでは明確にトランザクション制御が定義されていないため、大量のデータの更新処理には不向きであるが、大量のデータの検索性能には優れている利点がある。   In addition, the relational database has transaction control defined, and has an advantage suitable for a large amount of data update processing. On the other hand, since the transaction control is not clearly defined in the LDAP directory, it is unsuitable for updating a large amount of data, but has an advantage of excellent search performance for a large amount of data.

これらの相違から、リレーショナルデータベースとLDAPディレクトリはデータの持つ性質や用途に応じて、適材適所で使い分けられている。特にLDAPディレクトリは、アクセス方法が標準化され、検索性能に優れている点、また、企業の組織階層を表現するのに適したツリー形式でデータを格納していることから、認証サーバや企業内の統合ID管理サーバとして利用される場合が増加している。例えば、企業内システムに対する認証サーバの導入やIDの統合などを契機に、リレーショナルデータベースからLDAPディレクトリに移行するケースが増えている。   Because of these differences, the relational database and the LDAP directory are properly used in the right place according to the nature and use of the data. In particular, the LDAP directory has a standardized access method and excellent search performance, and stores data in a tree format suitable for representing the organizational hierarchy of a company. The number of cases used as an integrated ID management server is increasing. For example, there is an increasing number of cases where a relational database is transferred to an LDAP directory with the introduction of an authentication server for an in-house system or integration of IDs.

このような移行の際には、リレーショナルデータベースに格納されたテーブル形式のデータをLDAPディレクトリのツリー形式のデータに変換する必要がある。このようなデータ変換は、以下の手順(1)〜(4)で実行される(例えば、非特許文献1参照。)。   In such migration, it is necessary to convert table format data stored in a relational database into tree format data in the LDAP directory. Such data conversion is executed by the following procedures (1) to (4) (for example, see Non-Patent Document 1).

(1)テーブル毎にCSVファイルを作成する。
(2)CSVファイル毎にスキーママッピング定義ファイルを作成する。スキーママッピング定義ファイルは、CSVファイルからLDIFファイルを生成するための生成規則が定義されたファイルである。
(3)スキーママッピング定義ファイルに記述された生成規則に従って、CSVファイルをLDIFファイルに変換する。
(4)LDIFファイルをLDAPディレクトリにインポートする。
(1) Create a CSV file for each table.
(2) Create a schema mapping definition file for each CSV file. The schema mapping definition file is a file in which a generation rule for generating an LDIF file from a CSV file is defined.
(3) Convert the CSV file into an LDIF file according to the generation rule described in the schema mapping definition file.
(4) Import the LDIF file into the LDAP directory.

すなわち、図14に示すように、変換ツール1は、リレーショナルデータベース装置10内のテーブル毎に作成された個々のCSVファイル2,2,…,2をスキーママッピング定義ファイル3,3,…,3に従って個々のLDIFファイル4,4,…,4へ一対一に変換し、各LDIFファイル4,4,…,4をその順序関係を考慮してLDAPディレクトリ装置20にインポートする。 That is, as shown in FIG. 14, the conversion tool 1 converts the individual CSV files 2 1 , 2 2 ,..., 2 n created for each table in the relational database device 10 into schema mapping definition files 3 1 , 3 2. , ..., each LDIF file 4 1 in accordance with 3 n, 4 2, ..., is converted into one-to-one to 4 n, each LDIF file 4 1, 4 2, ..., LDAP directory in consideration of the order relation of 4 n Import to device 20.

株式会社日立製作所 LDAP Toolkit(LDAP Toolkit のCSV コンバータの使用例)、URL: http://www.hitachi.co.jp/Prod/comp/soft1/sjs/product/lineup/pdf/ldap_use.pdfHitachi, Ltd. LDAP Toolkit (Example of using LDAP Toolkit CSV converter), URL: http://www.hitachi.co.jp/Prod/comp/soft1/sjs/product/lineup/pdf/ldap_use.pdf

しかしながら以上のようなデータ変換方法では、階層構造を持つテーブルや、テーブル間で参照関係をもつような複数のデータからなる複数のCSVファイル2,2,…,2に対し、LDAPの階層構造やエントリ間の関係を考慮して、作業者がスキーママッピング定義ファイル3,3,…,3をそれぞれ作成する必要がある。このようなスキーママッピング定義ファイル3,3,…,3の作成は、作業者の負担が大きいので、負担が軽減されることが望ましい。 However, in the data conversion method as described above, for the plurality of CSV files 2 1 , 2 2 ,..., 2 n having a hierarchical structure and a plurality of data having a reference relationship between the tables, the LDAP conversion method is used. taking into account the relationship between hierarchy and entry, the schema mapping definition worker file 3 1, 3 2, ..., it is necessary to create each 3 n. Since the creation of such schema mapping definition files 3 1 , 3 2 ,..., 3 n places a heavy burden on the operator, it is desirable to reduce the burden.

本発明は上記実情を考慮してなされたもので、階層構造や参照関係をもつ複数のCSVファイルをLDIF形式のデータに変換する場合に、作業者の負担を軽減し得るLDAPディレクトリデータ変換プログラム及び装置を提供することを目的とする。   The present invention has been made in consideration of the above circumstances, and an LDAP directory data conversion program capable of reducing the burden on an operator when converting a plurality of CSV files having a hierarchical structure or a reference relationship into LDIF format data, and An object is to provide an apparatus.

本発明の一つの局面(aspect)においては、集合IDを値にもつ集合ID項目毎に集合名を値にもつ集合名項目及び上位集合IDを値にもつ上位集合ID項目を関連付けたテーブル形式の集合情報と、要素IDを値にもつ要素ID項目毎に要素名を値にもつ要素名項目及び割当て集合IDを値にもつ割当て集合ID項目を関連付けたテーブル形式の要素情報とを格納し、前記集合情報をCSV形式に変換した集合CSVファイルと、前記要素情報をCSV形式に変換した要素CSVファイルとからなる各CSVファイルを出力可能なリレーショナルデータベース装置と、LDIFファイルを受けると、前記LDIFファイルをインポートするLDAPディレクトリ装置と、にそれぞれ通信可能であり、記憶手段を備えたLDAPディレクトリデータ変換装置に用いられるLDAPディレクトリデータ変換プログラムであって、前記LDAPディレクトリデータ変換装置を、前記集合CSVファイルのファイル名毎に、集合ID項目を値にもつ階層項目と、上位集合ID項目を値にもつ上位階層定義項目とを関連付けた階層構成定義情報を前記記憶手段に書込む手段、前記各CSVファイルのファイル名毎に、参照先のCSVファイル名又は該当無し値をもつ参照先CSV名と、参照元の割当て集合ID項目又は該当無し値をもつ参照元項目と、参照先の集合ID項目又は該当無し値をもつ参照先項目とを関連付けた参照関係定義情報を前記記憶手段に書込む手段、前記各CSVファイルを前記リレーショナルデータベース装置から取得する取得手段、前記取得した各CSVファイルのうち、未変換のCSVファイルを個別に送出する未変換ファイル送出手段、前記送出されたCSVファイルが階層構成をもつ集合CSVファイルのとき、この集合CSVファイルを、前記階層構成定義情報に基づいて、前記上位集合IDに基づく集合ID順に集合名を配置したLDIF形式の第1データに変換する第1データ変換手段、前記送出されたCSVファイルが参照関係をもつ要素CSVファイルのとき、この要素CSVファイルを、前記参照関係定義情報に基づいて、前記要素ID毎に要素名を配置したLDIF形式の第2データに変換する第2データ変換手段、前記第1データの後に続けるように前記第2データを書き込んでLDIF形式の第3データを作成するLDIFデータ作成手段、前記作成が完了した第3データを送出する作成完了データ送出手段、前記送出された第3データを1つのLDIFファイルとして前記LDAPディレクトリ装置に出力するための出力手段、として機能させるためのLDAPディレクトリデータ変換プログラムである。   In one aspect of the present invention, a table format in which a set name item having a set name as a value and a higher set ID item having a higher set ID as a value is associated with each set ID item having a set ID as a value. Storing the set information, the element name item having the element name as the value for each element ID item having the element ID as a value, and the element information in a table format in which the allocation set ID item having the allocation set ID as a value is associated with each other, When receiving a LDIF file, a relational database device capable of outputting each CSV file composed of a set CSV file obtained by converting set information into CSV format, and an element CSV file obtained by converting the element information into CSV format. The LDAP directory device is capable of communicating with each LDAP directory device to be imported and has storage means. An LDAP directory data conversion program for use in a data conversion device, wherein the LDAP directory data conversion device includes a hierarchical item having a set ID item as a value and an upper set ID item as a value for each file name of the set CSV file. Means for writing the hierarchical structure definition information associated with the upper hierarchy definition items held in the storage means, and for each file name of each CSV file, a reference destination CSV file name or a reference destination CSV name having a non-applicable value; Means for writing reference relationship definition information associating a reference source item having a reference source assigned set ID item or an irrelevant value and a reference destination item having a reference destination set ID item or an irrelevant value into the storage unit , An acquisition means for acquiring each CSV file from the relational database device; That is, an unconverted file sending means for individually sending unconverted CSV files, and when the sent CSV file is a set CSV file having a hierarchical structure, the set CSV file is determined based on the hierarchical structure definition information. First data conversion means for converting to LDIF format first data in which set names are arranged in the set ID order based on the higher set ID, and when the sent CSV file is an element CSV file having a reference relationship, this element CSV file Based on the reference relationship definition information, second data conversion means for converting to LDIF format second data in which element names are arranged for each element ID, and the second data to be continued after the first data LDIF data creation means for writing and creating third data in LDIF format, and sending the third data that has been created An LDAP directory data conversion program for functioning as creation completion data sending means and output means for outputting the sent third data as one LDIF file to the LDAP directory apparatus.

なお、本発明の一つの局面は、プログラムとして表現したが、これに限らず、装置、方法、又はプログラムを記憶したコンピュータ読取り可能な記憶媒体、として表現してもよい。   Although one aspect of the present invention is expressed as a program, the present invention is not limited thereto, and may be expressed as a computer-readable storage medium storing an apparatus, a method, or a program.

(作用)
本発明の一つの局面においては、階層構造や参照関係をもつ複数のCSVファイルをLDIF形式のデータに変換する場合に、階層構成定義情報及び参照関係定義情報に基づいて変換を行うので、従来のスキーママッピング定義ファイルを作成する手間を不要にでき、作業者の負担を軽減することができる。
(Function)
In one aspect of the present invention, when a plurality of CSV files having a hierarchical structure or a reference relationship are converted into LDIF format data, the conversion is performed based on the hierarchical configuration definition information and the reference relationship definition information. The trouble of creating the schema mapping definition file can be eliminated, and the burden on the operator can be reduced.

以上説明したように本発明によれば、階層構造や参照関係をもつ複数のCSVファイルをLDIF形式のデータに変換する場合に、作業者の負担を軽減できる。   As described above, according to the present invention, when a plurality of CSV files having a hierarchical structure or a reference relationship are converted into LDIF format data, the burden on the operator can be reduced.

本発明の一実施形態に係るLDAPディレクトリデータ変換装置を備えたLDAPディレクトリデータ変換システムの構成を示す模式図である。1 is a schematic diagram illustrating a configuration of an LDAP directory data conversion system including an LDAP directory data conversion apparatus according to an embodiment of the present invention. 同実施形態におけるテーブル格納部内の各データを説明するための模式図である。It is a schematic diagram for demonstrating each data in the table storage part in the embodiment. 同実施形態におけるデータ格納部内のLDAP階層構造データを説明するための模式図である。It is a schematic diagram for demonstrating the LDAP hierarchical structure data in the data storage part in the embodiment. 同実施形態におけるLDIFファイルを説明するための模式図である。It is a schematic diagram for demonstrating the LDIF file in the same embodiment. 同実施形態におけるルール定義部内の各データを説明するための模式図である。It is a schematic diagram for demonstrating each data in the rule definition part in the embodiment. 同実施形態におけるCSV処理管理部内のCSV処理管理情報を説明するための模式図である。It is a schematic diagram for demonstrating the CSV process management information in the CSV process management part in the embodiment. 同実施形態における動作を説明するためのフローチャートである。It is a flowchart for demonstrating the operation | movement in the embodiment. 同実施形態におけるステップS0の動作を説明するための模式図である。It is a schematic diagram for demonstrating operation | movement of step S0 in the same embodiment. 同実施形態におけるステップS6の動作を説明するための模式図である。It is a schematic diagram for demonstrating operation | movement of step S6 in the same embodiment. 同実施形態におけるLDIFファイルの作成動作を説明するための模式図である。It is a schematic diagram for demonstrating the creation operation of the LDIF file in the embodiment. 同実施形態におけるCSV処理管理情報の更新動作を説明するための模式図である。It is a schematic diagram for demonstrating the update operation | movement of CSV process management information in the embodiment. 同実施形態におけるステップS9の動作を説明するための模式図である。It is a schematic diagram for demonstrating operation | movement of step S9 in the same embodiment. 同実施形態の作用効果を説明するための模式図である。It is a schematic diagram for demonstrating the effect of the same embodiment. 従来のLDAPディレクトリデータ変換方法を示す模式図である。It is a schematic diagram which shows the conventional LDAP directory data conversion method.

以下、本発明の一実施形態について図面を用いて説明する。なお、以下のLDAPディレクトリデータ変換装置は、ハードウェア構成、又はハードウェア資源とソフトウェアとの組合せ構成のいずれでも実施可能となっている。組合せ構成のソフトウェアとしては、予めネットワーク又は記憶媒体からLDAPディレクトリデータ変換装置となるコンピュータにインストールされ、当該コンピュータにLDAPディレクトリデータ変換装置の機能を実現させるためのプログラムが用いられる。また、以下の実施形態では、階層構造を持つ「集合」の具体例として「組織」を用い、集合内の「要素」の具体例として「ユーザ」を用い、集合への要素の「割当て」の具体例として「所属」を用いているが、「集合」、「要素」及び「割当て」の具体例は、組織やユーザや所属に限定されず、任意のものが使用可能となっている。例えば「集合」の他の具体例として「分野」を用い、要素の具体例として「文書」を用い、「割当て」の具体例として「分類」を用いてもよい。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings. The following LDAP directory data conversion apparatus can be implemented with either a hardware configuration or a combined configuration of hardware resources and software. As the software of the combined configuration, a program that is installed in advance from a network or a storage medium into a computer that becomes an LDAP directory data conversion device and causes the computer to realize the function of the LDAP directory data conversion device is used. In the following embodiment, “organization” is used as a specific example of “set” having a hierarchical structure, “user” is used as a specific example of “element” in the set, and “assignment” of elements to the set is set. Although “affiliation” is used as a specific example, specific examples of “aggregation”, “element”, and “assignment” are not limited to organizations, users, and affiliations, and arbitrary ones can be used. For example, “field” may be used as another specific example of “set”, “document” may be used as a specific example of element, and “classification” may be used as a specific example of “assignment”.

(一実施形態)
図1は本発明の一実施形態に係るLDAPディレクトリデータ変換装置を備えたLDAPディレクトリデータ変換システムの構成を示す模式図であり、図2乃至図6は各データ等を説明するための模式図である。このLDAPディレクトリデータ変換システムは、リレーショナルデータベース装置10、LDAPディレクトリ装置20及びLDAPディレクトリデータ変換装置30を備えている。
(One embodiment)
FIG. 1 is a schematic diagram showing a configuration of an LDAP directory data conversion system provided with an LDAP directory data conversion apparatus according to an embodiment of the present invention, and FIGS. 2 to 6 are schematic diagrams for explaining each data and the like. is there. The LDAP directory data conversion system includes a relational database device 10, an LDAP directory device 20, and an LDAP directory data conversion device 30.

ここで、リレーショナルデータベース装置10は、テーブル格納部11及びCSV出力部12を備えている。   Here, the relational database device 10 includes a table storage unit 11 and a CSV output unit 12.

テーブル格納部11は、図2に示すように、ユーザテーブル定義11a、組織マスタテーブル定義11b、ユーザマスタデータ11c及び組織マスタデータ11dを記憶する記憶装置からなり、図示しない書込部によりユーザ操作に応じて各データ11a〜11dが書き込まれ、CSV出力部12から読出可能となっている。   As shown in FIG. 2, the table storage unit 11 includes a storage device that stores a user table definition 11a, an organization master table definition 11b, user master data 11c, and organization master data 11d. Accordingly, the data 11a to 11d are written and can be read from the CSV output unit 12.

ユーザテーブル定義11aは、ユーザマスタデータ11cのデータ項目(物理名)を定義したユーザ情報定義情報であり、行番号毎に、属性名、物理名、PK(プライマリーキーか否か)及びFK(外部キーか否か)のデータ項目が定義されている。属性名としては、ユーザID、ユーザ名、所属組織、メール及び電話番号が定義されている。物理名としては、USER_ID、USER_NAME、SYOZOKU、MAIL、TELが定義されている。プライマリーキーがUSER_ID、SYOZOKUがsosiki.csvに対する外部キーに定義されている。   The user table definition 11a is user information definition information that defines the data item (physical name) of the user master data 11c. For each row number, the attribute name, physical name, PK (whether or not it is a primary key), and FK (external) Data item is defined. As the attribute name, a user ID, a user name, a belonging organization, an email, and a telephone number are defined. USER_ID, USER_NAME, SYOZOKU, MAIL, and TEL are defined as physical names. The primary key is defined as USER_ID and SYOZOKU is defined as a foreign key for sosiki.csv.

組織マスタテーブル定義11bは、組織マスタデータ11cのデータ項目(物理名)を定義した組織情報定義情報であり、行番号毎に、属性名、物理名、PK(プライマリーキーか否か)及びFK(外部キーか否か)のデータ項目が定義されている。属性名としては、組織ID、組織名、電話番号及び上位組織が定義されている。物理名としては、ORG_ID、ORG_NAME、ORG_TEL、HIGH_ORG_IDが定義されている。プライマリーキーがORG_ID、HIGH_ORG_IDがsosiki.csv自身の外部キーに定義されている。HIGH_ORG_IDは再帰構造になっており、組織の階層構造を表現している。   The organization master table definition 11b is organization information definition information that defines data items (physical names) of the organization master data 11c. For each row number, the attribute name, physical name, PK (whether or not it is a primary key), and FK ( Data item is defined. As the attribute name, an organization ID, an organization name, a telephone number, and an upper organization are defined. ORG_ID, ORG_NAME, ORG_TEL, and HIGH_ORG_ID are defined as physical names. Primary key is defined as ORG_ID and HIGH_ORG_ID is defined as foreign key of sosiki.csv itself. HIGH_ORG_ID has a recursive structure and represents the hierarchical structure of the organization.

ユーザマスタデータ11cは、ユーザID(例、00001,00002,…)を値にもつユーザID項目としてのUSER_ID毎に、ユーザ名(例、田中一郎,佐藤二郎,…)を値にもつユーザ名項目としてのUSER_NAME、所属組織ID(例、A01,B01,…)を値にもつ所属組織ID項目としてのSYOZOKU、任意の付加的事項としてのMAIL(メール)及びTEL(電話番号)を関連付けたテーブル形式のユーザ情報(要素情報)であり、CSV出力部12によりCSV形式に変換したユーザCSVファイル(user.csv) 2として出力される。 The user master data 11c includes a user name item having a user name (eg, Ichiro Tanaka, Jiro Sato,...) As a value for each USER_ID as a user ID item having a user ID (eg, 00001, 00002,...) As a value. Table format that associates USER_NAME as, belonging organization ID item (eg, A01, B01, ...) as a belonging organization ID item, MAIL (mail) and TEL (telephone number) as optional additional items And is output as a user CSV file (user.csv) 2 1 converted into the CSV format by the CSV output unit 12.

組織マスタデータ11dは、組織ID(例、A01,B01,…)を値にもつ組織ID項目としてのORG_ID毎に、組織名(例、組織A01,組織B01,…)を値にもつ組織名項目としてのORG_NAME、任意の付加的事項としてのORG_TEL(組織電話番号)及び上位組織IDを値にもつ上位組織ID項目としてのHIGH_ORG_IDを関連付けたテーブル形式の組織情報(集合情報)であり、CSV出力部12によりCSV形式に変換した組織CSVファイル(sosiki.csv)2として出力される。 The organization master data 11d includes an organization name item having an organization name (eg, organization A01, organization B01,...) As a value for each ORG_ID as an organization ID item having an organization ID (eg, A01, B01,...) As a value. ORG_NAME as an optional information, ORG_TEL (organization telephone number) as an optional additional item, and organization information (aggregate information) in a table format in association with HIGH_ORG_ID as an upper organization ID item having a higher organization ID as a value, and a CSV output unit 12 by output as a tissue CSV file (sosiki.csv) 2 2 converted into CSV format.

CSV出力部12は、テーブル格納部11内のユーザマスタデータ11cをCSV形式に変換したユーザCSVファイル2と、テーブル格納部11内の組織マスタデータ11dをCSV形式に変換した組織CSVファイル2とからなる各CSVファイル2,2をLDAPディレクトリデータ変換装置30に出力する機能をもっている。ここで、出力される各CSVファイル(user.csv、sosiki.csv)2,2は、各マスタデータ11c,11dと一対一対応になっており、マスタデータ11c,11dの個数と同数のCSVファイル2,2が出力される。 CSV output unit 12, the table storage unit and the user CSV file 2 1 user master data 11c was converted into CSV format 11, tissue CSV file tissue master data 11d was converted to CSV format in the table storage unit 11 2 2 The CSV file 2 1 , 2 2 having the following functions is output to the LDAP directory data converter 30. Here, each output CSV file (user.csv, sosiki.csv) 2 1 , 2 2 has a one-to-one correspondence with each master data 11c, 11d, and the same number as the number of master data 11c, 11d. CSV files 2 1 and 2 2 are output.

LDAPディレクトリ装置20は、データ格納部21及びLDIF入力部22を備えている。   The LDAP directory device 20 includes a data storage unit 21 and an LDIF input unit 22.

データ格納部21は、図3に示すように、LDAP階層構造データを記憶する記憶装置からなり、LDIF入力部22からLDAP階層構造データが書き込まれ、図示しない読出部によりユーザ操作に応じてLDAP階層構造データが読出可能となっている。なお、LDAP階層構造データは、DIT(Directory Information Tree)と呼ばれるツリー形式のデータである。このため、階層構造をツリー構造と呼んでもよい。また、階層構造をディレクトリ構造と呼んでもよい。   As shown in FIG. 3, the data storage unit 21 is composed of a storage device that stores LDAP hierarchical structure data. The LDAP hierarchical structure data is written from the LDIF input unit 22, and the reading unit (not shown) performs the LDAP hierarchical structure according to a user operation. The structure data can be read out. Note that the LDAP hierarchical structure data is data in a tree format called DIT (Directory Information Tree). For this reason, the hierarchical structure may be called a tree structure. Further, the hierarchical structure may be called a directory structure.

LDIF入力部22は、LDAPディレクトリデータ変換装置30から出力されたLDIFファイル4を受けると、当該LDAPファイル4をインポートしてLDAP階層構造データに変換する機能と、当該LDAP階層構造データをデータ格納部21に書込む機能とをもっている。ここで、LDIFファイル4は、図4に示すように、階層順に組織データを配置してなるLDIF形式の第1データ4と、組織データに関連付けたユーザデータを配置してなるLDIF形式の第2データ4とを備えたLDIF形式の第3データ4から構成されている。なお、第3データ4は、第1データ4の後に続けるように第2データ4が書き込まれることにより、作成される。 When the LDIF input unit 22 receives the LDIF file 4 output from the LDAP directory data conversion device 30, the LDIF input unit 22 imports the LDAP file 4 and converts it into LDAP hierarchical structure data, and the LDAP hierarchical structure data is a data storage unit. 21 with the function to write. Here, LDIF file 4, as shown in FIG. 4, the first data 4 1 LDIF format formed by arranging the organizational data in hierarchical order, the LDIF format formed by arranging a user data associated with the organizational data first and a third data 4 3 LDIF format and a second data 4 2. The third data 4 3, since the second data 4 2 is written to continue after the first data 4 1 is created.

LDAPディレクトリデータ変換装置30は、ルール定義部31、CSV処理管理部32、入力部33、制御部34、データ変換部35及び出力部36を備えている。   The LDAP directory data conversion device 30 includes a rule definition unit 31, a CSV processing management unit 32, an input unit 33, a control unit 34, a data conversion unit 35, and an output unit 36.

ルール定義部31は、制御部34から読出/書込可能な記憶装置であり、CSV形式のデータをLDIF形式のデータに変換可能に定義したルール情報として、図5に示すように、オブジェクトクラスマッピング定義31a、属性マッピング定義31b、配置構成定義31c、エントリ関係定義31d、階層構成定義31eを記憶している。各定義31a〜31eは、予めユーザによる入力部33の操作に応じて制御部34によりルール定義部31に書き込まれる。   The rule definition unit 31 is a storage device that is readable / writable by the control unit 34, and as rule information that is defined so that CSV format data can be converted into LDIF format data, as shown in FIG. A definition 31a, an attribute mapping definition 31b, an arrangement configuration definition 31c, an entry relationship definition 31d, and a hierarchy configuration definition 31e are stored. Each definition 31a to 31e is written in the rule definition unit 31 by the control unit 34 in advance according to the operation of the input unit 33 by the user.

オブジェクトクラスマッピング定義31aは、CSVファイル名毎に、LDAP階層構造データのオブジェクトクラスが関連付けられている。図5に示す例では、CSVファイル名「user」がオブジェクトクラス「top, inetOrgPerson, xxxPerson」に関連付けられ、CSVファイル名「sosiki」が、オブジェクトクラス「top, organizationalUnit, xxxOrganization」に関連付けられている。ここでは、オブジェクトクラスの表現をオブジェクトクラスツリーのトップからカンマで区切って並べて表記しているが、別の表記であっても構わない。また、オブジェクトクラスの「xxxPerson」と「xxxOrganization」は独自に拡張したオブジェクトクラスを示し、それ以外のオブジェクトクラスはLDAP標準のオブジェクトクラスとなっている。   In the object class mapping definition 31a, an object class of LDAP hierarchical structure data is associated with each CSV file name. In the example illustrated in FIG. 5, the CSV file name “user” is associated with the object class “top, inetOrgPerson, xxxPerson”, and the CSV file name “sosiki” is associated with the object class “top, organizationalUnit, xxxOrganization”. Here, the representations of the object classes are described by separating them from the top of the object class tree with commas, but other representations may be used. The object classes “xxxPerson” and “xxxOrganization” indicate object classes that are uniquely extended, and other object classes are LDAP standard object classes.

属性マッピング定義31bは、CSVファイル名毎に、CSVファイル2,2内の物理名を値にもつCSVデータ(CSV属性項目)、LDIFファイル4内の物理名を値にもつLDIFデータ(LDIF属性項目)、PK項目(LDAPファイルのプライマリーキーであるか否か)が関連付けられている。LDIFファイル4内の物理名が「−(マイナス)」で表現されている部分は、CSVファイル2,2内の物理名からLDIFファイル4内の物理名への対応付けを行わないことを意味している。この例では、CSVファイル名「user」のCSVファイル2内の物理名「SYOZOKU」と、CSVファイル名「sosiki」のCSVファイル2内の物理名「HIGH_ORG_ID」とは、それぞれ関連するLDIFファイル4内の物理名が「−」となっており、LDIFファイル4内の物理名への対応付けを行わないが、これらの物理名「SYOZOKU」と「HIGH_ORG_ID」は、LDAP階層構造データ内の階層関係に表現されることになる。 The attribute mapping definition 31b includes, for each CSV file name, CSV data (CSV attribute item) having the physical names in the CSV files 2 1 and 2 2 as values, and LDIF data (LDIF data having the physical names in the LDIF file 4 as values). Attribute item) and PK item (whether or not it is the primary key of the LDAP file). The part in which the physical name in the LDIF file 4 is represented by “− (minus)” indicates that the physical name in the CSV files 2 1 and 2 2 is not associated with the physical name in the LDIF file 4. I mean. In this example, the CSV file name physical name of the CSV file 2 in 1 "user", "SYOZOKU", the physical name of the CSV file 2 in the second CSV file name "sosiki" and "HIGH_ORG_ID", respectively associated LDIF file The physical name in “4” is “−” and is not associated with the physical name in the LDIF file 4, but these physical names “SYOZOKU” and “HIGH_ORG_ID” are the hierarchies in the LDAP hierarchical structure data. It will be expressed in the relationship.

配置構成定義31cは、LDAP階層構造データを書き出す位置(以下、ツリーポイントともいう)を定義した情報である。この例では、ツリーポイントが「o=xxx.co.jp」であることが定義されている。   The arrangement configuration definition 31c is information defining a position (hereinafter also referred to as a tree point) at which LDAP hierarchical structure data is written. In this example, it is defined that the tree point is “o = xxx.co.jp”.

エントリ関係定義31dは、各CSVファイル2,2のファイル名毎に、参照先のCSVファイル名又は該当無し値をもつ参照先CSV名と、参照元の所属組織ID項目又は該当無し値をもつ参照元項目と、参照先の組織ID項目又は該当無し値をもつ参照先項目とが関連付けられた参照関係定義情報であり、LDIF形式への変換後のエントリ関係(参照関係)を定義するものである。この例では、CSVファイル2のファイル名「user」に、参照先のファイル名「sosiki」をもつ参照先CSV名と、参照元の所属組織ID項目「SYOZOKU」をもつ参照元項目と、参照先の組織ID項目「ORG_ID」をもつ参照先項目とが関連付けられている。また、CSVファイル2のファイル名「sosiki」に、該当無し値「−」をもつ参照先CSV名と、該当無し値「−」をもつ参照元項目と、該当無し値「−」をもつ参照先項目とが関連付けられている。この参照関係が、LDAP階層構造データにおける階層関係に変換される。具体的には、組織エントリの配下に、その組織に所属しているユーザのエントリが配備される。 The entry relation definition 31d includes, for each CSV file 2 1 , 2 2 , a reference destination CSV file name or a reference destination CSV name having a non-applicable value, a reference source belonging organization ID item or a non-applicable value. Reference relationship definition information in which a reference source item and a reference destination item having a non-applicable value are associated with each other, and define an entry relationship (reference relationship) after conversion to the LDIF format It is. In this example, CSV file 2 1 of the file name in the "user", a reference destination CSV name with the referenced file name "sosiki", and see the original item with a reference source of the organization ID item "SYOZOKU", reference The reference destination item having the previous organization ID item “ORG_ID” is associated. In addition, to a CSV file 2 2 of the file name "sosiki", applicable without value reference with - a reference destination CSV name with the corresponding no value "" - - and see the original item with the corresponding no value ",""," Associated with the previous item. This reference relationship is converted into a hierarchical relationship in the LDAP hierarchical structure data. Specifically, entries of users belonging to the organization are arranged under the organization entry.

階層構成定義31eは、組織CSVファイル2のファイル名(sosiki)毎に、組織ID項目としての組織ID項目(ORG_ID)を値にもつ階層項目と、上位組織ID項目としての上位階層ID項目(HIGH_ORG_ID)を値にもつ上位階層定義項目とが関連付けられた階層構成定義情報である。ここで、「階層項目」は、階層を表す対象となるデータ項目を指定しており、ここでは組織ID項目であるORG_IDを定義している。「上位階層定義項目」は、上位階層を示すデータ項目を指定しており、ここでは上位組織ID項目であるHIGH_ORG_IDを指定している。 Hierarchy definition 31e, for each tissue CSV file 2 2 File name (Sosiki), a hierarchical item with organization ID fields as an organization ID item (ORG_ID) the value, the upper layer ID field as level organization ID field ( HIGH_ORG_ID) is hierarchical configuration definition information associated with a higher hierarchy definition item having a value. Here, the “hierarchy item” designates a data item that represents a hierarchy, and here, ORG_ID that is an organization ID item is defined. The “upper hierarchy definition item” designates a data item indicating the upper hierarchy, and here, HIGH_ORG_ID which is an upper organization ID item is designated.

以上のルール定義部31内の各定義31a〜31eは、それぞれ本実施形態で例示した表記とは異なる表記を用いてもよい。   Each of the definitions 31a to 31e in the rule definition unit 31 may use a notation different from the notation exemplified in the present embodiment.

CSV処理管理部32は、制御部34から読出/書込可能な記憶部であり、図6に示すように、リレーショナルデータベース装置10から取得された各CSVファイル2,2と、未処理状況値とを関連付けたCSV処理管理情報を記憶する機能をもっている。 The CSV process management unit 32 is a storage unit that is readable / writable from the control unit 34. As shown in FIG. 6, each CSV file 2 1 , 2 2 acquired from the relational database device 10 and the unprocessed status It has a function of storing CSV processing management information associated with a value.

入力部33は、各CSVファイル2,2をリレーショナルデータベース装置10から取得する機能と、当該取得した各CSVファイル2,2を制御部34に送出する機能とをもっている。 The input unit 33 has a function of acquiring the CSV files 2 1 and 2 2 from the relational database device 10 and a function of transmitting the acquired CSV files 2 1 and 2 2 to the control unit 34.

なお、各CSVファイル2,2をリレーショナルデータベース装置10から取得する機能は、例えば、各CSVファイル2,2の出力要求をリレーショナルデータベース装置10に送信する機能と、リレーショナルデータベース装置10から出力された複数のCSVファイル2,2の入力を受付ける機能とを含んでもよい。 Note that the functions of acquiring the CSV files 2 1 and 2 2 from the relational database device 10 include, for example, a function of transmitting an output request for each of the CSV files 2 1 and 2 2 to the relational database device 10 and from the relational database device 10. And a function of receiving input of a plurality of output CSV files 2 1 and 2 2 .

また、入力部33は、各CSVファイル2,2の入力を受付けたとき、当該各CSVファイル2,2内のCSV形式のデータのシンタックスチェックを行ってもよい。 Further, when the input unit 33 receives the input of the CSV files 2 1 and 2 2 , the input unit 33 may perform a syntax check of the CSV data in the CSV files 2 1 and 2 2 .

制御部34は、入力部33からの各CSVファイル2,2をCSV処理管理部32に書込み、CSV処理管理部32内の各CSVファイル2,2及びルール定義部31内の各定義31a〜31eをデータ変換部35に送出し、データ変換部35で変換されたデータを出力部36に送出し、また、データ変換の過程において、CSVファイルの処理状況をCSV処理管理部32に記録するものである。なお、制御部34は、入力部33から受けた各定義31a〜31eをルール定義部31に書き込むものでもある。 The control unit 34 writes each CSV file 2 1 , 2 2 from the input unit 33 to the CSV process management unit 32, and each CSV file 2 1 , 2 2 in the CSV process management unit 32 and each in the rule definition unit 31. The definitions 31a to 31e are sent to the data conversion unit 35, the data converted by the data conversion unit 35 are sent to the output unit 36, and the CSV file processing status is sent to the CSV processing management unit 32 in the process of data conversion. To record. The control unit 34 also writes the definitions 31 a to 31 e received from the input unit 33 in the rule definition unit 31.

このような制御部34は、例えば以下の各機能(f34-1)〜(f34-4)をもっている。
(f34-1) 入力部33により取得した各CSVファイル2,2と、未処理状況値とを関連付けたCSV処理管理情報をCSV処理管理部32に書込む機能。
Such a control unit 34 has, for example, the following functions (f34-1) to (f34-4).
(f34-1) A function of writing CSV process management information in which each CSV file 2 1 , 2 2 acquired by the input unit 33 is associated with an unprocessed status value into the CSV process management unit 32.

(f34-2) 入力部33により取得した各CSVファイル2,2のうち、未変換のCSVファイルを個別にデータ変換部35に送出する未変換ファイル送出機能。 (f34-2) An unconverted file transmission function for individually transmitting unconverted CSV files to the data conversion unit 35 among the CSV files 2 1 and 2 2 acquired by the input unit 33.

(f34-3) データ変換部35の各々の変換毎に、当該変換されたCSVファイル2,2に関連付けて、CSV処理管理情報の未処理状況値を処理済み状況値に更新する機能。 (f34-3) A function of updating the unprocessed status value of the CSV process management information to the processed status value in association with the converted CSV files 2 1 and 2 2 for each conversion of the data conversion unit 35.

(f34-4) データ変換部35による作成が完了した第3データ4を出力部36に送出する作成完了データ送出機能。 (f34-4) Created data sending function for sending a third data 4 3 created by the data converting unit 35 is completed to the output unit 36.

ここで、作成完了データ送出機能(f34-4)は、以下の機能(f34-4-1)〜(f34-4-2)を含んでいてもよい。   Here, the creation completion data transmission function (f34-4) may include the following functions (f34-4-1) to (f34-4-2).

(f34-4-1) CSV処理管理部32内のCSV処理管理情報を参照して、全てのCSVファイル2,2が処理済み状況値に関連付けられているか否かを判定する機能。 (f34-4-1) A function of referring to the CSV process management information in the CSV process management unit 32 and determining whether or not all the CSV files 2 1 and 2 2 are associated with the processed status values.

(f34-4-2) この判定の結果、CSV処理管理情報内の全てのCSVファイル2,2が処理済み状況値に関連付けられている場合に、第3データ4を出力部36に送出する機能。 (f34-4-2) the result of this determination, if all of the CSV files 2 1 in the CSV processing management information, 2 2 are associated with the processed status value, the output unit 36 the third data 4 3 Function to send out.

また、未変換ファイル送出機能(f34-2)は、判定する機能(f34-4-1)による判定の結果、否の場合に、CSV処理管理部32内のCSV処理管理情報を参照して、未処理状況値に関連したCSVファイルを個別にデータ変換部35に送出する機能、として実現してもよい。   The unconverted file transmission function (f34-2) refers to the CSV process management information in the CSV process management unit 32 when the result of the determination by the determination function (f34-4-1) is negative. It may be realized as a function of individually sending a CSV file related to the unprocessed status value to the data conversion unit 35.

データ変換部35は、制御部34から受けるCSVファイル2,2と、ルール定義部31内の定義31a〜31eに基づき、CSV形式のデータからLDIF形式へのデータへの変換を行うものである。 The data conversion unit 35 performs conversion from CSV format data to LDIF format data based on the CSV files 2 1 and 2 2 received from the control unit 34 and the definitions 31a to 31e in the rule definition unit 31. is there.

具体的にはデータ変換部35は、以下の各機能(f35-1)〜(f35-3)をもっている。   Specifically, the data converter 35 has the following functions (f35-1) to (f35-3).

(f35-1) 制御部34から送出されたCSVファイルが階層構造をもつ組織CSVファイルのとき、この組織CSVファイルを、階層構成定義31eに基づいて、上位組織IDに基づく組織ID順に組織名を配置したLDIF形式の第1データ4に変換する第1データ変換機能。 (f35-1) When the CSV file sent from the control unit 34 is an organization CSV file having a hierarchical structure, the organization CSV file is assigned organization names in order of organization ID based on the higher organization ID based on the hierarchical configuration definition 31e. first data conversion function for converting the first data 4 1 arrangement the LDIF format.

(f35-2) 制御部34から送出されたCSVファイルが参照関係をもつユーザCSVファイルのとき、このユーザCSVファイルを、エントリ関係定義31dに基づいて、ユーザID毎にユーザ名を配置したLDIF形式の第2データ4に変換する第2データ変換機能。 (f35-2) When the CSV file sent from the control unit 34 is a user CSV file having a reference relationship, the user CSV file is an LDIF format in which a user name is arranged for each user ID based on the entry relationship definition 31d. second data conversion function for converting second data 4 2.

(f35-3) 第1データ4の後に続けるように第2データ4を書き込んでLDIF形式の第3データ4を作成するLDIFデータ作成機能。 (f35-3) LDIF data creation function for creating a third data 4 3 LDIF format second data 4 2 writes the to continue after the first data 4 1.

ここで、第1データ変換機能(f35-1)は、以下の機能(f35-1-1)〜(f35-1-4)を含んでいてもよい。   Here, the first data conversion function (f35-1) may include the following functions (f35-1-1) to (f35-1-4).

(f35-1-1) 未変換ファイル送出機能(f34-2)により制御部34から送出されたCSVファイルに対し、ルール定義部31内のエントリ関係定義31dを参照して、当該CSVファイルのファイル名に関連した参照先CSV名が該当無し値をもつか否かを判定する参照先無し判定機能。   (f35-1-1) For the CSV file sent from the control unit 34 by the unconverted file sending function (f34-2), refer to the entry relation definition 31d in the rule definition unit 31, and the file of the CSV file A reference destination absence determination function for determining whether or not a reference destination CSV name related to a name has a non-applicable value.

(f35-1-2) 参照先無し判定機能(f35-1-1)による判定の結果、否の場合には、未変換ファイル送出機能(f34-2)により制御部34から送出されたCSVファイルに対し、CSV処理管理部32内のCSV処理管理情報及びルール定義部31内のエントリ関係定義31dを参照して、当該CSVファイルのファイル名に関連した参照先CSV名が示す参照先のCSVファイル名がCSV処理管理情報にて処理済み状況値に関連付けられているか否かを判定する参照先処理済み判定機能。   (f35-1-2) If the result of determination by the non-reference destination determination function (f35-1-1) is negative, the CSV file transmitted from the control unit 34 by the unconverted file transmission function (f34-2) On the other hand, referring to the CSV process management information in the CSV process management unit 32 and the entry relation definition 31d in the rule definition unit 31, the reference CSV file indicated by the reference CSV name related to the file name of the CSV file A reference destination processed determination function that determines whether a name is associated with a processed status value in CSV process management information.

(f35-1-3) 参照先無し判定機能(f35-1-1)による判定の結果、参照先CSV名が該当無し値をもつとき、又は参照先処理済み判定機能(f35-1-2)による判定の結果、参照先CSV名が示す参照先のCSVファイル名が処理済み状況値に関連付けられているとき、当該CSVファイルに対し、ルール定義部31内の階層構成定義31eの各値に一致する組織ID項目及び上位組織ID項目をもつか否かを判定し、この判定の結果、組織ID項目及び上位組織ID項目をもつCSVファイルを、階層構造をもつ組織CSVファイルとして選択する組織ファイル選択機能。   (f35-1-3) When the reference destination name has a non-applicable value as a result of determination by the reference destination absence determination function (f35-1-1), or the reference destination processed determination function (f35-1-2) When the reference CSV file name indicated by the reference CSV name is associated with the processed status value as a result of the determination by the above, the CSV file matches each value of the hierarchy configuration definition 31e in the rule definition unit 31 It is determined whether or not there is an organization ID item and an upper organization ID item to be selected, and as a result of this determination, an organization file selection for selecting a CSV file having an organization ID item and an upper organization ID item as an organization CSV file having a hierarchical structure function.

また、第2データ変換機能(f35-2)は、以下の機能(f35-2-1)を含んでいてもよい。   The second data conversion function (f35-2) may include the following function (f35-2-1).

(f35-2-1) 組織ファイル選択機能(f35-1-3)における判定の結果、組織ID項目及び上位組織ID項目をもたないCSVファイルに対し、ルール定義部31内のエントリ関係定義31dの参照元項目の値に一致する所属組織ID項目をもつか否かを判定し、この判定の結果、所属組織ID項目をもつCSVファイルを、参照関係をもつユーザCSVファイルとして選択するユーザファイル選択機能。   (f35-2-1) As a result of the determination in the organization file selection function (f35-1-3), the entry relationship definition 31d in the rule definition unit 31 is defined for the CSV file having no organization ID item and higher organization ID item. User file selection that determines whether or not there is a belonging organization ID item that matches the value of the reference source item, and, as a result of this determination, selects a CSV file having the belonging organization ID item as a user CSV file having a reference relationship function.

出力部36は、制御部34から受けたLDIF形式の第3データ4を1つのLDIFファイル4としてLDAPディレクトリ装置20に出力する機能をもっている。 The output unit 36 has a function of outputting to the LDAP directory device 20 a third data 4 3 LDIF format received from the control unit 34 as one LDIF file 4.

次に、以上のように構成されたLDAPディレクトリデータ変換システムの動作について図7のフローチャートを用いて説明する。   Next, the operation of the LDAP directory data conversion system configured as described above will be described with reference to the flowchart of FIG.

LDAPディレクトリデータ変換装置30は、例えばユーザの操作により、各CSVファイル2,2の出力要求をリレーショナルデータベース装置10に送信する。 The LDAP directory data conversion apparatus 30 transmits an output request for each of the CSV files 2 1 and 2 2 to the relational database apparatus 10 by, for example, a user operation.

リレーショナルデータベース装置10においては、この出力要求に基づき、CSV出力部12が、テーブル格納部11内のユーザマスタデータ11cをCSV形式に変換したユーザCSVファイル2と、テーブル格納部11内の組織マスタデータ11dをCSV形式に変換した組織CSVファイル2とからなる各CSVファイル2,2をLDAPディレクトリデータ変換装置30に出力する。 In a relational database system 10, based on the output request, CSV output unit 12, a user CSV file 2 1 obtained by converting the user master data 11c in the table storage unit 11 in the CSV format, tissue master in the table storage unit 11 and it outputs the CSV file 2 1 comprising a data 11d from the transformed tissue CSV file 2 2 which in CSV format, 2 2 to the LDAP directory data converter 30.

(ステップS0) LDAPディレクトリデータ変換装置30においては、入力部33が、各CSVファイル2,2を取得すると、当該取得した各CSVファイル2,2を制御部34に送出する。制御部34は、図8に示すように、各CSVファイル(user.csv,sosiki.csv)2,2と、未処理状況値(N,N)とを関連付けたCSV処理管理情報をCSV処理管理部32に書き込む。 (Step S 0) In the LDAP directory data conversion device 30, when the input unit 33 acquires the CSV files 2 1 and 2 2 , the input unit 33 sends the acquired CSV files 2 1 and 2 2 to the control unit 34. As shown in FIG. 8, the control unit 34 sets CSV process management information in which each CSV file (user.csv, sosiki.csv) 2 1 , 2 2 is associated with an unprocessed status value (N, N) as CSV. Write to the process management unit 32.

(ステップS1) 制御部34は、CSV処理管理部32内のCSV処理管理情報を参照して、全てのCSVファイル2,2の処理が終了したか否かを判断する。この判断は、全てのCSVファイル2,2が処理済み状況値(Y)に関連付けられている(=処理が終了した)か否かの判定により実行される。この判断の結果、処理が終了していない場合(=否の場合)はステップS2に移る。全てのCSVファイル2,2の処理が終了した場合はステップS11に移って、処理を終了する。ここでは、2つのCSVファイル(user.csv,sosiki.csv)2,2があるが、2つのCSVファイル2,2とも処理が終了していないため、ステップS2に移る。 (Step S1) The control unit 34 refers to the CSV process management information in the CSV process management unit 32, and determines whether or not the processes of all the CSV files 2 1 and 2 2 have been completed. This determination is performed by determining whether or not all the CSV files 2 1 and 2 2 are associated with the processed status value (Y) (= processing is completed). If the result of this determination is that processing has not ended (= no), the process moves to step S2. When the processes for all the CSV files 2 1 and 2 2 are completed, the process proceeds to step S11 and the process is terminated. Here, there are two CSV files (user.csv, sosiki.csv) 2 1 , 2 2 , but since the processing has not been completed for the two CSV files 2 1 , 2 2 , the process proceeds to step S 2.

(ステップS2) 制御部34は、入力部33により取得した各CSVファイル2,2のうち、未変換のCSVファイルを個別にデータ変換部35に送出する。具体的には制御部34は、CSV処理管理部32内のCSV処理管理情報を参照して、未処理状況値に関連したCSVファイルを個別にデータ変換部35に送出する。例えば、1番目のCSVファイル(user.csv)2を選択してデータ変換部35に送出する。 (Step S <b> 2) The control unit 34 individually sends unconverted CSV files to the data conversion unit 35 among the CSV files 2 1 and 2 2 acquired by the input unit 33. Specifically, the control unit 34 refers to the CSV process management information in the CSV process management unit 32 and individually sends out the CSV file related to the unprocessed status value to the data conversion unit 35. For example, and it sends select the first CSV file (user.csv) 2 1 to the data converting unit 35.

(ステップS3) データ変換部35は、制御部34から送出されたCSVファイル(user.csv)2に対し、ルール定義部31内のエントリ関係定義31dを参照して、当該CSVファイルのファイル名に関連した参照先CSV名が該当無し値「−」をもつか否かを判定する。該当無し値をもつ場合(参照先がない場合)には、ステップS4に移る。否の場合(参照先がある場合)には、データ変換部35は、制御部34から送出されたCSVファイル(user.csv)2に対し、CSV処理管理部32内のCSV処理管理情報及びルール定義部31内のエントリ関係定義31dを参照して、当該CSVファイル(user.csv)2のファイル名(user)に関連した参照先CSV名が示す参照先のCSVファイル名(sosiki)がCSV処理管理情報にて処理済み状況値(Y)に関連付けられているか否かを判定する。 (Step S3) the data converter 35, compared CSV file (user.csv) 2 1 transmitted from the control unit 34, by referring to the entry relationship definition 31d in the rule definition part 31, the file name of the CSV file It is determined whether or not the reference destination CSV name related to has a non-applicable value “−”. When it has a non-applicable value (when there is no reference destination), the process proceeds to step S4. In the case of not (if there is a reference destination), the data converter 35, compared CSV file (user.csv) 2 1 transmitted from the control unit 34, CSV processing management information and the CSV process management section 32 with reference to entry relationship definition 31d rule definition unit 31, the CSV file (user.csv) 2 1 filename (user) referenced CSV file name indicated by the reference destination CSV name associated with (sosiki) is It is determined whether or not it is associated with the processed status value (Y) in the CSV process management information.

この判定の結果、否の場合には、ステップS2に戻る。処理済み状況値(Y)に関連付けられている場合には、ステップS4に移る。ここでは、参照先のCSVファイル名(sosiki)が未処理状況値「N」に関連付けられており、否の場合に該当するため、ステップS2に戻る。   If the result of this determination is no, the process returns to step S2. If it is associated with the processed status value (Y), the process proceeds to step S4. Here, since the CSV file name (sosiki) of the reference destination is associated with the unprocessed status value “N” and corresponds to the case of NO, the process returns to step S2.

(ステップS2) 制御部34は、2番目のCSVファイル(sosiki.csv)2を選択してデータ変換部35に送出する。 (Step S2) control unit 34, the second CSV file (Sosiki.Csv) sends Select 2 2 to the data conversion unit 35.

なお、次のステップS3〜S7では、概略的には、データ変換部35は、制御部34から送出されたCSVファイル2が階層構造をもつ組織CSVファイル2のとき、この組織CSVファイル2を、階層構成定義31eに基づいて、上位組織IDに基づく組織ID順に組織名を配置したLDIF形式の第1データ4に変換する。以下、詳細に説明する。 In the next step S3 to S7, schematically, the data conversion unit 35, when the CSV file 2 2 transmitted from the control unit 34 of the tissue CSV file 2 2 has a hierarchical structure, the tissue CSV file 2 2, based on a hierarchical structure defined 31e, into a first data 4 1 LDIF format of arranging the organization name to the organization ID order based on level organization ID. Details will be described below.

(ステップS3) データ変換部35は、送出されたCSVファイル(sosiki.csv)2に対し、ルール定義部31内のエントリ関係定義31dを参照して、当該CSVファイルのファイル名に関連した参照先CSV名が該当無し値「−」をもつか否かを判定する。判定の結果、該当無し値「−」をもつので、ステップS4に移る。 See (Step S3) the data converter 35, compared CSV file (sosiki.csv) 2 2 sent, which refers to an entry relationship definition 31d in the rule definition part 31, associated with the file name of the CSV file It is determined whether or not the destination CSV name has a non-applicable value “−”. As a result of the determination, since there is a non-applicable value “−”, the process proceeds to step S4.

(ステップS4) データ変換部35は、当該CSVファイル(sosiki.csv)2に対し、ルール定義部31内の階層構成定義31eの各値(ORG_ID,HIGH_ORG_ID)に一致する組織ID項目(ORG_ID)及び上位組織ID項目(HIGH_ORG_ID)をもつか否かを判定し、この判定の結果、組織ID項目及び上位組織ID項目をもつCSVファイルを、階層構造をもつ組織CSVファイルとして選択してステップS5に移る。また、判定の結果、否の場合にはステップS8に移る。ここでは、階層構成定義31eには、対象のCSVファイル(sosiki.csv)の階層項目及び上位階層定義項目が定義されているため、ステップS5に移る。 (Step S4) the data converter 35, the CSV file (Sosiki.Csv) to 2 2, the values of the hierarchical structure defined 31e in the rule definition part 31 (ORG_ID, HIGH_ORG_ID) tissue ID field that matches (ORG_ID) And the higher organization ID item (HIGH_ORG_ID) is determined. As a result of the determination, a CSV file having the organization ID item and the upper organization ID item is selected as an organization CSV file having a hierarchical structure, and the process proceeds to step S5. Move. If the result of determination is no, the process moves to step S8. Here, since the hierarchy item and the upper hierarchy definition item of the target CSV file (sosiki.csv) are defined in the hierarchy configuration definition 31e, the process proceeds to step S5.

(ステップS5) データ変換部35は、階層構成定義31eの定義内容に従って、変換対象のCSVファイル(sosiki.csv)の階層を定義した組織ID項目(ORG_ID)と、上位階層を定義した上位組織ID項目(HIGH_ORG_ID)とを特定する。データ変換部35は、特定された組織ID項目(ORG_ID)及び上位組織ID項目(HIGH_ORG_ID)に基づいて、最上位階層(上位階層がNULL)から降順に、組織ID及び上位組織IDを並び替える。並び替えた結果は、図9の左から2〜3列目に示す通りである。並び替えの完了後、ステップS6に移る。   (Step S5) The data conversion unit 35, in accordance with the definition contents of the hierarchy configuration definition 31e, the organization ID item (ORG_ID) that defines the hierarchy of the CSV file (sosiki.csv) to be converted, and the upper organization ID that defines the upper hierarchy Specify the item (HIGH_ORG_ID). Based on the identified organization ID item (ORG_ID) and higher organization ID item (HIGH_ORG_ID), the data conversion unit 35 rearranges the organization ID and the upper organization ID in descending order from the highest layer (the upper layer is NULL). The rearranged result is as shown in the second to third columns from the left in FIG. After the rearrangement is completed, the process proceeds to step S6.

(ステップS6) データ変換部35は、並び替えた組織ID及び上位組織IDに基づいて、属性マッピング定義31b及び配置構成定義31cを参照しながら、LDIFデータの「ou」毎に昇順に、組織IDから各々の上位階層IDを経由して最上位階層IDまでを個別に示し、更にツリーポイントを示したディレクトリ項目識別名dn(distinguished name)を作成し、ステップS7に移る。   (Step S6) The data conversion unit 35 refers to the attribute mapping definition 31b and the arrangement configuration definition 31c on the basis of the rearranged organization ID and higher organization ID, and the organization ID in ascending order for each “ou” of the LDIF data. The directory item identification name dn (distinguished name) indicating the tree point is individually shown from each through the upper hierarchy ID to the highest hierarchy ID, and the process proceeds to step S7.

(ステップS7) データ変換部35は、ステップS6で作成したdn、属性マッピング定義31b及びオブジェクトクラスマッピング定義31aに基づき、図10に示すように、上位組織IDに基づく組織ID順に、dn、組織ID(ou)、組織名(orgName)、電話番号(telephoneNumber)及びオブジェクトクラス(objectClass)を配置したLDIF形式の第1データ4を作成する。なお、第1データ4の形式としては、例えば、dn、組織ID及び組織名を残し、他のデータ(電話番号)を省略するように変形してもよい。この種の変形は、属性マッピング定義31bのLDIFデータを適宜「−」に定義して実現できる。 (Step S7) Based on the dn, the attribute mapping definition 31b and the object class mapping definition 31a created in Step S6, the data conversion unit 35, in the order of the organization ID based on the higher organization ID, as shown in FIG. (ou), organization name (orgName), creates a first data 4 1 LDIF format arranged telephone number (telephoneNumber) and object class (objectClass). As the first data 4 1 form, for example, dn, leaving the organization ID and organization name, it may be modified so as to omit the other data (phone number). This kind of modification can be realized by appropriately defining the LDIF data of the attribute mapping definition 31b as "-".

LDIF形式の第1データ4を作成後、制御部34は、図11に示すように、変換されたCSVファイル(sosiki.csv)2に関連付けてCSV処理管理部32内の未処理状況値(N)を処理済み状況値(Y)に更新し、ステップS1に戻る。 After creating the first data 4 1 LDIF format, the control unit 34, as shown in FIG. 11, the converted CSV file (sosiki.csv) 2 2 unprocessed status values CSV processing management unit 32 in association with (N) is updated to the processed status value (Y), and the process returns to step S1.

(ステップS1) 制御部34は、CSV処理管理部32内のCSV処理管理情報を参照して、全てのCSVファイル2,2の処理が終了したか否かを判断する。ここでは、一方のCSVファイル(sosiki.csv)2の処理が終わっているが、他方のCSVファイル(user.csv)2の処理が終わっていないため、ステップS2に移る。 (Step S1) The control unit 34 refers to the CSV process management information in the CSV process management unit 32, and determines whether or not the processes of all the CSV files 2 1 and 2 2 have been completed. Here, since although one CSV file (sosiki.csv) 2 2 processing is terminated, the other CSV file (user.csv) 2 2 of the processing is not finished, the flow proceeds to step S2.

(ステップS2) 制御部34は、CSV処理管理部32内のCSV処理管理情報を参照して、未処理状況値に関連したCSVファイル(user.csv)2を選択してデータ変換部35に送出し、ステップS3に移る。 (Step S2) the control unit 34 refers to the CSV process management information in the CSV processing management unit 32, and select the CSV file (user.csv) 2 1 associated with the raw status value to the data conversion unit 35 Send to step S3.

なお、次のステップS3〜S4,S8〜S9,S7では、概略的には、データ変換部35は、制御部34から送出されたCSVファイル2が参照関係をもつユーザCSVファイル2のとき、このユーザCSVファイル2を、エントリ関係定義31dに基づいて、ユーザID毎にユーザ名を配置したLDIF形式の第2データ4に変換する。以下、詳細に説明する。 Incidentally, the next step S3 to S4, S8~S9, in S7, schematically, the data conversion unit 35, when the CSV file 2 1 transmitted from the control unit 34 is a user CSV file 2 1 with reference relationship converts the user CSV file 2 1, based on the entries relationship definition 31d, the second data 4 2 in LDIF format of arranging the username for each user ID. Details will be described below.

(ステップS3) データ変換部35は、送出されたCSVファイル(user.csv)に2に対し、ルール定義部31内のエントリ関係定義31dを参照して、当該CSVファイルのファイル名に関連した参照先CSV名が該当無し値「−」をもつか否かを判定し、ここでは否と判定する。データ変換部35は、CSVファイル(user.csv)2に対し、CSV処理管理部32内のCSV処理管理情報及びルール定義部31内のエントリ関係定義31dを参照して、当該CSVファイル(user.csv)2のファイル名(user)に関連した参照先CSV名が示す参照先のCSVファイル名(sosiki)がCSV処理管理情報にて処理済み状況値(Y)に関連付けられているか否かを判定する。ここでは、処理済み状況値(Y)に関連付けられていると判定し、ステップS4に移る。 (Step S3) data conversion unit 35 to 2 1 to the delivery CSV file (user.csv), with reference to the entry relationship definition 31d in the rule definition part 31, associated with the file name of the CSV file It is determined whether or not the reference CSV name has a non-applicable value “−”. Data conversion unit 35, a CSV file (user.csv) to 2 1, with reference to the entry relationship definition 31d of CSV processing management information and the rule definition part 31 of the CSV processing management unit 32, the CSV file (user .csv) 2 Whether or not the CSV file name (sosiki) of the reference destination indicated by the reference destination CSV name related to the file name (user) of 1 is associated with the processed status value (Y) in the CSV process management information Determine. Here, it determines with being related with the processed status value (Y), and moves to step S4.

(ステップS4) データ変換部35は、当該CSVファイル(user.csv)2に対し、ルール定義部31内の階層構成定義31eの各値(ORG_ID,HIGH_ORG_ID)に一致する組織ID項目(ORG_ID)及び上位組織ID項目(HIGH_ORG_ID)をもつか否かを判定する。ここでは否と判定し、ステップS8に移る。 (Step S4) the data converter 35, the CSV file (user.csv) to 2 1, the values of the hierarchical structure defined 31e in the rule definition part 31 (ORG_ID, HIGH_ORG_ID) tissue ID field that matches (ORG_ID) And whether it has a higher organization ID item (HIGH_ORG_ID). Here, it determines with it being no and moves to step S8.

(ステップS8) データ変換部35は、当該CSVファイル(user.csv)2が参照関係を持つか否かをエントリ関係定義31dに基づいて判断する。具体的にはデータ変換部35は、このCSVファイル(user.csv)に対し、ルール定義部31内のエントリ関係定義31dの参照元項目の値(SYOZOKU)に一致する所属組織ID項目(SYOZOKU)をもつか否かを判定し、この判定の結果、所属組織ID項目をもつCSVファイルを、参照関係をもつユーザCSVファイルとして選択してステップS9に移る。また、判定の結果、否の場合にはステップS10に移る。ここでは、CSVファイル(user.csv)がエントリ関係定義31dの参照元項目の値(SYOZOKU)に一致する所属組織ID項目(SYOZOKU)をもつため、ステップS9に移る。 (Step S8) data converting unit 35 determines on the basis of whether the CSV file (user.csv) 2 1 has a reference relationship to the entry relationship definition 31d. Specifically, the data conversion unit 35, for this CSV file (user.csv), belongs organization ID item (SYOZOKU) that matches the value (SYOZOKU) of the reference source item of the entry relation definition 31d in the rule definition unit 31 As a result of this determination, the CSV file having the belonging organization ID item is selected as a user CSV file having a reference relationship, and the process proceeds to step S9. If the result of determination is no, the process proceeds to step S10. Here, since the CSV file (user.csv) has the belonging organization ID item (SYOZOKU) that matches the value (SYOZOKU) of the reference source item of the entry relationship definition 31d, the process proceeds to step S9.

(ステップS9) データ変換部35は、配置構成定義31cのツリーポイントに関連する第1データ4のうち、エントリ関係定義31d内の参照元項目の値「SYOZOKU」に一致する組織IDに関連するディレクトリ項目識別名dnを読出し、当該組織IDに関連するユーザIDと、当該dnとを並べて、このユーザIDに関連する新たなdnを作成する。作成した結果は、図12に示す通りである。ディレクトリ項目識別名dnの作成後、ステップS7に移る。 (Step S9) data conversion unit 35, among the first data 4 1 associated with the tree points of arrangement definition 31c, associated with tissue ID that matches the value of the reference source field of the entry relationship definition 31d "SYOZOKU" The directory item identification name dn is read out, and the user ID related to the organization ID and the dn are arranged to create a new dn related to the user ID. The created result is as shown in FIG. After creating the directory item identification name dn, the process proceeds to step S7.

(ステップS7) データ変換部35は、ステップS9で作成したdn、属性マッピング定義31b及びオブジェクトクラスマッピング定義31aに基づき、図4に示したように、dn及びユーザID(uid)毎に、ユーザ名(cn)、メール(mail)及び電話番号(telephoneNumber)を配置したLDIF形式の第2データ4を作成し、第1データ4の後に続けるように第2データ4を書き込んでLDIF形式の第3データ4を作成する。なお、第2データ4の形式としては、例えば、dn、ユーザID及びユーザ名を残し、他のデータ(メール及び電話番号)を省略するように変形してもよい。この種の変形は属性マッピング定義31bのLDIFデータを適宜「−」に定義して実現できる。 (Step S7) Based on the dn, attribute mapping definition 31b, and object class mapping definition 31a created in step S9, the data conversion unit 35, for each dn and user ID (uid), as shown in FIG. (cn), mail (mail) and the second to create the data 4 2 LDIF format arranged telephone number (telephoneNumber), the LDIF format second data 4 2 writes to continue after the first data 4 1 to create a third data 4 3. As the second data 4 2 forms, for example, dn, leaving the user ID and the user name, it may be modified so as to omit the other data (e-mail and phone number). This type of modification can be realized by appropriately defining the LDIF data of the attribute mapping definition 31b as "-".

データ作成後、制御部34は、変換されたCSVファイル(user.csv)2に関連付けて、CSV処理管理部32内のCSV処理管理情報の未処理状況値(N)を処理済み状況値(Y)に更新し、ステップS1に戻る。 After data creation, control unit 34 associates the converted CSV file (user.csv) 2 1, the processed status value raw status value of CSV processing management information in the CSV processing management unit 32 (N) ( Y) and return to step S1.

(ステップS1) 制御部34は、CSV処理管理部32を参照し、全てのCSVファイルについて処理が終了したか否かを判断する。ここでは、2つのCSVファイル(user.csv、sosiki.csv)の処理が終了しているため、ステップS11に移って終了する。   (Step S1) The control unit 34 refers to the CSV process management unit 32, and determines whether or not the process has been completed for all the CSV files. Here, since the processing of the two CSV files (user.csv, sosiki.csv) has been completed, the process proceeds to step S11 and ends.

なお、以上の例では該当しなかったが、ステップS8で参照関係を持たない場合には、データ変換部35はステップS10に移る。ステップS10においては、データ変換部35は、属性マッピング定義31b、配置構成定義31cの定義内容に基づいて、ディレクトリ項目識別名dnを作成し、ステップS7に移る。   Although not applicable in the above example, if there is no reference relationship in step S8, the data conversion unit 35 proceeds to step S10. In step S10, the data conversion unit 35 creates a directory item identification name dn based on the definition contents of the attribute mapping definition 31b and the arrangement configuration definition 31c, and proceeds to step S7.

次に、このようにしてステップS0〜S11が終了したとする。   Next, it is assumed that steps S0 to S11 are completed in this way.

制御部34は、データ変換部35による作成が完了した第3データ4を出力部36に送出する。出力部36は、この第3データ4を1つのLDIFファイル4としてLDAPディレクトリ装置20に出力する。 Control unit 34 sends the third data 4 3 created by the data converting unit 35 is completed to the output unit 36. The output unit 36 outputs the third data 4 3 as one LDIF file 4 to LDAP directory device 20.

LDAPディレクトリ装置20においては、LDIF入力部22が、LDIFファイル4を受けると、当該LDAPファイル4をインポートしてLDAP階層構造データに変換し、図3に示したように、当該LDAP階層構造データをデータ格納部21に格納する。   In the LDAP directory device 20, when the LDIF input unit 22 receives the LDIF file 4, the LDIF input unit 22 imports the LDAP file 4 and converts it into the LDAP hierarchical structure data. As shown in FIG. Store in the data storage unit 21.

上述したように本実施形態によれば、入力部33が各CSVファイル2,2をリレーショナルデータベース装置10から取得し、データ変換部35が、制御部34から送出されたCSVファイル2,2のうち、階層構成をもつ組織CSVファイル2を、階層構成定義31eに基づいて、上位組織IDに基づく組織ID順に組織名を配置したLDIF形式の第1データ4に変換し、参照関係をもつユーザCSVファイル2を、エントリ関係定義31dに基づいて、ユーザID毎にユーザ名を配置したLDIF形式の第2データ4に変換し、第1データ4の後に第2データ4を書込んでLDIF形式の第3データ4を作成し、出力部36が第3データ4を1つのLDIFファイル4としてLDAPディレクトリ装置20に出力する。 As described above, according to the present embodiment, the input unit 33 acquires the CSV files 2 1 and 2 2 from the relational database device 10, and the data conversion unit 35 receives the CSV files 2 1 and 2 sent from the control unit 34. of 2 2, the tissue CSV file 2 2 having the hierarchical structure, based on a hierarchical structure defined 31e, into a first data 4 1 LDIF format of arranging the organization name to the organization ID order based on the upper organization ID, see the user CSV file 2 1 having a relationship, on the basis of the entry relationship definition 31d, converted for each user ID in the second data 4 2 LDIF format of arranging the user name, second data 4 after the first data 4 1 create a third data 4 3 LDIF format crowded 2 calligraphy, the output unit 36 LDAP directory the third data 4 3 as one LDIF file 4 And outputs it to the device 20.

このように、階層構造や参照関係をもつ複数のCSVファイル2,2をLDIF形式のデータ4,4,4に変換する場合に、予めルール定義部31に書き込まれた各定義31a〜31eに基づいて変換を行うので、従来のスキーママッピング定義ファイル3,3を作成する手間を不要にでき、作業者の負担を軽減することができる。 As described above, when converting a plurality of CSV files 2 1 , 2 2 having a hierarchical structure or a reference relationship into LDIF format data 4 1 , 4 2 , 4 3 , the definitions written in the rule definition unit 31 in advance Since the conversion is performed based on 31a to 31e, the trouble of creating the conventional schema mapping definition files 3 1 and 3 2 can be eliminated, and the burden on the operator can be reduced.

補足すると、LDAPディレクトリデータ変換装置30は、階層構造や参照関係に関する最小限の情報を定義しておく構成により、図13に示すように、階層構造、エントリ関係を表現するLDIFファイル4を容易に作成できるため、ユーザの負担を軽減できる。   Supplementally, the LDAP directory data conversion apparatus 30 can easily generate the LDIF file 4 expressing the hierarchical structure and the entry relation as shown in FIG. 13 by defining the minimum information regarding the hierarchical structure and the reference relation. Since it can be created, the burden on the user can be reduced.

これに対し、従来は、図14に示したように、CSVファイル2,2,…,2毎に、スキーママッピング定義ファイル3,3…,3を作成する手間が必要であるので、ユーザに負担がかかっている。 In contrast, conventionally, as shown in FIG. 14, CSV file 2 1, 2 2, ..., every 2 n, the schema mapping definition file 3 1, 3 2 ..., requires the need to create a 3 n This is burdening the user.

なお、上記実施形態に記載した手法は、コンピュータに実行させることのできるプログラムとして、磁気ディスク(フロッピー(登録商標)ディスク、ハードディスクなど)、光ディスク(CD−ROM、DVDなど)、光磁気ディスク(MO)、半導体メモリなどの記憶媒体に格納して頒布することもできる。   Note that the method described in the above embodiment includes a magnetic disk (floppy (registered trademark) disk, hard disk, etc.), an optical disk (CD-ROM, DVD, etc.), a magneto-optical disk (MO) as programs that can be executed by a computer. ), And can be distributed in a storage medium such as a semiconductor memory.

また、この記憶媒体としては、プログラムを記憶でき、かつコンピュータが読み取り可能な記憶媒体であれば、その記憶形式は何れの形態であっても良い。   In addition, as long as the storage medium can store a program and can be read by a computer, the storage format may be any form.

また、記憶媒体からコンピュータにインストールされたプログラムの指示に基づきコンピュータ上で稼働しているOS(オペレーティングシステム)や、データベース管理ソフト、ネットワークソフト等のMW(ミドルウェア)等が上記実施形態を実現するための各処理の一部を実行しても良い。   In addition, an OS (operating system) running on a computer based on an instruction of a program installed in the computer from a storage medium, MW (middleware) such as database management software, network software, and the like realize the above-described embodiment. A part of each process may be executed.

さらに、本発明における記憶媒体は、コンピュータと独立した媒体に限らず、LANやインターネット等により伝送されたプログラムをダウンロードして記憶または一時記憶した記憶媒体も含まれる。   Further, the storage medium in the present invention is not limited to a medium independent of a computer, but also includes a storage medium in which a program transmitted via a LAN, the Internet, or the like is downloaded and stored or temporarily stored.

また、記憶媒体は1つに限らず、複数の媒体から上記実施形態における処理が実行される場合も本発明における記憶媒体に含まれ、媒体構成は何れの構成であっても良い。   Further, the number of storage media is not limited to one, and the case where the processing in the above embodiment is executed from a plurality of media is also included in the storage media in the present invention, and the media configuration may be any configuration.

尚、本発明におけるコンピュータは、記憶媒体に記憶されたプログラムに基づき、上記実施形態における各処理を実行するものであって、パソコン等の1つからなる装置、複数の装置がネットワーク接続されたシステム等の何れの構成であっても良い。   The computer according to the present invention executes each process in the above-described embodiment based on a program stored in a storage medium, and is a single device such as a personal computer or a system in which a plurality of devices are connected to a network. Any configuration may be used.

また、本発明におけるコンピュータとは、パソコンに限らず、情報処理機器に含まれる演算処理装置、マイコン等も含み、プログラムによって本発明の機能を実現することが可能な機器、装置を総称している。   In addition, the computer in the present invention is not limited to a personal computer, but includes an arithmetic processing device, a microcomputer, and the like included in an information processing device, and is a generic term for devices and devices that can realize the functions of the present invention by a program. .

なお、本願発明は、上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組合せにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。更に、異なる実施形態に亘る構成要素を適宜組合せてもよい。   Note that the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. Moreover, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined.

10…リレーショナルデータベース装置、11…テーブル格納部、11a…ユーザテーブル定義、11b…組織マスタテーブル定義、11c…ユーザマスタデータ、11d…組織マスタデータ、12…CSV出力部、20…LDAPディレクトリ装置、21…データ格納部、22…LDIF入力部、30…LDAPディレクトリデータ変換装置、31…ルール定義部、31a…オブジェクトクラスマッピング定義、31b…属性マッピング定義、31c…配置構成定義、31d…エントリ関係定義、31e…階層構成定義、32…CSV処理管理部、33…入力部、34…制御部、35…データ変換部、36…出力部。   DESCRIPTION OF SYMBOLS 10 ... Relational database apparatus, 11 ... Table storage part, 11a ... User table definition, 11b ... Organization master table definition, 11c ... User master data, 11d ... Organization master data, 12 ... CSV output part, 20 ... LDAP directory apparatus, 21 ... Data storage unit, 22 ... LDIF input unit, 30 ... LDAP directory data conversion device, 31 ... Rule definition unit, 31a ... Object class mapping definition, 31b ... Attribute mapping definition, 31c ... Arrangement configuration definition, 31d ... Entry relationship definition, 31e ... hierarchical structure definition, 32 ... CSV process management unit, 33 ... input unit, 34 ... control unit, 35 ... data conversion unit, 36 ... output unit.

Claims (3)

集合IDを値にもつ集合ID項目毎に集合名を値にもつ集合名項目及び上位集合IDを値にもつ上位集合ID項目を関連付けたテーブル形式の集合情報と、要素IDを値にもつ要素ID項目毎に要素名を値にもつ要素名項目及び割当て集合IDを値にもつ割当て集合ID項目を関連付けたテーブル形式の要素情報とを格納し、前記集合情報をCSV形式に変換した集合CSVファイルと、前記要素情報をCSV形式に変換した要素CSVファイルとからなる各CSVファイルを出力可能なリレーショナルデータベース装置と、
LDIFファイルを受けると、前記LDIFファイルをインポートするLDAPディレクトリ装置と、
にそれぞれ通信可能であり、記憶手段を備えたLDAPディレクトリデータ変換装置に用いられるLDAPディレクトリデータ変換プログラムであって、
前記LDAPディレクトリデータ変換装置を、
前記集合CSVファイルのファイル名毎に、集合ID項目を値にもつ階層項目と、上位集合ID項目を値にもつ上位階層定義項目とを関連付けた階層構成定義情報を前記記憶手段に書込む手段、
前記各CSVファイルのファイル名毎に、参照先のCSVファイル名又は該当無し値をもつ参照先CSV名と、参照元の割当て集合ID項目又は該当無し値をもつ参照元項目と、参照先の集合ID項目又は該当無し値をもつ参照先項目とを関連付けた参照関係定義情報を前記記憶手段に書込む手段、
前記各CSVファイルを前記リレーショナルデータベース装置から取得する取得手段、
前記取得した各CSVファイルのうち、未変換のCSVファイルを個別に送出する未変換ファイル送出手段、
前記送出されたCSVファイルが階層構成をもつ集合CSVファイルのとき、この集合CSVファイルを、前記階層構成定義情報に基づいて、前記上位集合IDに基づく集合ID順に集合名を配置したLDIF形式の第1データに変換する第1データ変換手段、
前記送出されたCSVファイルが参照関係をもつ要素CSVファイルのとき、この要素CSVファイルを、前記参照関係定義情報に基づいて、前記要素ID毎に要素名を配置したLDIF形式の第2データに変換する第2データ変換手段、
前記第1データの後に続けるように前記第2データを書き込んでLDIF形式の第3データを作成するLDIFデータ作成手段、
前記作成が完了した第3データを送出する作成完了データ送出手段、
前記送出された第3データを1つのLDIFファイルとして前記LDAPディレクトリ装置に出力するための出力手段、
として機能させるためのLDAPディレクトリデータ変換プログラム。
For each set ID item having a set ID as a value, set information in a table format in which a set name item having a set name as a value and a higher set ID item having a higher set ID as a value and an element ID having an element ID as a value An element name item having an element name as a value for each item and element information in a table format in which an allocation set ID item having an allocation set ID as a value is associated; a set CSV file obtained by converting the set information into a CSV format; A relational database device capable of outputting each CSV file composed of element CSV files obtained by converting the element information into CSV format;
An LDAP directory device that receives the LDIF file and imports the LDIF file;
And an LDAP directory data conversion program used in an LDAP directory data conversion apparatus provided with storage means,
The LDAP directory data converter is
Means for writing, in the storage means, hierarchical configuration definition information in which a hierarchical item having a set ID item as a value and an upper hierarchical definition item having a higher set ID item as a value are associated with each file name of the aggregate CSV file;
For each file name of each CSV file, a reference destination CSV file name or a reference destination CSV name having a non-applicable value, a reference source allocation set ID item or a reference source item having a non-applicable value, and a reference destination set Means for writing reference relationship definition information associating ID items or reference destination items having non-applicable values to the storage means;
Obtaining means for obtaining each CSV file from the relational database device;
Of the obtained CSV files, unconverted file sending means for individually sending unconverted CSV files;
When the sent CSV file is a set CSV file having a hierarchical configuration, the set CSV file is an LDIF format first in which set names are arranged in the order of the set ID based on the upper set ID based on the hierarchical configuration definition information. First data conversion means for converting into one data;
When the sent CSV file is an element CSV file having a reference relationship, the element CSV file is converted into second data in LDIF format in which element names are arranged for each element ID based on the reference relationship definition information. Second data conversion means for
LDIF data creation means for creating the third data in the LDIF format by writing the second data so as to continue after the first data;
Creation completion data sending means for sending third data for which the creation has been completed;
Output means for outputting the transmitted third data to the LDAP directory device as one LDIF file;
LDAP directory data conversion program for functioning as
請求項1に記載のLDAPディレクトリデータ変換プログラムにおいて、
前記LDAPディレクトリデータ変換装置を、
前記取得した各CSVファイルと、未処理状況値とを関連付けたCSV処理管理情報を前記記憶手段に書込む手段、
前記第1及び第2データ変換手段の各々の変換毎に、当該変換されたCSVファイルに関連付けて、前記CSV処理管理情報の未処理状況値を処理済み状況値に更新する手段、
として更に機能させ、
前記作成完了データ送出手段は、
前記記憶手段内のCSV処理管理情報を参照して、全てのCSVファイルが処理済み状況値に関連付けられているか否かを判定する手段と、
前記判定の結果、前記CSV処理管理情報内の全てのCSVファイルが処理済み状況値に関連付けられている場合に、第3データを前記出力手段に送出する手段と、
を含んでおり、
前記未変換ファイル送出手段は、前記判定の結果、否の場合に、前記記憶手段内のCSV処理管理情報を参照して、前記未処理状況値に関連したCSVファイルを個別に送出する手段であり
前記第1データ変換手段は、
前記未変換ファイル送出手段により送出されたCSVファイルに対し、前記記憶手段内の参照関係定義情報を参照して、当該CSVファイルのファイル名に関連した参照先CSV名が該当無し値をもつか否かを判定する参照先無し判定手段と、
前記参照先無し判定手段による判定の結果、否の場合には、前記未変換ファイル送出手段により送出されたCSVファイルに対し、前記記憶手段内のCSV処理管理情報及び参照関係定義情報を参照して、当該CSVファイルのファイル名に関連した参照先CSV名が示す参照先のCSVファイル名が前記CSV処理管理情報にて処理済み状況値に関連付けられているか否かを判定する参照先処理済み判定手段と、
前記参照先無し判定手段による判定の結果、参照先CSV名が該当無し値をもつとき、又は前記参照先処理済み判定手段による判定の結果、参照先CSV名が示す参照先のCSVファイル名が処理済み状況値に関連付けられているとき、当該CSVファイルに対し、前記記憶手段内の階層構成定義情報の各値に一致する集合ID項目及び上位集合ID項目をもつか否かを判定し、この判定の結果、集合ID項目及び上位集合ID項目をもつCSVファイルを、前記階層構成をもつ集合CSVファイルとして選択する集合ファイル選択手段と、
を含んでおり、
前記第2データ変換手段は、
前記集合ファイル選択手段における判定の結果、集合ID項目及び上位集合ID項目をもたないCSVファイルに対し、前記記憶手段内の参照関係定義情報の参照元項目の値に一致する割当て集合ID項目をもつか否かを判定し、この判定の結果、割当て集合ID項目をもつCSVファイルを、前記参照関係をもつ要素CSVファイルとして選択する要素ファイル選択手段と、
を含んでいることを特徴とするLDAPディレクトリデータ変換プログラム。
The LDAP directory data conversion program according to claim 1,
The LDAP directory data converter is
Means for writing CSV processing management information associating each acquired CSV file with an unprocessed status value into the storage means;
Means for updating the unprocessed status value of the CSV process management information to a processed status value in association with the converted CSV file for each conversion of the first and second data converting means;
Further function as
The creation completion data sending means includes
Means for referring to the CSV processing management information in the storage means to determine whether all CSV files are associated with the processed status value;
If all the CSV files in the CSV process management information are associated with the processed status value as a result of the determination, means for sending third data to the output means;
Contains
The unconverted file sending means is means for individually sending a CSV file related to the unprocessed status value with reference to the CSV processing management information in the storage means when the result of the determination is negative. The first data conversion means includes
Whether the reference CSV name related to the file name of the CSV file has a non-applicable value with reference to the reference relation definition information in the storage means for the CSV file sent by the unconverted file sending means No reference destination determination means for determining whether or not
If the result of determination by the non-reference destination determination means is negative, the CSV process management information and reference relationship definition information in the storage means are referred to for the CSV file sent by the unconverted file sending means. Reference destination processed determination means for determining whether the CSV file name of the reference destination indicated by the reference destination CSV name related to the file name of the CSV file is associated with the processed status value in the CSV process management information When,
As a result of determination by the reference destination absence determination means, when the reference destination CSV name has a non-applicable value, or as a result of determination by the reference destination processing completion determination means, the CSV file name of the reference destination indicated by the reference destination CSV name is processed. When it is associated with the completed status value, it is determined whether or not the CSV file has a set ID item and a superset ID item that match each value of the hierarchical configuration definition information in the storage means. As a result, a set file selecting means for selecting a CSV file having a set ID item and a super set ID item as a set CSV file having the hierarchical structure;
Contains
The second data conversion means includes
As a result of the determination in the set file selection means, an assigned set ID item that matches the value of the reference source item of the reference relationship definition information in the storage means for a CSV file having no set ID item and no higher set ID item. Element file selection means for selecting whether or not the CSV file having the assigned set ID item as the element CSV file having the reference relationship as a result of the determination;
An LDAP directory data conversion program comprising:
集合IDを値にもつ集合ID項目毎に集合名を値にもつ集合名項目及び上位集合IDを値にもつ上位集合ID項目を関連付けたテーブル形式の集合情報と、要素IDを値にもつ要素ID項目毎に要素名を値にもつ要素名項目及び割当て集合IDを値にもつ割当て集合ID項目を関連付けたテーブル形式の要素情報とを格納し、前記集合情報をCSV形式に変換した集合CSVファイルと、前記要素情報をCSV形式に変換した要素CSVファイルとからなる各CSVファイルを出力可能なリレーショナルデータベース装置と、
LDIFファイルを受けると、前記LDIFファイルをインポートするLDAPディレクトリ装置と、
にそれぞれ通信可能なLDAPディレクトリデータ変換装置であって、
前記集合CSVファイルのファイル名毎に、集合ID項目を値にもつ階層項目と、上位集合ID項目を値にもつ上位階層定義項目とを関連付けた階層構成定義情報を記憶する階層定義記憶手段と、
前記各CSVファイルのファイル名毎に、参照先のCSVファイル名又は該当無し値をもつ参照先CSV名と、参照元の割当て集合ID項目又は該当無し値をもつ参照元項目と、参照先の集合ID項目又は該当無し値をもつ参照先項目とを関連付けた参照関係定義情報を記憶する参照定義記憶手段と、
前記各CSVファイルを前記リレーショナルデータベース装置から取得する取得手段、
前記取得した各CSVファイルのうち、未変換のCSVファイルを個別に送出する未変換ファイル送出手段と、
前記送出されたCSVファイルが階層構成をもつ集合CSVファイルのとき、この集合CSVファイルを、前記階層構成定義情報に基づいて、前記上位集合IDに基づく集合ID順に集合名を配置したLDIF形式の第1データに変換する第1データ変換手段と、
前記送出されたCSVファイルが参照関係をもつ要素CSVファイルのとき、この要素CSVファイルを、前記参照関係定義情報に基づいて、前記要素ID毎に要素名を配置したLDIF形式の第2データに変換する第2データ変換手段と、
前記第1データの後に続けるように前記第2データを書き込んでLDIF形式の第3データを作成するLDIFデータ作成手段と、
前記作成が完了した第3データを送出する作成完了データ送出手段と、
前記送出された第3データを1つのLDIFファイルとして前記LDAPディレクトリ装置に出力するための出力手段と、
を備えたことを特徴とするLDAPディレクトリデータ変換装置。
For each set ID item having a set ID as a value, set information in a table format in which a set name item having a set name as a value and a higher set ID item having a higher set ID as a value and an element ID having an element ID as a value An element name item having an element name as a value for each item and element information in a table format in which an allocation set ID item having an allocation set ID as a value is associated; a set CSV file obtained by converting the set information into a CSV format; A relational database device capable of outputting each CSV file composed of element CSV files obtained by converting the element information into CSV format;
An LDAP directory device that receives the LDIF file and imports the LDIF file;
LDAP directory data conversion devices that can communicate with each other,
Hierarchy definition storage means for storing, for each file name of the aggregate CSV file, hierarchy configuration definition information in which a hierarchy item having a set ID item as a value and an upper hierarchy definition item having an upper set ID item as a value are associated;
For each file name of each CSV file, a reference destination CSV file name or a reference destination CSV name having a non-applicable value, a reference source allocation set ID item or a reference source item having a non-applicable value, and a reference destination set A reference definition storage means for storing reference relationship definition information in association with an ID item or a reference destination item having a non-applicable value;
Obtaining means for obtaining each CSV file from the relational database device;
Of the obtained CSV files, unconverted file sending means for individually sending unconverted CSV files;
When the sent CSV file is a set CSV file having a hierarchical configuration, the set CSV file is an LDIF format first in which set names are arranged in the order of the set ID based on the upper set ID based on the hierarchical configuration definition information. First data conversion means for converting into one data;
When the sent CSV file is an element CSV file having a reference relationship, the element CSV file is converted into second data in LDIF format in which element names are arranged for each element ID based on the reference relationship definition information. Second data conversion means for
LDIF data creation means for creating the third data in LDIF format by writing the second data so as to continue after the first data;
Creation completion data sending means for sending the third data that has been created;
Output means for outputting the sent third data as one LDIF file to the LDAP directory device;
An LDAP directory data conversion apparatus comprising:
JP2010001488A 2010-01-06 2010-01-06 Ldap directory data conversion program and device Withdrawn JP2011141687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010001488A JP2011141687A (en) 2010-01-06 2010-01-06 Ldap directory data conversion program and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010001488A JP2011141687A (en) 2010-01-06 2010-01-06 Ldap directory data conversion program and device

Publications (1)

Publication Number Publication Date
JP2011141687A true JP2011141687A (en) 2011-07-21

Family

ID=44457492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010001488A Withdrawn JP2011141687A (en) 2010-01-06 2010-01-06 Ldap directory data conversion program and device

Country Status (1)

Country Link
JP (1) JP2011141687A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015503801A (en) * 2012-01-06 2015-02-02 スマート ハブ ピーティーイー リミテッド System, method and computer program configured to facilitate transactions
JP2015225424A (en) * 2014-05-27 2015-12-14 三菱電機株式会社 Software device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015503801A (en) * 2012-01-06 2015-02-02 スマート ハブ ピーティーイー リミテッド System, method and computer program configured to facilitate transactions
JP2015225424A (en) * 2014-05-27 2015-12-14 三菱電機株式会社 Software device

Similar Documents

Publication Publication Date Title
CN109299102B (en) HBase secondary index system and method based on Elastcissearch
US7516157B2 (en) Relational directory
US7558791B2 (en) System and method for ontology-based translation between directory schemas
US7562087B2 (en) Method and system for processing directory operations
US20020032684A1 (en) Directory information management apparatus, directory information management method, and computer readable recording medium having directory information management program stored therein
JP5600736B2 (en) Database management method and system
JP5152877B2 (en) Document data storage method and apparatus in document base system
WO2018036324A1 (en) Smart city information sharing method and device
JP2001056810A (en) Database access system
JP4522485B1 (en) Data conversion method, apparatus and program
US8209440B2 (en) Device-configuration-information optimum arrangement method and device-configuration-information optimum arrangement system
CN1846207A (en) Type path indexing
US8868597B2 (en) Directory server processing requests based on hierarchical models while using backend servers operating based on relational models
JP2012531688A (en) Method for accessing file system file according to metadata, and apparatus for implementing the method
US8156091B2 (en) Method to retain an inherent and indelible item value in a relational database management system
Graube et al. Integrating industrial middleware in linked data collaboration networks
JP2011258002A (en) Data conversion method, apparatus thereof, and program thereof
JP2011141687A (en) Ldap directory data conversion program and device
CN102760164A (en) Method for exchanging data between relation database management system and XML (Extensive Makeup Language) database management system
JP5367179B1 (en) Data processing apparatus, data management system, data processing method and program
JP4529766B2 (en) Information providing system, information providing method, server, and information providing program
JP7422111B2 (en) Program, information processing device and information processing method
KR102121975B1 (en) Method for providing actual data through synchronized table and data managing system
JP5466191B2 (en) Access control system, server management device, data storage device, access control method, server management program, and data storage program
EP2355406B1 (en) A method for flexibly storing/retrieving data stored in a tree-based data storing device in/from a database and corresponding system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20130402