[go: up one dir, main page]

JP2006018449A - Structured data conversion apparatus and method - Google Patents

Structured data conversion apparatus and method Download PDF

Info

Publication number
JP2006018449A
JP2006018449A JP2004194092A JP2004194092A JP2006018449A JP 2006018449 A JP2006018449 A JP 2006018449A JP 2004194092 A JP2004194092 A JP 2004194092A JP 2004194092 A JP2004194092 A JP 2004194092A JP 2006018449 A JP2006018449 A JP 2006018449A
Authority
JP
Japan
Prior art keywords
conversion
field
specified
name
conversion method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2004194092A
Other languages
Japanese (ja)
Other versions
JP4220439B2 (en
Inventor
Shigeru Kobayashi
茂 小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Toshiba Digital Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Solutions Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp, Toshiba Solutions Corp filed Critical Toshiba Corp
Priority to JP2004194092A priority Critical patent/JP4220439B2/en
Publication of JP2006018449A publication Critical patent/JP2006018449A/en
Application granted granted Critical
Publication of JP4220439B2 publication Critical patent/JP4220439B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Abstract

【課題】視点の違いがもたらすXML表現の違いを、要素名、属性、要素内容の用法の交替により容易に補正可能とする。
【解決手段】変換法データベース10には、複数の変換法定義ファイル12が格納されている。変換エンジン30は、この複数の変換法定義ファイル12の中から、ユーザによって指定されたXMLデータをユーザの指定する表現形式のXMLデータに変換するための変換法定義ファイル12を選択する。変換エンジン30は、選択された変換法定義ファイル12に基づいて、ユーザによって指定されたXMLデータに含まれている要素のうち、当該ファイル12に含まれている変換対象指定情報の指定する要素を対象に、当該ファイル12に含まれている変換操作指定情報に基づいて、当該要素の要素名、属性及び要素内容の間での値のシフトまたはローテーションによる変換操作を実行する。
【選択図】 図1
Differences in XML expressions caused by differences in viewpoints can be easily corrected by changing the usage of element names, attributes, and element contents.
A conversion method database 10 stores a plurality of conversion method definition files 12. The conversion engine 30 selects the conversion method definition file 12 for converting the XML data specified by the user into the XML data of the expression format specified by the user from the plurality of conversion method definition files 12. Based on the selected conversion method definition file 12, the conversion engine 30 selects elements specified by the conversion target specifying information included in the file 12 among the elements included in the XML data specified by the user. Based on the conversion operation designation information included in the file 12, a conversion operation by shifting or rotating the value between the element name, attribute, and element content of the element is executed on the target.
[Selection] Figure 1

Description

本発明は、構造化データ(構造化文書)の表現形式を変換する構造化データ変換装置及び変換方法に関し、特に構造化データ(構造化文書)の一種である半構造化データ(半構造化文書)であるXMLデータ(XML文書)の表現形式を変換するのに好適な構造化データ変換装置及び方法に関する。   The present invention relates to a structured data conversion apparatus and conversion method for converting the representation format of structured data (structured document), and more particularly to semi-structured data (semi-structured document) which is a kind of structured data (structured document). The present invention relates to a structured data conversion apparatus and method suitable for converting the expression format of XML data (XML document).

XML(Extensible Markup Language)の普及に伴い、その参照、変換加工、蓄積などを目的とした各種のソフトウェア(アプリケーションソフトウェア)が頒布されている。   With the spread of XML (Extensible Markup Language), various software (application software) for the purpose of reference, conversion processing, storage, and the like is distributed.

XMLを用いて記述されたデータ(XML文書)は、論理的に、階層を持った木構造を表現する。上述のソフトウェアの中にはXMLデータ、即ち、XML文書ないし、その部分木の内容を図形化してユーザに提示し、その理解や操作を容易にするGUI(Graphical User Interface)を備えたものも多い。その典型的な例の1つがXML変換支援ツールである。このツールは、例えば、XSLT(XSL Transformations, XSL:Extensible Stylesheet Language)を利用したXML変換のために(例えば、非特許文献1参照)、その変換法の定義(XSLTスタイルシート)生成を支援する。このようなXML変換支援ツールの一般的なユーザインタフェースでは、変換前と変換後のXML構造を図形化して対比させ、両構造の間の対応関係をユーザに入力させる。   Data described using XML (XML document) logically represents a tree structure having a hierarchy. Many of the above-mentioned softwares are provided with a GUI (Graphical User Interface) that makes XML data, that is, an XML document or the contents of its sub-tree, graphically presented to the user and facilitates understanding and operation thereof. . One typical example is an XML conversion support tool. This tool supports, for example, generation of a definition (XSLT stylesheet) of an transformation method for XML transformation using XSLT (XSL Transformations, XSL: Extensible Stylesheet Language) (see, for example, Non-Patent Document 1). In a general user interface of such an XML conversion support tool, the XML structures before conversion and after conversion are converted into a figure and compared, and the correspondence between the two structures is input to the user.

従来、この種の、XMLを図形化するソフトウェアは、対象となるXMLデータを構文に基づいて解析し、その構成要素を配置する。つまり、ルート要素に始まるXMLの要素の入れ子構造を、そのまま木構造として表現する。ここでは、子の要素を含まない要素が葉となる。また、属性を持つ要素については、その属性も葉の一種として表現可能である。
XSL Transformations (XSLT) Version 1.0,[online],平成11年11月16日,World Wide Web Consortium (W3C),[平成16年6月21日検索],インターネット<URL: http://www.w3.org/TR/1999/REC-xslt-19991116>
Conventionally, this kind of software for converting XML into a graphic analyzes the target XML data based on the syntax, and arranges its constituent elements. That is, the nested structure of XML elements starting from the root element is expressed as a tree structure as it is. Here, an element that does not include a child element is a leaf. In addition, for an element having an attribute, the attribute can also be expressed as a kind of leaf.
XSL Transformations (XSLT) Version 1.0, [online], November 16, 1999, World Wide Web Consortium (W3C), [Search June 21, 2004], Internet <URL: http: //www.w3 .org / TR / 1999 / REC-xslt-19991116>

上記したように従来技術においては、XMLデータを図形化するには、当該XMLデータの構文解析を行い、その解析結果に基づいてそのまま当該XMLデータを図形化するのが一般的である。しかし、この従来技術におけるXMLデータの図形化では。同一の対象を表現するXMLデータであっても、XML表現の設計過程での視点の置き方によって、違った見え方をしてしまう。つまり従来技術においては、同一の対象を表現するXMLデータであっても、全く違って図形化されるという問題(以下、問題1と称する)がある。また従来技術においては、視点の違いによるXML表現の差異が、同じ視点から作られたXMLデータ全域に及ぶ。このため従来技術においては、XMLデータの図形化の操作を支援するツールの操作性を損なうという問題(以下、問題2と称する)もある。   As described above, in the prior art, in order to graph XML data, it is common to analyze the syntax of the XML data and graph the XML data as it is based on the analysis result. However, in the XML data graphic in this prior art. Even XML data that expresses the same object will look different depending on how the viewpoint is placed in the design process of the XML expression. In other words, in the prior art, there is a problem that even XML data representing the same object is rendered differently (hereinafter referred to as problem 1). In the prior art, the difference in the XML expression due to the difference in viewpoint extends to the entire XML data created from the same viewpoint. For this reason, in the prior art, there is also a problem (hereinafter referred to as problem 2) that the operability of the tool that supports the graphic data rendering operation is impaired.

以下、これらの問題1及び2について詳細に説明する。   Hereinafter, these problems 1 and 2 will be described in detail.

(問題1)
XMLデータの図形化は、当該XMLデータが表現する情報を、ユーザに理解しやすく提示するのが目的である。しかし、XMLデータの構文のみに基づく図形化では、用途により適切な情報提示が行えない場合がある。例えば、対象データをXMLデータで表現するのに、データ名称を要素名として表現する場合と、データの構造上の種別を要素名として表現する場合とでは、両XMLデータを構文のみに基づいて図形化すると、両者間の対応関係が分かりにくくなる。その理由は、ある対象データを表現するXMLの表記法を設計する際に、対象をデータ名称主体に捉えるか、或いはデータの構造種別主体に捉えるかという視点の差異が、図形化によって顕著となることによる。図9に具体例を示す。この図9は、XML表現の対象データXと、当該対象データXを表現する3種類のXMLデータA乃至Cとを示す。この対象データXを表現するXMLデータとして、XMLデータA乃至Cのいずれを用いることも可能である。これ以外にも、更に他の多くの表現があり得る。
(Problem 1)
The purpose of drawing XML data is to present information expressed by the XML data to the user in an easily understandable manner. However, there is a case where appropriate information presentation cannot be performed depending on the application in the graphic representation based only on the syntax of the XML data. For example, when the target data is expressed as XML data, when the data name is expressed as an element name, and when the structural type of the data is expressed as an element name, both XML data are represented based on the syntax only. If it becomes, it becomes difficult to understand the correspondence between the two. The reason for this is that when designing an XML notation that expresses certain target data, the difference in the viewpoint of whether the target is captured as the subject of the data name or the subject of the structure type of the data becomes noticeable due to graphicization. It depends. A specific example is shown in FIG. FIG. 9 shows the target data X in the XML representation and three types of XML data A to C expressing the target data X. As the XML data representing the target data X, any of the XML data A to C can be used. There can be many other expressions besides this.

このように、同じ表現対象に対して多様な表現が生じる大きな理由は、XMLが本質的に備えている自由度にある。一般に、XMLの構成要素は、
・要素名 :概念分類
・属性 :属性、またはメタ情報
・要素内容 :最も特徴的な値
・下位入れ子:部分構造
のように用いられる。XMLは、これらの要素の具体的な対応付けについてアプリケーション(アプリケーションソフトウェア)毎に定義可能なことを特徴とする。一方で、人間の持つ概念は複雑な情報構造を持ち、XMLのように単純な木構造で表現しようとすれば、きわめて大まかな近似にしかなり得ない。そのため、XML設計者は、図9の例のように、各々の対象理解と用途とに基づき、つまり視点に基づき、最適と考えるXML表現形式を決定する。
As described above, a major reason why various expressions are generated with respect to the same expression object is the degree of freedom inherent in XML. In general, the components of XML are:
-Element name: Concept classification-Attribute: Attribute or meta-information-Element content: Most characteristic value-Lower nesting: Used like a substructure. XML is characterized in that specific association of these elements can be defined for each application (application software). On the other hand, human concepts have a complex information structure, and if they are expressed with a simple tree structure like XML, it is very difficult to obtain a very rough approximation. Therefore, the XML designer determines an XML expression format that is considered optimal based on each object understanding and use, that is, based on the viewpoint, as in the example of FIG.

例えば、XMLデータ変換支援ツールで、2つの異なる対象を表したXML間の変換法を定義するものとする。このとき、これらのXML表現間の違いが、表現されている対象本来の違いに由来するものならば、両者間の変換はツールの目的そのものであるから問題にはならない。しかし、実際のXML表現には、上記の例のように、対象をXML化する段階での設計者による視点の差異が合成され、変換法の定義を不必要に困難に、或いは非効率的にしている。   For example, assume that an XML data conversion support tool defines a conversion method between XMLs representing two different objects. At this time, if the difference between these XML expressions is derived from the original difference of the object being expressed, the conversion between the two is not a problem because it is the purpose of the tool itself. However, in the actual XML representation, as in the above example, the difference in viewpoints by the designer at the stage of converting the object to XML is synthesized, making the definition of the conversion method unnecessarily difficult or inefficient. ing.

(問題2)
視点の違いによるXML表現の違いはXMLデータの全領域に及ぶ。このため、XMLデータ操作ツールのユーザは、同型の読み替えを何度も繰り返さなければならない。この読み替えは単一のXMLデータ処理にとどまらず、同じ視点から作られた全てのXMLデータについて必要になる。
(Problem 2)
The difference in the XML expression due to the difference in viewpoint covers the entire area of the XML data. For this reason, the user of the XML data manipulation tool has to repeat the same type of replacement many times. This replacement is not limited to single XML data processing, but is necessary for all XML data created from the same viewpoint.

一般にソフトウェアツールには、人間を機械的操作の反復から解放し、煩雑さと非効率性を解消することが求められる。この、ツールの根本的な目的に対し、問題2は致命的である。   In general, software tools are required to free humans from repeated mechanical operations, eliminating complexity and inefficiencies. For this fundamental purpose of the tool, Problem 2 is fatal.

もし、例えば、図9に示された表現の異なる3種類のXMLデータA乃至Cが、いずれもデータXを表すというように、XMLの表層的な構文ではなく、その意味を理解した上でこれに基づき図形化できるならば、表現法の差異を除去することは可能である。しかし実際には、XMLのデータ表現に埋め込まれた意味を自動的に解析するのは困難である。   If, for example, the three types of XML data A to C having different representations shown in FIG. 9 all represent data X, this is not the surface syntax of XML, but the meaning thereof is understood. It is possible to eliminate the difference in expression method if it can be made into a figure based on the above. However, in practice, it is difficult to automatically analyze the meaning embedded in the XML data representation.

本発明は上記事情を考慮してなされたものでその目的は、視点の違いがもたらす表現形式の違いを、要素名、属性及び要素内容の用法の交替により容易に補正できる構造化データ変換装置及び方法を提供することにある。   The present invention has been made in view of the above circumstances, and its purpose is to provide a structured data conversion apparatus that can easily correct differences in expression format caused by differences in viewpoints by altering the usage of element names, attributes, and element contents, and It is to provide a method.

本発明の1つの観点によれば、構造化データの表現形式を変換する構造化データ変換装置が提供される。この構造化データ変換装置は、変換法データベースに格納されている複数の変換法定義ファイルであって、変換対象となる要素を指定する変換対象指定情報及び当該変換対象指定情報によって指定される要素に関し、当該要素の要素名、属性及び要素内容の間での値のシフトまたはローテーションを定義する変換操作指定情報を含む複数の変換法定義ファイルの中から、ユーザによって指定された構造化データをユーザの指定する表現形式の構造化データに変換するための変換法定義ファイルを選択する変換法定義ファイル選択手段と、この選択手段によって選択された変換法定義ファイルに基づいて、ユーザによって指定された構造化データに含まれている要素のうち、当該変換法定義ファイルに含まれている変換対象指定情報の指定する要素を対象に、当該変換法定義ファイルに含まれている変換操作指定情報に基づいて、当該要素の要素名、属性及び要素内容の間での値のシフトまたはローテーションによる変換操作を実行する変換操作手段とを備えることを特徴とする。   According to one aspect of the present invention, a structured data conversion apparatus for converting the representation format of structured data is provided. The structured data conversion apparatus includes a plurality of conversion method definition files stored in a conversion method database, the conversion target specifying information for specifying an element to be converted, and the element specified by the conversion target specifying information. , The structured data specified by the user from the plurality of conversion method definition files including the conversion operation specification information that defines the shift or rotation of the value between the element name, attribute, and element content of the element. A conversion method definition file selection means for selecting a conversion method definition file to be converted into structured data of a specified expression format, and a structuring designated by the user based on the conversion method definition file selected by the selection means Among the elements included in the data, specify the conversion target specification information included in the conversion method definition file A conversion operation that performs a conversion operation by shifting or rotating a value between the element name, attribute, and element contents of the element based on the conversion operation specification information included in the conversion method definition file. Means.

上記の構成の構造化データ変換装置においては、ユーザによって指定された構造化データに含まれている要素のうち、変換法定義ファイル選択手段によって選択された変換法定義ファイル中の変換対象指定情報の指定する要素を対象に、当該変換法定義ファイル中の変換操作指定情報に基づいて、当該要素の要素名、属性及び要素内容の間での値のシフトまたはローテーションによる変換操作が変換操作手段によって実行される。   In the structured data conversion apparatus having the above-described configuration, the conversion target designation information in the conversion method definition file selected by the conversion method definition file selecting means among the elements included in the structured data designated by the user. Based on the conversion operation specification information in the conversion method definition file, the conversion operation means executes a conversion operation by shifting or rotating the value between the element name, attribute, and element content of the element. Is done.

このように、上記の構成の構造化データ変換装置によれば、設計者の視点に依存した表現の補正のためのデータ変換が、ユーザによって指定された構造化データに含まれている要素のうち、変換対象指定情報によって指定された要素毎に、当該要素の要素名、属性及び要素内容の間での値のシフトまたはローテーションによる変換操作によって実行される。この変換操作により、変換対象指定情報によって指定された要素毎に、変換操作指定情報によって指定された要素名、属性及び要素内容の用法交替が行われ、構造化データの表現形式が構造化データ変換に適用された変換法定義ファイルに固有の別の表現形式に変換される。   As described above, according to the structured data conversion device having the above-described configuration, the data conversion for correcting the expression depending on the designer's viewpoint is included in the structured data designated by the user. Each element designated by the conversion target designation information is executed by a conversion operation by shifting or rotating a value between the element name, attribute, and element content of the element. By this conversion operation, the usage of the element name, attribute, and element content specified by the conversion operation specification information is changed for each element specified by the conversion target specification information, and the representation format of the structured data is structured data conversion. It is converted into another representation format specific to the conversion method definition file applied to.

ここで、上記変換法定義ファイル中の変換操作指定情報に、当該変換法定義ファイルに含まれている変換対象指定情報の指定する要素に関する、当該要素の要素名、属性及び要素内容をフィールドとして指定するフィールド指定の列を含ませる一方、上記変換操作手段に、上記フィールド指定の列に従い、先行するフィールド指定で指定されたフィールドの旧値を、当該先行するフィールド指定に後続するフィールド指定で指定されたフィールドの新値として複写する複写手段を含ませると良い。このようにすると、設計者の視点に依存した表現の補正のためのデータ変換を、指定要素毎のフィールド指定の列を用いた、当該指定要素の要素名、属性及び要素内容の用法交替の指定だけで容易に定義できる。この指定要素毎のフィールド指定の列を含む変換法定義ファイルは、対応する表現形式で作成された全ての構造化データ、つまり同じ視点で作成された構造化データの同種の変換に適用できる。   Here, in the conversion operation specification information in the conversion method definition file, the element name, attribute, and element contents of the element related to the element specified by the conversion target specification information included in the conversion method definition file are specified as fields. While the field specification column is included, the conversion operation means specifies the old value of the field specified in the preceding field specification according to the field specification column in the field specification following the preceding field specification. It is preferable to include a copying means for copying as a new value of the field. In this way, the data conversion for correction of the expression depending on the designer's viewpoint is performed using the field designation column for each designated element, and the designation of usage of the element name, attribute, and element content of the designated element is designated. Can be easily defined. The conversion method definition file including a field specification column for each specified element can be applied to the same kind of conversion of all structured data created in a corresponding expression format, that is, structured data created from the same viewpoint.

本発明によれば、視点の違いがもたらす表現形式の違いを、予め定められた要素毎に、要素名、属性及び要素内容の用法の交替により容易に補正できる。   According to the present invention, the difference in expression format caused by the difference in viewpoint can be easily corrected by changing the usage of element names, attributes, and element contents for each predetermined element.

以下、本発明を、構造化データの代表であるXMLデータの表現形式を変換するXMLデータ変換装置に適用した一実施形態につき図面を参照して説明する。
図1は本発明の一実施形態に係るXMLデータ変換装置の構成を示すブロック図である。XMLデータ変換装置は、変換法データベース10と、XMLデータベース20と、XMLデータ変換エンジン30と、メモリ40と、入力装置50と、出力装置60とを備えている。
Hereinafter, an embodiment in which the present invention is applied to an XML data conversion apparatus that converts an expression format of XML data that is representative of structured data will be described with reference to the drawings.
FIG. 1 is a block diagram showing the configuration of an XML data conversion apparatus according to an embodiment of the present invention. The XML data conversion apparatus includes a conversion method database 10, an XML database 20, an XML data conversion engine 30, a memory 40, an input device 50, and an output device 60.

変換法データベース10は、変換法インデックスファイル11と複数の変換法定義ファイル12とを格納する。変換法インデックスファイル11は、変換法のインデックスを格納したファイルである。変換法定義ファイル12は、XMLデータの変換法を定義したファイルである。   The conversion method database 10 stores a conversion method index file 11 and a plurality of conversion method definition files 12. The conversion method index file 11 is a file storing a conversion method index. The conversion method definition file 12 is a file that defines a conversion method of XML data.

図2は、変換法インデックスファイル11のデータ構造を示す。変換法インデックスファイル11は、インデックス情報として、入力形式名111、出力形式名112及び変換法定義ファイル12のファイル名113の組を複数組格納する。この変換法インデックスファイル11を、入力形式名及び出力形式名の対をキーとして参照することで、、その入力形式名及び出力形式名の対に固有の変換法を定義した変換法定義ファイル12のファイル名を得ることができる。ここで、入力形式名及び出力形式名は、それぞれ対応する表現形式を特定するための情報であり、例えば対応する表現形式のXMLを扱うアプリケーションの識別名である。   FIG. 2 shows the data structure of the conversion method index file 11. The conversion method index file 11 stores a plurality of sets of an input format name 111, an output format name 112, and a file name 113 of the conversion method definition file 12 as index information. By referring to the conversion method index file 11 using the input format name and output format name pair as a key, the conversion method definition file 12 that defines a conversion method specific to the input format name and output format name pair is defined. You can get the file name. Here, the input format name and the output format name are information for specifying the corresponding expression format, for example, the identification name of the application that handles the XML of the corresponding expression format.

図3は変換法定義ファイル12のデータ構造を示す。この変換法定義ファイル12は、入力形式名121、出力形式名122、及び少なくとも1つの変換対象/変換操作指定情報123を含む。変換対象/変換操作指定情報123は、図3に示すように、変換対象指定情報123aと、少なくとも1つの変換操作指定情報123bとを含む。   FIG. 3 shows the data structure of the conversion method definition file 12. The conversion method definition file 12 includes an input format name 121, an output format name 122, and at least one conversion target / conversion operation designation information 123. As illustrated in FIG. 3, the conversion target / conversion operation designation information 123 includes conversion target designation information 123a and at least one conversion operation designation information 123b.

変換対象指定情報123aは、XMLデータの変換対象を指定する。ここでは変換対象指定情報123aは、W3C(World Wide Web Consortium)の勧告となっているXPath(XML Path Language)に準じた記述により変換対象の要素を指定する。変換操作指定情報123bはフィールド指定(フィールド指定情報)のリストを含む。フィールド指定は、次の4種
・“定数”:引用符で囲まれた定数値
・name :要素名
・content :要素内容
・@属性名 :その名前を持つ属性の値
のいずれかとする。
The conversion target designation information 123a designates a conversion target of XML data. Here, the conversion target designation information 123a designates an element to be converted by a description conforming to XPath (XML Path Language), which is recommended by the World Wide Web Consortium (W3C). The conversion operation designation information 123b includes a list of field designation (field designation information). There are four types of field specification: • “Constant”: Constant value enclosed in quotation marks • Name: Element name • Content: Element content • @Attribute name: One of the attribute values with that name.

再び図1を参照すると、XMLデータベース20は、複数のXMLデータファイル(XML文書)21を格納する。このXMLデータベース20に格納されている複数のXMLデータファイル21の中からユーザの操作によって指定されたXMLデータファイル21が、XMLデータ変換の対象となる。   Referring again to FIG. 1, the XML database 20 stores a plurality of XML data files (XML documents) 21. The XML data file 21 designated by the user's operation from among the plurality of XML data files 21 stored in the XML database 20 is the object of XML data conversion.

変換法データベース10及びXMLデータベース20は、ハードディスクドライブに代表される外部記憶装置(図示せず)に保存されているものとする。なお、変換法データベース10及びXMLデータベース20をXMLデータ変換装置から独立させて、例えばネットワークを介して当該XMLデータ変換装置内の変換エンジン30からアクセス可能な構成とすることも可能である。この場合、変換法データベース10及びXMLデータベース20を、複数のXMLデータ変換装置で共有することも可能である。   It is assumed that the conversion method database 10 and the XML database 20 are stored in an external storage device (not shown) represented by a hard disk drive. Note that the conversion method database 10 and the XML database 20 can be made independent from the XML data converter, and can be accessed from the conversion engine 30 in the XML data converter via a network, for example. In this case, the conversion method database 10 and the XML database 20 can be shared by a plurality of XML data conversion apparatuses.

XMLデータ変換エンジン30は、ユーザの操作によって指定されたXMLデータファイルを、ユーザ操作によって指定された入力形式名及び出力形式名の対に固有の変換法定義ファイル12に定義された変換法に従って変換する。変換エンジン30は、ユーザインタフェース31を含む。ユーザインタフェース31は、ユーザが変換エンジン30を利用するためのインタフェースをなす。変換エンジン30は、計算機にインストールされた特定のソフトウェアプログラムを当該計算機が読み取って実行することにより実現される。このプログラムは、コンピュータで読み取り可能な記憶媒体(フロッピー(登録商標)ディスクに代表される磁気ディスク、CD−ROM、DVDに代表される光ディスク、フラッシュメモリに代表される半導体メモリ等)に予め格納して頒布可能である。また、このプログラムが、ネットワークを介してダウンロード(頒布)されても構わない。   The XML data conversion engine 30 converts the XML data file specified by the user operation according to the conversion method defined in the conversion method definition file 12 specific to the pair of the input format name and the output format name specified by the user operation. To do. The conversion engine 30 includes a user interface 31. The user interface 31 serves as an interface for the user to use the conversion engine 30. The conversion engine 30 is realized by the computer reading and executing a specific software program installed in the computer. This program is stored in advance in a computer-readable storage medium (a magnetic disk typified by a floppy (registered trademark) disk, a CD-ROM, an optical disk typified by a DVD, a semiconductor memory typified by a flash memory, etc.). Can be distributed. Further, this program may be downloaded (distributed) via a network.

メモリ40は、記憶領域41乃至45を含む。記憶領域41は、変換エンジン30によって変換法データベース10から読み取られた変換法インデックスファイル11を一時記憶するための変換法インデックスファイル領域である。記憶領域42は、変換エンジン30によって変換法データベース10から読み取られた変換法定義ファイル12を記憶するための変換法定義ファイル領域である。記憶領域43は、ユーザ操作によって指定された、変換対象となるXMLデータファイル21のファイル名を記憶するためのXMLデータファイル名領域である。記憶領域44は、ユーザ操作によって指定されたファイル名のXMLデータファイル21を記憶するためのXMLデータファイル領域である。記憶領域45は、変換エンジン30のための作業領域である。   The memory 40 includes storage areas 41 to 45. The storage area 41 is a conversion method index file area for temporarily storing the conversion method index file 11 read from the conversion method database 10 by the conversion engine 30. The storage area 42 is a conversion method definition file area for storing the conversion method definition file 12 read from the conversion method database 10 by the conversion engine 30. The storage area 43 is an XML data file name area for storing the file name of the XML data file 21 to be converted designated by the user operation. The storage area 44 is an XML data file area for storing the XML data file 21 having a file name designated by a user operation. The storage area 45 is a work area for the conversion engine 30.

入力装置50は、ユーザ操作により、XMLデータ変換に用いられる変換法定義ファイル12を特定するための入力形式名及び出力形式名、XMLデータ変換の対象となるXMLデータファイル21のファイル名等を入力するのに用いられる。入力装置50は、例えばキーボードまたはマウスである。出力装置60は例えばディスプレイ装置であり、ユーザに対するファイル名の入力要求、入力形式名及び出力形式名の対の一覧等を表示するのに用いられる。   The input device 50 inputs an input format name and an output format name for specifying the conversion method definition file 12 used for the XML data conversion, a file name of the XML data file 21 to be subjected to the XML data conversion, and the like by a user operation. Used to do. The input device 50 is, for example, a keyboard or a mouse. The output device 60 is, for example, a display device, and is used to display a file name input request to the user, a list of input format name / output format name pairs, and the like.

さて本実施形態では、変換法データベース10に格納されている変換法定義ファイル12は、例えばユーザによって作成されるものとする。この変換法定義ファイル12に格納されている変換対象/変換操作指定情報123中の変換対象指定情報123a及び変換操作指定情報123bの意味と制約は、次の通りである。   In the present embodiment, the conversion method definition file 12 stored in the conversion method database 10 is created by, for example, a user. The meanings and restrictions of the conversion target designation information 123a and the conversion operation designation information 123b in the conversion target / conversion operation designation information 123 stored in the conversion method definition file 12 are as follows.

<意味>
・変換対象指定情報123aは、あるXML要素が変換の対象となるか否かを判定するXPath表記である。
・各変換操作指定情報123b中に列挙されたフィールド指定は、先行するフィールドの旧値を後に続くフィールドの新しい値として設定することを表す。3つ以上のフィールド指定を列挙し、値を順送りにすることも可能である。
・変換操作指定情報123bに含まれているフィールド指定の列のうちの先頭と末尾に同じフィールドが指定された場合、その変換操作は、循環した値の順送り(ローテーション)を形成する。
・定数は引用符で囲まれた値そのものを値とする。
・要素内容contentに、ある値を設定するとは、その値を要素の新しい要素内容とすることを表す。
・要素名nameに、ある値を設定するとは、その値を要素の新しい要素名とすることを表す。
・属性への値の設定は、その属性値の上書き、または属性の新設を表す。
<Meaning>
The conversion target designation information 123a is an XPath notation for determining whether or not a certain XML element is a conversion target.
The field designation listed in each conversion operation designation information 123b indicates that the old value of the preceding field is set as the new value of the subsequent field. It is also possible to enumerate three or more field specifications and forward the values.
When the same field is specified at the beginning and the end of the field specification column included in the conversion operation specification information 123b, the conversion operation forms a forward rotation (rotation) of the circulated values.
• The constant value is the value enclosed in quotation marks.
-Setting a certain value for the element content indicates that the value is used as the new element content of the element.
-Setting a certain value to the element name name means that the value is used as the new element name of the element.
-Setting a value to an attribute indicates overwriting the attribute value or creating a new attribute.

<制約>
・定数の指定は、操作指定の先頭にのみ使用できる。
・ローテーション操作の場合を除き、変換操作指定情報123bの先頭が属性名である場合、その属性は変換後のXMLから失われる。
・ローテーション操作の場合を除き、変換操作指定情報123bの先頭がcontentである場合、その要素は、変換後は空要素となる。
・ローテーション操作の場合を除き、変換操作指定情報123bの先頭にnameを使用することはできない。その理由は、要素は、必ずタグの先頭に要素名を持つためである。
・name、content及び同じ属性名は、ローテーション操作の先頭と末尾に指定される場合を除き、1つの変換法定義を通して2度以上、重複して用いることはできない。
<Restrictions>
• Constants can only be used at the beginning of operation specifications.
Except in the case of a rotation operation, if the beginning of the conversion operation specification information 123b is an attribute name, the attribute is lost from the converted XML.
Except in the case of a rotation operation, if the beginning of the conversion operation specification information 123b is content, the element is an empty element after conversion.
Except in the case of a rotation operation, name cannot be used at the head of the conversion operation designation information 123b. The reason is that an element always has an element name at the beginning of the tag.
• Name, content, and the same attribute name cannot be used more than once through a single transformation method definition, except when specified at the beginning and end of a rotation operation.

次に、本実施形態の動作の全体の流れについて、図4のフローチャートを参照して説明する。まず、XMLデータ変換エンジン30は起動されると、変換の対象となるXMLデータファイルのファイル名の入力をユーザに要求するためのファイル名入力要求画面を、ユーザインタフェース31により出力装置(ディスプレイ装置)60に表示させる(ステップS1)。この状態で変換エンジン30は、ユーザが入力装置50を用いて所望のXMLデータファイル21のファイル名を入力する操作を行ったことを検出すると(ステップS2)、入力されたファイル名をメモリ40のXMLデータファイル名領域43に格納する(ステップS3)。   Next, the overall flow of the operation of the present embodiment will be described with reference to the flowchart of FIG. First, when the XML data conversion engine 30 is activated, a file name input request screen for requesting the user to input the file name of the XML data file to be converted is displayed on the output device (display device) by the user interface 31. 60 is displayed (step S1). In this state, when the conversion engine 30 detects that the user has performed an operation of inputting the file name of the desired XML data file 21 using the input device 50 (step S2), the conversion file 30 stores the input file name in the memory 40. It stores in the XML data file name area 43 (step S3).

次に変換エンジン30は、入力されたファイル名、即ちユーザ指定のファイル名のXMLデータファイル21を、XMLデータベース20からメモリ40のXMLデータファイル領域44に読み込む(ステップS4)。また変換エンジン30は、変換法インデックスファイル11を、変換法データベース10からメモリ40の変換法インデックスファイル領域41に読み込む(ステップS5)。   Next, the conversion engine 30 reads the input file name, that is, the XML data file 21 having the file name designated by the user, from the XML database 20 into the XML data file area 44 of the memory 40 (step S4). The conversion engine 30 reads the conversion method index file 11 from the conversion method database 10 into the conversion method index file area 41 of the memory 40 (step S5).

変換エンジン30は、変換法インデックスファイル領域41に読み込まれた変換法インデックスファイル11に従って、入力形式名111及び出力形式名112の対の一覧を生成し、その一覧をユーザインタフェース31により出力装置(ディスプレイ装置)60に表示させる(ステップS6)。前記したように、変換法インデックスファイル11に格納されている入力形式名111及び出力形式名112には、対応する形式のXMLを扱うアプリケーションの識別名が用いられる。ユーザは、上記入力要求画面に従って自身が選択したXMLデータファイル(第1の視点で作成されたXMLデータファイル)を扱うことが可能な第1のアプリケーションの識別名と、目的とする形式のXMLデータファイル(第2の視点で作成されたXMLデータファイル)を扱うことが可能な第2のアプリケーションの識別名とを特定する。そしてユーザは入力装置50を操作して、特定した第1及び第2のアプリケーションの識別名の対に一致する入力形式名111及び出力形式名112を上記の一覧から選択する。   The conversion engine 30 generates a list of pairs of the input format name 111 and the output format name 112 according to the conversion method index file 11 read into the conversion method index file area 41, and outputs the list to the output device (display) by the user interface 31. (Device) 60 is displayed (step S6). As described above, the input format name 111 and the output format name 112 stored in the conversion method index file 11 are identification names of applications that handle XML in the corresponding format. The user can identify the first application identification name that can handle the XML data file (the XML data file created from the first viewpoint) selected by the user according to the input request screen, and the XML data in the target format. The identification name of the second application capable of handling the file (the XML data file created from the second viewpoint) is specified. Then, the user operates the input device 50 to select the input format name 111 and the output format name 112 that match the identified pair of identification names of the first and second applications from the list.

変換エンジン30は、ユーザの操作によって任意の入力形式名111及び出力形式名112の対が選択されると(ステップS7)、検索手段として機能する。これにより変換エンジン30は、選択された入力形式名111及び出力形式名112の対をキーとして、領域41に読み込まれている変換法インデックスファイル11を参照することにより、その対に固有の変換法定義ファイル12のファイル名を検索する(ステップS8)。すると変換エンジン30は、変換法定義ファイル選択手段として機能し、検索されたファイル名の変換法定義ファイル12を変換法データベース10から選択して、メモリ40の変換法定義ファイル領域42に読み込む(ステップS9)。このとき変換エンジン30は、変換法データベース10から読み込まれた変換法定義ファイル12の定義内容が上述した制約事項を満たすかを検査し、不適合があればユーザインタフェース31を介してユーザにエラーを通知する。なお、変換法定義ファイル12が新規に変換法データベース10に格納さされる場合に、このような検査を行うことも可能である。この場合、検査の回数を減らすことができる。   When an arbitrary input format name 111 and output format name 112 pair is selected by the user's operation (step S7), the conversion engine 30 functions as a search unit. As a result, the conversion engine 30 refers to the conversion method index file 11 read in the area 41 by using the selected pair of the input format name 111 and the output format name 112 as a key, thereby converting the conversion method unique to the pair. The file name of the definition file 12 is searched (step S8). Then, the conversion engine 30 functions as a conversion method definition file selection means, selects the conversion method definition file 12 having the searched file name from the conversion method database 10, and reads it into the conversion method definition file area 42 of the memory 40 (step). S9). At this time, the conversion engine 30 checks whether the definition content of the conversion method definition file 12 read from the conversion method database 10 satisfies the above-described restrictions, and if there is a nonconformity, notifies the user of an error via the user interface 31. To do. In addition, when the conversion method definition file 12 is newly stored in the conversion method database 10, such a test | inspection is also possible. In this case, the number of inspections can be reduced.

変換エンジン30は、選択された変換法定義ファイル12を領域42に読み込むと、変換操作手段として機能する。これにより変換エンジン30は、領域42に読み込まれた変換法定義ファイル12に従って、領域44に読み込まれたXMLデータファイル21のデータ(XMLデータ)に含まれている要素のうち、変換されるべき要素を判別し、その変換されるべき要素に対し、当該変換法定義ファイル12に含まれている変換操作指定に基づく変換操作を行う(ステップS10)。この変換操作では、後述するように、変換されるべき要素の要素名、属性及び要素内容(content)の間で、値のシフト(更にはローテーション)が行われる。変換エンジン30によるXMLデータ変換結果は、ユーザインタフェース31によって出力装置(ディスプレイ装置)60に表示される(ステップS11)。   When the selected conversion method definition file 12 is read into the area 42, the conversion engine 30 functions as a conversion operation unit. As a result, the conversion engine 30 causes the elements to be converted among the elements included in the data (XML data) of the XML data file 21 read into the area 44 according to the conversion method definition file 12 read into the area 42. And the conversion operation based on the conversion operation designation included in the conversion method definition file 12 is performed on the element to be converted (step S10). In this conversion operation, as will be described later, a value shift (and rotation) is performed between the element name, attribute, and element content of the element to be converted. The XML data conversion result by the conversion engine 30 is displayed on the output device (display device) 60 by the user interface 31 (step S11).

次に、変換エンジン30による上記ステップS10(XMLデータ変換処理)の詳細な手順について、図5及び図6を参照して説明する。まず変換エンジン30は、領域44に読み込まれたXMLデータファイル21のデータ、即ち変換の対象となるXMLデータから、最初の要素を選択する(ステップS21)。次に変換エンジン30は、領域42に読み込まれた変換法定義ファイル12から、最初の変換対象/変換操作指定情報123を選択する(ステップS22)。   Next, the detailed procedure of step S10 (XML data conversion process) by the conversion engine 30 will be described with reference to FIGS. First, the conversion engine 30 selects the first element from the data of the XML data file 21 read into the area 44, that is, the XML data to be converted (step S21). Next, the conversion engine 30 selects the first conversion target / conversion operation designation information 123 from the conversion method definition file 12 read in the area 42 (step S22).

変換エンジン30は、選択された変換対象/変換操作指定情報123中の変換対象指定情報123aを参照し、選択された要素が、当該変換対象指定情報123aによって指定されている変換対象要素であるかを判定する(ステップS23)。もし、選択された要素が変換対象要素でないならば、変換エンジン30は、変換法定義ファイル12内に未処理の変換対象/変換操作指定情報123が含まれているかを判定する(ステップS24)。   The conversion engine 30 refers to the conversion target designation information 123a in the selected conversion target / conversion operation designation information 123, and whether the selected element is the conversion target element designated by the conversion target designation information 123a. Is determined (step S23). If the selected element is not a conversion target element, the conversion engine 30 determines whether or not the unprocessed conversion target / conversion operation designation information 123 is included in the conversion method definition file 12 (step S24).

もし、変換法定義ファイル12内に未処理の変換対象/変換操作指定情報123が含まれているならば、変換エンジン30は当該ファイル12から次の変換対象/変換操作指定情報123を選択して(ステップS25)、上記ステップS23の判定処理に戻る。一方、変換法定義ファイル12内に未処理の変換対象/変換操作指定情報123が含まれていないならば、変換エンジン30は変換対象のXMLデータに未処理の要素が含まれているかを判定する(ステップS26)。   If the conversion method definition file 12 includes unprocessed conversion target / conversion operation designation information 123, the conversion engine 30 selects the next conversion target / conversion operation designation information 123 from the file 12. (Step S25), the process returns to the determination process of step S23. On the other hand, if the unprocessed conversion target / conversion operation designation information 123 is not included in the conversion method definition file 12, the conversion engine 30 determines whether unprocessed elements are included in the XML data to be converted. (Step S26).

もし、変換対象のXMLデータに未処理の要素が含まれていないならば、変換エンジン30はXMLデータ変換処理を終了する。一方、変換対象のXMLデータに未処理の要素が含まれているならば、変換エンジン30は、変換対象のXMLデータから次の要素を選択する(ステップS27)。そして変換エンジン30は、上記ステップS22に戻って、変換法定義ファイル12から再び最初の変換対象/変換操作指定情報123を選択する。   If the unprocessed element is not included in the XML data to be converted, the conversion engine 30 ends the XML data conversion process. On the other hand, if the unprocessed element is included in the XML data to be converted, the conversion engine 30 selects the next element from the XML data to be converted (step S27). Then, the conversion engine 30 returns to step S22 and selects the first conversion target / conversion operation designation information 123 from the conversion method definition file 12 again.

これに対し、ステップS21またはS27で選択された要素が変換対象として指定されている場合(ステップS23)、変換エンジン30はステップS28に進む。このステップS28において、変換エンジン30は、現在選択されている変換対象/変換操作指定情報123から最初の変換操作指定情報123bを選択する。すると、変換エンジン30は判定手段(ローテーション操作判定手段)として機能し、選択された変換操作指定情報123bに基づいて、変換操作としてローテーション操作が指定されているかを判定する(ステップS29)。前記したように、ローテーション操作が指定されているかは、変換操作指定情報123bに含まれているフィールド指定の列のうちの先頭(最初)と末尾(最後)で同一のフィールドが指定されているかによって判定可能である。   On the other hand, when the element selected in step S21 or S27 is designated as a conversion target (step S23), the conversion engine 30 proceeds to step S28. In this step S28, the conversion engine 30 selects the first conversion operation designation information 123b from the currently selected conversion target / conversion operation designation information 123. Then, the conversion engine 30 functions as a determination unit (rotation operation determination unit), and determines whether a rotation operation is specified as the conversion operation based on the selected conversion operation specification information 123b (step S29). As described above, whether the rotation operation is designated depends on whether the same field is designated at the beginning (first) and the end (last) of the field designation columns included in the conversion operation designation information 123b. Judgment is possible.

もし、ローテーション操作が指定されているならば、変換エンジン30は、変換操作指定情報123bのの最後のフィールド指定で指定されたフィールドの値を作業領域45に一時保存(退避)し(ステップS30)、しかる後にステップS31に進む。一方、ローテーション操作が指定されていないならば、変換エンジン30はステップS30をスキップしてステップS31に進む。   If the rotation operation is specified, the conversion engine 30 temporarily saves (saves) the value of the field specified by the last field specification of the conversion operation specification information 123b in the work area 45 (step S30). Then, the process proceeds to step S31. On the other hand, if the rotation operation is not designated, the conversion engine 30 skips step S30 and proceeds to step S31.

ステップS31において、変換エンジン30は、変換操作指定情報123b内の最後のフィールド指定を、Fcとして設定する。Fcは、現在処理中の(つまりカレントな)フィールド指定を示す。次に変換エンジン30は、変換操作指定情報123b内のFcに先行するフィールド指定をFaとして設定する(ステップS32)。すると変換エンジン30は複写手段(値のシフト手段)として機能して、Fcで指定されるフィールドの値に、Faで指定されるフィールドの値を複写する(ステップS33)。即ち変換エンジン30は、Faで指定されるフィールドの値を、Fcで指定される後続のフィールドの値にシフトする。このようにして、先行するフィールドの旧値が後に続くフィールドの新しい値として設定される。   In step S31, the conversion engine 30 sets the last field specification in the conversion operation specification information 123b as Fc. Fc indicates a field specification currently being processed (that is, current). Next, the conversion engine 30 sets the field designation preceding Fa in the conversion operation designation information 123b as Fa (step S32). Then, the conversion engine 30 functions as copying means (value shifting means), and copies the field value specified by Fa to the field value specified by Fc (step S33). That is, the conversion engine 30 shifts the value of the field specified by Fa to the value of the subsequent field specified by Fc. In this way, the old value of the preceding field is set as the new value of the following field.

次に変換エンジン30は、Faが変換操作指定情報123b内の先頭のフィールド指定であるかを判定する(ステップS34)。もし、Faが先頭のフィールド指定でないならば、変換エンジン30は現在のFaを新たなFcとして設定して(ステップS35)、ステップS32に戻る。このステップS32において、変換エンジン30は、変換操作指定情報123b内の、新たに設定されたFcに先行するフィールド指定をFaとして設定する。そして変換エンジン30は、上記したように、Fcで指定されるフィールドの値に、Faで指定されるフィールドの値を複写する(ステップS33)。   Next, the conversion engine 30 determines whether Fa is the head field specification in the conversion operation specification information 123b (step S34). If Fa is not the head field designation, the conversion engine 30 sets the current Fa as a new Fc (step S35) and returns to step S32. In step S32, the conversion engine 30 sets the field specification preceding the newly set Fc in the conversion operation specification information 123b as Fa. Then, as described above, the conversion engine 30 copies the value of the field specified by Fa to the value of the field specified by Fc (step S33).

このように、ステップS32乃至35が繰り返された結果、Faが変換操作指定情報123b内の先頭のフィールド指定となったものとする(ステップS34)。この場合、変換エンジン30は、ローテーション操作が指定されているならば(ステップS36)、Fcで指定されるフィールドの値に、先のステップS30で作業領域45に保存された値を設定する(ステップS37)。これにより、変換操作指定情報123b内の2番目のフィールド指定で指定されたフィールドの値(新値)として、変換操作指定情報123b内の最後の指定で指定されたフィールドの値(旧値)が設定される。つまり、変換対象指定情報123aで指定された要素について、変換操作指定情報123bで指定された当該要素の要素名、属性及び要素内容の間での値のローテーションが実現される。一方、ローテーション操作が指定されていないならば(ステップS36)、変換エンジン30は、Faの示すフィールド指定(ここでは、先頭のフィールド指定)に応じた以下の処理を行う。即ち変換エンジン30は、先頭のフィールド指定により属性値が指定されているならば(ステップS38)、属性除去手段として機能して、現在の要素からその属性を取り除く(ステップS39)。また変換エンジン30は、先頭のフィールド指定によりcontentが指定されているならば(ステップS38)、空要素化手段として機能して、現在の要素を空要素とする(ステップS40)。   As described above, it is assumed that, as a result of repeating steps S32 to S35, Fa becomes the first field designation in the conversion operation designation information 123b (step S34). In this case, if the rotation operation is designated (step S36), the conversion engine 30 sets the value stored in the work area 45 in the previous step S30 to the value of the field designated by Fc (step S36). S37). As a result, the field value (old value) specified by the last specification in the conversion operation specification information 123b is used as the value (new value) of the field specified by the second field specification in the conversion operation specification information 123b. Is set. That is, for the element specified by the conversion target specifying information 123a, the rotation of the value between the element name, attribute, and element content of the element specified by the conversion operation specifying information 123b is realized. On the other hand, if the rotation operation is not designated (step S36), the conversion engine 30 performs the following processing in accordance with the field designation indicated by Fa (here, the first field designation). That is, if the attribute value is specified by the head field specification (step S38), the conversion engine 30 functions as an attribute removal unit and removes the attribute from the current element (step S39). If the content is specified by the head field specification (step S38), the conversion engine 30 functions as an empty element conversion unit and sets the current element as an empty element (step S40).

変換エンジン30は、ステップS37、S39またはS40を実行すると、変換対象/変換操作指定情報123中に、現在の要素に関して、未処理の変換操作指定情報123bが含まれているかを判定する(ステップS41)。もし、未処理の変換操作指定情報123bが含まれているならば、変換エンジン30は、変換対象/変換操作指定情報123から次の変換操作指定情報123bを選択する(ステップS42)。そして変換エンジン30は、上記ステップS29の判定処理に戻る。一方、未処理の変換操作指定情報123bが含まれていないならば、変換エンジン30は変換法定義ファイル12に未処理の変換対象/変換操作指定情報123が含まれているかを判定する(ステップS43)。もし、未処理の変換対象/変換操作指定情報123が含まれているならば、変換エンジン30は上記ステップS25に戻って、変換法定義ファイル12から次の変換対象/変換操作指定情報123を選択する。一方、未処理の変換対象/変換操作指定情報123が含まれていないならば、変換エンジン30はステップS27に戻って、変換対象のXMLデータに未処理の要素が含まれているかを判定する。もし、未処理の要素が含まれていないならば、変換エンジン30はXMLデータ変換処理を終了する。   When the conversion engine 30 executes step S37, S39 or S40, the conversion target / conversion operation designation information 123 determines whether or not the unprocessed conversion operation designation information 123b is included for the current element (step S41). ). If the unprocessed conversion operation designation information 123b is included, the conversion engine 30 selects the next conversion operation designation information 123b from the conversion target / conversion operation designation information 123 (step S42). Then, the conversion engine 30 returns to the determination process in step S29. On the other hand, if the unprocessed conversion operation specification information 123b is not included, the conversion engine 30 determines whether the conversion method definition file 12 includes the unprocessed conversion target / conversion operation specification information 123 (step S43). ). If the unprocessed conversion target / conversion operation designation information 123 is included, the conversion engine 30 returns to step S25 and selects the next conversion target / conversion operation designation information 123 from the conversion method definition file 12. To do. On the other hand, if the unprocessed conversion target / conversion operation designation information 123 is not included, the conversion engine 30 returns to step S27 to determine whether the conversion target XML data includes an unprocessed element. If an unprocessed element is not included, the conversion engine 30 ends the XML data conversion process.

