JP6932064B2 - Database support device, database support method, and program - Google Patents
Database support device, database support method, and program Download PDFInfo
- Publication number
- JP6932064B2 JP6932064B2 JP2017212148A JP2017212148A JP6932064B2 JP 6932064 B2 JP6932064 B2 JP 6932064B2 JP 2017212148 A JP2017212148 A JP 2017212148A JP 2017212148 A JP2017212148 A JP 2017212148A JP 6932064 B2 JP6932064 B2 JP 6932064B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- data structure
- definition file
- information
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、データベース支援装置、データベース支援方法、及びプログラムに関する。 The present invention relates to a database support device, a database support method, and a program.
XML(Extensible Markup Language)などのデータベースでは、投入されるデータ形式のバージョンが変わるなど、後から挿入されるデータの要素や属性などが変化しても、新旧データの差異を勘案することなくそのまま追加格納できることが魅力のひとつである。また、近年、XML分析を検証するのに用いられえる定義ファイルを自動で生成する技術が知られている(例えば、特許文献1を参照)。 In databases such as XML (Extensible Markup Language), even if the elements and attributes of the data to be inserted later change, such as when the version of the input data format changes, it is added as it is without considering the difference between the old and new data. One of the attractions is that it can be stored. Further, in recent years, a technique for automatically generating a definition file that can be used for verifying XML analysis has been known (see, for example, Patent Document 1).
しかしながら、XMLなどのデータベースでは、静的な構造定義の利用を前提とすると、上述したデータ形式のバージョンの変化や、データの要素又は属性の変化などの構造の変化への対応を毎回迫られることになる。多くの場合、XMLなどのデータベースの中身は、複数の仕様が絡み合うなど複雑な記述になっていることが多い。
このような背景もあり、従来のXMLなどのデータベースでは、XMLデータの変化がある度に、システム開発の有識者が動員されて既存及び新規データの解析を行っていた。
However, in databases such as XML, assuming the use of static structure definitions, it is necessary to respond to structural changes such as changes in the above-mentioned data format version and changes in data elements or attributes every time. become. In many cases, the contents of a database such as XML are often complicated descriptions such as intertwining of a plurality of specifications.
Against this background, in conventional databases such as XML, every time there is a change in XML data, experts in system development are mobilized to analyze existing and new data.
本発明は、上記問題を解決すべくなされたもので、その目的は、データの変化に動的に対応しつつ、データの構造を把握することができるデータベース支援装置、データベース支援方法、及びプログラムを提供することにある。 The present invention has been made to solve the above problems, and an object of the present invention is to provide a database support device, a database support method, and a program capable of grasping a data structure while dynamically responding to changes in data. To provide.
上記問題を解決するために、本発明の一態様は、データを識別するデータ識別情報と、データ値とを対応付けてデータが記述された対象データ記述を取得する取得部と、前記取得部によって取得した前記対象データ記述に含まれている前記データを抽出し、抽出した当該データを解析するデータ解析部と、前記データ解析部によって解析された当該解析結果に基づいて、前記データに関するデータ構造定義情報を生成し、生成した当該データ構造定義情報を含むデータ構造動的定義ファイルを生成するファイル生成部であって、前記対象データ記述に対する前記データ構造動的定義ファイルが既に存在している場合には、当該データ構造動的定義ファイルに含まれるデータ構造定義情報と、生成した当該データ構造定義情報との和集合を示すデータ構造定義情報を再生成し、当該データ構造定義情報を更新した前記データ構造動的定義ファイルを再生成するファイル生成部とを備え、前記データ解析部は、前記対象データ記述に含まれる名前空間の記述を抽出し、抽出した前記名前空間の識別情報が重複する場合に、重複した前記名前空間を個別に識別できるように、前記識別情報に枝番号を付与し、前記ファイル生成部は、前記名前空間の一覧を含む前記データ構造動的定義ファイルを生成又は再生成することを特徴とするデータベース支援装置である。 In order to solve the above problem, one aspect of the present invention includes an acquisition unit that acquires a target data description in which data is described by associating data identification information for identifying data with a data value, and the acquisition unit. Data structure definition related to the data based on the data analysis unit that extracts the data included in the acquired target data description and analyzes the extracted data and the analysis result analyzed by the data analysis unit. When the data structure dynamic definition file for the target data description already exists in the file generation unit that generates the information and generates the data structure dynamic definition file containing the generated data structure definition information. Regenerates the data structure definition information indicating the sum set of the data structure definition information included in the data structure dynamic definition file and the generated data structure definition information, and updates the data structure definition information. It includes a file generation unit that regenerates the structural dynamic definition file, and the data analysis unit extracts the description of the namespace included in the target data description, and when the extracted identification information of the namespace overlaps. , A branch number is assigned to the identification information so that the duplicated namespaces can be individually identified, and the file generation unit generates or regenerates the data structure dynamic definition file including a list of the namespaces. It is a database support device characterized by this.
また、本発明の一態様は、上記のデータベース支援装置において、前記データ解析部は、抽出した前記データの要素ごとの構造及びデータ値を解析し、前記ファイル生成部は、前記要素に対応するデータ型、データ値の最大値、データ値の最小値、又はデータ値に値がない場合を含むか否かを示す情報を含むデータ構造定義情報を生成又は再生成することを特徴とする。 Further, in one aspect of the present invention, in the database support device, the data analysis unit analyzes the structure and data value of each element of the extracted data, and the file generation unit analyzes the data corresponding to the element. It is characterized by generating or regenerating data structure definition information including information indicating whether or not a type, a maximum value of a data value, a minimum value of a data value, or a case where the data value has no value is included.
また、本発明の一態様は、上記のデータベース支援装置において、前記データ解析部は、抽出した前記データの階層構造を解析し、前記ファイル生成部は、前記データの階層構造を維持した前記データ構造動的定義ファイルを生成又は再生成することを特徴とする。 Further, in one aspect of the present invention, in the database support device, the data analysis unit analyzes the hierarchical structure of the extracted data, and the file generation unit maintains the hierarchical structure of the data. It is characterized by generating or regenerating a dynamic definition file.
また、本発明の一態様は、上記のデータベース支援装置において、前記ファイル生成部によって生成又は再生成された前記データ構造動的定義ファイルに基づいて、前記対象データ記述に含まれるデータの構造に関する情報を出力部に出力する出力処理部を備えることを特徴とする。 Further, one aspect of the present invention is information on the structure of data included in the target data description based on the data structure dynamic definition file generated or regenerated by the file generation unit in the database support device. Is provided with an output processing unit that outputs the data to the output unit.
また、本発明の一態様は、データベース支援装置が実行するデータベース支援方法であって、データを識別するデータ識別情報と、データ値とを対応付けてデータが記述された対象データ記述を取得する取得ステップと、前記取得ステップによって取得した前記対象データ記述に含まれている前記データを抽出し、抽出した当該データを解析するデータ解析ステップと、前記データ解析ステップによって解析された当該解析結果に基づいて、前記データに関するデータ構造定義情報を生成し、生成した当該データ構造定義情報を含むデータ構造動的定義ファイルを生成するファイル生成ステップであって、前記対象データ記述に対する前記データ構造動的定義ファイルが既に存在している場合には、当該データ構造動的定義ファイルに含まれるデータ構造定義情報と、生成した当該データ構造定義情報との和集合を示すデータ構造定義情報を再生成し、当該データ構造定義情報を更新した前記データ構造動的定義ファイルを再生成するファイル生成ステップとを含み、前記データ解析ステップにおいて、前記対象データ記述に含まれる名前空間の記述を抽出し、抽出した前記名前空間の識別情報が重複する場合に、重複した前記名前空間を個別に識別できるように、前記識別情報に枝番号を付与し、前記ファイル生成ステップにおいて、前記名前空間の一覧を含む前記データ構造動的定義ファイルを生成又は再生成することを特徴とするデータベース支援方法である。 Further, one aspect of the present invention is a database support method executed by a database support device, which acquires a target data description in which data is described by associating data identification information for identifying data with a data value. Based on the step, the data analysis step of extracting the data included in the target data description acquired by the acquisition step and analyzing the extracted data, and the analysis result analyzed by the data analysis step. , A file generation step of generating data structure definition information related to the data and generating a data structure dynamic definition file including the generated data structure definition information, wherein the data structure dynamic definition file for the target data description is If it already exists, the data structure definition information indicating the sum set of the data structure definition information included in the data structure dynamic definition file and the generated data structure definition information is regenerated, and the data structure is generated. look contains a file generation step for regenerating the updated definition information the data structure dynamic definition file, in the data analysis step, extracts a description of the name space contained in the object data describing the extracted the namespace When the identification information of the above is duplicated, a branch number is assigned to the identification information so that the duplicated namespaces can be individually identified, and the data structure dynamic including the list of the namespaces in the file generation step. It is a database support method characterized by generating or regenerating a definition file.
また、本発明の一態様は、コンピュータに、データを識別するデータ識別情報と、データ値とを対応付けてデータが記述された対象データ記述を取得する取得ステップと、前記取得ステップによって取得した前記対象データ記述に含まれている前記データを抽出し、抽出した当該データを解析するデータ解析ステップと、前記データ解析ステップによって解析された当該解析結果に基づいて、前記データに関するデータ構造定義情報を生成し、生成した当該データ構造定義情報を含むデータ構造動的定義ファイルを生成するファイル生成ステップであって、前記対象データ記述に対する前記データ構造動的定義ファイルが既に存在している場合には、当該データ構造動的定義ファイルに含まれるデータ構造定義情報と、生成した当該データ構造定義情報との和集合を示すデータ構造定義情報を再生成し、当該データ構造定義情報を更新した前記データ構造動的定義ファイルを再生成するファイル生成ステップとを実行させ、前記データ解析ステップにおいて、前記対象データ記述に含まれる名前空間の記述を抽出し、抽出した前記名前空間の識別情報が重複する場合に、重複した前記名前空間を個別に識別できるように、前記識別情報に枝番号を付与し、前記ファイル生成ステップにおいて、前記名前空間の一覧を含む前記データ構造動的定義ファイルを生成又は再生成する処理を実行させるためのプログラムである。 Further, one aspect of the present invention includes an acquisition step of acquiring a target data description in which data is described by associating data identification information for identifying data with a data value, and the acquisition step acquired by the acquisition step. Data structure definition information related to the data is generated based on the data analysis step of extracting the data included in the target data description and analyzing the extracted data and the analysis result analyzed by the data analysis step. If the data structure dynamic definition file including the generated data structure definition information is generated in the file generation step and the data structure dynamic definition file for the target data description already exists, the relevant data structure dynamic definition file is generated. The data structure dynamic that shows the sum set of the data structure definition information included in the data structure dynamic definition file and the generated data structure definition information is regenerated, and the data structure definition information is updated. A file generation step for regenerating the definition file is executed, and in the data analysis step, the description of the namespace included in the target data description is extracted, and when the extracted identification information of the namespace is duplicated, duplication occurs. A process of assigning a branch number to the identification information and generating or regenerating the data structure dynamic definition file including a list of the namespaces in the file generation step so that the named names can be individually identified. is the order of the program to be executed.
本発明によれば、データの変化に動的に対応しつつ、データの構造を把握することができる。 According to the present invention, it is possible to grasp the structure of data while dynamically responding to changes in data.
以下、本発明の一実施形態によるデータベース支援装置、及びデータベース支援方法について、図面を参照して説明する。 Hereinafter, the database support device and the database support method according to the embodiment of the present invention will be described with reference to the drawings.
図1は、本実施形態によるデータベース支援装置1の一例を示すブロック図である。
図1に示すように、データベース支援装置1は、入力部11と、表示部12と、記憶部13と、制御部20とを備えている。データベース支援装置1は、XMLで記述された対象XMLデータ(対象データ記述)を解析して、データ構造を示すデータ構造動的定義ファイルを生成する。ここで、XMLは、データを識別するデータ識別情報(例えば、データ項目、要素名など)と、データ値とを対応付けてデータを記述するデータ記述言語の一例である。また、データ構造動的定義ファイルは、図2に示すような記述を含むファイルであり、その詳細については後述する。
FIG. 1 is a block diagram showing an example of the
As shown in FIG. 1, the
入力部11は、例えば、キーボードやタッチパネルなどの入力装置である。入力部11は、データベース支援装置1の各種操作をユーザから受け付け、受け付けた操作示す情報を制御部20に出力する。
The
表示部12(出力部の一例)は、例えば、液晶ディスプレイ装置などであり、制御部20による制御に基づいて、各種情報を表示する。
The display unit 12 (an example of an output unit) is, for example, a liquid crystal display device or the like, and displays various information based on the control by the
記憶部13は、例えば、ハードディスクドライブ装置(HDD装置)や半導体メモリなどであり、データベース支援装置1の各種処理に利用される情報を記憶する。記憶部13は、例えば、データベースの解析を行う対象XMLデータを含むファイル及びディレクトリや、データ構造動的定義ファイル及びディレクトリなどを記憶する。
The
制御部20は、例えば、CPU(Central Processing Unit)などを含むプロセッサであり、データベース支援装置1を統括的に制御する。制御部20は、対象XML取得部21と、データ解析部22と、定義ファイル生成部23と、表示処理部24とを備えている。
The
対象XML取得部21(取得部の一例)は、データがXMLで記述された対象XMLデータ(対象データ記述)を、例えば、記憶部13から取得する。対象XML取得部21は、例えば、ユーザから入力部11によって指定されたディレクトリ内のXMLデータファイルを記憶部13から取得する。
The target XML acquisition unit 21 (an example of the acquisition unit) acquires the target XML data (target data description) whose data is described in XML from, for example, the
データ解析部22は、対象XML取得部21によって取得した対象XMLデータに含まれているデータを抽出し、抽出した当該データを解析する。データ解析部22は、例えば、抽出したデータの要素ごとの構造及びデータ値を解析する。具体的に、データ解析部22は、データの要素、及び属性のXPathによる位置を解析するとともに、データの階層構造(例えば、データの要素及び属性の階層構造)を解析する。また、データ解析部22は、データの繰り返し判定(例えば、繰返し数の取得)、データ型の判定、データ値の最大値、最小値、null(ヌル:空白)を含むか否かの判定、及びデータの出現回数の取得などを実行する。なお、データ解析部22は、データ型を判定できない場合に、文字列型と判定する。
The
また、データ解析部22は、対象XMLデータに含まれる名前空間の記述を抽出する。データ解析部22は、抽出した名前空間の識別情報(例えば、名前空間名(prefix))が重複する場合に、重複した名前空間を個別に識別できるように、識別情報(例えば、名前空間名(prefix))に枝番号を付与する。
Further, the
定義ファイル生成部23(ファイル生成部の一例)は、データ解析部22によって解析された当該解析結果に基づいて、データに関するデータ構造定義情報を生成し、生成した当該データ構造定義情報を含むデータ構造動的定義ファイルを生成する。また、定義ファイル生成部23は、対象XMLデータに対するデータ構造動的定義ファイルが既に存在している場合には、当該データ構造動的定義ファイルに含まれるデータ構造定義情報と、生成した当該データ構造定義情報との和集合を示すデータ構造定義情報を再生成する。そして、定義ファイル生成部23は、当該データ構造定義情報を更新したデータ構造動的定義ファイルを再生成する。
The definition file generation unit 23 (an example of the file generation unit) generates data structure definition information related to data based on the analysis result analyzed by the
具体的に、定義ファイル生成部23は、要素(又は属性)に対応するデータ型、データ値の最大値、データ値の最小値、又はデータ値にnull(値がない場合)を含むか否かを示す情報を含むデータ構造定義情報を生成又は再生成し、データ構造動的定義ファイルを生成又は再生成(更新)する。また、定義ファイル生成部23は、データの階層構造を維持したデータ構造動的定義ファイルを生成又は再生成(更新)する。また、定義ファイル生成部23は、要素の出現順を維持して、データ構造動的定義ファイルを生成又は再生成(更新)する。
また、定義ファイル生成部23は、名前空間の一覧を含むデータ構造動的定義ファイルを生成又は再生成(更新)する。
Specifically, the definition
In addition, the definition
ここで、図2を参照して、データ構造動的定義ファイルについて説明する。
図2は、本実施形態におけるデータ構造動的定義ファイルの一例を示す図である。
図2に示すように、データ構造動的定義ファイルF1は、名前空間の一覧(記述L1)と、データ構造定義情報の一覧(記述L2)とを含んでいる。なお、データ構造動的定義ファイルF1は、対象XMLデータと同様のXML形式で記述される。
Here, the data structure dynamic definition file will be described with reference to FIG.
FIG. 2 is a diagram showing an example of a data structure dynamic definition file in the present embodiment.
As shown in FIG. 2, the data structure dynamic definition file F1 includes a list of namespaces (description L1) and a list of data structure definition information (description L2). The data structure dynamic definition file F1 is described in the same XML format as the target XML data.
名前空間の一覧(記述L1)には、対象XMLファイルに利用されている名前空間の一覧がnamespaces要素内のnamespace要素として列挙される。
また、データ構造定義情報の一覧(記述L2)には、各要素の解析結果であるデータ構造定義情報がdataSet要素内のdata要素として列挙される。
In the list of namespaces (description L1), the list of namespaces used in the target XML file is listed as the namespace element in the namespaces element.
Further, in the list of data structure definition information (description L2), the data structure definition information which is the analysis result of each element is listed as the data element in the dataSet element.
次に、図3〜図6を参照して、データ構造動的定義ファイルの記述内容の詳細について説明する。
図3は、本実施形態におけるデータ構造動的定義ファイルの記述内容を説明する図である。
Next, the details of the description contents of the data structure dynamic definition file will be described with reference to FIGS. 3 to 6.
FIG. 3 is a diagram for explaining the description contents of the data structure dynamic definition file in the present embodiment.
図3に示す表は、データ構造動的定義ファイルを記述するための構造定義を表している。例えば、名前空間の一覧の記述は、「namespaces」により設定され、各名前空間の定義は、「namespace」により記述される。また、namespaceには、属性として、名前空間名「prefix」と、名前空間パス「uri」とが記述される。定義ファイル生成部23は、例えば、図4に示すように、データ構造動的定義ファイルに、名前空間の一覧(記述L3)を記述する。
The table shown in FIG. 3 represents a structure definition for describing a data structure dynamic definition file. For example, the description of the list of namespaces is set by "namespaces", and the definition of each namespace is described by "namespace". Further, in the namespace, the namespace name "prefix" and the namespace path "uri" are described as attributes. For example, as shown in FIG. 4, the definition
なお、データ解析部22は、解析の結果、名前空間名が重複している場合に、名前空間名に枝番を付与し、定義ファイル生成部23は、図4に示すように、名前空間名の重複を回避して記述する。
図4は、本実施形態における名前空間の重複の回避例を示す図である。
図4に示す例では、名前空間名の“abcCm”が重複している場合の一例を示しており、一方の名前空間名「prefix」の記述を“abcCm01”に変更して記述する。
As a result of the analysis, the
FIG. 4 is a diagram showing an example of avoiding duplication of namespaces in the present embodiment.
In the example shown in FIG. 4, an example is shown in the case where the namespace name “abcCm” is duplicated, and the description of one namespace name “prefix” is changed to “abcCm01”.
また、図3の説明に戻り、データ構造定義情報の一覧の記述は、データの詳細設定「dataset」により設定され、図3に示す項目定義により記述される。例えば、属性「attr」は、属性名を記述し、深度「depth」は、root要素を1層とした階層数を記述する。また、最小値「min」は、データ値の最小値を記述し、最大値「max」は、データ値の最大値を記述する。また、NULL「null」は、データにnullが存在するか否かを記述し、データにnullが存在する場合に、“true”が記述される。また、出現回数「occurrence」は、データの出現回数(1回か、複数か)を記述し、データ型「type」は、データ解析部22により解析されたデータの型を記述する。
Further, returning to the description of FIG. 3, the description of the list of data structure definition information is set by the detailed data setting "dataset", and is described by the item definition shown in FIG. For example, the attribute "attr" describes the attribute name, and the depth "depth" describes the number of layers with the root element as one layer. Further, the minimum value "min" describes the minimum value of the data value, and the maximum value "max" describes the maximum value of the data value. Further, Null "null" describes whether or not null is present in the data, and if null is present in the data, "true" is described. Further, the number of occurrences "occurrence" describes the number of appearances of data (one or more), and the data type "type" describes the type of data analyzed by the
例えば、図5及び図6は、本実施形態におけるデータ構造定義情報の生成例を示す図である。
図5に示す記述L4は、データ型が、“dateTime”であり、データ値の最大値が“2017−08−08T23:22:22”であり、データ値の最小値が“2016−01−04T10:11:12”である場合の記述例である。また、記述L4において、階層(depth)が、“1”であり、出現回数が“1”であることを示している。データ解析部22による解析結果がこのような場合に、定義ファイル生成部23は、データ構造定義情報として、記述L4を生成し、生成した記述L4をデータ構造動的定義ファイルに記述する。
For example, FIGS. 5 and 6 are diagrams showing an example of generating data structure definition information in the present embodiment.
In the description L4 shown in FIG. 5, the data type is "dateTime", the maximum value of the data value is "2017-08-08T23: 22: 22", and the minimum value of the data value is "2016-01-04T10". It is a description example in the case of 11:12 ”. Further, in the description L4, it is shown that the hierarchy (depth) is “1” and the number of occurrences is “1”. When the analysis result by the
また、図6に示す記述L5は、出現回数が“*”(複数回)であり、nullが存在する(null=“true”)場合の記述例である。また、記述L5において、階層(depth)が、“3”であることを示している。データ解析部22による解析結果がこのような場合に、定義ファイル生成部23は、データ構造定義情報として、記述L5を生成し、生成した記述L5をデータ構造動的定義ファイルに記述する。
Further, the description L5 shown in FIG. 6 is a description example when the number of appearances is “*” (multiple times) and null exists (null = “true”). Further, in the description L5, it is shown that the hierarchy (depth) is “3”. When the analysis result by the
このように、定義ファイル生成部23は、データ解析部22による解析結果から、上述した図3に示す構造定義に従って、データ構造動的定義ファイルを生成する。
図7は、本実施形態におけるデータ構造動的定義ファイルの生成例を示す図である。
定義ファイル生成部23は、例えば、図7に示すファイルF2のようなデータ構造動的定義ファイルを生成又は再生成する。定義ファイル生成部23は、例えば、記憶部13の指定されたディレクトリ内に、データ構造動的定義ファイルを記憶させる。
In this way, the definition
FIG. 7 is a diagram showing an example of generating a data structure dynamic definition file in this embodiment.
The definition
図1の説明に戻り、表示処理部24(出力処理部の一例)は、定義ファイル生成部23によって生成又は再生成されたデータ構造動的定義ファイルに基づいて、対象XMLデータに含まれるデータの構造に関する情報を表示部12(出力部)に出力する。すなわち、表示処理部24は、対象XMLデータに対応するデータ構造動的定義ファイルを記憶部13から取得し、当該データ構造動的定義ファイル内の記述に基づいて、例えば、図8に示すようなデータベースの構造情報を、表示部12に表示させる。
Returning to the description of FIG. 1, the display processing unit 24 (an example of the output processing unit) of the data included in the target XML data based on the data structure dynamic definition file generated or regenerated by the definition
図8は、本実施形態におけるデータベースの構造情報の表示例を示す図である。
図8に示すように、表示処理部24は、データ構造動的定義ファイルの記述に基づいて、名前空間の一覧、及び要素の解析結果であるデータ構造を示す情報一覧を、データベースの構造情報の表示画面G1として、表示部12に表示させる。なお、表示画面G1に表示されている情報は、上述した図7に示すデータ構造動的定義ファイル(ファイルF2)に基づいて表示された情報である。表示処理部24は、表示画面G1に示すように、要素のデータ構造を、階層構造を維持して、表示部12に表示させる。
FIG. 8 is a diagram showing a display example of the structural information of the database in the present embodiment.
As shown in FIG. 8, the
次に、図面を参照して、本実施形態によるデータベース支援装置1の動作について説明する。
図9は、本実施形態によるデータベース支援装置1の動作の一例を示すフローチャートである。
図9に示すように、データベース支援装置1は、まず、対象XMLデータのディレクトリの指定を受け付ける(ステップS101)。すなわち、データベース支援装置1の入力部11は、ユーザから、対象XMLデータのディレクトリの指定を受け付け、制御部20にディレクトリの指定を出力する。
Next, the operation of the
FIG. 9 is a flowchart showing an example of the operation of the
As shown in FIG. 9, the
次に、制御部20の対象XML取得部21は、指定されたディレクトリ内の対象XMLデータを取得する(ステップS102)。対象XML取得部21は、例えば、指定されたディレクトリ内の全XMLデータファイルを記憶部13から取得する。
Next, the target
次に、制御部20は、データ構造動的定義ファイルが既に存在するか否かを判定する(ステップS103)。すなわち、制御部20は、記憶部13のデータ構造動的定義ファイル用のディレクトリを確認し、対象XMLデータに対応するデータ構造動的定義ファイルが既に存在するか否かを判定する。制御部20は、データ構造動的定義ファイルが既に存在する場合(ステップS103:YES)に、処理をステップS104に進める。また、制御部20は、データ構造動的定義ファイルがまだ存在しない場合(ステップS103:NO)に、処理をステップS105に進める。
Next, the
ステップS104において、制御部20は、データ構造動的定義ファイルを取得する。例えば、制御部20の対象XML取得部21は、対象XMLデータに対応するデータ構造動的定義ファイルを記憶部13から取得する。ステップS104の処理後に、対象XML取得部21は、処理をステップS105に進める。
In step S104, the
また、ステップS105において、制御部20のデータ解析部22は、使用されている名前空間の一覧を抽出する。データ解析部22は、取得した対象XMLデータに含まれる名前空間を抽出する。
Further, in step S105, the
次に、データ解析部22は、要素解析を実行する(ステップS106)。データ解析部22は、例えば、データの要素ごとの構造及びデータ値を解析する。具体的に、データ解析部22は、データの要素、及び属性のXPathによる位置を解析するとともに、データの階層構造(例えば、データの要素及び属性の階層構造)を解析する。また、データ解析部22は、データの繰り返し判定(例えば、繰返し数の取得)、データ型の判定、データ値の最大値、最小値、null(ヌル:空白)を含むか否かの判定、及びデータの出現回数の取得などを実行する。また、データ解析部22は、抽出した名前空間名が重複する場合に、重複した名前空間名に枝番号を付与する。
Next, the
次に、制御部20の定義ファイル生成部23は、データ構造動的定義ファイルが既に存在するか否かを判定する(ステップS107)。定義ファイル生成部23は、データ構造動的定義ファイルが既に存在する場合(ステップS107:YES)に、処理をステップS109に進める。また、定義ファイル生成部23は、データ構造動的定義ファイルがまだ存在しない場合(ステップS107:NO)に、処理をステップS108に進める。
Next, the definition
ステップS108において、定義ファイル生成部23は、新規にデータ構造動的定義ファイルを生成する。定義ファイル生成部23は、データ解析部22による解析結果から、上述した図3に示す構造定義に従って、図7に示すようなデータ構造動的定義ファイルを生成する。定義ファイル生成部23は、生成したデータ構造動的定義ファイルを記憶部13に記憶させる。ステップS108の処理後に、定義ファイル生成部23は、処理をステップS111に進める。
In step S108, the definition
また、ステップS109において、定義ファイル生成部23は、重複するパスや繰り返し項等について和集合を生成する。定義ファイル生成部23は、データ解析部22による解析結果と、取得した既存のデータ構造動的定義ファイルとから、例えば、重複するパス及び繰り返し項目を抽出し、上述した図3に示す構造定義に従って、和集合のデータ構造定義情報を生成する。
Further, in step S109, the definition
次に、定義ファイル生成部23は、表示順を維持しつつ、既存のデータ構造動的定義ファイルを更新する(ステップS110)。すなわち、定義ファイル生成部23は、生成した和集合のデータ構造定義情報に変更したデータ構造動的定義ファイルを生成し、記憶部13に記憶させる。
Next, the definition
次に、定義ファイル生成部23は、次の対象XMLあるか否かを判定する(ステップS111)。定義ファイル生成部23は、指定されたディレクトリ内に他の対象XMLあるか否かを判定する。定義ファイル生成部23は、次の対象XMLある場合(ステップS111:YES)に、処理をステップS102に戻す。また、定義ファイル生成部23は、次の対象XMLない場合(ステップS111:NO)に、処理をステップS112に進める。
Next, the definition
ステップS112において、制御部20の表示処理部24は、データ構造動的定義ファイルの内容に基づいて、データベースの構造情報を表示する。表示処理部24は、定義ファイル生成部23が生成したデータ構造動的定義ファイルの内容に基づいて、図8の表示画面G1に示すようなデータベースの構造情報を表示部12に表示させる。ステップS112の処理後に、制御部20は、処理を終了する。
In step S112, the
なお、上述した図9に示すデータベース支援装置1の処理は、ユーザによる任意のタイミングで実行されてもよいし、定期的(例えば、1週間に1回、1カ月に1回など)に実行されてもよい。
また、上述した図9に示すデータベース支援装置1の処理では、指定されたディレクトリ内の全てのXMLデータを対象XMLデータとする例を説明したが指定されたディレクトリ内の一定件数のXMLデータなどを対象XMLデータとしてもよい。
The process of the
Further, in the process of the
次に、図10を参照して、和集合によるデータ構造動的定義ファイルの更新処理の具体例について説明する。
図10は、本実施形態によるデータベース支援装置におけるデータ構造動的定義ファイルの更新例を示す図である。
Next, with reference to FIG. 10, a specific example of the update process of the data structure dynamic definition file by the union will be described.
FIG. 10 is a diagram showing an example of updating a data structure dynamic definition file in the database support device according to the present embodiment.
図10に示す例は、データベース支援装置1が、ディレクトリDR1に格納されている解析対象のデータベースの対象XMLデータを解析して、ディレクトリDR2にデータ構造動的定義ファイルを生成する場合の例である。
The example shown in FIG. 10 is an example in which the
まず、図10に示すように、データベース支援装置1は、ディレクトリDR1の対象XMLデータD11を解析して、データ構造動的定義ファイルF11を生成し、当該データ構造動的定義ファイルF11をディレクトリDR2に格納する。ここで、対象XMLデータD11は、data要素内にA要素として、文字列“ABC”を持つデータである。
First, as shown in FIG. 10, the
次に、図10に示すように、対象XMLデータD11が要素変更された対象XMLデータD12に変更された場合に、データベース支援装置1は、データ構造動的定義ファイルF11からデータ構造動的定義ファイルF12に更新する。ここで、対象XMLデータD12は、A要素からB要素に変更され、data要素内にB要素として、文字列“DEF”を持つデータである。そのため、データベース支援装置1は、和集合により、データ構造動的定義ファイルF11にB要素の記述(<data element=“B” occurrence=“1”/>)を追加したデータ構造動的定義ファイルF12に更新する。ここで、データ構造動的定義ファイルF12は、和集合により、A要素とB要素とのいずれにも対応可能なデータベースであることを示している。
Next, as shown in FIG. 10 , when the target XML data D11 is changed to the target XML data D12 whose elements have been changed, the
次に、図10に示すように、対象XMLデータD12が要素変更された対象XMLデータD13に変更された場合に、データベース支援装置1は、データ構造動的定義ファイルF12からデータ構造動的定義ファイルF13に更新する。ここで、対象XMLデータD13は、B要素のレイアウトが変更され、data要素内にB要素として、文字列“DEF”と“GHI”とを持つデータである。そのため、データベース支援装置1は、和集合により、データ構造動的定義ファイルF12のB要素の記述において、occurrence=“1”がoccurrence=“*”に変更されたデータ構造動的定義ファイルF13に更新する。ここで、データ構造動的定義ファイルF13は、和集合により、B要素が繰り返し出現可能なデータベースであることを示している。
Next, as shown in FIG. 10 , when the target XML data D12 is changed to the target XML data D13 whose elements have been changed, the
以上説明したように、本実施形態によるデータベース支援装置1は、対象XML取得部21(取得部)と、データ解析部22と、定義ファイル生成部23(ファイル生成部)とを備える。対象XML取得部21は、データを識別するデータ識別情報(例えば、データ項目、要素名など)と、データ値とを対応付けてデータが記述された対象XMLデータ(対象データ記述)を取得する。データ解析部22は、対象XML取得部21によって取得した対象XMLデータに含まれているデータを抽出し、抽出した当該データを解析する。定義ファイル生成部23は、データ解析部22によって解析された当該解析結果に基づいて、データに関するデータ構造定義情報を生成し、生成した当該データ構造定義情報を含むデータ構造動的定義ファイルを生成する。また、定義ファイル生成部23は、対象XMLデータに対するデータ構造動的定義ファイルが既に存在している場合には、当該データ構造動的定義ファイルに含まれるデータ構造定義情報と、生成した当該データ構造定義情報との和集合を示すデータ構造定義情報を再生成し、当該データ構造定義情報を更新したデータ構造動的定義ファイルを再生成する。
As described above, the
これにより、本実施形態によるデータベース支援装置1は、既に使用されているデータベースを、人手を介さずに解析することができるとともに、例えば、データ構造動的定義ファイルを確認することで、データの構造を把握することができる。本実施形態によるデータベース支援装置1では、例えば、システム開発の有識者を動員して、既存及び新規データの解析を行う必要がない。
As a result, the
また、例えば、データベースのデータが変更された場合や、データの構造が変更された場合などのデータの変化に対して、本実施形態によるデータベース支援装置1は、和集合したデータ構造定義情報を再生成し、データ構造動的定義ファイルを再生成する。そのため、本実施形態によるデータベース支援装置1は、データの変化に動的に対応することができる。
よって、本実施形態によるデータベース支援装置1は、データの変化に動的に対応しつつ、データの構造を把握することができる。
Further, for example, the
Therefore, the
なお、本実施形態によるデータベース支援装置1では、データの構造として、例えば、ユーザが以下の情報を把握することが可能である。
(1)名前空間の一覧
(2)データの要素及び属性の階層、要素の出現順、要素間の親子関係や各属性の関連性
(3)要素の繰り返しの有無
(4)データ型、データ値の最大値、データ値の最小値、nullの有無、出現回数など
In the
(1) Namespace list (2) Hierarchy of data elements and attributes, order of appearance of elements, parent-child relationship between elements and relationship of each attribute (3) Presence / absence of repetition of elements (4) Data type, data value Maximum value, minimum value of data value, presence / absence of null, number of occurrences, etc.
また、本実施形態では、データ解析部22は、対象XMLデータに含まれる名前空間の記述を抽出する。定義ファイル生成部23は、名前空間の一覧を含むデータ構造動的定義ファイルを生成又は再生成する。
これにより、本実施形態によるデータベース支援装置1は、名前空間の一覧を把握できるため、例えば、異なる名前空間の要素を容易に判別することができる。
Further, in the present embodiment, the
As a result, the
また、本実施形態では、データ解析部22は、抽出した名前空間の識別情報が重複する場合に、重複した名前空間を個別に識別できるように、識別情報に枝番号を付与する。
これにより、本実施形態によるデータベース支援装置1は、名前空間の重複を回避して、データベース内の名前空間を適切に把握することができる。
Further, in the present embodiment, the
As a result, the
また、本実施形態では、データ解析部22は、抽出したデータの要素ごとの構造及びデータ値を解析する。定義ファイル生成部23は、要素に対応するデータ型、データ値の最大値、データ値の最小値、又はデータ値に値がない場合を含むか否かを示す情報を含むデータ構造定義情報を生成又は再生成する。
これにより、本実施形態によるデータベース支援装置1は、データの構造をより詳細に把握することができる。よって、本実施形態によるデータベース支援装置1は、利便性を向上させることができる。
Further, in the present embodiment, the
As a result, the
また、本実施形態では、データ解析部22は、抽出したデータの階層構造を解析する。定義ファイル生成部23は、データの階層構造を維持したデータ構造動的定義ファイルを生成又は再生成する。
これにより、本実施形態によるデータベース支援装置1は、データの階層構造を把握することができるため、利便性を向上させることができる。
Further, in the present embodiment, the
As a result, the
また、本実施形態では、定義ファイル生成部23は、要素の出現順を維持して、データ構造動的定義ファイルを生成又は再生成する。
これにより、本実施形態によるデータベース支援装置1は、例えば、要素間の親子関係や各属性の関連性を把握することができる。また、本実施形態によるデータベース支援装置1は、データ構造動的定義ファイルにおいて、後から追加された要素の識別が容易となる。
Further, in the present embodiment, the definition
Thereby, the
また、本実施形態によるデータベース支援装置1は、定義ファイル生成部23によって生成又は再生成されたデータ構造動的定義ファイルに基づいて、対象XMLデータに含まれるデータの構造に関する情報(例えば、図8に示すデータベースの構造情報)を表示部12(出力部)に出力する表示処理部24(出力処理部)を備える。
これにより、本実施形態によるデータベース支援装置1は、視覚的にデータの構造を把握することができるため、データの構造をさらに容易に把握することができる。よって、本実施形態によるデータベース支援装置1は、データベースの解析において、さらに利便性を向上させることができる。
Further, the
As a result, the
また、本実施形態では、定義ファイル生成部23は、データ構造動的定義ファイルをXML形式で記述して生成又は再生成する。
これにより、本実施形態によるデータベース支援装置1では、データ構造動的定義ファイルが簡潔な記述になるため、データ構造動的定義ファイルのデータ容量を低減することができ、表示部12への表示を迅速化することができる。また、本実施形態によるデータベース支援装置1では、データ構造動的定義ファイルの可読性を高めることができ、利便性を向上させることができる。
Further, in the present embodiment, the definition
As a result, in the
また、本実施形態によるデータベース支援方法は、データベース支援装置1が実行するデータベース支援方法であって、取得ステップと、データ解析ステップと、ファイル生成ステップとを含む。取得ステップにおいて、対象XML取得部21(取得部)が、データを識別するデータ識別情報と、データ値とを対応付けてデータが記述された対象XMLデータを取得する。データ解析ステップにおいて、データ解析部22が、取得ステップによって取得した対象XMLデータに含まれているデータを抽出し、抽出した当該データを解析する。ファイル生成ステップにおいて、定義ファイル生成部23(ファイル生成部)が、データ解析ステップによって解析された当該解析結果に基づいて、データに関するデータ構造定義情報を生成し、生成した当該データ構造定義情報を含むデータ構造動的定義ファイルを生成する。また、ファイル生成ステップにおいて、定義ファイル生成部23は、対象XMLデータに対するデータ構造動的定義ファイルが既に存在している場合には、当該データ構造動的定義ファイルに含まれるデータ構造定義情報と、生成した当該データ構造定義情報との和集合を示すデータ構造定義情報を再生成し、当該データ構造定義情報を更新したデータ構造動的定義ファイルを再生成する。
これにより、本実施形態によるデータベース支援方法は、上述したデータベース支援装置1と同様の効果を奏し、データの変化に動的に対応しつつ、データの構造を把握することができる。
Further, the database support method according to the present embodiment is a database support method executed by the
As a result, the database support method according to the present embodiment has the same effect as the
なお、本発明は、上記の実施形態に限定されるものではなく、本発明の趣旨を逸脱しない範囲で変更可能である。
例えば、上記の実施形態において、データベースは、XMLで記述された対象データ記述である場合の例を説明したが、これに限定されるものではなく、データを識別するデータ識別情報(データ項目、要素名など)と、データ値とを対応付けてデータが記述されたものであれば、他の記述言語で記述されたデータベースに適用してもよい。XML以外の記述言語は、例えば、HTML(Hyper Text Markup Language)などのマークアップ言語やJSON(JavaScript Object Notation)(JavaScriptは登録商標)、ヘッダ行付きのCSV(Character-Separated Values)/TSV(Tab-Separated Values)などであってもよい。
The present invention is not limited to the above embodiment, and can be modified without departing from the spirit of the present invention.
For example, in the above embodiment, the example in which the database is a target data description described in XML has been described, but the present invention is not limited to this, and data identification information (data item, element) for identifying data is described. If the data is described by associating the name etc. with the data value, it may be applied to a database described in another description language. Description languages other than XML include markup languages such as HTML (Hyper Text Markup Language), JSON (JavaScript Object Notation) (JavaScript is a registered trademark), and CSV (Character-Separated Values) / TSV (Tab) with header lines. -Separated Values) and so on.
また、上記の実施形態において、対象XMLデータが記憶部13に記憶され、対象XML取得部21が、記憶部13から対象XMLデータを取得する例を説明したが、これに限定されるものではない。例えば、記憶部13は、データベース支援装置1の外部に備えられ、対象XML取得部21は、データベース支援装置1の外部から対象XMLデータを取得するようにしてもよい。また、対象XML取得部21は、ネットワークを介して、対象XMLデータを取得するようにしてもよい。また、記憶部13は、外付けHDD装置であってもよいし、ネットワークを介して接続されたファイルサーバ装置であってもよい。
Further, in the above embodiment, an example in which the target XML data is stored in the
また、上記の実施形態において、データベース支援装置1は、対象XMLデータに含まれるデータの構造に関する情報(例えば、図8に示すデータベースの構造情報)を表示部12に表示する例を説明したが、これに限定されるものではない。例えば、データベース支援装置1は、プリンタなどの出力部に、データの構造に関する情報を出力するようにしてもよいし、データ構造動的定義ファイルをCVD形式のファイルに変換して、外部に出力するようにしてもよい。また、データベース支援装置1は、データ構造動的定義ファイルを表示部12やプリンタなどの出力部にそのまま出力するようにしてもよい。
Further, in the above embodiment, the
また、上記の図9に示すフローチャートにおいて、データ解析部22の解析処理(ステップS105、及びステップS106)の前に、データ構造動的定義ファイルが既にあるか否かを判定する処理(ステップS103)を実行しているが、これに限定されるものではない。例えば、データ構造動的定義ファイルが既にあるか否かを判定する処理は、データ解析部22の解析処理(ステップS105、及びステップS106)の後に実行してもよい。
Further, in the flowchart shown in FIG. 9, a process of determining whether or not a data structure dynamic definition file already exists before the analysis process (step S105 and step S106) of the data analysis unit 22 (step S103). Is running, but is not limited to this. For example, the process of determining whether or not the data structure dynamic definition file already exists may be executed after the analysis process (step S105 and step S106) of the
なお、上述したデータベース支援装置1が備える各構成は、内部に、コンピュータシステムを有している。そして、上述したデータベース支援装置1が備える各構成の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより上述したデータベース支援装置1が備える各構成における処理を行ってもよい。ここで、「記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行する」とは、コンピュータシステムにプログラムをインストールすることを含む。ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。
また、「コンピュータシステム」は、インターネットやWAN、LAN、専用回線等の通信回線を含むネットワークを介して接続された複数のコンピュータ装置を含んでもよい。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。このように、プログラムを記憶した記録媒体は、CD−ROM等の非一過性の記録媒体であってもよい。
Each configuration included in the
Further, the "computer system" may include a plurality of computer devices connected via a network including a communication line such as the Internet, WAN, LAN, and a dedicated line. Further, the "computer-readable recording medium" refers to a portable medium such as a flexible disk, a magneto-optical disk, a ROM, or a CD-ROM, or a storage device such as a hard disk built in a computer system. As described above, the recording medium in which the program is stored may be a non-transient recording medium such as a CD-ROM.
また、記録媒体には、当該プログラムを配信するために配信サーバからアクセス可能な内部又は外部に設けられた記録媒体も含まれる。なお、プログラムを複数に分割し、それぞれ異なるタイミングでダウンロードした後にデータベース支援装置1が備える各構成で合体される構成や、分割されたプログラムのそれぞれを配信する配信サーバが異なっていてもよい。さらに「コンピュータ読み取り可能な記録媒体」とは、ネットワークを介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(RAM)のように、一定時間プログラムを保持しているものも含むものとする。また、上記プログラムは、上述した機能の一部を実現するためのものであってもよい。さらに、上述した機能をコンピュータシステムに既に記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であってもよい。
The recording medium also includes an internal or external recording medium that can be accessed from the distribution server to distribute the program. The program may be divided into a plurality of parts, downloaded at different timings, and then combined with each configuration provided in the
また、上述した機能の一部又は全部を、LSI(Large Scale Integration)等の集積回路として実現してもよい。上述した各機能は個別にプロセッサ化してもよいし、一部、又は全部を集積してプロセッサ化してもよい。また、集積回路化の手法はLSIに限らず専用回路、又は汎用プロセッサで実現してもよい。また、半導体技術の進歩によりLSIに代替する集積回路化の技術が出現した場合、当該技術による集積回路を用いてもよい。 Further, a part or all of the above-mentioned functions may be realized as an integrated circuit such as LSI (Large Scale Integration). Each of the above-mentioned functions may be made into a processor individually, or a part or all of them may be integrated into a processor. Further, the method of making an integrated circuit is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. Further, when an integrated circuit technology that replaces an LSI appears due to advances in semiconductor technology, an integrated circuit based on this technology may be used.
1 データベース支援装置
11 入力部
12 表示部
13 記憶部
20 制御部
21 対象XML取得部
22 データ解析部
23 定義ファイル生成部
24 表示処理部
1
Claims (6)
前記取得部によって取得した前記対象データ記述に含まれている前記データを抽出し、抽出した当該データを解析するデータ解析部と、
前記データ解析部によって解析された当該解析結果に基づいて、前記データに関するデータ構造定義情報を生成し、生成した当該データ構造定義情報を含むデータ構造動的定義ファイルを生成するファイル生成部であって、前記対象データ記述に対する前記データ構造動的定義ファイルが既に存在している場合には、当該データ構造動的定義ファイルに含まれるデータ構造定義情報と、生成した当該データ構造定義情報との和集合を示すデータ構造定義情報を再生成し、当該データ構造定義情報を更新した前記データ構造動的定義ファイルを再生成するファイル生成部と
を備え、
前記データ解析部は、前記対象データ記述に含まれる名前空間の記述を抽出し、抽出した前記名前空間の識別情報が重複する場合に、重複した前記名前空間を個別に識別できるように、前記識別情報に枝番号を付与し、
前記ファイル生成部は、前記名前空間の一覧を含む前記データ構造動的定義ファイルを生成又は再生成する
ことを特徴とするデータベース支援装置。 An acquisition unit that acquires a target data description in which data is described by associating data identification information that identifies data with a data value.
A data analysis unit that extracts the data included in the target data description acquired by the acquisition unit and analyzes the extracted data, and a data analysis unit.
A file generation unit that generates data structure definition information related to the data based on the analysis result analyzed by the data analysis unit, and generates a data structure dynamic definition file including the generated data structure definition information. If the data structure dynamic definition file for the target data description already exists, the sum set of the data structure definition information included in the data structure dynamic definition file and the generated data structure definition information. It is provided with a file generation unit that regenerates the data structure definition information indicating the above and regenerates the data structure dynamic definition file that updates the data structure definition information .
The data analysis unit extracts the description of the namespace included in the target data description, and when the extracted identification information of the namespace is duplicated, the identification is made so that the duplicated namespace can be individually identified. Give the information a branch number and
The file generator generates or regenerates the data structure dynamic definition file containing the list of namespaces.
Database support and wherein a call.
前記ファイル生成部は、前記要素に対応するデータ型、データ値の最大値、データ値の最小値、又はデータ値に値がない場合を含むか否かを示す情報を含むデータ構造定義情報を生成又は再生成する
ことを特徴とする請求項1に記載のデータベース支援装置。 The data analysis unit analyzes the structure and data value of each element of the extracted data, and then analyzes the data.
The file generation unit generates data structure definition information including information indicating whether or not the data type corresponding to the element, the maximum value of the data value, the minimum value of the data value, or the case where the data value has no value is included. Alternatively, the database support device according to claim 1 , wherein the data is regenerated.
前記ファイル生成部は、前記データの階層構造を維持した前記データ構造動的定義ファイルを生成又は再生成する
ことを特徴とする請求項1又は請求項2に記載のデータベース支援装置。 The data analysis unit analyzes the hierarchical structure of the extracted data, and then
The database support device according to claim 1 or 2 , wherein the file generation unit generates or regenerates the data structure dynamic definition file that maintains the hierarchical structure of the data.
ことを特徴とする請求項1から請求項3のいずれか一項に記載のデータベース支援装置。 It is characterized by including an output processing unit that outputs information regarding the structure of the data included in the target data description to the output unit based on the data structure dynamic definition file generated or regenerated by the file generation unit. The database support device according to any one of claims 1 to 3.
データを識別するデータ識別情報と、データ値とを対応付けてデータが記述された対象データ記述を取得する取得ステップと、
前記取得ステップによって取得した前記対象データ記述に含まれている前記データを抽出し、抽出した当該データを解析するデータ解析ステップと、
前記データ解析ステップによって解析された当該解析結果に基づいて、前記データに関するデータ構造定義情報を生成し、生成した当該データ構造定義情報を含むデータ構造動的定義ファイルを生成するファイル生成ステップであって、前記対象データ記述に対する前記データ構造動的定義ファイルが既に存在している場合には、当該データ構造動的定義ファイルに含まれるデータ構造定義情報と、生成した当該データ構造定義情報との和集合を示すデータ構造定義情報を再生成し、当該データ構造定義情報を更新した前記データ構造動的定義ファイルを再生成するファイル生成ステップと
を含み、
前記データ解析ステップにおいて、前記対象データ記述に含まれる名前空間の記述を抽出し、抽出した前記名前空間の識別情報が重複する場合に、重複した前記名前空間を個別に識別できるように、前記識別情報に枝番号を付与し、
前記ファイル生成ステップにおいて、前記名前空間の一覧を含む前記データ構造動的定義ファイルを生成又は再生成する
ことを特徴とするデータベース支援方法。 It is a database support method executed by the database support device.
An acquisition step of acquiring a target data description in which data is described by associating data identification information for identifying data with a data value, and
A data analysis step that extracts the data included in the target data description acquired by the acquisition step and analyzes the extracted data, and a data analysis step.
A file generation step that generates data structure definition information related to the data based on the analysis result analyzed by the data analysis step, and generates a data structure dynamic definition file including the generated data structure definition information. If the data structure dynamic definition file for the target data description already exists, the sum set of the data structure definition information included in the data structure dynamic definition file and the generated data structure definition information. regenerate the data structure definition information indicating, viewed contains a file generation step for regenerating the data structure dynamic definition file update the data structure definition information,
In the data analysis step, the description of the namespace included in the target data description is extracted, and when the extracted identification information of the namespace is duplicated, the identification is performed so that the duplicated namespace can be individually identified. Give the information a branch number and
In the file generation step, the data structure dynamic definition file containing the list of namespaces is generated or regenerated.
Database support wherein a call.
データを識別するデータ識別情報と、データ値とを対応付けてデータが記述された対象データ記述を取得する取得ステップと、
前記取得ステップによって取得した前記対象データ記述に含まれている前記データを抽出し、抽出した当該データを解析するデータ解析ステップと、
前記データ解析ステップによって解析された当該解析結果に基づいて、前記データに関するデータ構造定義情報を生成し、生成した当該データ構造定義情報を含むデータ構造動的定義ファイルを生成するファイル生成ステップであって、前記対象データ記述に対する前記データ構造動的定義ファイルが既に存在している場合には、当該データ構造動的定義ファイルに含まれるデータ構造定義情報と、生成した当該データ構造定義情報との和集合を示すデータ構造定義情報を再生成し、当該データ構造定義情報を更新した前記データ構造動的定義ファイルを再生成するファイル生成ステップと
を実行させ、
前記データ解析ステップにおいて、前記対象データ記述に含まれる名前空間の記述を抽出し、抽出した前記名前空間の識別情報が重複する場合に、重複した前記名前空間を個別に識別できるように、前記識別情報に枝番号を付与し、
前記ファイル生成ステップにおいて、前記名前空間の一覧を含む前記データ構造動的定義ファイルを生成又は再生成する
処理を実行させるためのプログラム。 On the computer
An acquisition step of acquiring a target data description in which data is described by associating data identification information for identifying data with a data value, and
A data analysis step that extracts the data included in the target data description acquired by the acquisition step and analyzes the extracted data, and a data analysis step.
A file generation step that generates data structure definition information related to the data based on the analysis result analyzed by the data analysis step, and generates a data structure dynamic definition file including the generated data structure definition information. If the data structure dynamic definition file for the target data description already exists, the sum set of the data structure definition information included in the data structure dynamic definition file and the generated data structure definition information. The data structure definition information indicating the above is regenerated, and the file generation step of regenerating the data structure dynamic definition file in which the data structure definition information is updated is executed .
In the data analysis step, the description of the namespace included in the target data description is extracted, and when the extracted identification information of the namespace is duplicated, the identification is performed so that the duplicated namespace can be individually identified. Give the information a branch number and
In the file generation step, the data structure dynamic definition file containing the list of namespaces is generated or regenerated.
Program of the order to execute the process.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017212148A JP6932064B2 (en) | 2017-11-01 | 2017-11-01 | Database support device, database support method, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017212148A JP6932064B2 (en) | 2017-11-01 | 2017-11-01 | Database support device, database support method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2019086849A JP2019086849A (en) | 2019-06-06 |
| JP6932064B2 true JP6932064B2 (en) | 2021-09-08 |
Family
ID=66763043
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017212148A Expired - Fee Related JP6932064B2 (en) | 2017-11-01 | 2017-11-01 | Database support device, database support method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6932064B2 (en) |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3692764B2 (en) * | 1998-02-25 | 2005-09-07 | 株式会社日立製作所 | Structured document registration method, search method, and portable medium used therefor |
| JP2003091535A (en) * | 2001-09-17 | 2003-03-28 | Toshiba Corp | Data management method, program and device |
| JP4593580B2 (en) * | 2007-03-05 | 2010-12-08 | 株式会社エヌジェーケー | Method for generating operation buttons for XML data |
| US20090248716A1 (en) * | 2008-03-31 | 2009-10-01 | Caterpillar Inc. | Hierarchy creation and management tool |
| JP5337745B2 (en) * | 2010-03-08 | 2013-11-06 | 株式会社日立製作所 | Data processing device |
-
2017
- 2017-11-01 JP JP2017212148A patent/JP6932064B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2019086849A (en) | 2019-06-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11269660B2 (en) | Methods and systems for integrated development environment editor support with a single code base | |
| US10042834B2 (en) | Dynamic field extraction of data | |
| US9978024B2 (en) | Workflow integration with Adobe™ Flex™ user interface | |
| US20190196672A1 (en) | Visual effects system for "big data" analysis workflow editors, distribution platforms, execution engines, and management systems comprising same | |
| US20190138345A1 (en) | Information based on run-time artifacts in a distributed computing cluster | |
| CN108762743B (en) | Data table operation code generation method and device | |
| US8489547B2 (en) | System and method for transforming configuration data items in a configuration management database | |
| US20160313874A1 (en) | Visual effects system for "big data" analysis workflow editors, distribution platforms, execution engines, and management systems comprising same | |
| US7096421B2 (en) | System and method for comparing hashed XML files | |
| JP2007323573A (en) | Functional test script generator | |
| US20040205509A1 (en) | System and method for comparing parsed XML files | |
| US10067977B2 (en) | Webpage content search | |
| US20090030880A1 (en) | Model-Based Analysis | |
| JP6866270B2 (en) | SQL statement extraction device, SQL statement extraction method and program | |
| JP2018109898A (en) | Data migration system | |
| US8091016B2 (en) | Visually manipulating instance collections | |
| CN108694172B (en) | Information output method and device | |
| CN108701153A (en) | Use the inquiry response of the mapping to parametrization report | |
| JP6932064B2 (en) | Database support device, database support method, and program | |
| JP7340952B2 (en) | Template search system and template search method | |
| JP6870454B2 (en) | Analytical equipment, analytical programs and analytical methods | |
| JP6849910B2 (en) | Difference log application program, difference log application device and difference log application method | |
| Milovanović | Python Data Visualization Cookbook | |
| JP2011070369A (en) | Device and method for integrating database | |
| US10713433B2 (en) | Documentation data file with detail levels |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200305 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210119 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210126 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210316 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20210720 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210817 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6932064 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |