JP2006119888A - Business form data conversion apparatus and business form data conversion program - Google Patents

Business form data conversion apparatus and business form data conversion program Download PDF

Info

Publication number
JP2006119888A
JP2006119888A JP2004306822A JP2004306822A JP2006119888A JP 2006119888 A JP2006119888 A JP 2006119888A JP 2004306822 A JP2004306822 A JP 2004306822A JP 2004306822 A JP2004306822 A JP 2004306822A JP 2006119888 A JP2006119888 A JP 2006119888A
Authority
JP
Japan
Prior art keywords
data
xml
key
keyed
mapping
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.)
Pending
Application number
JP2004306822A
Other languages
Japanese (ja)
Inventor
Masato Hoshi
昌人 星
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 JP2004306822A priority Critical patent/JP2006119888A/en
Publication of JP2006119888A publication Critical patent/JP2006119888A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a business form data conversion apparatus and a business form data conversion program capable of efficiently storing data to an RDB even from a business form in which data is frequently modified or a business form having a complex data structure. <P>SOLUTION: A business form data conversion apparatus 100 is provided with a business form input part 11 for acquiring a key and a value indicating an object specified by a user, a keyed data XML mapping table 3 for storing the key in an XML format, a business form XML data 5 for storing the value in the XML format, a screen-XML mapping part 12 for generating keyed data by obtaining the key and the value, a mapping part 15 for generating a keyed RDB mapping table 6 on the basis of the keyed data and an XML tag, a conversion part 16 for converting substitutably a subelement data into an SQL syntax when the XML tag includes the subelement data, and an RDB storage part 18 for storing the SQL syntax converted according to the object. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、データ変更が多い帳票や、複雑なデータ構造の帳票からでも効率的にRDBに蓄積することができる帳票データ変換装置、および帳票データ変換プログラムに関する。   The present invention relates to a form data conversion apparatus and a form data conversion program that can be efficiently stored in an RDB even from a form with many data changes or a form having a complicated data structure.

XML(eXtensible Markup Language)等の構造化文書を格納/検索する場合には、RDB(relational database)を利用する方法がある。この際、検索のコストを減らす為に、XMLスキーマを用いて、XMLをデータベースに直接書き込むSQL(Structured Query Language)を生成する手法がある(例えば、特許文献1参照)。この手法で使用する装置においては、検索対象判定手段が入力装置から入力されたデータをRDBに保存するかどうか判定し、XML−RDBマッピングルール格納部が保存する対象を決定する構成となっている。
特開2003−256455号公報
In the case of storing / retrieving a structured document such as XML (eXtensible Markup Language), there is a method using an RDB (relational database). At this time, there is a method of generating SQL (Structured Query Language) that directly writes XML into a database using an XML schema in order to reduce search costs (see, for example, Patent Document 1). In the apparatus used in this method, the search target determination unit determines whether or not the data input from the input device is stored in the RDB, and the XML-RDB mapping rule storage unit determines the target to be stored. .
JP 2003-256455 A

しかしながら、特許文献1の手法では、テキストなどの単純なデータしか扱うことが出来ず、複雑な構造を備えるデータの蓄積や、蓄積されたデータの変更においては取り扱いが困難であるという問題があった。更に、ネスト構造および同じタグ名があった場合には対応不可能であった。   However, the method of Patent Document 1 can handle only simple data such as text, and there is a problem that it is difficult to handle data accumulation with a complicated structure or modification of the accumulated data. . Furthermore, when there is a nested structure and the same tag name, it cannot be handled.

本発明は上記の問題点に鑑みてなされたものであり、データ変更が多い帳票や、複雑なデータ構造の帳票からでも効率的にRDBに蓄積することができる帳票データ変換装置および帳票データ変換プログラムを提供することを目的とする。   The present invention has been made in view of the above problems, and is a form data conversion apparatus and form data conversion program that can be efficiently stored in an RDB even from a form with many data changes or a form with a complicated data structure. The purpose is to provide.