次に、上述の変換エンジン30によるXMLデータ変換処理の具体例について、上記図4乃至図6のフローチャート値に加えて、図7及び図8を参照して説明する。
図7において、同図(a)は、変換対象となるXMLデータの1つの要素(要素名が「拡張機器」の要素)の例を示し、同図(b)は同図(a)の要素に対するXMLデータ変換後の要素(要素名が「カード型ディスク」の要素)の例を示す。図7(a)及び(b)に示す異なる表現形式の要素を含むXMLデータの処理に適合するアプリケーション(アプリケーションソフトウェア)が、それぞれアプリケーションAP1及びAP2であるものとする。
Next, a specific example of the XML data conversion process by the conversion engine 30 will be described with reference to FIGS. 7 and 8 in addition to the flowchart values of FIGS.
7A shows an example of one element (element whose element name is “extended device”) of the XML data to be converted, and FIG. 7B shows the element of FIG. 7A. An example of an element after XML data conversion (element whose element name is “card type disk”) is shown. Assume that applications (application software) that are compatible with the processing of XML data including elements of different representation formats shown in FIGS. 7A and 7B are applications AP1 and AP2, respectively.

図8は、このXMLデータ変換に用いられる変換法定義ファイル12内の変換対象/変換操作指定情報123の一例を示す。なお、図8中において記号#から始まる文字列は、その左に記載されている変換対象指定情報123aまたはフィールド指定に関する説明(注釈)を表す。   FIG. 8 shows an example of the conversion target / conversion operation designation information 123 in the conversion method definition file 12 used for this XML data conversion. In FIG. 8, the character string starting with the symbol # represents the conversion target designation information 123a or the description (note) related to the field designation described on the left side.

