JP2015162107A - Correspondence relation extraction device, correspondence relation extraction method, and correspondence relation extraction program - Google Patents
Correspondence relation extraction device, correspondence relation extraction method, and correspondence relation extraction program Download PDFInfo
- Publication number
- JP2015162107A JP2015162107A JP2014037139A JP2014037139A JP2015162107A JP 2015162107 A JP2015162107 A JP 2015162107A JP 2014037139 A JP2014037139 A JP 2014037139A JP 2014037139 A JP2014037139 A JP 2014037139A JP 2015162107 A JP2015162107 A JP 2015162107A
- Authority
- JP
- Japan
- Prior art keywords
- data type
- type definition
- schema
- schema information
- correspondence
- 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
Links
Images
Abstract
Description
本発明は、対応関係抽出装置、対応関係抽出方法、対応関係抽出プログラムに関する。 The present invention relates to a correspondence relationship extraction apparatus, a correspondence relationship extraction method, and a correspondence relationship extraction program.
データに含まれる要素をタグにより表し、要素の属性や要素間の親子関係等の構造を記述するマークアップ言語が利用されている。特許文献1には、このようなマークアップ言語であるSGML(Standard Generalized Markup Language)やXML(eXtensible Markup Language)により記述された文書間の類似関係を検出することが記載されている。
ただし、このようなSGMLやXMLはデータに含まれる各要素を記述するための言語であり、文書構造自体を定義することはできない。そのため、このような文書構造自体を定義するスキーマ言語が開発されている。例えば、データに含まれる各要素にその要素のデータ型定義を対応付け、要素間の親子関係を定義するXMLスキーマであるスキーマ情報が利用されている。例えば、非特許文献1には、金融業務向け通信メッセージの登録手続に関する国際規格であるISO20022により定められたスキーマ情報が示されている。
A markup language is used in which elements included in data are represented by tags and structures such as element attributes and parent-child relationships between elements are described. Japanese Patent Application Laid-Open No. 2004-228561 describes that a similar relationship between documents described in SGML (Standard Generalized Markup Language) or XML (eXtensible Markup Language), which are such markup languages, is detected.
However, such SGML and XML are languages for describing each element included in the data, and the document structure itself cannot be defined. Therefore, a schema language for defining such a document structure itself has been developed. For example, schema information that is an XML schema that associates each element included in data with the data type definition of the element and defines a parent-child relationship between the elements is used. For example, Non-Patent
しかしながら、このようなスキーマ情報は、バージョン改訂等により変更される場合がある。この場合、変更前のスキーマ情報に基づいて処理を行っていたコンピュータシステムの運用において、変更後のスキーマ情報に合わせて処理を行うように変更する必要がある。そこで、このようなスキーマ情報の変更箇所を効率良く把握することを支援することが望ましい。 However, such schema information may be changed due to version revision or the like. In this case, in the operation of the computer system that has performed processing based on the schema information before the change, it is necessary to change the processing so that the processing is performed according to the schema information after the change. Therefore, it is desirable to assist in efficiently grasping such changes in schema information.
本発明は、このような状況に鑑みてなされたもので、スキーマ情報の変更箇所を効率良く把握することを支援する対応関係抽出装置、対応関係抽出方法、対応関係抽出プログラムを提供する。 The present invention has been made in view of such a situation, and provides a correspondence relationship extraction apparatus, a correspondence relationship extraction method, and a correspondence relationship extraction program that assist in efficiently grasping a change location of schema information.
上述した課題を解決するために、本発明の一態様は、それぞれにデータ型定義を対応付けた複数の要素と、要素間の親子関係とを定義するスキーマ言語によって記述された第1のスキーマ情報と、第1のスキーマ情報に対応する第2のスキーマ情報とのスキーマ情報の入力を受け付ける入力部と、入力部に入力されたスキーマ情報に含まれる要素と、要素に対応付けられたデータ型定義と、要素を子要素とする親要素のデータ型定義である親要素データ型定義とを対応付けたデータ型定義一覧を生成するデータ型定義内容抽出部と、データ型定義内容抽出部によって第1のスキーマ情報に基づいて生成された第1のデータ型定義一覧と、第2のスキーマ情報に基づいて生成された第2のデータ型定義一覧とを比較し、第1のデータ型定義一覧と第2のデータ型定義一覧とにおいて親要素の要素名が一致する子要素同士を対応付けた対応関係抽出結果を生成する対応関係抽出部と、を備えることを特徴とする対応関係抽出装置である。 In order to solve the above-described problem, one aspect of the present invention provides first schema information described in a schema language that defines a plurality of elements each associated with a data type definition and a parent-child relationship between the elements. An input unit that receives input of schema information with the second schema information corresponding to the first schema information, an element included in the schema information input to the input unit, and a data type definition associated with the element A data type definition content extraction unit that generates a data type definition list that associates a parent element data type definition that is a data type definition of a parent element with an element as a child element, and a data type definition content extraction unit The first data type definition list generated based on the schema information and the second data type definition list generated based on the second schema information are compared, and the first data type definition list is compared. A correspondence extraction unit that generates a correspondence extraction result that associates child elements having the same element name of the parent element with the second data type definition list. .
また、本発明の一態様は、データ型定義内容抽出部は、スキーマ情報に含まれる複数の要素のうち最上位の要素のデータ型定義と、最上位の要素の子要素と、子要素のデータ型定義とを対応付け、子要素のデータ型定義と、子要素を親要素とする子要素である孫要素と、孫要素のデータ型定義とを対応付けたデータ型定義一覧を生成することを特徴とする。 Further, according to one aspect of the present invention, the data type definition content extraction unit includes a data type definition of the highest element among a plurality of elements included in the schema information, a child element of the highest element, and data of the child element. To create a data type definition list that associates the data type definition of the child element, the grandchild element that is the child element having the child element as the parent element, and the data type definition of the grandchild element. Features.
また、本発明の一態様は、対応関係抽出部は、第1のスキーマ情報に含まれる要素である旧要素に対応する要素が第2のスキーマ情報に含まれない場合には旧要素が削除されたと判定し、第2のスキーマ情報に含まれる要素である新要素に対応する要素が第1のスキーマ情報に含まれない場合には新要素が追加されたと判定し、判定結果を含む対応関係抽出結果を生成することを特徴とする。 In one aspect of the present invention, the correspondence extracting unit deletes the old element when the element corresponding to the old element that is the element included in the first schema information is not included in the second schema information. If the element corresponding to the new element that is an element included in the second schema information is not included in the first schema information, it is determined that the new element has been added, and the correspondence relationship including the determination result is extracted. It is characterized by generating a result.
また、本発明の一態様は、対応関係抽出部が生成した対応関係抽出結果を出力する出力部を備えることを特徴とする。 One embodiment of the present invention includes an output unit that outputs a correspondence extraction result generated by the correspondence extraction unit.
また、本発明の一態様は、第1のスキーマ情報はXMLスキーマであり、第2のスキーマ情報は第1のスキーマ情報がバージョン改訂されたXMLスキーマであることを特徴とする。 One embodiment of the present invention is characterized in that the first schema information is an XML schema, and the second schema information is an XML schema in which the version of the first schema information is revised.
また、本発明の一態様は、対応関係抽出装置の、入力部が、それぞれにデータ型定義を対応付けた複数の要素と、要素間の親子関係とを定義するスキーマ言語によって記述された第1のスキーマ情報と、第1のスキーマ情報に対応する第2のスキーマ情報とのスキーマ情報の入力を受け付けるステップと、データ型定義内容抽出部が、入力部に入力されたスキーマ情報に含まれる要素と、要素に対応付けられたデータ型定義と、要素を子要素とする親要素のデータ型定義である親要素データ型定義とを対応付けたデータ型定義一覧を生成するステップと、対応関係抽出部が、データ型定義内容抽出部によって第1のスキーマ情報に基づいて生成された第1のデータ型定義一覧と、第2のスキーマ情報に基づいて生成された第2のデータ型定義一覧とを比較し、第1のデータ型定義一覧と第2のデータ型定義一覧とにおいて親要素の要素名が一致する子要素同士を対応付けた対応関係抽出結果を生成するステップと、を備えることを特徴とする対応関係抽出方法である。 Further, according to one aspect of the present invention, the input unit of the correspondence relationship extraction device includes a first language described in a schema language that defines a plurality of elements each associated with a data type definition and a parent-child relationship between the elements. Receiving the schema information input of the schema information and the second schema information corresponding to the first schema information, the data type definition content extracting unit includes an element included in the schema information input to the input unit, Generating a data type definition list in which a data type definition associated with an element is associated with a parent element data type definition that is a data type definition of a parent element having the element as a child element, and a correspondence relationship extraction unit The first data type definition list generated based on the first schema information by the data type definition content extraction unit and the second data type definition generated based on the second schema information And generating a correspondence extraction result by associating child elements having the same element name of the parent element in the first data type definition list and the second data type definition list. This is a correspondence extraction method characterized by the above.
また、本発明の一態様は、対応関係抽出装置のコンピュータを、それぞれにデータ型定義を対応付けた複数の要素と、要素間の親子関係とを定義するスキーマ言語によって記述された第1のスキーマ情報と、第1のスキーマ情報に対応する第2のスキーマ情報とのスキーマ情報の入力を受け付ける入力部、入力部に入力されたスキーマ情報に含まれる要素と、要素に対応付けられたデータ型定義と、要素を子要素とする親要素のデータ型定義である親要素データ型定義とを対応付けたデータ型定義一覧を生成するデータ型定義内容抽出部、データ型定義内容抽出部によって第1のスキーマ情報に基づいて生成された第1のデータ型定義一覧と、第2のスキーマ情報に基づいて生成された第2のデータ型定義一覧とを比較し、第1のデータ型定義一覧と第2のデータ型定義一覧とにおいて親要素の要素名が一致する子要素同士を対応付けた対応関係抽出結果を生成する対応関係抽出部、として機能させるための対応関係抽出プログラムである。 Also, according to one aspect of the present invention, the computer of the correspondence relationship extraction apparatus uses the first schema described in a schema language that defines a plurality of elements each associated with a data type definition and a parent-child relationship between the elements. An input unit that accepts input of schema information of information and second schema information corresponding to the first schema information, an element included in the schema information input to the input unit, and a data type definition associated with the element And a data type definition content extraction unit that generates a data type definition list that associates a parent element data type definition that is a data type definition of a parent element with an element as a child element. The first data type definition list generated based on the schema information is compared with the second data type definition list generated based on the second schema information, and the first data type definition is compared. In the list a second data type definition list is a relationship extraction program for functioning correspondence extracting unit to produce the corresponding relation extraction results element name associated child elements with each other to match the parent element, as.
以上説明したように、本発明によれば、対応関係抽出装置が、それぞれにデータ型定義を対応付けた複数の要素と、要素間の親子関係とを定義するスキーマ言語によって記述された第1のスキーマ情報と、第1のスキーマ情報に対応する第2のスキーマ情報とのスキーマ情報の入力を受け付け、入力されたスキーマ情報に含まれる要素と、要素に対応付けられたデータ型定義と、要素を子要素とする親要素のデータ型定義である親要素データ型定義とを対応付けたデータ型定義一覧を生成し、第1のスキーマ情報に基づいて生成された第1のデータ型定義一覧と、第2のスキーマ情報に基づいて生成された第2のデータ型定義一覧とを比較し、第1のデータ型定義一覧と第2のデータ型定義一覧とにおいて親要素の要素名が一致する子要素同士を対応付けた対応関係抽出結果を生成するようにしたので、スキーマ情報の変更箇所を効率良く把握することを支援することができる。 As described above, according to the present invention, the correspondence relationship extraction apparatus includes a first language described in a schema language that defines a plurality of elements each associated with a data type definition and a parent-child relationship between the elements. Schema information and second schema information corresponding to the first schema information are received, and the elements included in the input schema information, the data type definition associated with the elements, and the elements A data type definition list in which a parent element data type definition, which is a data type definition of a parent element as a child element, is associated; a first data type definition list generated based on the first schema information; The second data type definition list generated based on the second schema information is compared, and the child element whose element name of the parent element matches in the first data type definition list and the second data type definition list same Since so as to generate the corresponding relation extraction results that associates, can help to efficiently grasp the change position of schema information.
以下、本発明の一実施形態について、図面を参照して説明する。
図1は、本実施形態による対応関係抽出装置300の構成を示すブロック図である。対応関係抽出装置300は、入力装置100と出力装置200とに接続されており、記憶部310と、入力部320と、データ型定義内容抽出部330と、対応関係抽出部340と、出力部350とを備えている。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing the configuration of the correspondence
入力装置100は、キーボードやマウス等の入力デバイスであり、ユーザからの操作に応じて入力信号を生成し、生成した入力信号を対応関係抽出装置300に入力する。
出力装置200は、ディスプレイやプリンタ等の出力デバイスであり、対応関係抽出装置300から出力される出力信号に基づいて各種情報を出力する。例えば、ディスプレイである出力装置200は、各種情報を表示する。
The
The
記憶部310には、対応関係抽出装置300が動作する際に参照する各種情報が記憶される。記憶部310は、第1のスキーマ情報記憶部311と、第2のスキーマ情報記憶部312と、データ型定義一覧記憶部313と、対応関係抽出結果記憶部314と、対応要素テーブル記憶部315とを備えている。
第1のスキーマ情報記憶部311には、それぞれにデータ型定義を対応付けた複数の要素と、それらの要素間の親子関係とを定義するスキーマ言語によって記述された第1のスキーマ情報が記憶される。本実施形態では、スキーマ言語はXMLスキーマであり、第1のスキーマ情報は国際規格等で標準化されたXMLスキーマであるとして説明する。このようなXMLスキーマとして、例えば、金融業務向け通信メッセージの登録手続に関する国際規格であるISO20022により定められたXMLスキーマが存在する。
The
The first schema
本実施形態では、第1のスキーマ情報記憶部311に記憶される第1のスキーマ情報を旧XMLスキーマといい、後述する第2のスキーマ情報記憶部312に記憶される第2のスキーマ情報を新XMLスキーマという。新XMLスキーマは旧XMLスキーマがバージョン改訂されたXMLスキーマである。上述したような国際規格により標準化されたXMLスキーマは、定期的(例えば、1年)または不定期に、定義内容が変更されることがあり、この場合には、バージョン改訂された新たなXMLスキーマが国際規格団体等によって提供される。この場合、変更前の旧XMLスキーマに基づいて処理を行っていたコンピュータシステムの運用において、変更後の新XMLスキーマに合わせて処理を行うように変更する必要がある。このため、コンピュータシステムの運用者はXMLスキーマの変更箇所を把握する必要があるが、運用者が旧XMLスキーマと新XMLスキーマとを見比べながら、人手で変更箇所を把握することは困難である。そこで、本実施形態の対応関係抽出装置300は、運用者がこのようなXMLスキーマの変更箇所を効率良く把握することを支援し、XMLスキーマに基づいて処理を行うコンピュータシステムの運用を支援する。
In the present embodiment, the first schema information stored in the first schema
図2は、第1のスキーマ情報記憶部311に記憶される旧XMLスキーマのデータ例を示す図である。XMLスキーマは、XML文書に記述する最小単位の情報である要素の構造等を定義する情報であり、文書の構造や内容等を、「<」と「>」との山括弧(タグ)に囲って記述することにより定義している。XMLスキーマでは、そのXMLスキーマに基づいて生成されるXML文書に含まれる1つの情報を要素として、要素のname属性の値により要素名を定義し、type属性の値により要素のデータ型定義名を定義して対応付けておくことができる。
FIG. 2 is a diagram illustrating a data example of the old XML schema stored in the first schema
例えば、符号a1に示す箇所には、「<xs:element name=“Document” type=“DocumentType01“ />」と定義されている。この場合、name属性で指定された(以下、属性に対応付けられた、との記載は、属性で指定されたことを意味する)「Document」は要素名を示し、type属性に対応付けられた「DocumentType01」はデータ型定義名を示す。また、データ型定義「DocumentType01」は、子要素として「Account」と、「BankInfo」と、「Other」とを持つことが定義されている。また、例えば「Account」は、データ型定義名が「AccountType01」であり、minOccurs属性(最小出現回数)が「0」であり、maxOccurs属性(最大出現回数)がunbounded(制限なし)であることが定義されている。 For example, “<xs: element name =“ Document ”type =“ DocumentType01 “/>” is defined at a location indicated by reference sign a1. In this case, “Document” designated by the name attribute (hereinafter, “corresponding to the attribute” means designated by the attribute) indicates the element name, and is associated with the type attribute. “DocumentType01” indicates a data type definition name. The data type definition “DocumentType01” is defined to have “Account”, “BankInfo”, and “Other” as child elements. For example, “Account” has a data type definition name “AccountType01”, a minOccurs attribute (minimum number of appearances) “0”, and a maxOccurs attribute (maximum number of occurrences) unbounded (no limit). Is defined.
符号a2の箇所には、上述した要素「Account」のデータ型定義である「AccountType01」の定義内容が記述されている。ここでは、「AccountType01」は、子要素として「Id」と「Name」と「Address」と「Tel」とを持つことが定義されている。このうち、例えば「Name」のデータ型定義名は、「Max15Text」であることが定義されている。
符号a3の箇所には、「Max15Text」の定義内容が記述されている。ここでは、「Max15Text」は、maxLength(最大桁数)が「15」の文字列であることが定義されている。このように定義された構造に基づいてXML文書を生成することにより、異なるコンピュータ装置間で情報を共有することができる。
The definition content of “AccountType01”, which is the data type definition of the element “Account” described above, is described at the location indicated by reference numeral a2. Here, “AccountType01” is defined to have “Id”, “Name”, “Address”, and “Tel” as child elements. Among these, for example, the data type definition name of “Name” is defined to be “Max15Text”.
The definition content of “Max15Text” is described at the location indicated by reference numeral a3. Here, “Max15Text” is defined to be a character string whose maxLength (maximum number of digits) is “15”. By generating an XML document based on the structure defined in this way, information can be shared between different computer devices.
第2のスキーマ情報記憶部312には、第1のスキーマ情報(旧XMLスキーマ)に対応する第2のスキーマ情報(新XMLスキーマ)が記憶される。
図3は、第2のスキーマ情報記憶部312に記憶される新XMLスキーマのデータ例を示す図である。符号b1に示す箇所には、要素名「Document」が定義されており、この要素のデータ型定義名が「DocumentType02」であることが定義されている。すなわち、旧XMLスキーマに対して、新XMLスキーマでは、要素名「Document」のデータ型定義名が「DocumentType01」から「DocumentType02」に変更されている。このように、旧XMLスキーマから新XMLスキーマにバージョン改訂される場合には、要素名とデータ型定義名との双方が変更するのではなく、要素名は変更されずに、データ型定義名が変更されることがある。そこで、本実施形態では、旧XMLスキーマと新XMLスキーマとにおいて、要素名が一致する要素同士は対応する要素であるとして対応付け、そのデータ型定義名や子要素を対応付ける。これにより、複雑な階層のXMLスキーマによる定義を、効率良く対応付けることが可能となる。
The second schema
FIG. 3 is a diagram illustrating a data example of the new XML schema stored in the second schema
また、符号b1に示す箇所には、データ型定義「DocumentType02」は、子要素として「Account」と、「Other」とを持つことが定義されている。また、要素名「Account」のデータ型定義名が「AccountType02」であることが定義されている。すなわち、旧XMLスキーマに対して、新XMLスキーマでは、要素名「Account」のデータ型定義名が「AccountType01」から「AccountType02」に変更されている。また、「BankInfo」および「BankInfo」配下の子要素が削除されている。また、要素「Other」の定義にminOccurs属性が「0」であることが追加されている。 In addition, at the location indicated by the reference sign b1, it is defined that the data type definition “DocumentType02” has “Account” and “Other” as child elements. In addition, it is defined that the data type definition name of the element name “Account” is “AccountType02”. In other words, in the new XML schema, the data type definition name of the element name “Account” is changed from “AccountType01” to “AccountType02” with respect to the old XML schema. Also, child elements under “BankInfo” and “BankInfo” are deleted. In addition, it is added that the minOccurs attribute is “0” in the definition of the element “Other”.
符号b3に示す箇所には、要素名「Account」のデータ型定義名「AccountType02」が定義されており、データ型定義「AccountType02」は、子要素として「Id」、「Name」、「Address」、「New」を持つことが定義されている。符号b2に示す箇所には、要素名「Name」のデータ型定義である「Max15Text」の内容が定義されている。旧XMLスキーマと比べてデータ型定義「Max15Text」とデータ型定義「AccountType02」の記述位置とが入れ替わっているが、これによる意味的な違いは発生しない。要素「Account」のデータ型定義「AccountType02」での子要素である要素「Address」にmaxOccurs属性が「2」である定義が追加されている。また、要素「Tel」が削除されている。また、要素「New」が追加されている。このように、旧XMLスキーマと新XMLスキーマとには、いくつかの相違点が存在する。 A data type definition name “AccountType02” of an element name “Account” is defined at a position indicated by a symbol b3, and the data type definition “AccountType02” includes “Id”, “Name”, “Address”, It is defined to have “New”. The content of “Max15Text”, which is the data type definition of the element name “Name”, is defined at the location indicated by the symbol b2. Compared with the old XML schema, the description positions of the data type definition “Max15Text” and the data type definition “AccountType02” are interchanged, but there is no semantic difference. A definition that the maxOccurrs attribute is “2” is added to the element “Address” that is a child element in the data type definition “AccountType02” of the element “Account”. Also, the element “Tel” is deleted. In addition, an element “New” is added. As described above, there are some differences between the old XML schema and the new XML schema.
データ型定義一覧記憶部313には、第1のスキーマ情報記憶部311に記憶される旧XMLスキーマと第2のスキーマ情報記憶部312に記憶される新XMLスキーマとのそれぞれについて、XMLスキーマに含まれる要素名およびデータ定義型名と、要素間の親子関係とが抽出されたデータ型定義一覧が記憶される。本実施形態では、旧XMLスキーマに基づいて生成されたデータ型定義一覧を第1のデータ型定義一覧といい、新XMLスキーマに基づいて生成されたデータ型定義一覧を第2のデータ型定義一覧という。
The data type definition
図4は、データ型定義一覧記憶部313に記憶される旧XMLスキーマのデータ型定義一覧のデータ例を示す図である。データ型定義一覧には、XMLスキーマに含まれる要素(子要素名)と、その要素に対応付けられたデータ型定義(子要素データ型定義名)と、その要素を子要素とする親要素のデータ型定義である親要素データ型定義(親要素データ型定義名)とが対応付けられている。
FIG. 4 is a diagram illustrating a data example of the data type definition list of the old XML schema stored in the data type definition
ここでは、XMLスキーマに含まれる複数の要素のうち、最上位の要素(ルート要素)のデータ型定義名と、その最上位の要素の子要素と、その子要素のデータ型定義とを冒頭に対応付けて記憶している。その下に、その子要素のデータ型定義名と、その子要素を親要素とする子要素である孫要素と、その孫要素のデータ型定義とを対応付けて記憶している。なお、本実施形態において、最上位の要素とは、XMLスキーマにおいてXML構造(データ型)を定義する要素のうち最上位のものをいう。すなわち、例えば上述の旧XMLスキーマの例において、XML文書であることを宣言する1行目の記述(XML宣言)と、XMLスキーマであることを宣言する2行目の記述(XMLスキーマ宣言)とを除いた、XMLスキーマ宣言の直下の要素を最上位の要素(ルート要素)という。例えば、旧XMLスキーマの例では、3行目の、要素名が「Document」である要素がルート要素である。
図5は、データ型定義一覧記憶部313に記憶される新XMLスキーマのデータ型定義一覧のデータ例を示す図である。新XMLスキーマのデータ型定義一覧のデータ内容は、旧XMLスキーマのデータ型定義一覧と同様である。
Here, among the elements included in the XML schema, the data type definition name of the top element (root element), the child element of the top element, and the data type definition of the child element correspond to the beginning. I remember it. Below that, a data type definition name of the child element, a grandchild element that is a child element having the child element as a parent element, and a data type definition of the grandchild element are stored in association with each other. In the present embodiment, the highest element refers to the highest element among the elements defining the XML structure (data type) in the XML schema. That is, for example, in the above-described example of the old XML schema, a description on the first line (XML declaration) declaring that the document is an XML document, a description (XML schema declaration) on the second line declaring that the document is an XML schema, The element immediately below the XML schema declaration excluding the above is called the highest element (root element). For example, in the example of the old XML schema, the element whose element name is “Document” on the third line is the root element.
FIG. 5 is a diagram illustrating a data example of the data type definition list of the new XML schema stored in the data type definition
対応関係抽出結果記憶部314には、第1のデータ型定義一覧と第2のデータ型定義一覧とにおいて親要素の要素名が一致する子要素同士を対応付けた対応関係抽出結果が記憶される。図6は、対応関係抽出結果記憶部314に記憶される対応関係抽出結果のデータ例を示す図である。対応関係抽出結果は、例えば、表計算アプリケーションによって表示可能な形式のファイルとして記憶される。対応関係抽出結果においては、旧XMLスキーマに含まれる親要素データ型定義名に対応する、新XMLスキーマに含まれる親要素データ型定義名を、同じ行に表示するように整理してデータを対応付けている。また、旧XMLスキーマと新XMLスキーマとにおいて変更されているデータについては、太字(ボールド)に強調表示するとともに、下線を付している。XMLスキーマに基づく処理を行うコンピュータシステムの運用者は、このような対応関係抽出結果を参照することで、XMLスキーマに含まれるどの項目がバージョン改訂によりどのように変更したのか、あるいは変更していないのかを、視覚的に効率良く把握することが可能となる。
The correspondence extraction
また、対応関係抽出結果において、旧XMLスキーマに含まれる要素に対応する要素が新XMLスキーマに含まれない場合にはその要素が削除されたとして削除フラグを付し、新XMLスキーマに含まれる要素に対応する要素が旧XMLスキーマに含まれない場合にはその要素が追加されたとして追加フラグを付している。この例では、削除フラグを付すとは、削除フラグのセルに「○」を付加することをいい、追加フラグを付すとは、追加フラグのセルに「○」を付加することをいう。 In addition, when the element corresponding to the element included in the old XML schema is not included in the new XML schema in the correspondence extraction result, the element is included in the new XML schema with a deletion flag attached as the element has been deleted. If an element corresponding to is not included in the old XML schema, an additional flag is attached to indicate that the element has been added. In this example, adding a deletion flag means adding “◯” to the cell of the deletion flag, and attaching an addition flag means adding “◯” to the cell of the addition flag.
対応要素テーブル記憶部315には、第1のデータ型定義一覧と第2のデータ型定義一覧とに基づいて対応関係抽出結果を生成する際に一時的に参照されるワークテーブルである対応要素テーブルが記憶される。図7は、対応要素テーブル記憶部315に記憶される対応要素テーブルのデータ例を示す図である。ここでは、第1のデータ型定義一覧と第2のデータ型定義一覧とにおいて、対応する親要素データ型定義名と子要素名と子要素データ型定義名との組み合わせを同じ行に対応付けて記憶している。
In the corresponding element
図1に戻り、入力部320は、外部からの情報入力を受け付ける。例えば、入力部320は、入力装置100に対するユーザの操作に応じて生成される入力信号を受け付けることにより、情報の入力を受け付ける。入力部320は、例えば、旧XMLスキーマと新XMLスキーマとの入力を受け付ける。例えば、旧XMLスキーマや新XMLスキーマ等のXMLスキーマはファイル形式のデータであり、USB(Universal Serial Bus)メモリやCD(Compact Disc)等の可搬記憶媒体に記憶されているXMLスキーマのファイルを読み出すことによって入力部320が入力を受け付けてもよいし、ネットワークを介して接続された他のコンピュータ装置から読み出してもよい。入力部320は、入力された旧XMLスキーマを第1のスキーマ情報記憶部311に記憶させ、入力された新XMLスキーマを第2のスキーマ情報記憶部312に記憶させる。
Returning to FIG. 1, the
データ型定義内容抽出部330は、入力部320に入力された第1のスキーマ情報記憶部311および第2のスキーマ情報記憶部312に記憶されたXMLスキーマのそれぞれについて、XMLスキーマに含まれる要素と、その要素に対応付けられたデータ型定義と、その要素を子要素とする親要素のデータ型定義である親要素データ型定義とを対応付けたデータ型定義一覧を生成し、前記データ型定義一覧記憶部313に記憶させる。
The data type definition
ここで、データ型定義内容抽出部330は、XMLスキーマに含まれる複数の要素のうち最上位の要素のデータ型定義と、その最上位の要素の子要素と、その子要素のデータ型定義とを対応付け、その子要素のデータ型定義と、その子要素を親要素とする子要素である孫要素と、その孫要素のデータ型定義とを対応付けたデータ型定義一覧を生成し、データ型定義一覧記憶部313に記憶させる。
またここで、データ型定義内容抽出部330がデータ型定義一覧の親要素データ型定義名にデータ型定義を記憶させる際、そのデータ型定義名の種類がXMLにおける所定の単純型データ型定義である場合、そのデータ型定義名に対する子要素は存在しない(例えば、データ型定義名が「Max15Text」である場合、その種類は単純型データ定義である<xs:simpleType>となり、子要素は存在しない)。このように、子要素が存在しない場合、第1のデータ型定義名一覧および第2のデータ型定義名一覧において、子要素が存在しないことを示す情報(たとえば、「−」)を記載することができる。
また、データ型定義内容抽出部330がXMLスキーマを解析する際には、例えば、XMLパーサのAPI(Application Programming Interface)であるSAX(Simple API for XML)を利用することができる。
Here, the data type definition
Further, here, when the data type definition
Further, when the data type definition
対応関係抽出部340は、データ型定義内容抽出部330によって旧XMLスキーマに基づいて生成された第1のデータ型定義一覧と、新XMLスキーマに基づいて生成された第2のデータ型定義一覧とを比較し、第1のデータ型定義一覧と第2のデータ型定義一覧とにおいて親要素の要素名が一致する子要素同士を対応付けた対応関係抽出結果を生成し、対応関係抽出結果記憶部314に記憶させる。対応関係抽出部340は、初期対応決定部341と、子要素対応決定部342と、対応付け選択部343とを備えている。
The correspondence
初期対応決定部341は、第1のデータ型定義一覧と第2のデータ型定義一覧とを比較する際の最初の比較対象要素として、例えば新旧XMLスキーマにおけるそれぞれの最上位の要素(ルート要素)に含まれるデータ型定義名のペアを処理対象として決定し、決定した処理対象を子要素対応決定部342に入力する。
The initial
子要素対応決定部342は、入力された処理対象である新旧XMLスキーマのデータ型定義名のペアについて、そのデータ型定義名同士を対応付けるとともに、そのデータ型定義名のそれぞれの子要素を対応関係抽出結果記憶部314に記憶させる。例えば、子要素対応決定部342は、入力された処理対象であるペアのデータ型定義名が同一行になるようにして、対応関係抽出結果記憶部314における親要素データ型定義名として記憶させる。また、子要素対応決定部342は、ペアのデータ型定義名のそれぞれの配下にある1または複数の子要素の要素名(子要素名)とデータ型定義名(子要素データ型定義名)とを、データ型定義一覧記憶部313に記憶されている第1のデータ型定義一覧と第2のデータ型定義一覧とから読み出す。子要素対応決定部342は、読み出した1または複数の要素名とデータ型定義名とを、対応関係抽出結果記憶部314において処理対象であるペアを親要素データ型定義名として記憶させた次の行以降に連続して記憶させる。子要素対応決定部342は、処理対象のペアのデータ型定義名のそれぞれについての子要素すべてを対応関係抽出結果記憶部314に記憶させる。
The child element
また、子要素対応決定部342は、対応関係抽出結果記憶部314に記憶させた新旧XMLスキーマの子要素同士の対応関係を判定し、対応すると判定した子要素同士を対応付けて対応要素テーブル記憶部315に記憶させる。例えば、子要素対応決定部342は、処理対象のペアであるデータ型定義名のそれぞれの配下の子要素のうち、要素名が一致する子要素同士を対応すると判定し、対応すると判定した子要素同士の親要素データ型定義名と子要素名と子要素データ型定義名とを対応付けて対応要素テーブル記憶部315に記憶させる。
In addition, the child element
ここで、子要素対応決定部342は、子要素の要素名が一致するか否かを判定する際には、完全一致、部分一致、類似度判定等のいずれかまたは複数の判定方法によって判定することができる。類似度判定とは、例えば、複数の文字列中における所定の何割の文字が一致した場合に一致したと判定し、所定の何割の文字が一致しない場合には一致しないと判定するような判定方法である。
Here, when determining whether or not the element names of the child elements match, the child element
またここで、子要素対応決定部342は、旧XMLスキーマに含まれる要素である旧要素に対応する要素が新XMLスキーマに含まれない場合にはその旧要素が削除されたと判定し、新XMLスキーマに含まれる要素である新要素に対応する要素が旧XMLスキーマに含まれない場合にはその新要素が追加されたと判定する。このような判定処理は、例えば、フラグを利用して行うことができる。例えば、旧XMLスキーマの子要素名に対して、対応する新XMLスキーマの子要素名がみつかった場合、対応関係抽出結果記憶部314におけるその子要素名に処理済フラグを付加しておき、処理対象を次の子要素名とする。旧XMLスキーマの処理対象の子要素名に対して、対応する新XMLスキーマの子要素がみつからなかった場合、削除された子要素名として削除フラグを付加しておき、処理対象を旧XMLスキーマにおける次の子要素とする。旧XMLスキーマの全ての子要素の処理が終わった時点で、処理済みフラグが付加されていない新XMLスキーマの子要素名が存在する場合、その子要素は新たに追加された子要素であるとして、その子要素に追加フラグを付加する。子要素対応決定部342は、処理対象のペアのデータ型定義名の配下にあるすべての子要素について、対応関係の判定処理を行う。
Also, here, the child element
対応付け選択部343は、子要素対応決定部342によって対応関係抽出結果記憶部314と対応要素テーブル記憶部315とに情報が記憶されると、対応要素テーブル記憶部315に記憶されている対応要素テーブルに基づいて、次の処理対象である新旧XMLスキーマのデータ型定義名のペアを決定し、決定した処理対象を子要素対応決定部342に入力する。具体的には、対応付け選択部343は、対応要素テーブル記憶部315に記憶されている対応要素テーブルにおいて対応付けられた新旧XMLスキーマの子要素データ型定義名のペアを処理対象として決定し、決定した処理対象を子要素対応決定部342に入力する。ここで、対応付け選択部343は、対応要素テーブル記憶部315に記憶されている新旧XMLスキーマの子要素データ型定義名のペアのすべてについて処理対象として子要素対応決定部342に入力し、対応関係抽出結果記憶部314と対応要素テーブル記憶部315とに情報を記憶させる処理を繰り返し行わせる。ここで、対応付け選択部343が決定し、子要素対応決定部342に入力した子要素データ型定義名のペアの情報が既に対応関係抽出結果記憶部314に記憶されている場合(つまり、対応関係抽出結果記憶部314に対応付けられて記憶されている親要素データ型定義名の中に、入力したデータ型定義名のペアが含まれる場合)、末端の要素まで完全に一致するため、対応付け処理を中断し、処理対象を対応要素テーブルにおける次の要素とする。
When information is stored in the correspondence extraction
ここでは、例えば、対応付け選択部343は、対応要素テーブルの各行に処理済と未処理とを区別するフラグを付加しておき、フラグにより処理済であるか未処理であるかを判定することができる。この場合、対応付け選択部343は、初期状態では全ての行に未処理であることを示すフラグを付加しておき、処理対象として子要素対応決定部342に入力した子要素データ型定義名のペアの行には処理済であることを示すフラグを付加する。これにより、対応要素テーブルに記憶されているすべての子要素データ型定義名のペアについて、重複なく子要素対応決定部342に処理を行わせることができる。あるいは、対応付け選択部343は、例えば、処理対象として子要素対応決定部342に入力した子要素データ型定義名のペアを、対応要素テーブルから削除することにより、未処理である子要素データ型定義名のペアについてのみ子要素対応決定部342に処理を行わせるようにしてもよい。対応付け選択部343が、対応要素テーブルに記憶されているすべての子要素データ型定義名のペアについて処理対象として子要素対応決定部342に入力し、子要素対応決定部342による処理が行われると、後述する出力部350による処理が行われる。
Here, for example, the
出力部350は、対応関係抽出部340が生成した対応関係抽出結果を出力装置200に表示させるための出力信号を生成し、出力装置200に出力して表示させる。XMLスキーマに基づいて処理を行うコンピュータシステムの運用者は、このように表示された対応関係抽出結果を参照することで、XMLスキーマの変更箇所を効率良く把握することができる。
The
次に、図面を参照して、本実施形態による対応関係抽出装置300の動作例を説明する。図8は、本実施形態による対応関係抽出装置300の動作例を示すフローチャートである。
入力部320は、旧XMLスキーマを記述したファイルと、新XMLスキーマを記述したファイルとの入力を受け付け、入力されたファイルをそれぞれ第1のスキーマ情報記憶部311と第2のスキーマ情報記憶部312とに記憶させる(ステップS1)。
Next, an exemplary operation of the correspondence
The
データ型定義内容抽出部330は、第1のスキーマ情報記憶部311に記憶された旧XMLスキーマを読み出し、第1のデータ型定義一覧を生成してデータ型定義一覧記憶部313に記憶させる。また、データ型定義内容抽出部330は、第2のスキーマ情報記憶部312に記憶された新XMLスキーマを読み出し、第2のデータ型定義一覧を生成してデータ型定義一覧記憶部313に記憶させる(ステップS2)。
The data type definition
対応関係抽出部340の初期対応決定部341は、第1のデータ型定義一覧におけるルート要素と第2のデータ型定義一覧におけるルート要素とのデータ型定義名のペアを処理対象として決定し、子要素対応決定部342に入力する(ステップS3)。子要素対応決定部342は、入力された処理対象のデータ型定義名のペアについて、対応関係抽出結果記憶部314に情報を記憶させて親要素データ型定義名の子要素の対応付け処理を行い、対応付けた子要素の情報を対応要素テーブル記憶部315に記憶させる(ステップS4)。対応付け選択部343は、対応要素テーブル記憶部315の対応要素テーブルに記憶されたすべての子要素データ型定義名のペアについて、子要素対応決定部342による処理を行っていなければ(ステップS5:No)、対応要素テーブル記憶部315に記憶された対応要素テーブルに基づいて次の処理対象であるデータ型定義名のペアを決定し、決定した処理対象を子要素対応決定部342に入力し(ステップS6)、ステップS4に戻る。
The initial
対応要素テーブル記憶部315の対応要素テーブルに記憶されたすべての子要素データ型定義名のペアについて、子要素対応決定部342による処理を行うと(ステップS5:Yes)、出力部350が、対応関係抽出結果記憶部314に記憶されている対応関係抽出結果を読み出し、出力装置200に表示させる(ステップS7)。
When processing is performed by the child element
以上説明したように、本実施形態によれば、旧XMLスキーマが新XMLスキーマにバージョン改訂されるとき、要素名が変更されずにデータ型定義名が変更される場合があることに着目し、旧XMLスキーマと新XMLスキーマとにおいて要素名が一致するデータを対応付けた対応関係抽出結果を生成して表示することができる。これにより、そのXMLスキーマに基づいて処理を行うコンピュータシステムの運用者は、旧XMLスキーマと新XMLスキーマとにおいてどのような変更があったのかを効率良く把握することができる。これにより、XMLスキーマのバージョン改訂によるコンピュータシステムへの影響範囲を効率良く特定することができ、コンピュータシステムを運用するための負荷を軽減することが可能となる。 As described above, according to the present embodiment, when the old XML schema is revised to the new XML schema, the data type definition name may be changed without changing the element name. It is possible to generate and display a correspondence extraction result associating data having the same element name in the old XML schema and the new XML schema. Thereby, the operator of the computer system that performs processing based on the XML schema can efficiently grasp what change has occurred in the old XML schema and the new XML schema. As a result, it is possible to efficiently specify the range of influence on the computer system due to revision of the XML schema version, and to reduce the load for operating the computer system.
なお、本実施形態では、対応関係抽出結果において、旧XMLスキーマと新XMLスキーマとの親要素データ型定義名と、子要素名と、子要素データ型定義名とを対応付け、それぞれに削除フラグと追加フラグとを対応付ける例を説明したが、対応関係抽出結果には、この他の項目のデータを付加することもできる。図9は、対応関係抽出結果の別の例を示す図である。ここでは、対応関係抽出結果における旧XMLスキーマの項目のみの例を示しているが、新XMLスキーマの項目においても同様の項目を付加することができる。この例では、対応関係抽出結果には、親要素データ型定義名と、子要素名と、子要素データ型定義名と、削除フラグとに加えて、パーティクル情報と、属性と、制約情報と、出現回数と、変更内容との情報を付加している。このようにすれば、より有用な情報をコンピュータの運用者に提供することができる。 In this embodiment, in the correspondence extraction result, the parent element data type definition name, the child element name, and the child element data type definition name of the old XML schema and the new XML schema are associated with each other, and the deletion flag is assigned to each. Although an example of associating the additional flag with the additional flag has been described, data of other items can be added to the correspondence relationship extraction result. FIG. 9 is a diagram illustrating another example of the correspondence relationship extraction result. In this example, only the items of the old XML schema in the correspondence extraction result are shown, but similar items can be added to the items of the new XML schema. In this example, in the correspondence extraction result, in addition to the parent element data type definition name, child element name, child element data type definition name, and deletion flag, particle information, attributes, constraint information, Information about the number of appearances and the contents of change is added. In this way, more useful information can be provided to the computer operator.
また、本実施形態では、XMLスキーマがバージョン改訂された場合に、旧XMLスキーマから新XMLスキーマに切り替えるために変更箇所の影響度を調査する例を示したが、異なるXMLスキーマによるシステムへの影響度を調査したいような他の場合にも、本実施形態の対応関係抽出装置300を適用することができる。
In this embodiment, when the XML schema is revised, an example of investigating the degree of influence of the changed part in order to switch from the old XML schema to the new XML schema has been shown. The
また、子要素の対応付けにおいて、例えば、同様の子要素が対応付けられている親要素同士を対応付けるような処理を行うこともできる。例えば、旧XMLスキーマにおけるある親要素に対応する親要素が新XMLスキーマにみつからない場合、その旧XMLスキーマの親要素の子要素がA要素とB要素とC要素であり、新XMLスキーマにおいて子要素がA要素とB要素とD要素である親要素が存在すれば、その子要素同士は対応するものとして対応付けるようにすることもできる。 Further, in association of child elements, for example, a process of associating parent elements associated with similar child elements can be performed. For example, when a parent element corresponding to a parent element in the old XML schema is not found in the new XML schema, the child elements of the parent element of the old XML schema are the A element, the B element, and the C element. If there are parent elements whose elements are the A element, the B element, and the D element, the child elements can be associated with each other as corresponding elements.
また、本実施形態では、対応関係抽出結果において、旧XMLスキーマと新XMLスキーマとにおいて変更されているデータについては、太字(ボールド)に強調表示するとともに、下線を付す例を説明したが、太字にすることのみによって変更箇所を強調してもよいし、下線を付すことのみによって変更箇所を強調してもよい。あるいは、その他の方法により、変更箇所を強調するようにしてもよい。例えば、変更のあった項目のセルに網掛けをしたり、文字色を変更したりすることもできる。 Further, in the present embodiment, in the correspondence extraction result, the data that is changed in the old XML schema and the new XML schema is highlighted in bold (bold) and underlined. The changed part may be emphasized only by making it underlined, or the changed part may be emphasized only by underlining. Alternatively, the changed part may be emphasized by other methods. For example, the cell of the item that has been changed can be shaded or the character color can be changed.
また、本実施形態では、第1のデータ型定義一覧と第2のデータ型定義一覧とに基づいて対応関係抽出結果を生成する際に、ワークテーブルとしての対応要素テーブルを用いる例を説明したが、このようなワークテーブルを用いずに、第1のデータ型定義一覧と第2のデータ型定義一覧との対応関係を抽出するようにしてもよい。 In the present embodiment, the example in which the correspondence element table as the work table is used when the correspondence relationship extraction result is generated based on the first data type definition list and the second data type definition list has been described. The correspondence relationship between the first data type definition list and the second data type definition list may be extracted without using such a work table.
なお、本発明における処理部の機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより対応関係の抽出を行ってもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータシステム」は、インターネットやWAN、LAN、専用回線等の通信回線を含むネットワークを介して接続された複数のコンピュータ装置を含んでもよい。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、ネットワークを介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(RAM)のように、一定時間プログラムを保持しているものも含むものとする。また、上記プログラムは、上述した機能の一部を実現するためのものであってもよい。さらに、上述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であってもよい。 The program for realizing the function of the processing unit in the present invention is recorded on a computer-readable recording medium, and the program recorded on the recording medium is read into the computer system and executed to extract the correspondence relationship. May be performed. Here, the “computer system” includes an OS and hardware such as peripheral devices. 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 dedicated line. The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Furthermore, the “computer-readable recording medium” holds a program for a certain period of time, such as a volatile memory (RAM) inside a computer system that becomes a server or a client when the program is transmitted via a network. Including things. The program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, what is called a difference file (difference program) may be sufficient.
また、上述した機能の一部または全部を、LSI(Large Scale Integration)等の集積回路として実現してもよい。上述した各機能は個別にプロセッサ化してもよいし、一部、または全部を集積してプロセッサ化してもよい。また、集積回路化の手法はLSIに限らず専用回路、または汎用プロセッサで実現してもよい。また、半導体技術の進歩によりLSIに代替する集積回路化の技術が出現した場合、当該技術による集積回路を用いてもよい。 In addition, some or all of the functions described above may be realized as an integrated circuit such as an LSI (Large Scale Integration). Each function described above may be individually made into a processor, or a part or all of them may be integrated into a processor. Further, the method of circuit integration is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. In addition, when an integrated circuit technology that replaces LSI appears due to the advancement of semiconductor technology, an integrated circuit based on the technology may be used.
100 入力装置
200 出力装置
300 対応関係抽出装置
310 記憶部
311 第1のスキーマ情報記憶部
312 第2のスキーマ情報記憶部
313 データ型定義一覧記憶部
314 対応関係抽出結果記憶部
315 対応要素テーブル記憶部
320 入力部
330 データ型定義内容抽出部
340 対応関係抽出部
341 初期対応決定部
342 子要素対応決定部
343 対応付け選択部
350 出力部
100
Claims (7)
前記入力部に入力された前記スキーマ情報に含まれる要素と、当該要素に対応付けられたデータ型定義と、当該要素を子要素とする親要素のデータ型定義である親要素データ型定義とを対応付けたデータ型定義一覧を生成するデータ型定義内容抽出部と、
前記データ型定義内容抽出部によって前記第1のスキーマ情報に基づいて生成された第1のデータ型定義一覧と、前記第2のスキーマ情報に基づいて生成された第2のデータ型定義一覧とを比較し、第1のデータ型定義一覧と第2のデータ型定義一覧とにおいて親要素の要素名が一致する子要素同士を対応付けた対応関係抽出結果を生成する対応関係抽出部と、
を備えることを特徴とする対応関係抽出装置。 First schema information described in a schema language that defines a plurality of elements each associated with a data type definition, and a parent-child relationship between the elements, and a second schema corresponding to the first schema information An input unit that accepts input of schema information with information;
An element included in the schema information input to the input unit; a data type definition associated with the element; and a parent element data type definition that is a data type definition of a parent element having the element as a child element. A data type definition content extraction unit for generating a list of associated data type definitions;
A first data type definition list generated based on the first schema information by the data type definition content extraction unit; and a second data type definition list generated based on the second schema information. A correspondence extraction unit that compares the first data type definition list and the second data type definition list to generate a correspondence extraction result that associates child elements having the same element name of the parent element;
A correspondence extracting apparatus comprising:
ことを特徴とする請求項1に記載の対応関係抽出装置。 The data type definition content extraction unit corresponds to the data type definition of the highest element among the plurality of elements included in the schema information, the child element of the highest element, and the data type definition of the child element. And generating the data type definition list in which the data type definition of the child element, the grandchild element that is a child element having the child element as a parent element, and the data type definition of the grandchild element are associated with each other. The correspondence extraction device according to claim 1.
ことを特徴とする請求項1または請求項2に記載の対応関係抽出装置。 The correspondence extraction unit determines that the old element has been deleted when an element corresponding to an old element that is an element included in the first schema information is not included in the second schema information, If the element corresponding to the new element which is an element included in the second schema information is not included in the first schema information, it is determined that the new element has been added, and the correspondence extraction result including the determination result The correspondence relationship extraction device according to claim 1 or 2, wherein:
を備えることを特徴とする請求項1から請求項3までのいずれか1項に記載の対応関係抽出装置。 The correspondence relationship extraction apparatus according to claim 1, further comprising: an output unit that outputs the correspondence relationship extraction result generated by the correspondence relationship extraction unit.
ことを特徴とする請求項1から請求項4までのいずれか1項に記載の対応関係抽出装置。 5. The method according to claim 1, wherein the first schema information is an XML schema, and the second schema information is an XML schema in which the first schema information is revised. The correspondence extraction device according to item 1.
入力部が、それぞれにデータ型定義を対応付けた複数の要素と、当該要素間の親子関係とを定義するスキーマ言語によって記述された第1のスキーマ情報と、当該第1のスキーマ情報に対応する第2のスキーマ情報とのスキーマ情報の入力を受け付けるステップと、
データ型定義内容抽出部が、前記入力部に入力された前記スキーマ情報に含まれる要素と、当該要素に対応付けられたデータ型定義と、当該要素を子要素とする親要素のデータ型定義である親要素データ型定義とを対応付けたデータ型定義一覧を生成するステップと、
対応関係抽出部が、前記データ型定義内容抽出部によって前記第1のスキーマ情報に基づいて生成された第1のデータ型定義一覧と、前記第2のスキーマ情報に基づいて生成された第2のデータ型定義一覧とを比較し、第1のデータ型定義一覧と第2のデータ型定義一覧とにおいて親要素の要素名が一致する子要素同士を対応付けた対応関係抽出結果を生成するステップと、
を備えることを特徴とする対応関係抽出方法。 Of the correspondence extraction device,
The input unit corresponds to first schema information described in a schema language that defines a plurality of elements each associated with a data type definition and a parent-child relationship between the elements, and the first schema information. Receiving schema information input with the second schema information;
The data type definition content extraction unit includes an element included in the schema information input to the input unit, a data type definition associated with the element, and a data type definition of a parent element having the element as a child element. Generating a data type definition list in which a parent element data type definition is associated;
The correspondence relationship extraction unit includes a first data type definition list generated based on the first schema information by the data type definition content extraction unit and a second data generated based on the second schema information. Comparing the data type definition list, and generating a correspondence extraction result in which the first data type definition list and the second data type definition list are associated with child elements having the same element name of the parent element; ,
A correspondence extraction method characterized by comprising:
それぞれにデータ型定義を対応付けた複数の要素と、当該要素間の親子関係とを定義するスキーマ言語によって記述された第1のスキーマ情報と、当該第1のスキーマ情報に対応する第2のスキーマ情報とのスキーマ情報の入力を受け付ける入力部、
前記入力部に入力された前記スキーマ情報に含まれる要素と、当該要素に対応付けられたデータ型定義と、当該要素を子要素とする親要素のデータ型定義である親要素データ型定義とを対応付けたデータ型定義一覧を生成するデータ型定義内容抽出部、
前記データ型定義内容抽出部によって前記第1のスキーマ情報に基づいて生成された第1のデータ型定義一覧と、前記第2のスキーマ情報に基づいて生成された第2のデータ型定義一覧とを比較し、第1のデータ型定義一覧と第2のデータ型定義一覧とにおいて親要素の要素名が一致する子要素同士を対応付けた対応関係抽出結果を生成する対応関係抽出部、
として機能させるための対応関係抽出プログラム。 The computer of the correspondence extraction device,
First schema information described in a schema language that defines a plurality of elements each associated with a data type definition, and a parent-child relationship between the elements, and a second schema corresponding to the first schema information An input unit that accepts input of schema information with information,
An element included in the schema information input to the input unit; a data type definition associated with the element; and a parent element data type definition that is a data type definition of a parent element having the element as a child element. Data type definition content extraction unit that generates a list of associated data type definitions,
A first data type definition list generated based on the first schema information by the data type definition content extraction unit; and a second data type definition list generated based on the second schema information. A correspondence extraction unit that compares the first data type definition list and the second data type definition list to generate a correspondence extraction result in which child elements having the same element name of the parent element are associated with each other;
Correspondence extraction program to function as
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014037139A JP2015162107A (en) | 2014-02-27 | 2014-02-27 | Correspondence relation extraction device, correspondence relation extraction method, and correspondence relation extraction program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014037139A JP2015162107A (en) | 2014-02-27 | 2014-02-27 | Correspondence relation extraction device, correspondence relation extraction method, and correspondence relation extraction program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2015162107A true JP2015162107A (en) | 2015-09-07 |
Family
ID=54185157
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014037139A Pending JP2015162107A (en) | 2014-02-27 | 2014-02-27 | Correspondence relation extraction device, correspondence relation extraction method, and correspondence relation extraction program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2015162107A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20180080278A (en) * | 2015-11-06 | 2018-07-11 | 쌩-고벵 글래스 프랑스 | Electrically heatable composite sheet glass with capacitive switching area |
JP2019200578A (en) * | 2018-05-16 | 2019-11-21 | 三菱電機株式会社 | Database composition management device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007334688A (en) * | 2006-06-15 | 2007-12-27 | Canon Inc | Electronic document processing device and method |
WO2011089683A1 (en) * | 2010-01-19 | 2011-07-28 | 富士通株式会社 | Analysis method, analysis device, and analysis program |
JP2011197898A (en) * | 2010-03-18 | 2011-10-06 | Fujitsu Ltd | Apparatus, program and method for detecting influence |
JP2011258024A (en) * | 2010-06-09 | 2011-12-22 | Canon Inc | Information processing unit and information processing method |
WO2014010029A1 (en) * | 2012-07-10 | 2014-01-16 | 富士通株式会社 | Program, mapping device, and mapping method |
-
2014
- 2014-02-27 JP JP2014037139A patent/JP2015162107A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007334688A (en) * | 2006-06-15 | 2007-12-27 | Canon Inc | Electronic document processing device and method |
WO2011089683A1 (en) * | 2010-01-19 | 2011-07-28 | 富士通株式会社 | Analysis method, analysis device, and analysis program |
JP2011197898A (en) * | 2010-03-18 | 2011-10-06 | Fujitsu Ltd | Apparatus, program and method for detecting influence |
JP2011258024A (en) * | 2010-06-09 | 2011-12-22 | Canon Inc | Information processing unit and information processing method |
WO2014010029A1 (en) * | 2012-07-10 | 2014-01-16 | 富士通株式会社 | Program, mapping device, and mapping method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20180080278A (en) * | 2015-11-06 | 2018-07-11 | 쌩-고벵 글래스 프랑스 | Electrically heatable composite sheet glass with capacitive switching area |
JP2019200578A (en) * | 2018-05-16 | 2019-11-21 | 三菱電機株式会社 | Database composition management device |
JP6991100B2 (en) | 2018-05-16 | 2022-01-12 | 三菱電機株式会社 | Database configuration management device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10042828B2 (en) | Rich text handling for a web application | |
US20200257848A1 (en) | System and method for generating task-embedded documents | |
US8055997B2 (en) | System and method for implementing dynamic forms | |
US20180052843A1 (en) | Extracting a portion of a document, such as a web page | |
JP5756386B2 (en) | Method, apparatus, and program for supporting generation and management of metadata for correcting problems of dynamic web application | |
US8527867B2 (en) | Enabling users to edit very large XML data | |
JP5998035B2 (en) | Document creation support apparatus, document creation support method, and document creation support program | |
US20210056268A1 (en) | Data transformation system and method | |
JP2016099741A (en) | Information extraction support apparatus, method and program | |
US8225217B2 (en) | Method and system for displaying information on a user interface | |
JP2015162107A (en) | Correspondence relation extraction device, correspondence relation extraction method, and correspondence relation extraction program | |
JP6586050B2 (en) | Management device, management method, and management program | |
US11770367B2 (en) | Security method of XML web document | |
JP2005011301A (en) | Document processor and document processing program | |
JP5982308B2 (en) | Determination apparatus, determination method, determination program | |
JP7346671B2 (en) | Data conversion device and data conversion method | |
US11210454B2 (en) | Method for preparing documents written in markup languages while implementing a user interface for dealing with data of an information system | |
JP2008217170A (en) | Information processor and program | |
JP2010134766A (en) | Document data processing apparatus and program thereof | |
JP2010257412A (en) | Device, and method for filtering information, and program | |
JP2003296342A (en) | Meta data generation method and device | |
JP2010160746A (en) | Electronic document processing method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20161007 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20171222 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20180619 |