上記問題点を解決する為、本発明の帳票データ変換装置は、[イ]ユーザが指定するオブジェクトを示すキーとこのキーに対応する値とを帳票データから取得する帳票入力部と、[ロ]キーをXML形式で格納するキー付データXMLマッピング記憶部と、[ハ]キーに対応する値をXML形式で格納する帳票XMLデータ記憶部と、[ニ]キー付データXMLマッピング記憶部内に格納されるキーと、帳票XMLデータ記憶部内に格納されるキーに対応する値を取得し、キーおよびキーに対応する値を備えるキー付データを作成する画面―XMLマッピング部と、[ホ]作成されたキー付データと帳票XMLデータ記憶部から取得するXMLタグとを基に、キーとオブジェクトの名前を備えるキー付RDBマッピングデータを作成するマッピング部と、[ヘ]XMLタグが子要素データを含む場合、子要素データを、リレーショナルデータベース格納用のSQL構文に置換可能に変換するコンバート部と、[ト]オブジェクトに従って変換されたSQL構文を格納するRDB記憶部とを備えることを要旨とする。   In order to solve the above problems, the form data conversion apparatus according to the present invention includes: [a] a form input unit that obtains a key indicating an object designated by the user and a value corresponding to the key from the form data; Stored in keyed data XML mapping storage unit for storing keys in XML format, form XML data storage unit for storing values corresponding to [c] key in XML format, and [d] keyed data XML mapping storage unit A key that stores a key and a value corresponding to the key stored in the form XML data storage unit, and creates a key-attached data including the key and a value corresponding to the key, and an [e] created A mapping unit that creates keyed RDB mapping data including a key and an object name based on the keyed data and the XML tag acquired from the form XML data storage unit; When the XML tag includes child element data, a conversion unit that converts the child element data to be replaceable with an SQL syntax for storing a relational database, an RDB storage unit that stores the SQL syntax converted according to the [G] object, It is a summary to provide.

本発明の第2の特徴は、[イ]帳票データの変換を行うコンピュータに、ユーザが指定するオブジェクトを示すキーとこのキーに対応する値とを帳票データから帳票入力部に取得させる命令と、[ロ]キーをXML形式でキー付データXMLマッピング記憶部に格納する命令と、[ハ]キーに対応する値をXML形式で帳票XMLデータ記憶部に格納する命令と、[ニ]キー付データXMLマッピング記憶部内に格納されるキーと、帳票XMLデータ記憶部内に記憶されるキーに対応する値を取得し、画面―XMLマッピング部にキーおよびキーに対応する値を備えるキー付データを作成させる命令と、[ホ]作成されたキー付データおよび帳票XMLデータ記憶部から取得するXMLタグとを基に、マッピング部にキーとオブジェクトの名前を備えるキー付RDBマッピングデータを作成させる命令と、[ヘ]XMLタグが子要素データを含む場合、コンバート部に子要素データを、リレーショナルデータベース格納用のSQL構文に置換可能に変換させる命令と、[ト]オブジェクトに従って変換されたSQL構文をRDB記憶部に格納する命令とを実行させる帳票データ変換プログラムであることを要旨とする。   A second feature of the present invention is that [a] a computer that converts form data causes a form input unit to acquire a key indicating an object designated by the user and a value corresponding to the key from the form data; [B] An instruction for storing the key in XML format in the keyed data XML mapping storage unit, an instruction for storing a value corresponding to the [c] key in the form XML data storage unit in the XML format, and [d] keyed data The key stored in the XML mapping storage unit and the value corresponding to the key stored in the form XML data storage unit are acquired, and the screen-XML mapping unit creates keyed data including the key and the value corresponding to the key. A key having a key and an object name in the mapping unit based on the command and [e] created keyed data and the XML tag acquired from the form XML data storage unit An instruction for creating attached RDB mapping data, and [f] an XML tag including child element data, an instruction for causing the conversion unit to convert the child element data into replaceable SQL syntax for relational database storage, and [g] The gist of the invention is that it is a form data conversion program that executes an instruction to store an SQL syntax converted in accordance with an object in an RDB storage unit.

本発明によれば、1つのデータが複数の属性から構成されているデータ形式が入力装置から入力された場合であっても、マッピングファイルを用いてデータをXML文書としてキー付けし、更にキー付データをRDBとマッピングさせることによりRDB記憶部に格納することができる。   According to the present invention, even when a data format in which one piece of data is composed of a plurality of attributes is input from the input device, the data is keyed as an XML document using the mapping file, and the key is attached. Data can be stored in the RDB storage unit by mapping it with the RDB.

次に、図面を参照して、本発明の実施の形態を説明する。以下の図面の記載において、同一又は類似の部分には同一又は類似の符号を付している。ただし、図面は模式的なものであることに留意すべきである。   Next, embodiments of the present invention will be described with reference to the drawings. In the following description of the drawings, the same or similar parts are denoted by the same or similar reference numerals. However, it should be noted that the drawings are schematic.

<第1の実施の形態>
(帳票データ変換装置)
本発明の実施の形態に係る帳票データ変換装置100は、図1に示すように、帳票から入力されたデータにキーを付加したキー付データを作成する帳票管理サブシステム1と、キー付データを適宜変換して集計しRDBに格納するプロジェクト情報管理サブシステム2から構成される。
<First Embodiment>
(Form data converter)
As shown in FIG. 1, a form data conversion apparatus 100 according to an embodiment of the present invention includes a form management subsystem 1 that creates keyed data in which a key is added to data input from a form, and keyed data. The project information management subsystem 2 is configured to appropriately convert, aggregate, and store in the RDB.