図8に示す変換対象/変換操作指定情報123は、変換対象となる要素の要素名として「拡張機器」を指定する変換対象指定情報123aと、2つの変換操作指定情報123bとを含む。1番目の変換操作指定情報123bは、「シフト」を示す変換操作指定91と、3つのフィールド指定921乃至923とを含む。フィールド指定921は、@属性名として@名称を持つことにより、属性「名称」の属性値を指定する。フィールド指定922は、name、つまり要素名を指定する。変換操作指定91により「シフト」が指定されている場合、フィールド指定922により、要素名を、先行するフィールド指定921で指定される属性「名称」の属性値とすることが指定される。フィールド指定923は、@属性名として@分類を持つことにより、属性「分類」の属性値を指定する。変換操作指定91により「シフト」が指定されている場合、フィールド指定923により、属性「分類の」の属性値を、先行するフィールド指定922で指定される旧要素名とすることが指定される。   The conversion target / conversion operation designation information 123 shown in FIG. 8 includes conversion target designation information 123a for designating “extended device” as an element name of an element to be converted, and two conversion operation designation information 123b. The first conversion operation designation information 123b includes a conversion operation designation 91 indicating “shift” and three field designations 921 to 923. The field designation 921 designates the attribute value of the attribute “name” by having the @ name as the @ attribute name. The field designation 922 designates name, that is, an element name. When “shift” is designated by the conversion operation designation 91, the field designation 922 designates the element name as the attribute value of the attribute “name” designated by the preceding field designation 921. The field designation 923 designates the attribute value of the attribute “classification” by having @classification as the @attribute name. When “shift” is designated by the conversion operation designation 91, the field designation 923 designates that the attribute value of the attribute “classified” is the old element name designated by the preceding field designation 922.