尚、キー付データとは、キー(name)に値(value)がバインドされているデータを指す。例えばHTMLにおけるキー付けデータは、“<input type=”text” name=”IDT_SYSTEM_OUTLINE” value=”このシステムは・・・”/>”のように、キー(name)である「IDT_SYSTEM_OUTLINE」に値(value)である「このシステムは・・・」がバインドされているデータとして示される。   The keyed data refers to data in which a value (value) is bound to a key (name). For example, the keying data in HTML is “<input type =” text ”name =“ IDT_SYSTEM_OUTLINE ”value =” This system is “...” />, and the value (“IDT_SYSTEM_OUTLINE”) value) “This system is ...” is shown as bound data.

帳票管理サブシステム1は、帳票管理サブシステムインタフェース10、帳票入力部11、画面−XMLマッピング部12、キー付データ記憶部13および帳票XMLデータ記憶部14を備えている。   The form management subsystem 1 includes a form management subsystem interface 10, a form input unit 11, a screen-XML mapping unit 12, a keyed data storage unit 13, and a form XML data storage unit 14.

帳票XMLデータ記憶部14は、帳票全体のXMLデータ格納部であり、キー付データXMLマッピング記憶部であるキー付データXMLマッピング表3と、帳票XMLデータ5を備えている。キー付データXMLマッピング表3は、図2(a)のように、帳票入力部11から入力されたフォームキーであるキー4aをXML形式で保存する。帳票XMLデータ5は、図2(c)のように、帳票入力部11から入力された値4bをXML形式で保存する。   The form XML data storage unit 14 is an XML data storage unit for the entire form, and includes a keyed data XML mapping table 3 and a form XML data 5 which are keyed data XML mapping storage units. As shown in FIG. 2A, the keyed data XML mapping table 3 stores a key 4a, which is a form key input from the form input unit 11, in an XML format. As shown in FIG. 2C, the form XML data 5 stores the value 4b input from the form input unit 11 in the XML format.

キー付データ記憶部13には、キー付データXMLマッピング表3と、帳票XMLデータ5とを基に作成される、キー付データテーブル4(図2(b)参照)を格納する。   The keyed data storage unit 13 stores a keyed data table 4 (see FIG. 2B) created based on the keyed data XML mapping table 3 and the form XML data 5.

帳票管理サブシステムインタフェース10は、プロジェクト情報管理サブシステム2間とデータの送受信を行うためのインタフェースである。   The form management subsystem interface 10 is an interface for transmitting and receiving data between the project information management subsystems 2.

帳票入力部11は、ユーザに対してデータの入力を促す。例えば、HTMLなどで記述された図3のような入力画面をユーザに提示し、フォームキー欄22に、例えば、フォームキーとなる“名前”として「IDT_SYSTEM_OUTLINE」等を入力し、図3のシステム概要画面を表示させてフォームキー欄22の値として値欄23に、例えば「このシステムは…」等をユーザに入力させ、保存ボタン21をクリック等させる。尚、これらの入力手法は一例であり、入力はその他の手法によって行われて構わない。   The form input unit 11 prompts the user to input data. For example, an input screen as shown in FIG. 3 described in HTML or the like is presented to the user, and for example, “IDT_SYSTEM_OUTLINE” or the like as a “name” as a form key is entered in the form key field 22, and the system outline of FIG. The screen is displayed, and the user inputs, for example, “This system is ...” into the value column 23 as the value of the form key column 22, and clicks the save button 21. These input methods are examples, and the input may be performed by other methods.

画面―XMLマッピング部12は、フォームキーおよび入力された値のデータを基に、キー付データXMLマッピング表3と帳票XMLデータ5との作成を行う。更に、画面―XMLマッピング部12は、キー付データXMLマッピング表3および帳票XMLデータ5を基に、図2(b)のキー付データテーブル4を生成してキー付データ記憶部13に格納する。   The screen-XML mapping unit 12 creates the keyed data XML mapping table 3 and the form XML data 5 based on the form key and the input value data. Further, the screen-XML mapping unit 12 generates the keyed data table 4 of FIG. 2B based on the keyed data XML mapping table 3 and the form XML data 5, and stores it in the keyed data storage unit 13. .

例えば、図2(a)のキー付データXMLマッピング表3が作成されているとすると、<key>タグ内の「IDT_SYSTEM_OUTLINE」をキー4aとして判定し、図2(b)のキー付データテーブル4に格納する。更に、図2(c)の帳票XMLデータ5が作成されているとすると、<Root><System><Outline>の三重タグ内の「このシステムは・・・」を値4bとして判定し、図2(b)に示すようにマッピングして格納する。   For example, if the keyed data XML mapping table 3 in FIG. 2A is created, “IDT_SYSTEM_OUTLINE” in the <key> tag is determined as the key 4a, and the keyed data table 4 in FIG. To store. Further, if the form XML data 5 of FIG. 2C is created, “this system is ...” in the triple tag of <Root> <System> <Outline> is determined as a value 4b, and FIG. Map and store as shown in 2 (b).

プロジェクト情報管理サブシステム2は、マッピング部15、コンバート部16、SQL生成部17、RDB記憶部18、マッピングRDB記憶部19およびプロジェクト情報管理サブシステムインタフェース20を備えている。   The project information management subsystem 2 includes a mapping unit 15, a conversion unit 16, an SQL generation unit 17, an RDB storage unit 18, a mapping RDB storage unit 19, and a project information management subsystem interface 20.

マッピングRDB記憶部19は、図4に示すような、キー付データがRDBに対応するようマッピングされたキー付RDBマッピング表6を格納する。   The mapping RDB storage unit 19 stores a keyed RDB mapping table 6 in which keyed data is mapped so as to correspond to the RDB as shown in FIG.

RDB記憶部18は、オブジェクトに従って生成されるSQL文を格納する。   The RDB storage unit 18 stores an SQL sentence generated according to the object.

マッピング部15は、図1に示される帳票管理サブシステムインタフェース10を介し、キー付データ記憶部13よりキー付データテーブル4を取得し、図4のキー付RDBマッピング表6を作成して、マッピングRDB記憶部19に格納する。更に、マッピング部15は、マッピングRDB記憶部19内のキー付RDBマッピング表6を適宜取得して、SQL生成部17へ引き渡す。   The mapping unit 15 acquires the keyed data table 4 from the keyed data storage unit 13 via the form management subsystem interface 10 shown in FIG. 1, creates the keyed RDB mapping table 6 in FIG. Store in the RDB storage unit 19. Further, the mapping unit 15 appropriately acquires the keyed RDB mapping table 6 in the mapping RDB storage unit 19 and delivers it to the SQL generation unit 17.

コンバート部16は、図5のようにXMLタグの子要素、例えばユーザID、ユーザ名、ローマ字ユーザ名、ユーザ所属組織コード等を供えるような複雑なデータを、RDB格納用SQLデータを作成するSQL生成部17が解釈可能な型、例えば、「ユーザID」「ユーザ名」等を「userid」「username」等に変換する。   As shown in FIG. 5, the converting unit 16 creates SQL data for RDB storage from complex data that provides child elements of an XML tag, such as user ID, user name, Roman user name, user organization code, etc. A type that can be interpreted by the generation unit 17, for example, “user ID”, “user name”, etc. is converted into “userid”, “username”, etc.

SQL生成部17は、マッピング部15で生成されたデータからSQLを自動生成し、RDB記憶部18に格納するための情報を生成するモジュールである。   The SQL generation unit 17 is a module that automatically generates SQL from the data generated by the mapping unit 15 and generates information for storing in the RDB storage unit 18.

プロジェクト情報管理サブシステムインタフェース20は、帳票管理サブシステム1間とデータの送受信を行うためのインタフェースである。   The project information management subsystem interface 20 is an interface for exchanging data with the form management subsystem 1.

尚、本発明は図示しないCPUが、帳票管理サブシステム1およびプロジェクト情報管理サブシステム2内の各モジュールを実行することにより実現される。   The present invention is realized by a CPU (not shown) executing each module in the form management subsystem 1 and the project information management subsystem 2.

(帳票データ変換装置の動作)
以下、帳票データ変換装置の動作について図7のフローチャートを参照して説明する。
(Operation of form data conversion device)
Hereinafter, the operation of the form data conversion apparatus will be described with reference to the flowchart of FIG.

(a)先ずステップS101において、帳票入力部11は、ユーザに図3の帳票入力画面を提示し、帳票の名前(フォームキー)に対して値を入力させる。入力後21の保存ボタンのクリック処理等により、この帳票の入力処理の開始をシステムに通知する。   (A) First, in step S101, the form input unit 11 presents the form input screen in FIG. 3 to the user, and inputs a value for the form name (form key). After the input, the start of the form input process is notified to the system, for example, by clicking the save button 21.

(b)ステップS102において、画面−XMLマッピング部12が、フォームキーを受信し、図2(a)のキー付データXMLマッピング表3を作成する。ステップS103において、画面−XMLマッピング部12が、作成されたキー付データXMLマッピング表3から、「key」タグ、「Xpath」タグ、「DataType」タグを読み込み、ステップS104において、図2(c)の帳票XMLデータ5を読み込む。   (B) In step S102, the screen-XML mapping unit 12 receives the form key, and creates the keyed data XML mapping table 3 in FIG. In step S103, the screen-XML mapping unit 12 reads the “key” tag, “Xpath” tag, and “DataType” tag from the created keyed data XML mapping table 3, and in step S104, FIG. The form XML data 5 is read.

(c)ステップS105では、画面−XMLマッピング部12が、キー付データXMLマッピング表3の「DataType」がテキストであるか否かを判定する。図2(a)の上段のように、<DataType>Text</DataType>、つまりデータタイプがテキストとの記載があればステップS106へ進み、図2(a)の下段のように、<DataType>UserData</DataType>、つまりデータタイプはテキスト以外のUserData等との記載があればステップS107へ進む。   (C) In step S105, the screen-XML mapping unit 12 determines whether “DataType” in the keyed data XML mapping table 3 is text. If there is a description of <DataType> Text </ DataType>, that is, the data type is text as shown in the upper part of FIG. 2A, the process proceeds to step S106. As shown in the lower part of FIG. If there is a description of UserData </ DataType>, that is, the data type is UserData other than text, etc., the process proceeds to step S107.

(d)ステップS106においては、画面−XMLマッピング部12が、図2(a)の「Xpath」タグの経路に従い、図2(c)の帳票XMLデータ5の<Root><System><OutLine>が示す位置にある「このシステムは…」を値4bのデータとして取得する。ステップS107においては、画面−XMLマッピング部12が、図2(a)の「Xpath」タグの経路に従い、特殊ロジックにより図2(c)の帳票XMLデータ5より「UserData」の<UserID>、<UserName>、<UserOrgCode>、<UserPost>が各々示す「yamada」、「山田太郎」、「ABC」、「部長」を値4bのデータとして取得する。ステップS108においては、取得された各々のデータを図2(b)のキー付データテーブル4に格納する。ステップS105〜S108の処理はキー付データXMLマッピング表3内の<Key>が無くなるまで実行される。   (D) In step S106, the screen-XML mapping unit 12 follows <Root> <System> <OutLine> of the form XML data 5 in FIG. 2 (c) according to the path of the “Xpath” tag in FIG. 2 (a). "This system ..." at the position indicated by is acquired as data of value 4b. In step S107, the screen-XML mapping unit 12 follows the path of the “Xpath” tag in FIG. 2A and uses the special logic from the form XML data 5 in FIG. "Yamada", "Taro Yamada", "ABC", and "Director" respectively indicated by UserName>, <UserOrgCode>, and <UserPost> are acquired as data of value 4b. In step S108, each acquired data is stored in the keyed data table 4 of FIG. The processes in steps S105 to S108 are executed until the <Key> in the keyed data XML mapping table 3 disappears.

(e)ステップS109においては、プロジェクト情報管理サブシステムインタフェース20が帳票管理サブシステムインタフェース10よりキー付データテーブル4を取得し、マッピング部15引き渡す。マッピング部15は、このキー付データテーブル4を基に、図4のキー付RDBマッピング表6を作成する。作成処理としては、図2(b)のキー4a「IDT_SYSTEM_OUTLINE」をフォームキーとして<FormKey>タグ内にマッピングし、<DataType>は、予めユーザによりマッピング部15に設定されている「com.Toshiba_sol.data.SystemInfo」としてマッピングする。尚、キー付RDBマッピング表6は、マッピングRDB記憶部19に格納される。ステップS110においては、マッピングRDB記憶部19よりキー付RDBマッピング表6を取得し、<Key><FormKey><Data Type><Converter>の各々のタグが示すデータを読み込む。尚、キー付RDBマッピング表6を作成するのはXMLデータをRDB記憶部18に格納する必要がある場合、つまり、集計対象とする場合に行う。   (E) In step S109, the project information management subsystem interface 20 acquires the keyed data table 4 from the form management subsystem interface 10 and delivers it to the mapping unit 15. The mapping unit 15 creates the keyed RDB mapping table 6 of FIG. 4 based on the keyed data table 4. In the creation process, the key 4a “IDT_SYSTEM_OUTLINE” in FIG. 2B is mapped as a form key in the <FormKey> tag, and <DataType> is “com.Toshiba_sol. Map as "data.SystemInfo". The keyed RDB mapping table 6 is stored in the mapping RDB storage unit 19. In step S110, the keyed RDB mapping table 6 is acquired from the mapping RDB storage unit 19, and data indicated by each tag of <Key> <FormKey> <Data Type> <Converter> is read. The keyed RDB mapping table 6 is created when the XML data needs to be stored in the RDB storage unit 18, that is, when the data is to be counted.

(f)ステップS111においては、コンバート処理を行う。詳細は後述する。ステップS112においては、SQL生成部17が、コンバート処理により作成されたオブジェクトを基に、SQL文を生成する。ステップS113はこのSQL文をRDB記憶部18に格納し、プロジェクト情報を更新する。尚、キーを記載しない場合は、集計対象にならずにRDBに記憶部18には格納されない。   (F) In step S111, a conversion process is performed. Details will be described later. In step S112, the SQL generation unit 17 generates an SQL sentence based on the object created by the conversion process. In step S113, the SQL statement is stored in the RDB storage unit 18, and the project information is updated. In addition, when a key is not described, it is not stored in the storage unit 18 in the RDB without being counted.