次に、2番目(最後)の変換操作指定情報123bは、シフトを示す変換操作指定93と、2つのフィールド指定941乃至942とを含む。フィールド指定941は、@属性名として@重量を持つことにより、属性「重量」の属性値を指定する。フィールド指定942は、content、つまり要素内容を指定する。変換操作指定93により「シフト」が指定されている場合、フィールド指定942により、要素内容を、先行するフィールド指定941で指定される属性「重量」の属性値とすることが指定される。   Next, the second (last) conversion operation specification information 123b includes a conversion operation specification 93 indicating shift and two field specifications 941 to 942. The field designation 941 designates the attribute value of the attribute “weight” by having @weight as the @attribute name. The field designation 942 designates content, that is, element content. When “shift” is designated by the conversion operation designation 93, the field designation 942 designates that the element content is the attribute value of the attribute “weight” designated by the preceding field designation 941.

今、図7(a)に示す表現形式の要素を含むXMLデータをアプリケーションAP2によって処理したいものとする。この場合、ユーザは、入力形式名及び出力形式名の対の一覧が表示されると(ステップS6)、その一覧から、AP1及びAP2の識別名の対に一致する入力形式名及び出力形式名の対を選択する。すると変換エンジン30は、AP1及びAP2の対に固有のファイル名の変換法定義ファイル12を変換法データベース10から選択する(ステップS8)。この変換法定義ファイル12は、図8に示す変換対象/変換操作指定情報123を含んでいる。変換エンジン30は、この変換対象/変換操作指定情報123に従って、図7(a)に示す要素を含むXMLデータのデータ変換処理を次のように実行する。   Assume that the application AP2 wants to process XML data including elements in the expression format shown in FIG. In this case, when a list of pairs of input format names and output format names is displayed (step S6), the user selects input format names and output format names that match the identification name pairs of AP1 and AP2 from the list. Select a pair. Then, the conversion engine 30 selects the conversion method definition file 12 having a file name unique to the pair of AP1 and AP2 from the conversion method database 10 (step S8). The conversion method definition file 12 includes conversion target / conversion operation designation information 123 shown in FIG. The conversion engine 30 executes the data conversion processing of the XML data including the elements shown in FIG. 7A according to the conversion target / conversion operation designation information 123 as follows.