次に、ステップS111のコンバート部16の処理について図8のフローチャートを参照して説明する。尚、前提として以下の処理は処理するフォームキーが無くなるまで行われるものとする。   Next, the processing of the converting unit 16 in step S111 will be described with reference to the flowchart of FIG. It is assumed that the following processing is performed until there are no form keys to be processed.

(a)ステップS201において、図2(b)のキー付データテーブル4にフォームキーで指定されたキー4a(例えば「IDT_SYSTEM_OUTLINE」)があるか否かを判断する。ステップS202において、キー付データRDBマッピング表6の中で、<Data Type>で指定されているオブジェクト、例えば図4の、「com.Toshiba_sol.data.SystemInfo」や、「com.Toshiba_sol.data.UserData」のオブジェクトを読み込む。   (A) In step S201, it is determined whether or not there is a key 4a (for example, “IDT_SYSTEM_OUTLINE”) designated by the form key in the keyed data table 4 in FIG. In step S202, the object specified by <Data Type> in the keyed data RDB mapping table 6, such as “com.Toshiba_sol.data.SystemInfo” or “com.Toshiba_sol.data.UserData” in FIG. ”Object.

(b)ステップS203においては、読み込まれたオブジェクト内に、コンバータ属性が指定されているものがあるかを判断する。コンバータ属性指定がある場合はステップS204へ、指定がない場合はステップS209へ進む。   (B) In step S203, it is determined whether any of the read objects have a converter attribute specified. If the converter attribute is specified, the process proceeds to step S204. If the converter attribute is not specified, the process proceeds to step S209.

(c)ステップS204では、キー付データテーブル4からキー4aを取り出し、オブジェクト「com.Toshiba_sol.data.UserData」に設定する。ステップS205においては、図6(a)に示すように、キー4aに対応するキー4c、例えば「UID」等を設定し、キー付データテーブル4からキー4aのデータ、例えば「yamada」等を読み込む。   (C) In step S204, the key 4a is extracted from the keyed data table 4 and set to the object “com.Toshiba_sol.data.UserData”. In step S205, as shown in FIG. 6A, a key 4c corresponding to the key 4a, such as “UID”, is set, and data of the key 4a, such as “yamada”, is read from the keyed data table 4. .

(d)ステップS206においては、読み込まれたデータを設定して、<Data Type>で指定されているオブジェクト「com.Toshiba_sol.data.UserData」を図6(a)のように生成する。   (D) In step S206, the read data is set, and the object “com.Toshiba_sol.data.UserData” specified by <Data Type> is generated as shown in FIG.

ステップS207においては、キー付データテーブル4のキー4aよりオブジェクトが必要なキーを取得し、図6に記載されている値4bと、記載されているキー4cの対応付けを行う。ステップS208においては、オブジェクトに対して取得したキーを設定する。つまり、対応付けされたデータをステップS206にて生成されたオブジェクトに設定する。   In step S207, a key that requires an object is obtained from the key 4a of the keyed data table 4, and the value 4b shown in FIG. 6 is associated with the described key 4c. In step S208, the acquired key is set for the object. That is, the associated data is set in the object generated in step S206.

(e)ステップS209においては、コンバータ処理を行わないため、通常処理として、キー付データテーブル4からキーを取り出し、生成されたオブジェクト「com.Toshiba_sol.data.SystemInfo」に指定されるキーおよびその値を図6(b)のように設定する。   (E) Since the converter process is not performed in step S209, the key and its value specified in the generated object “com.Toshiba_sol.data.SystemInfo” are extracted from the keyed data table 4 as a normal process. Is set as shown in FIG.

上記によると、帳票から複雑なデータが入力されても、コンバータ属性に指定されるコンバート部16を備えることで、RDB記憶部18に格納することができるため、容易に格納されたデータを集計処理することができる。   According to the above, even if complicated data is input from the form, the conversion unit 16 specified by the converter attribute can be stored in the RDB storage unit 18, so that the stored data can be easily aggregated. can do.

本発明の実施の形態に係る帳票データ変換装置の内部構造を示す構造図。The structure figure which shows the internal structure of the form data conversion apparatus which concerns on embodiment of this invention. 帳票管理サブシステムが備えるデータ構造を示す図。The figure which shows the data structure with which a form management subsystem is provided. 帳票入力部の入力画面を示す図。The figure which shows the input screen of a form input part. マッピングRDB記憶部内のデータ構造を示す図。The figure which shows the data structure in a mapping RDB memory | storage part. XMLタグの子要素を複数備えるデータのデータ構成を示す図え。The figure which shows the data structure of the data provided with two or more child elements of an XML tag. コンバート部が生成するオブジェクトの一例を示す図。The figure which shows an example of the object which a conversion part produces | generates. 帳票データ変換装置の全体動作を示すフローチャート。The flowchart which shows the whole operation | movement of a form data conversion apparatus. コンバート部の動作を示すフローチャート。The flowchart which shows operation | movement of a conversion part.

符号の説明Explanation of symbols

1…帳票管理サブシステム
2…プロジェクト情報管理サブシステム
3…マッピング表
4…キー付データテーブル
4a,4c…キー
4b…値
5…帳票XMLデータ
6…マッピング表
10…帳票管理サブシステムインタフェース
11…帳票入力部
12…XMLマッピング部
13…キー付データ記憶部
14…データ記憶部
15…マッピング部
16…コンバート部
17…SQL生成部
18…RDB記憶部
19…マッピングRDB記憶部
20…プロジェクト情報管理サブシステムインタフェース
100…帳票データ変換装置
DESCRIPTION OF SYMBOLS 1 ... Form management subsystem 2 ... Project information management subsystem 3 ... Mapping table 4 ... Data table with key 4a, 4c ... Key 4b ... Value 5 ... Form XML data 6 ... Mapping table 10 ... Form management subsystem interface 11 ... Form Input unit 12 XML mapping unit 13 Data storage unit with key 14 Data storage unit 15 Mapping unit 16 Conversion unit 17 SQL generation unit 18 RDB storage unit 19 Mapping RDB storage unit 20 Project information management subsystem Interface 100: Form data conversion device

Claims (2)

ユーザが指定するオブジェクトを示すキーとこのキーに対応する値とを帳票データから取得する帳票入力部と、
前記キーをXML形式で格納するキー付データXMLマッピング記憶部と、
前記キーに対応する値をXML形式で格納する帳票XMLデータ記憶部と、
前記キー付データXMLマッピング記憶部内に格納されるキーと、前記帳票XMLデータ記憶部内に格納される前記キーに対応する値を取得し、前記キーおよび前記キーに対応する値を備えるキー付データを作成する画面―XMLマッピング部と、
前記作成された前記キー付データと前記帳票XMLデータ記憶部から取得するXMLタグとを基に、前記キーと前記オブジェクトの名前を備えるキー付RDBマッピングデータを作成するマッピング部と、
前記XMLタグが子要素データを含む場合、前記子要素データを、リレーショナルデータベース格納用のSQL構文に置換可能に変換するコンバート部と、
前記オブジェクトに従って変換された前記SQL構文を格納するRDB記憶部と、
を備えることを特徴とする帳票データ変換装置。
A form input unit for acquiring a key indicating an object specified by the user and a value corresponding to the key from the form data;
A keyed data XML mapping storage unit for storing the key in XML format;
A form XML data storage unit for storing a value corresponding to the key in an XML format;
A key stored in the keyed data XML mapping storage unit and a value corresponding to the key stored in the form XML data storage unit are acquired, and keyed data including the key and a value corresponding to the key is obtained. Screen to create-XML mapping part,
A mapping unit for creating keyed RDB mapping data including the key and the name of the object based on the created keyed data and the XML tag acquired from the form XML data storage unit;
When the XML tag includes child element data, a conversion unit that converts the child element data into a replaceable SQL syntax for relational database storage;
An RDB storage unit for storing the SQL syntax converted according to the object;
A form data conversion device characterized by comprising:
帳票データの変換を行うコンピュータに、
ユーザが指定するオブジェクトを示すキーとこのキーに対応する値とを前記帳票データから帳票入力部に取得させる命令と、
前記キーをXML形式でキー付データXMLマッピング記憶部に格納する命令と、
前記キーに対応する値をXML形式で帳票XMLデータ記憶部に格納する命令と、
前記キー付データXMLマッピング記憶部内に格納されるキーと、前記帳票XMLデータ記憶部内に記憶される前記キーに対応する値を取得し、画面―XMLマッピング部に前記キーおよび前記キーに対応する値を備えるキー付データを作成させる命令と、
前記作成された前記キー付データおよび前記帳票XMLデータ記憶部から取得するXMLタグとを基に、マッピング部に前記キーと前記オブジェクトの名前を備えるキー付RDBマッピングデータを作成させる命令と、
前記XMLタグが子要素データを含む場合、コンバート部に前記子要素データを、リレーショナルデータベース格納用のSQL構文に置換可能に変換させる命令と、
前記オブジェクトに従って変換された前記SQL構文をRDB記憶部に格納する命令と、
を実行させることを特徴とする帳票データ変換プログラム。