まず、変換対象となるXMLデータから図7(a)に示す要素「拡張機器」が選択されたものとする(ステップS21またはS27)。また、要素「拡張機器」を変換対象として指定する変換対象指定情報123aを含む、図8に示す変換対象/変換操作指定情報123が選択されたものとする(ステップS22またはS25)。この変換対象/変換操作指定情報123が持つ2つの変換操作指定情報123bは、いずれもローテーション操作を指定していない。このことは、2つの変換操作指定情報123bの各々の先頭と末尾でいずれも同一のフィールドが指定されていないことから判定できる。   First, it is assumed that the element “extended device” shown in FIG. 7A is selected from the XML data to be converted (step S21 or S27). Further, it is assumed that the conversion target / conversion operation designation information 123 shown in FIG. 8 including the conversion target designation information 123a for designating the element “extended device” as the conversion target is selected (step S22 or S25). None of the two conversion operation designation information 123b included in the conversion target / conversion operation designation information 123 designates a rotation operation. This can be determined from the fact that the same field is not designated at the beginning and end of each of the two conversion operation designation information 123b.

ローテーション操作が指定されていない場合、まず、先頭の変換操作指定情報123bに含まれているフィールド指定921乃至923のうちの、最後のフィールド指定923(=@分類)と当該フィールド指定923に先行するフィールド指定922(=name)とに基づき(ステップS31,S32)、属性「分類」の値(属性値)が、選択された要素名(旧要素名)"拡張機器"に設定される(ステップS33)。   When the rotation operation is not designated, first, the last field designation 923 (= @ classification) and the field designation 923 out of the field designations 921 to 923 included in the first conversion operation designation information 123b are preceded. Based on the field designation 922 (= name) (steps S31 and S32), the value (attribute value) of the attribute “classification” is set to the selected element name (old element name) “extended device” (step S33). ).

次に、フィールド指定921乃至923のうちの、2番目のフィールド指定922(=name)と当該フィールド指定922に先行する先頭のフィールド指定921(=@名称)とに基づき(ステップS35,S32)、変換後の要素の要素名が、属性「名称」の値である「カード型ディスク」(図7(a)参照)に設定される(ステップS33)。   Next, based on the second field designation 922 (= name) of the field designations 921 to 923 and the first field designation 921 (= @ name) preceding the field designation 922 (steps S35 and S32), The element name of the element after conversion is set to “card type disk” (see FIG. 7A) which is the value of the attribute “name” (step S33).

次に、先頭のフィールド指定921は@名称であり、その名前「名称」を持つ属性の属性値を指定していることから(ステップS38)、現在の要素から、その属性「名称」が取り除かれる(ステップS39)。つまり、属性「名称」は失われる。この段階で、図7(a)に示す要素は、次の要素(現在の要素)
<カード型ディスク 分類="拡張機器" 形式="DK123EC" 重量="35" 容量="16"/>
に変換されている。
Next, since the head field designation 921 is an @ name and an attribute value of an attribute having the name “name” is designated (step S38), the attribute “name” is removed from the current element. (Step S39). That is, the attribute “name” is lost. At this stage, the element shown in FIG. 7A is the next element (current element).
<Card type disk classification = "Extended device" Format = "DK123EC" Weight = "35" Capacity = "16"/>
Has been converted.

次に、図8に示す変換対象/変換操作指定情報123から2番目(最後)の変換操作指定情報123bが選択される(ステップS41,S42)。前記したように、この2番目(最後)の変換操作指定情報123bもローテーション操作を指定していない。この場合、2番目(最後)の変換対象/変換操作指定情報123に含まれているフィールド指定941及び942に基づき、即ち最後のフィールド指定942(=content)と当該フィールド指定942に先行するフィールド指定941(=@重量)とに基づき(ステップS31,S32)、要素内容が、属性「重量」の値("35")に設定される(ステップS33)。この要素内容の設定時には、当該要素内容の直後に終了タグ</要素名>、つまり</カード型ディスク>が追加設定される。   Next, the second (last) conversion operation designation information 123b is selected from the conversion target / conversion operation designation information 123 shown in FIG. 8 (steps S41 and S42). As described above, the second (last) conversion operation designation information 123b also does not designate a rotation operation. In this case, based on the field designations 941 and 942 included in the second (last) conversion target / conversion operation designation information 123, that is, the last field designation 942 (= content) and the field designation preceding the field designation 942. 941 (= @ weight) (steps S31 and S32), the element content is set to the attribute “weight” value (“35”) (step S33). When this element content is set, an end tag </ element name>, that is, a </ card type disk> is additionally set immediately after the element content.

次に、先頭のフィールド指定941は@重量であり、その名前「重量」を持つ属性の属性値を指定していることから(ステップS38)、現在の要素から、その属性「重量」が取り除かれる(ステップS39)。これにより、図7(a)に示す要素は、表現形式の異なる図7(b)に示す要素に変換される。同様の変換処理により、図7(a)に示す要素を含む、アプリケーションAP1に適合する表現形式のXMLデータは、アプリケーションAP2に適合する表現形式のXMLデータに変換される。つまり本実施形態においては、アプリケーションAP1では処理できるものの、アプリケーションAP2では処理できない表現形式のXMLデータを、アプリケーションAP2で処理できる表現形式のXMLデータに変換することが可能となる。この逆のXMLデータ変換も可能である。これにより、図7(a)及び(b)のいずれの表現形式のXMLデータも、一方のXMLデータを図1のXMLデータ変換装置によって他方の表現形式のXMLデータに変換することで、ユーザの望む視点に沿った図形化が可能となる。ここで、図8に示した変換対象/変換操作指定情報123により定義された変換法は、図7(a)と同一の視点から作られた全てのXMLデータに適用できる。   Next, since the first field designation 941 is @weight and the attribute value of the attribute having the name “weight” is designated (step S38), the attribute “weight” is removed from the current element. (Step S39). Thereby, the element shown in FIG. 7A is converted into the element shown in FIG. 7B having a different representation format. Through similar conversion processing, XML data in an expression format suitable for the application AP1 including the elements shown in FIG. 7A is converted into XML data in an expression format compatible with the application AP2. That is, in the present embodiment, XML data in an expression format that can be processed by the application AP1 but cannot be processed by the application AP2 can be converted into XML data in an expression format that can be processed by the application AP2. The reverse XML data conversion is also possible. 7A and 7B, the XML data of one of the representation formats is converted into the XML data of the other representation format by the XML data conversion device of FIG. It is possible to create a graphic along the desired viewpoint. Here, the conversion method defined by the conversion target / conversion operation designation information 123 shown in FIG. 8 can be applied to all XML data created from the same viewpoint as in FIG.

図8の例では、定数を指定するフィールド指定は用いられていない。もし、フィールド指定の列の先頭に定数を指定するフィールド指定が用いられている場合、後続のフィールド指定で指定されるフィールドの値には、この定数が設定される。   In the example of FIG. 8, field specification for specifying a constant is not used. If a field specification that specifies a constant is used at the beginning of the field specification column, this constant is set as the value of the field specified in the subsequent field specification.

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

図1は本発明の一実施形態に係るXMLデータ(構造化データ)変換装置の構成を示すブロック図。FIG. 1 is a block diagram showing the configuration of an XML data (structured data) conversion apparatus according to an embodiment of the present invention. 図1中の変換法インデックスファイル11のデータ構造を示す図。The figure which shows the data structure of the conversion method index file 11 in FIG. 図1中の変換法定義ファイル12のデータ構造示す図。The figure which shows the data structure of the conversion method definition file 12 in FIG. 同実施形態の動作の全体の流れを示すフローチャート。The flowchart which shows the whole flow of operation | movement of the embodiment. 図4中のステップS10(XMLデータ変換処理)の詳細な手順を示すフローチャートの一部を示す図。The figure which shows a part of flowchart which shows the detailed procedure of step S10 (XML data conversion process) in FIG. 図4中のステップS10(XMLデータ変換処理)の詳細な手順を示すフローチャートの残りを示す図。The figure which shows the remainder of the flowchart which shows the detailed procedure of step S10 (XML data conversion process) in FIG. 変換対象となるXMLデータの1つの要素の例を、変換後の要素の例と対応付けて示す図。The figure which shows the example of one element of the XML data used as conversion object matched with the example of the element after conversion. 図7に示すXMLデータ変換に用いられる変換対象/変換操作指定情報123の一例を示す図。The figure which shows an example of the conversion object / conversion operation designation | designated information 123 used for the XML data conversion shown in FIG. 同一の対象をXMLデータで表現する場合に、XMLデータ設計者の視点の相違によって異なる表現形式のXMLデータが作成されることを示す図。The figure which shows that the XML data of a different expression format is produced by the difference in a viewpoint of an XML data designer, when expressing the same object by XML data.

符号の説明Explanation of symbols

10…変換法データベース、11…変換法インデックスファイル、12…変換法定義ファイル、20…XMLデータベース、21…XMLデータファイル、30…変換エンジン、31…ユーザインタフェース、40…メモリ、41…変換法インデックスファイル領域、42…変換法定義ファイル領域、43…XMLデータファイル名領域、44…XMLデータファイル領域、45…作業領域、50…入力装置、60…出力装置、123…変換対象/変換操作指定情報、123a…変換対象指定情報、123b…変換操作指定情報123b。   DESCRIPTION OF SYMBOLS 10 ... Conversion method database, 11 ... Conversion method index file, 12 ... Conversion method definition file, 20 ... XML database, 21 ... XML data file, 30 ... Conversion engine, 31 ... User interface, 40 ... Memory, 41 ... Conversion method index File area 42 ... Conversion method definition file area 43 ... XML data file name area 44 ... XML data file area 45 ... Work area 50 ... Input device 60 ... Output device 123 ... Conversion target / conversion operation designation information , 123a ... conversion target designation information, 123b ... conversion operation designation information 123b.

Claims (10)