On the computer that converts the form data,
A command that causes the form input unit to acquire a key indicating an object designated by the user and a value corresponding to the key from the form data;
An instruction for storing the key in XML format in a keyed data XML mapping storage unit;
A command for storing a value corresponding to the key in a form XML data storage unit in XML format;
A key stored in the keyed data XML mapping storage unit and a value corresponding to the key stored in the form XML data storage unit are obtained, and the key and a value corresponding to the key are acquired in a screen-XML mapping unit. An instruction to create keyed data comprising:
Based on the created keyed data and the XML tag acquired from the form XML data storage unit, a command for causing the mapping unit to create keyed RDB mapping data including the key and the name of the object;
When the XML tag includes child element data, an instruction that causes the conversion unit to convert the child element data into a replaceable SQL syntax for relational database storage;
An instruction for storing the SQL syntax converted according to the object in an RDB storage unit;
A form data conversion program characterized by causing


JP2004306822A 2004-10-21 2004-10-21 Business form data conversion apparatus and business form data conversion program Pending JP2006119888A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004306822A JP2006119888A (en) 2004-10-21 2004-10-21 Business form data conversion apparatus and business form data conversion program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004306822A JP2006119888A (en) 2004-10-21 2004-10-21 Business form data conversion apparatus and business form data conversion program

Publications (1)

Publication Number Publication Date
JP2006119888A true JP2006119888A (en) 2006-05-11

Family

ID=36537719

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004306822A Pending JP2006119888A (en) 2004-10-21 2004-10-21 Business form data conversion apparatus and business form data conversion program

Country Status (1)

Country Link
JP (1) JP2006119888A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008041082A (en) * 2006-07-12 2008-02-21 Hitachi Ltd Processing apparatus and program
JP2009099090A (en) * 2007-10-19 2009-05-07 Pfu Ltd Form keyword registration device, form keyword registeration method, and program
KR20170024367A (en) * 2015-08-25 2017-03-07 (주)다우기술 Method for generating application having variable input format

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001318935A (en) * 2000-05-09 2001-11-16 Komakkusu:Kk Information processor, its method, recording medium recording information processing software, and relational database
JP2003186734A (en) * 2001-12-21 2003-07-04 Dainippon Printing Co Ltd Electronic form data conversion system, server, development client, program, recording medium
JP2003256455A (en) * 2002-03-06 2003-09-12 Nec Corp Xml document storage/retrieval device, xml document storage/retrieval method used in it, and program for it

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001318935A (en) * 2000-05-09 2001-11-16 Komakkusu:Kk Information processor, its method, recording medium recording information processing software, and relational database
JP2003186734A (en) * 2001-12-21 2003-07-04 Dainippon Printing Co Ltd Electronic form data conversion system, server, development client, program, recording medium
JP2003256455A (en) * 2002-03-06 2003-09-12 Nec Corp Xml document storage/retrieval device, xml document storage/retrieval method used in it, and program for it

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008041082A (en) * 2006-07-12 2008-02-21 Hitachi Ltd Processing apparatus and program
JP2009099090A (en) * 2007-10-19 2009-05-07 Pfu Ltd Form keyword registration device, form keyword registeration method, and program
KR20170024367A (en) * 2015-08-25 2017-03-07 (주)다우기술 Method for generating application having variable input format
KR101723973B1 (en) * 2015-08-25 2017-04-06 (주)다우기술 Method for generating application having variable input format

Similar Documents

Publication Publication Date Title
US8868620B2 (en) Techniques for composing data queries
US7472346B2 (en) Multidimensional XBRL engine
US8972854B2 (en) Graphical creation of a document conversion template
US20110093486A1 (en) Data query method, data query system and computer readable and writable recording medium
US20070208769A1 (en) System and method for generating an XPath expression
JP2005521159A5 (en)
JP2004234354A (en) Method, system and program of creating structural pattern candidate
JP2006053892A (en) Localization of xml through transformation
CN110222110A (en) A kind of resource description framework data conversion storage integral method based on ETL tool
JP2007066017A (en) System and method for controlling access to database
CN106980619B (en) Data query method and device
US8413109B2 (en) Systems and methods for metamodel transformation
US20130339368A1 (en) Method and system for handling non-presence of elements or attributes in semi-structured data
US7596577B2 (en) Methods and systems for specifying a user interface for an application
US8433729B2 (en) Method and system for automatically generating a communication interface
US7761461B2 (en) Method and system for relationship building from XML
US8255356B2 (en) Apparatus and method of generating document
JP2006119888A (en) Business form data conversion apparatus and business form data conversion program
US20090182722A1 (en) Method and system for navigation of a data structure
JP2010267092A (en) Information processor and information processing method
CN116501938A (en) Data acquisition method, device, equipment and storage medium
CN115905278A (en) Data query method and device
JP4690798B2 (en) Network equipment
JP5488792B2 (en) Database operation device, database operation method, and program
US11327994B2 (en) Arranging converted operation history information

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080722

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081118