構造化データの表現形式を変換する構造化データ変換装置において、
変換法データベースに格納されている複数の変換法定義ファイルであって、変換対象となる要素を指定する変換対象指定情報及び当該変換対象指定情報によって指定される要素に関し、当該要素の要素名、属性及び要素内容の間での値のシフトまたはローテーションを定義する変換操作指定情報を含む複数の変換法定義ファイルの中から、ユーザによって指定された構造化データをユーザの指定する表現形式の構造化データに変換するための変換法定義ファイルを選択する変換法定義ファイル選択手段と、
前記変換法定義ファイル選択手段によって選択された変換法定義ファイルに基づいて、ユーザによって指定された構造化データに含まれている要素のうち、当該変換法定義ファイルに含まれている前記変換対象指定情報の指定する要素を対象に、当該変換法定義ファイルに含まれている前記変換操作指定情報に基づいて、当該要素の要素名、属性及び要素内容の間での値のシフトまたはローテーションによる変換操作を実行する変換操作手段と
を具備することを特徴とする構造化データ変換装置。
In a structured data conversion apparatus for converting the representation format of structured data,
Multiple conversion method definition files stored in the conversion method database, and for the conversion target specification information for specifying the element to be converted and the element specified by the conversion target specification information, the element name and attribute of the element Structured data in an expression format specified by the user from among multiple conversion method definition files containing conversion operation specification information that defines shift or rotation of values between the element contents A conversion method definition file selection means for selecting a conversion method definition file for conversion to
Based on the conversion method definition file selected by the conversion method definition file selection means, among the elements included in the structured data specified by the user, the conversion target specification included in the conversion method definition file Based on the conversion operation specification information included in the conversion method definition file, a conversion operation by shifting or rotating a value between the element name, attribute, and element content of the element A structured data conversion device comprising: conversion operation means for executing
前記変換法定義ファイルに含まれている前記変換操作指定情報は、当該変換法定義ファイルに含まれている前記変換対象指定情報の指定する要素に関する、当該要素の要素名、属性及び要素内容をフィールドとして指定するフィールド指定の列を含み、
前記変換操作手段は、前記フィールド指定の列に従い、先行するフィールド指定で指定されたフィールドの旧値を、当該先行するフィールド指定に後続するフィールド指定で指定されたフィールドの新値として複写する複写手段を含む
ことを特徴とする請求項1記載の構造化データ変換装置。
The conversion operation specification information included in the conversion method definition file is a field for the element name, attribute, and element content of the element regarding the element specified by the conversion target specification information included in the conversion method definition file. Contains a field specification column specified as
The conversion operation means is a copying means for copying the old value of the field designated by the preceding field designation as the new value of the field designated by the field designation following the preceding field designation in accordance with the field designation column. The structured data conversion device according to claim 1, comprising:
前記変換操作手段は、前記変換操作指定情報に含まれている前記フィールド指定の列のうちの最初と最後が同一のフィールドを指定している場合、ローテーション操作が指定されていると判定する判定手段を更に含み、
前記複写手段は、前記ローテーション操作が指定されていると前記判定手段によって判定された場合、前記フィールド指定の列のうちの最後のフィールド指定で指定されたフィールドの旧値を、前記フィールド指定の列のうちの2番目のフィールド指定で指定されたフィールドの新値として設定する
ことを特徴とする請求項2記載の構造化データ変換装置。
The conversion operation means is a determination means for determining that a rotation operation is specified when the first and last fields are specified in the field specification column included in the conversion operation specification information. Further including
When the determination unit determines that the rotation operation is specified, the copying unit replaces the old value of the field specified by the last field specification in the field specification column with the field specification column. The structured data conversion device according to claim 2, wherein a new value of the field designated by the second field designation is set.
前記変換操作手段は、前記ローテーション操作が指定されていないと前記判定手段によって判定され、且つ前記フィールド指定の列のうちの先頭で属性が指定された場合、構造化データ変換中にある前記変換対象指定情報によって指定された要素から、当該属性を除去する属性除去手段を更に含むことを特徴とする請求項3記載の構造化データ変換装置。   The conversion operation means determines that the rotation operation is not specified by the determination means, and if the attribute is specified at the beginning of the field specification column, the conversion target in the structured data conversion 4. The structured data conversion apparatus according to claim 3, further comprising attribute removal means for removing the attribute from the element designated by the designation information. 前記変換操作手段は、前記ローテーション操作が指定されていないと前記判定手段によって判定され、且つ前記フィールド指定の列のうちの先頭で要素内容が指定された場合、構造化データ変換中にある前記変換対象指定情報によって指定された要素を空要素とする空要素化手段を備えることを特徴とする請求項3記載の構造化データ変換装置。   The conversion operation means determines that the rotation operation is not specified, and if the determination means determines that the content of the element is specified at the beginning of the field specification column, the conversion is being performed during structured data conversion. 4. The structured data conversion apparatus according to claim 3, further comprising empty element converting means that uses an element specified by the target specifying information as an empty element. 前記変換操作指定情報で定義可能なフィールド指定として、要素名を指定する第1のフィールド指定、要素内容を指定する第2のフィールド指定、及び指定の属性名を持つ属性の値を指定する第3のフィールド指定の少なくとも3種が用意されており、
前記複写手段は、
先行するフィールド指定に後続するフィールド指定が前記第1のフィールド指定の場合、要素名として、先行するフィールド指定で指定されたフィールドの値を設定し、
先行するフィールド指定に後続するフィールド指定が前記第2のフィールド指定の場合、要素内容として、先行するフィールド指定で指定されたフィールドの値を設定し、
先行するフィールド指定に後続するフィールド指定が前記第3のフィールド指定の場合、当該第3のフィールド指定で指定された属性名を持つ属性の値として、先行するフィールド指定で指定されたフィールドの値を設定する
ことを特徴とする請求項2記載の構造化データ変換装置。
As a field specification that can be defined by the conversion operation specification information, a first field specification that specifies an element name, a second field specification that specifies an element content, and a third value that specifies an attribute value having the specified attribute name There are at least three types of field designations,
The copying means includes
If the field specification following the preceding field specification is the first field specification, the value of the field specified by the preceding field specification is set as the element name,
When the field specification subsequent to the preceding field specification is the second field specification, the value of the field specified by the preceding field specification is set as the element content,
When the field specification subsequent to the preceding field specification is the third field specification, the value of the field specified by the preceding field specification is used as the value of the attribute having the attribute name specified by the third field specification. The structured data conversion device according to claim 2, wherein the structured data conversion device is set.
前記変換操作指定情報で定義可能なフィールド指定として、前記第1乃至第3のフィールド指定に加えて、前記フィールド指定の列の先頭にのみ使用可能な、定数を指定する第4のフィールド指定が用意されており、
前記複写手段は、
先行するフィールド指定が前記第4のフィールド指定の場合、当該第4のフィールド指定に後続するフィールド指定で指定されたフィールドの値として、当該第4のフィールド指定で指定された定数を設定する
ことを特徴とする請求項6記載の構造化データ変換装置。
As a field specification that can be defined by the conversion operation specification information, in addition to the first to third field specifications, a fourth field specification that specifies a constant that can be used only at the head of the field specification column is prepared. Has been
The copying means includes
If the preceding field specification is the fourth field specification, the constant specified by the fourth field specification is set as the value of the field specified by the field specification following the fourth field specification. The structured data conversion apparatus according to claim 6, wherein:
前記変換法データベースは、変換対象となる構造化データの表現形式を特定する入力形式名と変換後の構造化データの表現形式を特定する出力形式名との対と、当該入力形式名及び出力形式名の対で特定される表現形式の変換に用いられる変換法定義ファイルのファイル名とを対応付けて格納した変換法インデックスファイルを格納しており、
前記構造化データ変換装置は、
入力形式名及び出力形式名の対の一覧を表示することによりユーザに所望の入力形式名及び出力形式名の対を選択させるユーザインタフェースと、
前記一覧から選択された入力形式名及び出力形式名の対に対応付けられているファイル名を前記変換法インデックスファイルから検索する検索手段とを更に具備し、
前記変換法定義ファイル選択手段は、前記検索手段によって検索されたファイル名の変換法定義ファイルを前記データベースから選択する
ことを特徴とする請求項1記載の構造化データ変換装置。
The conversion method database includes a pair of an input format name that specifies an expression format of structured data to be converted and an output format name that specifies an expression format of structured data after conversion, and the input format name and output format. Stores a conversion method index file in which the file name of the conversion method definition file used for conversion of the expression format specified by the name pair is stored in association with each other,
The structured data conversion device comprises:
A user interface that allows a user to select a desired input format name and output format name pair by displaying a list of input format name and output format name pairs;
A search means for searching the conversion method index file for a file name associated with the input format name and output format name pair selected from the list;
The structured data conversion apparatus according to claim 1, wherein the conversion method definition file selection unit selects a conversion method definition file having a file name searched by the search unit from the database.
構造化データの表現形式を変換する構造化データ変換方法において、
変換法データベースに格納されている複数の変換法定義ファイルであって、変換対象となる要素を指定する変換対象指定情報及び当該変換対象指定情報によって指定される要素に関し、当該要素の要素名、属性及び要素内容の間での値のシフトまたはローテーションを定義する変換操作指定情報を含む複数の変換法定義ファイルの中から、ユーザによって指定された構造化データをユーザの指定する表現形式の構造化データに変換するための変換法定義ファイルを選択するステップと、
選択された変換法定義ファイルに基づいて、ユーザによって指定された構造化データに含まれている要素のうち、当該変換法定義ファイルに含まれている前記変換対象指定情報の指定する要素を対象に、当該変換法定義ファイルに含まれている前記変換操作指定情報に基づいて、当該要素の要素名、属性及び要素内容の間での値のシフトまたはローテーションによる変換操作を実行するステップ
を具備することを特徴とする構造化データ変換方法。
In the structured data conversion method for converting the representation format of structured data,
Multiple conversion method definition files stored in the conversion method database, and for the conversion target specification information for specifying the element to be converted and the element specified by the conversion target specification information, the element name and attribute of the element Structured data in an expression format specified by the user from among multiple conversion method definition files containing conversion operation specification information that defines shift or rotation of values between the element contents Selecting a conversion method definition file for conversion to
Based on the selected conversion method definition file, among the elements included in the structured data specified by the user, the element specified by the conversion target specification information included in the conversion method definition file is targeted. And performing a conversion operation by shifting or rotating a value between the element name, attribute, and element content of the element based on the conversion operation designation information included in the conversion method definition file. A structured data conversion method characterized by:
前記変換法定義ファイルに含まれている前記変換操作指定情報は、当該変換法定義ファイルに含まれている前記変換対象指定情報の指定する要素に関する、当該要素の要素名、属性及び要素内容をフィールドとして指定するフィールド指定の列を含み、
前記変換操作を実行するステップは、前記フィールド指定の列に従い、先行するフィールド指定で指定されたフィールドの旧値を、当該先行するフィールド指定に後続するフィールド指定で指定されたフィールドの新値として複写するステップを含む
ことを特徴とする請求項9記載の構造化データ変換方法。
The conversion operation specification information included in the conversion method definition file is a field for the element name, attribute, and element content of the element regarding the element specified by the conversion target specification information included in the conversion method definition file. Contains a field specification column specified as
In the step of executing the conversion operation, the old value of the field specified by the preceding field specification is copied as the new value of the field specified by the field specification following the preceding field specification according to the field specification column. The structured data conversion method according to claim 9, further comprising the step of:
JP2004194092A 2004-06-30 2004-06-30 Structured data conversion apparatus and method Expired - Fee Related JP4220439B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004194092A JP4220439B2 (en) 2004-06-30 2004-06-30 Structured data conversion apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004194092A JP4220439B2 (en) 2004-06-30 2004-06-30 Structured data conversion apparatus and method

Publications (2)

Publication Number Publication Date
JP2006018449A true JP2006018449A (en) 2006-01-19
JP4220439B2 JP4220439B2 (en) 2009-02-04

Family

ID=35792685

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004194092A Expired - Fee Related JP4220439B2 (en) 2004-06-30 2004-06-30 Structured data conversion apparatus and method

Country Status (1)

Country Link
JP (1) JP4220439B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008041082A (en) * 2006-07-12 2008-02-21 Hitachi Ltd Processing apparatus and program
US8612945B2 (en) 2008-05-13 2013-12-17 Nec Corporation XML processing device, XML processing method, and XML processing program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008041082A (en) * 2006-07-12 2008-02-21 Hitachi Ltd Processing apparatus and program
US8612945B2 (en) 2008-05-13 2013-12-17 Nec Corporation XML processing device, XML processing method, and XML processing program

Also Published As

Publication number Publication date
JP4220439B2 (en) 2009-02-04

Similar Documents

Publication Publication Date Title
JP4267336B2 (en) Method, system and program for generating structure pattern candidates
US5845304A (en) Document processing apparatus
JP2008508642A (en) Document processing and management method for generating a new document in a markup language environment using a new fragment and a new scheme
JP2004030582A (en) Structured document editing device, structured document editing method, and program
JP2009075879A (en) Image processing apparatus, image processing method, and program
JP5466357B2 (en) Apparatus and method for supporting creation of electronic document
JPWO2007081017A1 (en) Document processing device
JPWO2006051975A1 (en) Document processing device
JPWO2006046666A1 (en) Document processing apparatus and document processing method
JPWO2006051960A1 (en) Document processing apparatus and document processing method
JPWO2006051713A1 (en) Document processing apparatus and document processing method
JP4220439B2 (en) Structured data conversion apparatus and method
JP2008097215A (en) Data processing device
JPWO2005098660A1 (en) Document processing apparatus and document processing method
JPWO2005098658A1 (en) Document processing apparatus and document processing method
JP4566196B2 (en) Document processing method and apparatus
JPWO2007052680A1 (en) Document processing apparatus and document processing method
JPWO2006051959A1 (en) Document processing apparatus and document processing method
JPWO2006051716A1 (en) Document processing apparatus and document processing method
JP6331307B2 (en) Information processing apparatus, information processing apparatus control method, and program
JP4786695B2 (en) Structure conversion device for structured documents
JPWO2006103760A1 (en) Document conversion utilization system
JPWO2006051972A1 (en) Data processing apparatus, document processing apparatus, and document processing method
JP2004145736A (en) Character recognition device, character recognition data output method, program and recording medium
JP4719743B2 (en) Graph processing device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080610

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080804

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: 20081111

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081113

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111121

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111121

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121121

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131121

Year of fee payment: 5

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees