TWI262404B - System, method and machine-readable storage medium of transformation document management for structural language message - Google Patents

System, method and machine-readable storage medium of transformation document management for structural language message Download PDF

Info

Publication number
TWI262404B
TWI262404B TW92135514A TW92135514A TWI262404B TW I262404 B TWI262404 B TW I262404B TW 92135514 A TW92135514 A TW 92135514A TW 92135514 A TW92135514 A TW 92135514A TW I262404 B TWI262404 B TW I262404B
Authority
TW
Taiwan
Prior art keywords
conversion
file
definition
destination
conversion table
Prior art date
Application number
TW92135514A
Other languages
Chinese (zh)
Other versions
TW200521728A (en
Inventor
Kun-Wei Chou
Ching-Chung Chang
Original Assignee
Inst Information Industry
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 Inst Information Industry filed Critical Inst Information Industry
Priority to TW92135514A priority Critical patent/TWI262404B/en
Publication of TW200521728A publication Critical patent/TW200521728A/en
Application granted granted Critical
Publication of TWI262404B publication Critical patent/TWI262404B/en

Links

Landscapes

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

Abstract

A system, method and machine-readable storage medium of transformation document management for structural message include a storage device and a record generation module. The storage device stores a first and a second definition document, and a transformation document. The record generation module receives the first and second definition document, and transformation document, parses a source identity, a target identity and target structure path. The record generation module parses a source structure path and a transformation rule corresponding to each target structure path, and generates a transformation table including the source and target identity, source and target structure path, and the transformation rule.

Description

1262404 五、發明說明(1) 發明所屬之技術領域 此發明是一種訊息管理系統及方法,特別是一種結構 化訊息之轉換文件管理系統及方法。 先前技術 現今企業内部或企業之間的資料交換與整合,無不採 用可擴展標示語言(extensible Markup Language; XML) 作為基礎。以目前通行於高科技產業供應鏈的標準 RosettaNet為例,透過定義作業流程之夥伴介面流程 (Partner Interface Process; PIP),來促成企業間電子 父易 其疋義内谷包括说息格式、文件内容、參與的角色 及作業流程等,而其中,交換的訊息内容皆採用XML標準 作為基礎。然而於此趨勢下,對於使用該標準的系統開發 人員而s ’將需要開發許多重複且類似的X μ L文件轉換程 式。因此’如何讓採用不同可擴展標示語言綱目(XML schema)的XML文件之間可互相轉換,為系統開發人員經常 需要面臨的問題。 '1262404 V. INSTRUCTION DESCRIPTION OF THE INVENTION (1) Field of the Invention The present invention is a message management system and method, and more particularly to a structured file conversion file management system and method. Prior Art Data exchange and integration within or between enterprises today is based on the extensible Markup Language (XML). Take the standard RosettaNet, which is currently in the high-tech industry supply chain, as an example, through the definition of the Partner Interface Process (PIP) of the operation process, to promote the inter-enterprise e-fathers, including the interest format and file content. The roles and operating procedures involved, and the content of the exchanged messages are based on the XML standard. However, under this trend, many repetitive and similar X μL file conversion procedures will need to be developed for system developers using the standard. Therefore, how to make XML files with different XML schemas convert to each other is a problem that system developers often need to face. '

在共通之 > 料轉換問題上,目前的做法大致分為兩 種’一為分別針對兩個不同XML schema撰寫轉換文件,例 如’可延伸樣式表語言轉換(Extensible stylesheet Language: Transformati〇ns; XSLT)文件,讓採用一綱目 之XML文件可藉此轉換成採用另一綱目之XML文件·,另一為 使用既存如XML Mapper等工具進行轉換。XSLT是另一種 以XML為基礎的語言(可擴充式樣式表語言XSL的子集 XSL用來定義XML文件的格式,而XSLT則包含範本與指令來On the common material conversion problem, the current practice is roughly divided into two types: one is to write conversion files for two different XML schemas, such as 'Extensible stylesheet language conversion (Extensible stylesheet Language: Transformati〇ns; XSLT) The file allows the XML file to be converted to an XML file using another schema, and the other to convert using an existing tool such as XML Mapper. XSLT is another XML-based language (a subset of the extensible stylesheet language XSL is used to define the format of an XML file, while XSLT contains templates and directives.

12624041262404

選擇與操作資料的結構。 不管使用何種方法’皆會導致如下缺點,首先,廠商 之間可能重複撰寫相同的轉換程式,而浪費系統開發資 源,且當XML文件的元素(eiement)數量龐大時,轉換開發 過,不僅容易出錯,而且除錯困難,除此之外,整合超過 二豕廠商之間的XML文件較為困難。 ,此,而要一系統與方法有效分享已撰寫完成之轉換 規則定義文件或產生新的轉換規則定義文件,用以減輕開 發人員的負擔。 發明内容Select and structure the operational data. Regardless of the method used, it will lead to the following disadvantages. First, manufacturers may repeatedly write the same conversion program, which wastes system development resources, and when the number of elements (eiement) of the XML file is large, the conversion is developed, not only easy. In addition, it is difficult to debug, and in addition, it is more difficult to integrate XML files between the two vendors. In this case, a system and method are required to effectively share the completed conversion rule definition file or generate a new conversion rule definition file to reduce the burden on the developer. Summary of the invention

有鑑於 換文件管理 動產生技術 產生新的轉 依據上 糸統及方法 憶體、顯示 將其連結在 文件、多份 憶體中含有 換樣版查詢 可擴展 式和元素間 (例如,XML ,十、设1VI < 系統與方法, ’有效分享已 換規則定義文 述目的,本發 ,首先設置一 裝置、輸入裝 一起。儲存裝 可擴展標示語 一由程式指令 模組以及轉換 寺币不吞吾吕定義 的階層包含關 文件)之定義。In view of the change of file management technology, the new technology is based on the system and the method, the display is linked to the file, and the multiple recalls contain the sample version of the query extensible and between the elements (for example, XML, ten Set 1VI < system and method, 'effectively share the rules of the changed rules definition, this is the first, set up a device, input and install together. Store the expandable sign language one by the program command module and convert the temple currency without swallowing The hierarchy defined by Wu Lu contains the definition of the document.

可藉由轉換紀錄以及轉換樣版 撰寫完成之轉換規則定義文件 件’用以減輕開發人員的負擔 明之結構化訊息之轉換文件管 儲存裝置、一中央處理器、一 置以及通訊裝置,並使用匯流 ^儲存多份可擴展標示語言定 言轉換文件以及多個轉換表。 石馬組成之轉換紀錄產生模組、 樣版產生模組。 ^件透過描述元素(element)木 係來完成對整個結構化訊息内 可擴展標示語言轉換文件定|The conversion rule definition file can be converted by the conversion record and the conversion pattern, and the conversion file management device, a central processing unit, a device, and a communication device, which are used to alleviate the burden of the developer, and use the confluence ^ Store multiple copies of the Extensible Markup Language conversion file and multiple conversion tables. The conversion record of the stone horse is generated by a module and a pattern generation module. ^ pieces through the description element (element) wood to complete the entire structured message within the extensible markup language conversion file set |

1262404 五、發明說明(3) 了兩可擴展標示訊息之 頭以及多筆轉換明細紀^。、轉換規則。轉換表包含一個表 描述、來源文件之識別域;、表頭包含轉換表名稱、類別、 轉換明細紀錄包含來源文以及目的文件之識別域。每一筆 則以及目的文件之元素路=之元素路徑(xpath)、轉換原 轉換紀錄產生模組 以及一轉換規則定義文件先輸入一來源文件、一目的文件 (parse)來源文件以及轉換紀錄產生模組可解析 件以及目的文件,得到^規則疋義文件,或解析來源文 識別碼。從目的文件中=文件之識別碼以及目的文件之 之所有目的元素以及其目的纟士搂々y件中,解析出所 結構路徑,解析轉換規則&々:冓路杈。針對每一目的 路徑以及轉換原則。將解析出 源=相應之來源結構 文件之識別碼,以及多筆包含來件=識別碼、目的 及目的結構路徑的轉換原則資彳二、轉換原則以 儲存到儲存裝置中。 ^ 、據轉換表之資料結構 轉換樣版查詢模組提供一圖形化 user interface; GUI),方便使 ^ 作"面(gQPhcal 碼、目的文件之識別碼、元素路徑或^來源文件之識別 存媒體中找出相應之轉換表,並將杳心才目,貧料,至儲 置上。 一㈣結果顯示於顯示裝 “咖二轉換樣,1.生模組:先輸入兩個具轉換遞移關係 (transitlve relation)之第一轉換表以及 目的在產生一轉換規則定義文件’此轉換規則-定義文:可 〇213-A40128TWF(Nn:SNOWRAU. ptd 12624041262404 V. Invention Description (3) The head of the two extensible markup messages and the multiple conversion details. , conversion rules. The conversion table contains a table description, the identification field of the source file, and the header contains the conversion table name, category, conversion detail record containing the source text, and the identification field of the destination file. Each of the elements and the element path of the destination file = the path of the element (xpath), the conversion of the original conversion record generation module, and a conversion rule definition file, first input a source file, a destination file (parse) source file, and a conversion record generation module. The parsable piece and the destination file are obtained, and the rule definition file is obtained, or the source code identification code is parsed. From the destination file = the identifier of the file and all the destination elements of the destination file and its destination gentleman 搂々 y, parse the structure path and parse the conversion rule & 々: 冓路杈. For each purpose path and conversion principle. The identification code of the source=corresponding source structure file, and the conversion principle including the incoming component=identification code, the destination and destination structure path, and the conversion principle are stored in the storage device. ^ According to the data structure conversion template query module of the conversion table, a graphical user interface (GUI) is provided, which facilitates the identification of the gQPhcal code, the identification code of the destination file, the element path or the source file. Find the corresponding conversion table in the media, and focus on the poor, to the storage. One (four) results are displayed in the display device "Cai two conversion sample, 1. Health module: first input two conversions The first conversion table of the transitive relationship (transitlve relation) and the purpose of generating a conversion rule definition file 'this conversion rule-definition text: 可〇213-A40128TWF(Nn:SNOWRAU. ptd 1262404

讓相應 於第二 由兩轉 判斷。 件攔位 二轉換 構路徑 紀錄, 目的結 第三轉 實施方 於第一 轉換表 換表之 轉換樣 儲存第 表之目 轉換表 之目的 來源文 版產生 一轉換 的文件 與第二轉換表 依據第一轉換 構路徑,產生 換表。 式 之來源 文件之 件之識 棋組產 表之來 。接下 之來源 表之來 相應之 文件之結構 結構化訊息 別域以及目 生第三轉換 源文件,目 來,找出第 結構路徑相 源結構路徑 轉換規則定 化訊息 。上述 的文件 表之表 的文件 一轉換 同之成 以及第 義文件 轉換成相應 遞移關係可 之識別域來 頭,來源文 攔位儲存第 表之目的結 對轉換明細 二轉換表之 以及相應之Let the judgment be made by the second turn. The second block conversion path record, the purpose of the third conversion implement in the first conversion table conversion table storage table storage table of the purpose of the conversion table of the source of the source file to generate a conversion file and the second conversion table according to the A conversion path is generated to generate a table change. The source of the document The knowledge of the piece of the game. The following source table corresponds to the structure of the file Structured message The domain and the third conversion source file, purpose, to find the structure path phase source structure path conversion rule definition message. The file in the above table is converted into the same data and the first file is converted into the identification field of the corresponding recursive relationship. The source text block stores the purpose of the conversion table and the corresponding conversion table.

,1圖係表示依據本發明實施例之結構化訊息之轉換 文件嘗理系統之系統架構圖。依據本發明實 訊息之轉換文件管理系統10包括一儲存裝置/1!中;處 理器12、一記憶體13、顯示裝置14、輸入裝置15以及通訊 裝置16,並使用匯流排17將其連結在一起。任何熟悉此項 技藝者皆知道結合儲存裝置1 i、中央處理器丨2、記憶體 13、顯示裝置14、輸入裝置15以及通訊裝置16,可以形成 一部大型電腦(mainframe)、個人電腦、工作站、筆記型 電腦或其他電腦設備。儲存裝置11儲存多份可擴展標示語 言定義文件1 11、多份可擴展標示語言轉換文件丨丨2以及多 個轉換表1 1 3。記憶體1 3中含有一由程式指令碼組成之轉 換紀錄產生模組131、轉換樣版查詢模組丨32以及轉換樣版 產生模組1 3 3。中央處理1 2用以載入記憶體1 3所包含之1 is a system architecture diagram of a conversion document management system for structured messages according to an embodiment of the present invention. The conversion file management system 10 according to the present invention includes a storage device /1; a processor 12, a memory 13, a display device 14, an input device 15, and a communication device 16, and is connected thereto using a bus bar 17 together. Anyone familiar with the art knows that a large computer (mainframe), a personal computer, and a workstation can be formed in combination with the storage device 1 i, the central processing unit 2, the memory 13, the display device 14, the input device 15, and the communication device 16. , laptop or other computer equipment. The storage device 11 stores a plurality of extensible markup language definition files 1 11, a plurality of extensible markup language conversion files 丨丨2, and a plurality of conversion tables 1 1 3 . The memory 13 includes a conversion record generation module 131 composed of program instruction codes, a conversion pattern inquiry module 丨32, and a conversion pattern generation module 133. The central processing 1 2 is used to load the memory 13

0213-A40128TWF(Nl);SNOWBALL.ptd0213-A40128TWF(Nl);SNOWBALL.ptd

12624041262404

=、◊己錄產生模組131、轉換樣版查詢模組132以及轉換樣 f產生模組133,並根據程式指令以及使用者藉由輸入裝 置15所輸入之資料,執行結構化訊息之轉換文件管理功 能,於較佳情況下,將執行後之結果顯示到顯示裝置14 、可擴展標示語言定義文件111透過描述元素(element) 2式和元素間的階層包含關係來完成對整個結構化訊息内 容(例如,XML文件)之定義,於最佳情況可以為可擴展標 示語言綱目(XML schema)或文件類型定義(Document type D e f i n i t i ο η ; D T D)文件。依據本發明實施例,儲存裝置11 儲存有三份XML schema文件,第一XML schema内容如下所 示, <?xml version = ’’1.0n encoding:,’UTF-8’’?〉 <xs : schema targetNamespace = M http://www.mysamples.com/sampleln xmlns="http://www.mysamples.com/samplel" xmlns:xs = M http://www.w3.org/2001/XMLSchema" elementFormDefault =丨’qualified丨,> <xs: element name =丨,author” type = f, xsrstring" / > <xs : e 1 ement name =丨丨 book丨丨 > <xs : comp 1exType> <xs:sequence> <xs:element ref = M name1' /> <xs : e 1 emen t ref 二,’author’’/>The module 131, the conversion pattern query module 132, and the conversion sample generation module 133 are executed, and the structured document conversion file is executed according to the program command and the data input by the user through the input device 15. The management function, in the preferred case, displays the executed result to the display device 14, and the extensible markup language definition file 111 completes the entire structured message content through the description element (element) and the hierarchical inclusion relationship between the elements. The definition of (for example, an XML file) may be an XML Schema or a Document Type D efiniti ο η (DTD) file in an optimal case. According to an embodiment of the present invention, the storage device 11 stores three XML schema files, and the first XML schema content is as follows, <?xml version = ’’1.0n encoding:, 'UTF-8’’? 〉 <xs : schema targetNamespace = M http://www.mysamples.com/sampleln xmlns="http://www.mysamples.com/samplel" xmlns:xs = M http://www.w3.org /2001/XMLSchema"elementFormDefault=丨'qualified丨,><xs: element name =丨,author” type = f, xsrstring" / ><xs : e 1 ement name =丨丨book丨丨><xs : comp 1exType><xs:sequence><xs:element ref = M name1' /><xs : e 1 emen t ref II, 'author''/>

1262404 五、發明說明(6) <xs:element ref <xs:e1ement ref </xs:sequence〉 </xs:complexType> </xs:element〉 <xs:e 1 ement name = n goods" > <xs: comp 1exType> <xs:sequence〉 <xs:e1ement maxOccurs="unbounded"/> </xs: sequence〉 </xs:complexType> </xs:e1ement> <xs:element name: <xs : e 1 ement name: <xs:e1ement name </xs:schema> 第二XML schema内容如下所示, <?xm 1 version =丨丨 1.0 丨’ encoding <xs: schema targetNamespace = M http://www.mysamples.com/sample2 xmlns 二” http://www. mysamples. com/sample2 丨, xmlns:xs = M http://www.w3.org/2001/XMLSchemaM elementFormDefault = n qualified"> ISBN"/> publisher"/> ref二,’ book Φ ISBN name type=Mxs:stringM/> type = ,' xs : string" /> publisher” type =丨’xsistring1 丨/ > UTF-8,f ?> #1262404 V. Invention Description (6) <xs:element ref <xs:e1ement ref </xs:sequence〉 </xs:complexType></xs:element〉<xs:e 1 ement name = n goods"><xs: comp 1exType><xs:sequence〉<xs:e1ementmaxOccurs="unbounded"/></xs: sequence〉 </xs:complexType></xs:e1ement><xs:element name: <xs : e 1 ement name: <xs:e1ement name </xs:schema> The second XML schema content is as follows, <?xm 1 version =丨丨1.0 丨' encoding <xs: schema targetNamespace = M http://www.mysamples.com/sample2 xmlns II" http://www. mysamples.com/sample2 丨, xmlns:xs = M http://www. w3.org/2001/XMLSchemaM elementFormDefault = n qualified">ISBN"/>publisher"/> ref II, 'book Φ ISBN name type=Mxs:stringM/> type = ,' xs : string"/> publisher" type =丨'xsistring1 丨/ > UTF-8,f ?>#

0213-A40128TWF(N1);SNOWBALL·ptd 第10頁 1262404 五、發明說明(7) <xs:element name = n i tern"> <xs: comp 1exType> <xs: sequence〉 <xs: element ref 二’’id 丨’/> <xs:e1ement ref = ’丨 namen/> <xs:e1ement ref = n maker"/> </xs:sequence> </xs:complexType> </xs:element〉 Φ <xs : e 1 ement n a m e ="i dM type = n xs:string"/> nxs:string"/> xs:string”/> r e f ="item UTF-8” ?> <xs:element name = " maker11 type <xs : e 1 ement name =丨,name丨’ type = <xs:e1ement name = M rootM> <xs: comp 1 exType> <xs: sequence〉 <xs:e1ement maxOccurs =丨丨 unbounded” / > </xs:sequence> </xs:complexType> </xs:element〉 </xs:schema> 第三XML schema内容如下所示, <?xm 1 version」丨 1.0’丨 encodings <xs: schema0213-A40128TWF(N1);SNOWBALL·ptd Page 10 1262404 V. Invention Description (7) <xs:element name = ni tern"><xs: comp 1exType><xs: sequence〉 <xs: Element ref two ''id 丨'/><xs:e1ement ref = '丨namen/><xs:e1ement ref = n maker"/></xs:sequence></xs:complexType></xs:element〉 Φ <xs : e 1 ement name ="i dM type = n xs:string"/>nxs:string"/>xs:string”/> ref =" Item UTF-8" ? ><xs:element name = " maker11 type <xs : e 1 ement name =丨,name丨' type = <xs:e1ement name = M rootM><xs: comp 1 exType><xs : sequence〉 <xs:e1ement maxOccurs =丨丨unbounded” / ></xs:sequence></xs:complexType></xs:element〉</xs:schema> Third XML schema content As shown below, <?xm 1 version"丨1.0'丨encodings <xs: schema

0213-A40128TWF(N1);5 hPtd 第11頁 1262404 五、發明說明(8) targetNamespace="http://www.mysamples.com/sample3 xmlns =丨丨 http://www. mysamples. com/sample3 丨丨 xmlns:xs = M http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:e 1 ement name = Mbook"> <xs: comp 1exType> <xs:sequence〉 ref 二丨,i temn <xs:e1ement maxOccurs = n unboundedn/> </xs: sequence〉 </xs:complexType> </xs:e 1 ement> <xs : e 1 ement name = "i tern"> <xs: comp 1exType> <xs : sequence〉 <xs : e 1 ement ref 二丨丨 name"/> <xs : e 1 ement re f =f, i dM / > <xs:e1ement ref="writer"/> <xs:e1ement ref = M publishing-house"/> </xs: sequence〉 </xs:complexType> </xs : e1ement> <xs : e 1 ement name = ”list 丨丨 > <xs:complexType>0213-A40128TWF(N1);5 hPtd Page 11 1262404 V. Description of invention (8) targetNamespace="http://www.mysamples.com/sample3 xmlns=丨丨http://www. mysamples.com/sample3丨丨xmlns:xs = M http://www.w3.org/2001/XMLSchema"elementFormDefault="qualified"><xs:e 1 ement name = Mbook"><xs: comp 1exType><;xs:sequence〉 ref 二丨, i temn <xs:e1ement maxOccurs = n unboundedn/></xs: sequence〉 </xs:complexType></xs:e 1 ement><xs : e 1 ement name = "i tern"><xs: comp 1exType><xs : sequence〉 <xs : e 1 ement ref 二丨丨name"/><xs : e 1 ement re f =f, i dM / ><xs:e1ementref="writer"/><xs:e1ement ref = M publishing-house"/></xs: sequence〉 </xs:complexType&gt ; </xs : e1ement><xs : e 1 ement name = ”list 丨丨><xs:complexType>

第12頁 0213-A40128TWF(N1);SNOWBALL·ptd 1262404 五、發明說明(9) <xs:sequence〉 <xs : e 1 emen t ref = ” object 丨丨/ > </xs : sequence〉 </xs: comp 1exType> </xs : e 1 ement> <xs:element name =M id" type二丨’xs:string"/> <xs : e 1 ement name = "name" type = Mxs:string"/> <xs: element name =M object"> <xs: comp 1exType> « <xs : sequence〉 <xs : e 1 ement ref 二’丨 book丨’/> </xs: sequence〉 </xs:complexType> </xs : e 1 ement> <xs:element name =丨丨 publishing - house” type二n xs:stringn/> <xs: element name:丨丨 writer” type = nxs:stringn / > </xs : schema> 這三份XML schema文件中,其識別域(namespace)分別為1 http://www. mysamples, com/sampleln 、丨, http://www.mysamples.com/sample2"以及丨丨 http : "www· mysamples· com/sampl e3f丨 ° 第一XML schema 文件中包含四個元素,"name,,、n author,,、n ISBNn以及 "publisher”,其中的元素路徑(XPath)分別為 ΪΗ 0213-A40128TW(Nl);SNOWBALL.ptd 第13頁 1262404 五、發明說明(10) M goods/book/name" ^ "goods/book/author"、 丨丨 goods/book/ISBN'丨以及丨丨 g〇〇ds/book/publishern。第二 XML schema文件中包含三個元素,” id’1、,,name,'以及 "maker” ,其中的元素路徑(xpath)分別為 M root /item /idπ、丨,root/item/name"以及" root/item/maker” 。第三XML schema文件中包含四個元 素,’’name,,、’’writer”、nidn 以及,'publishing-house", 其中的元素路徑(XPath)分別為π 1ist/object/book/item/nameM 、 list/object/book/item/writer"、 ’’ 1 ist/ob ject/book/i tem/id” 以及n list/object/book/item/publishing-house"。 可擴展標示語言轉換文件12定義了兩可擴展標示訊息 的轉換規則,於較佳情況下為一可延伸樣式表語言轉換 (X S L T)文件。依據本發明實施例,儲存裝置11儲存有兩份 XSLT文件’第一XSLT文件定義了從第一XML schema文件轉 換成第三XML schema文件之轉換規則,内容如下所示, <?xml version二π1·0” encoding:"UTF-8”?〉 <xs1: sty 1esheet xmlns:ns=nhttp://www·mysamples.com/sampler xmlns: xsl = M http: / /www. w3. or g/ 1 999/XSL/Trans for m,f > <xsl:template match:丨丨"> <1i st> < o b j e c t >Page 12 0213-A40128TWF(N1); SNOWBALL·ptd 1262404 V. Invention Description (9) <xs:sequence〉 <xs : e 1 emen t ref = ” object 丨丨/ ></xs : sequence 〉 </xs: comp 1exType></xs : e 1 ement><xs:element name =M id" type two 丨'xs:string"/><xs : e 1 ement name = "Name" type = Mxs:string"/><xs: element name =M object"><xs: comp 1exType> « <xs : sequence〉 <xs : e 1 ement ref Two'丨book丨'/></xs: sequence〉 </xs:complexType></xs : e 1 ement><xs:element name =丨丨publishing - house” type two n xs:stringn/><xs: element name:丨丨writer” type = nxs:stringn / ></xs : schema> In these three XML schema files, the namespace is 1 http://www. mysamples, Com/sampleln, 丨, http://www.mysamples.com/sample2" and 丨丨http : "www· mysamples· com/sampl e3f丨° The first XML schema file contains four elements, "name, , n author,,, n ISBNn and "publisher", where the element path (XPath) is ΪΗ 0213-A40128TW(Nl); SNOWBALL.ptd page 13 1262404 5. Invention description (10) M goods/book/name&quot ; ^ "goods/book/author", 丨丨goods/book/ISBN'丨 and 丨丨g〇〇ds/book/publishern. The second XML schema file contains three elements, "id'1,,, name, 'and "maker", where the element path (xpath) is M root /item /idπ, 丨, root/item/name&quot ; and " root/item/maker". The third XML schema file contains four elements, ''name,,, ''writer', nidn, and 'publishing-house", where the element path (XPath) respectively Is π 1ist/object/book/item/nameM , list/object/book/item/writer", '' 1 ist/object/book/i tem/id', and n list/object/book/item/publishing- The expandable markup language conversion file 12 defines a conversion rule for two extensible markup messages, preferably an extendable stylesheet language conversion (XSLT) file. According to an embodiment of the invention, the storage device 11 stores Two XSLT files 'The first XSLT file defines the conversion rules for converting from the first XML schema file to the third XML schema file. The content is as follows, <?xml version two π1·0" encoding:"UTF-8 "?> <xs1: sty 1esheet xmlns:ns=nhttp:/ /www·mysamples.com/sampler xmlns: xsl = M http: / /www. w3. or g/ 1 999/XSL/Trans for m,f ><xsl:templatematch:丨丨"><1ist>< object >

第14頁 1262404 五、發明說明(11) <book> < i tem> <name> <xs 1 :va 1 ue-of select^"ns:goods/ns:book/ns:name"/> </name> <id> <xsl:value-of select=nns:goods/ns:book/ns:ISBNn/> </id> <wr i ter>Page 14 1262404 V. Invention Description (11) <book>< i tem><name><xs 1 :va 1 ue-of select^"ns:goods/ns:book/ns:name"/></name><id><xsl:value-ofselect=nns:goods/ns:book/ns:ISBNn/></id><wr i ter>

<xsl:value-of slect = nns:goods/ns:book/ns:author丨丨 / > </wr i ter> <publishing-house> <xsl ·· value- of select = M ns:goods/ns:book/ns:publishern/> </publishing-house> </i tem> </book> </object><xsl:value-of slect = nns:goods/ns:book/ns:author丨丨/ ></wr i ter><publishing-house><xsl ·· value-of select = M ns :goods/ns:book/ns:publishern/></publishing-house></item></book></object>

</ 1 i st> </xs1: temp 1 ate> </xs 1 :sty 1 esheet> 第二XSLT文件定義了從第三XML schema文件轉換成第 X M L s c h e m a文件之轉換規則,内容如下所示,</ 1 i st></xs1: temp 1 ate></xs 1 : sty 1 esheet> The second XSLT file defines a conversion rule for converting from the third XML schema file to the XML schema file, as follows As shown,

0213-A40128TWF(N1);SNOWBALL·ptd 第15頁 1262404 五、發明說明(12) UTF-8,,?> <?xm 1 version = ,丨 1.0 丨丨 encoding <xs1:sty 1 esheet xmlns:ns =丨丨 http://www. mysamples. com/sample3n xmlns:xsl = n http://www.w3.org/1999/XSL/Transformn > <xsl: template match =" /M > <root> < i tem> <id> <xs1:va 1 ue-of select =丨’ns: list/ns:object/ns:book/ns: item/ns: id 丨丨/ > </id> <name> <xsl :value-of select^'1 ns: list/ns:object/ns:book/ns: item/ns:name" /> </name> <raaker> <xsl :value-of select二丨丨 ns: list/ns:object/ns:book/ns: item/ns:write r丨’ /> </maker> _ </i tem> </root> </xs1: temp 1 ate> </xs1: sty 1 esheet> 第一XSLT文件以第三XML schema文件的元素架構為基礎, 1262404 五、發明說明(13) ' 定義其中每一元素要從第一XML schema文件選擇哪—個元 素中所包含資料的轉換規則。在第一XSLT文件中,欲轉換 出符合第三XML schema文件中所包含之四元去"η。 ” n wr i ter,,、,’ idn 以及,,publ i shing-house1'的轉換規則 (transformation rule)分另丨J 為丨,<xs 卜 valUe〜〇f select^nsigoods/nsibook/nsinameVV丨、丨丨 <xs 1 :va1ue-of select = ’丨 ns:goods/ns:book/ns:author’’/>丨丨、” <xsl :value-of select^"ns:goods/ns:bo〇k/ns:ISBN"/>" 以及n <xsl:value-〇f select二丨’ns:goods/ns:book/ns:publisher"/>n 〇 第二 XSLT文件以第二XML schema文件的元素架構為基礎,定義 其中每一元素要從第三XML schema文件選擇哪一個元素中 所包含資料的轉換規則。在第一XSLT文件中,欲轉換出符 合第二XML schema文件中所包含之四元素,,id,'、n name,1 以及’’maker”的轉換規則分別為"<xSl : value-〇f select^"ns: list/ns:object/ns:book/ns:item/ns:id" / > 丨’、n<xsl:value-of select:n ns:list/ns:object/ns:book/ns:item/ns:name” />” 以及”<xsl:value-of select^" ns:list/ns:object/ns:book/ns:item/ns:write r”/>”。 依據本發明實施例,每一個轉換表1 1 3包含一個表頭 以及多筆轉換明細紀錄。表頭包含轉換表名稱、類別、描0213-A40128TWF(N1);SNOWBALL·ptd Page 15 1262404 V. INSTRUCTIONS (12) UTF-8,,? ><?xm 1 version = , 丨1.0 丨丨encoding <xs1:sty 1 esheet xmlns:ns =丨丨http://www. mysamples.com/sample3n xmlns:xsl = n http://www. w3.org/1999/XSL/Transformn ><xsl: template match =" /M ><root>< i tem><id><xs1:va 1 ue-of select =丨' Ns: list/ns:object/ns:book/ns: item/ns: id 丨丨/ ></id><name><xsl :value-of select^'1 ns: list/ns: Object/ns:book/ns: item/ns:name"/></name><raaker><xsl :value-of selectsecondsns: list/ns:object/ns:book/ns : item/ns:write r丨' /></maker> _ </i tem></root></xs1: temp 1 ate></xs1: sty 1 esheet> first XSLT The file is based on the elemental schema of the third XML schema file, 1262404. V. Description (13) 'Define the rules for converting the information contained in each element from which the element is to be selected from the first XML schema file. In the first XSLT file, the quaternion included in the third XML schema file is converted to "n. The transformation rules of n wr i ter,,,, ' idn and , publ i shing-house1' are divided into 丨J, &, <xs 卜 valUe~〇f select^nsigoods/nsibook/nsinameVV丨,丨丨<xs 1 :va1ue-of select = '丨ns:goods/ns:book/ns:author''/>丨丨,” <xsl :value-of select^"ns:goods/ Ns:bo〇k/ns:ISBN"/>" and n <xsl:value-〇f select two 丨'ns:goods/ns:book/ns:publisher"/>n 〇second XSLT file Based on the element schema of the second XML schema file, define a conversion rule in which each element selects which of the elements contained in the third XML schema file. In the first XSLT file, the conversion rules for converting the four elements included in the second XML schema file, id, ', n name, 1 and ''maker' are respectively "<xSl : value- 〇f select^"ns: list/ns:object/ns:book/ns:item/ns:id" / > 丨', n<xsl:value-of select:n ns:list/ns:object/ Ns:book/ns:item/ns:name" />" and "<xsl:value-of select^" ns:list/ns:object/ns:book/ns:item/ns:write r" />". According to an embodiment of the present invention, each conversion table 1 1 3 includes a header and a plurality of conversion detail records. The header contains the conversion table name, category, and description

0213-A40128TW(Nl);SNOWBALL.ptd 第17頁 12624040213-A40128TW(Nl);SNOWBALL.ptd Page 17 1262404

1、來源(soyce)文件之識別域(namespace)以 文件,識別域。每-筆轉換明細紀錄包含二文 件之凡素路徑(XPath)、轉 件之元辛路 f。轉換表113可紀錄於關聯式資料庫系统、: 糸統、樓案系統或其他用以儲存資料之系统。勿件貝料庫 轉換紀錄產生模纟日1 q I. 可擴展標示語言定義文件百it::;,文件(亦即來源 標示語言定義文件)以及一轉(二:目的可擴展1. The identification field of the source (soyce) file identifies the domain by file. The per-pen conversion detail record contains the path of the two files (XPath) and the meta-path of the transfer. The conversion table 113 can be recorded in an associated database system, a system, a building system, or other system for storing data. Do not block the library. Conversion record generation simulation day 1 q I. Extensible markup language definition file hundred it::;, file (that is, source markup language definition file) and one turn (two: purpose expandable

枯不语s轉換文件)。轉換紀錄產生模組131可解析 (:!·:)來源文件以及轉換規則定義文件,或解析來源文 ,以及目的文件’得到來源文件之識別域以及目的文件之 戠別域從目的文件中或轉換規則定義文件中,解析出所 包含之所有目的元素以及其目的結構路徑。針對每一目的 f構路徑’解析轉換規則定義文件,得到相應之來源結構 徑以及轉換原則。將解析出之來源文件之識別域、目的 文件之識別域,以及多筆包含來源結構路徑、轉換原則以 及目的結構路徑的轉換原則資料,依據轉換表丨丨3之資料 結構儲存到儲存裝置1 1中。It doesn't matter s conversion file). The conversion record generation module 131 can parse the (:!·:) source file and the conversion rule definition file, or parse the source text, and the destination file 'get the identification field of the source file and the identification field of the destination file from the destination file or convert In the rule definition file, all the target elements included and their destination structure paths are parsed. The conversion rule definition file is parsed for each purpose, and the corresponding source structure path and conversion principle are obtained. The identification domain of the source file to be parsed, the identification domain of the destination file, and a plurality of conversion principle data including the source structure path, the conversion principle, and the destination structure path are stored in the storage device according to the data structure of the conversion table 13 in.

依據本發明實施例,轉換紀錄產生模組1 3 1首先輸入 如上所不之第一XML schema文件、第三XML schema文件以 及第一XSLT文件,其中第一XML· schema文件為來源文件, 第三XML schema文件為目的文件,第一XSLT文件為轉換相 應於來源文件之XML文件為相應於目的文件之xml文件的轉 換規則定義文件。轉換紀錄產生模組丨3 1會自動解析出來According to the embodiment of the present invention, the conversion record generation module 131 inputs first the first XML schema file, the third XML schema file, and the first XSLT file, wherein the first XML schema file is the source file, and the third The XML schema file is a destination file, and the first XSLT file is a conversion rule definition file for converting an XML file corresponding to the source file into an xml file corresponding to the destination file. The conversion record generation module 丨 3 1 will automatically resolve

1262404 五、發明說明(15) 源文件之識別域、目的文件之識別域, =路徑、轉換原則以及目的結構路徑的轉:以:源 依據轉換表U3之資料結構储存到儲存裝置、。、丨貝枓’ 係表示依據本發明實施例之範例第一第2 a圖 包含上述自動解析出之資料。 轉換表^圖’其中 第2b圖係表示依據本發明實施例之範例第二 意圖,描述從相應於第三XML schenia之乂虬文件換^不 應於第二XML schema之XML文件的所有轉換原則。、目 轉換樣版查詢模組1 3 2提供一圖形化操作介面 (graphic user interface; GUI),方便使用者輸入 :::之識別域、目的文件之識料、元素路徑或其" _貝料,至儲存裝置n中找出相應之轉換表113,並將^關 結果顯示於顯示裝置1 4上。 ~ °曰 轉換樣版產生模組1 33首先輸入兩個具轉換遞移 (transuive reiation)之第一轉換表以及第二轉換’、 =的在產生一轉換規則定義文件,此轉換規則定義文 讓相應於第一轉換表之來源文件之結構化 : 於第二轉換表之目的文件之結構化訊息。上述遞移 由兩轉換表1 1 3之來源文件之識別域以及目的文件之’、σ 域來判斷。轉換樣版產生模組133產生第三轉換表之1別 頭,來源文件欄位儲存第一轉換表之來源文件,目 欄位儲存第二轉換表之目的文件。接下來,找出第m 表之目的結構路徑與第二轉換表之來源結構路徑相同之忐 對轉換明細紀錄,依據第一轉換表之來源結構路徑以及第1262404 V. Description of invention (15) Identification field of source file, identification field of destination file, = path, conversion principle, and transfer of destination structure path: source: The data structure of the conversion table U3 is stored in the storage device.丨 枓 枓 系 表示 表示 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据 依据The conversion table is shown in FIG. 2B where the second intent of the example according to the embodiment of the present invention is described, and all conversion principles from the file corresponding to the third XML schema to the XML file of the second XML schema are described. . The visual conversion template query module 1 3 2 provides a graphical user interface (GUI) for the user to input::: the identification domain, the destination file, the element path or its " Then, the corresponding conversion table 113 is found in the storage device n, and the result of the OFF is displayed on the display device 14. ~ ° 曰 conversion template generation module 1 33 first input two first conversion table with transuive reiation and the second conversion ', = in the generation of a conversion rule definition file, this conversion rule definition text let The structuring of the source file corresponding to the first conversion table: the structured message of the destination file of the second conversion table. The above-mentioned recursion is judged by the identification field of the source file of the two conversion tables 1 1 3 and the ', σ field of the destination file. The conversion pattern generation module 133 generates one of the third conversion tables, the source file field stores the source file of the first conversion table, and the destination field stores the destination file of the second conversion table. Next, find out that the destination structure path of the mth table is the same as the source structure path of the second conversion table. For the conversion detail record, according to the source structure path of the first conversion table and the

12624041262404

五、發明說明(16) 一轉換表之目的結構路徑,產 以及相應之第三轉換表。I生相應之轉換規則定義文件 入如ΚΐΓ月之ΐ施例’轉換樣版產生模組133首先輸 m - r ^ ^ . 乾例轉換表,以及如第2b圖所示之 ; ·之後,找出第—範例轉換表之目的結構 細紀iί Γ列換,之來源結構路徑相同之成對轉換明 例Μ ^ 中,第一範例轉換表之紀錄3 1 1相應於第二範 例,換表之紀錄322,第一範例轉換表之紀錄312相應於第 例轉換表之紀錄321,第一範例轉換表之紀錄313相應 :第一範例轉換表之紀錄323。依據第一轉換表之來源結 構路徑以及第二轉換表之目的結構路徑,產生相應之轉換 規則定義文件以及相應之第三轉換表。第3圖係表示依據 本發明實施例之範例第三轉換表示意圖,其中包含上述自 動解析出之資料,而自動產生之第三XSLT文件如下所示, <?xml version:丨丨 1.0'丨 encoding:丨,UTF-8丨丨?> <xs1:sty 1 esheet xmlns:ns = ff http://www. mysamples. com/sampleln xmlns:xsl = M http://www.w3.org/1 999/XSL/Transformn> <xsl:template match:V丨丨 > <root> < i tem> <id> <xsl :value-of select^" ns:goods/ns:book/ns: ISBN,f/>V. INSTRUCTIONS (16) The purpose structure path of a conversion table, and the corresponding third conversion table. I corresponding to the conversion rule definition file into the ΚΐΓ ΐ ΐ ' 'transformation pattern generation module 133 first lose m - r ^ ^. The dry case conversion table, and as shown in Figure 2b; In the first example of the conversion table, the record of the first example conversion table 3 1 1 corresponds to the second example, and the table is changed. The record 322, the record 312 of the first example conversion table corresponds to the record 321 of the first example conversion table, and the record 313 of the first example conversion table corresponds to the record 323 of the first example conversion table. A corresponding conversion rule definition file and a corresponding third conversion table are generated according to the source structure path of the first conversion table and the destination structure path of the second conversion table. Figure 3 is a diagram showing an example third conversion table according to an embodiment of the present invention, which includes the above automatically parsed data, and the automatically generated third XSLT file is as follows, <?xml version:丨丨1.0'丨Encoding: 丨, UTF-8 丨丨? ><xs1:sty 1 esheet xmlns:ns = ff http://www. mysamples.com/sampleln xmlns:xsl = M http://www.w3.org/1 999/XSL/Transformn><xsl :template match:V丨丨><root>< i tem><id><xsl :value-of select^" ns:goods/ns:book/ns: ISBN,f/>

0213-A40128TWF(Nl);SN〇WBALL.ptd 第20頁 1262404 五、發明說明(17) </id> <name> <xsl :value-of select^” ns:goods/ns:book/ns:name丨,/ > </name> <maker> <xsl :value-of </maker>0213-A40128TWF(Nl); SN〇WBALL.ptd Page 20 1262404 V. Invention Description (17) </id><name><xsl :value-of select^" ns:goods/ns:book/ Ns:name丨, / ></name><maker><xsl :value-of </maker>

</i tem> </root> </xs 1 : temp 1 ate> </xs 1 : sty 1 esheet></i tem></root></xs 1 : temp 1 ate></xs 1 : sty 1 esheet>

雖然本發明實施例以兩個具轉換遞移關係之轉換表為 例,但不限定於只可處理兩個轉換表,亦可以接受兩個或 以上具有轉換遞移關係之轉換表,用以產生轉換規則定義 文件。例如,假設有三個轉換表分別紀錄定義文件A轉換 至定義文件B、定義文件B轉換至定義文件C,定義文件C轉 換至定義文件D,如果要自動產生定義文件a轉換至定義文 件D。轉換樣版產生模組1 33會以定義文件D為基礎,先找 相應於D之C的來源結構路徑,找相應於c之b的來源結構路 徑’最後找相應於C之B的來源結構路徑a。 第4圖係表示依據本發明實施例之結構化訊息之轉換 文件官理之轉換紀錄產生方法之方法流程圖,此方法由程Although the embodiment of the present invention takes two conversion tables with conversion and recursion relationships as an example, it is not limited to only processing two conversion tables, and may also accept two or more conversion tables having conversion and recursion relationships for generating Conversion rule definition file. For example, suppose that there are three conversion tables respectively, the definition definition file A is converted to the definition file B, the definition file B is converted to the definition file C, and the definition file C is converted to the definition file D, if the definition file a is to be automatically generated and converted to the definition file D. The conversion pattern generation module 1 33 will be based on the definition file D, first find the source structure path corresponding to C of C, find the source structure path corresponding to c b 'finally find the source structure path corresponding to B of C a. Figure 4 is a flow chart showing a method for generating a conversion record of a structured message according to an embodiment of the present invention.

〇213-A40128TWF(Nl);SN〇WBALL.ptd 第21頁 1262404〇213-A40128TWF(Nl);SN〇WBALL.ptd Page 21 1262404

式碼所組成,並可被中央處理器載入並執行。 如步驟S411所示,f先輸入一來源文件、一目的文件 以及一轉換規則定義文件。如步驟34 2丨所示,解析 〔parse)來源文件以及轉換規則定義文件,或解析來源文 件以及目的文件’得到來源文件之識別域以及目的文件之 ,4S431所示,從目的文件中或轉換 中,解析出一個新的目的元素以及其目的結構路徑U 驟S432所不,解析轉換規則定義文件,得到相應目的 Ϊ徑,ΪΪΐΪΪΪ以及轉換原則。進行如步驟_ :判 S431,繼續解析下一個目的結構路徑,否則驟 S441。如步驟S441所示,將解析出之 :別 目的文件之識別域,以及各箬勺人七々又仵之4別域、 則…的結構路徑的轉換“;:源二換原 資料結構儲存到儲存裝置丨丨中。 轉換表11 3之 第5圖係表示依據本發明實施 文件管理之轉換樣版產生:構化机息之轉換 _ 式碼所組成’並可被中央處理器载;;t:方法由程 如步驟S511所示,首弈銓A ;加η 1丁。 (transitive relaU〇n)之第一声、轉換遞移關係 上述遞移關係可由兩轉換表ll3之來第二轉換表, 目的文件之識別域來判斷文之識別域以及 換表之表頭,㊣中’來源文件攔轉^第= 轉換表之來源It consists of code and can be loaded and executed by the central processor. As shown in step S411, f first inputs a source file, a destination file, and a conversion rule definition file. As shown in step 34 2, parsing the source file and the conversion rule definition file, or parsing the source file and the destination file 'getting the identification field of the source file and the destination file, as shown in 4S431, from the destination file or in the conversion , parsing a new destination element and its destination structure path U step S432, parsing the transformation rule definition file, obtaining the corresponding purpose path, ΪΪΐΪΪΪ and conversion principle. Proceed as step _: S431, continue to parse the next destination structure path, otherwise step S441. As shown in step S441, it will be parsed: the identification field of the other object file, and the conversion of the structure path of each of the four different fields, and then the source path is stored in the source data structure. The storage device 。. The fifth diagram of the conversion table 117 shows the conversion of the file management according to the implementation of the present invention: the conversion of the constitutive machine _ code constitutes 'can be carried by the central processor; The method is as shown in step S511, the first game 铨A; plus η 1 丁. (transitive relaU〇n) first sound, conversion recursion relationship The above recursive relationship can be derived from the two conversion table ll3 , the identification field of the destination file to determine the identification field of the text and the header of the change table, the source of the source file blocking ^ the conversion table

1262404 五、發明說明(19) 文件,目的文件攔位儲存第二 如步驟S521所示,找出第一鼓表之目的文件。 第二轉換表之來源結構路徑相目的結構路徑與 轉換表之目的源結構路徑以及第二 錄。接下來進行如步驟S523所示表=明細紀 成對轉換明細紀錄,若是則回=斷,疋否存在其他之 S531。如步驟%31所 =S521,否則進行步驟 則定義文件。 斤不產生相應於第三轉換表之轉換規 本發明提出一種電腦可讀取 腦程式,上述電腦程式用以實化1自用以儲存一電 理之轉換紀錄產生方法,此方匕轉換文件管 第6圖係表示依據本發明實 丁述之步驟。 文件管理之轉換紀錄產生方法之^之結構化訊息之轉換 圖。此儲存媒體60,用以儲存一電存媒體/意 結構化訊息之轉換文件管理之轉 ^ ,用以貫現 程式包含五個邏輯,分別為接==生:=電腦 轉^規則定義文件邏輯621、解析來源 以及 之識別域邏輯622、解析目的地元素路 目、的文件 應目的地元素路徑之轉換原則邏輯62 產 、析相 625。 、科“4興產生轉換表邏輯 再者,本發明提出一種電腦可讀取儲存媒體,用以啟 存包恥私式,上述電細程式用以實現結構化訊自 文件管理之轉換樣版產生方法,此 σ心轉換 此万法會執行如上所述之1262404 V. Invention Description (19) File, destination file block storage second As shown in step S521, the destination file of the first drum table is found. The source structure path of the second conversion table is the destination structure path and the destination source structure path of the conversion table and the second record. Next, the table=detailed pairwise conversion detail record is displayed as shown in step S523, and if so, it is returned = off, and there is another S531. If step %31 = S521, otherwise the step is to define the file. The invention does not generate a conversion gauge corresponding to the third conversion table. The invention provides a computer readable brain program, and the computer program is used to implement a method for generating a conversion record for storing a power. Figure 6 shows the steps in accordance with the present invention. The conversion of the structured message of the file management conversion record generation method. The storage medium 60 is configured to store a conversion file management of an electrical storage medium/intentional structured message, and the implementation program comprises five logics, respectively: ===:====================================================== 621. The parsing source and the identification field logic 622, the parsing destination element path, the file should be the destination element path conversion principle logic 62 production, phase separation 625. Further, the present invention proposes a computer readable storage medium for opening a package of smuggling, and the above-mentioned electric program is used to realize the conversion of the structured information from the file management. Method, this sigma conversion will perform as described above

1262404 五 '發明說明(20) 步驟。1262404 Five 'Inventions (20) steps.

第7圖係表示依據本發明實施例之結構化訊息之轉換 文件官理之轉換樣版產生方法之電腦可讀取儲存媒體示意 圖。此儲存媒體7〇,用以儲存一電腦程式720,用以實現 結構化訊息之轉換文件管理之轉換樣版產生方法。其電腦 程式包含五個邏輯,分別為接收具轉換遞移關係之第一轉 換表以及第二轉換表邏輯72丨、產生第三轉換表表頭邏輯 722、取得第一轉換表之目的結構路徑與第二轉換表之來 源路控相同之成對轉換明細紀錄邏輯7 2 3、產生第三轉換 表之轉換明細紀錄邏輯724與產生轉換規則定義文件邏輯 因此,藉由本發明所提供 理系統及方法,有效分享已撰 或產生新的轉換規則定義文件 擔。 之結構化訊息之轉換文件管 寫完成之轉換規則定義文件 ’用以減輕開發人員的負 上’然其並非用以限定本 不脫離本發明之精神和範 因此本發明之保護範圍= 準。 雖然本發明之實施例揭露如 發明,任何熟悉此項技藝者,在 圍内,當可做些許更動與潤飾, 視後附之申請專利範圍所界定者Figure 7 is a schematic diagram showing a computer readable storage medium for converting a structured message according to an embodiment of the present invention. The storage medium 7 is used to store a computer program 720 for implementing a conversion template management method for converting file management of structured messages. The computer program comprises five logics, which are respectively receiving a first conversion table with a conversion recursive relationship and a second conversion table logic 72, generating a third conversion table header logic 722, and obtaining a structure path of the first conversion table. The source of the second conversion table is the same pair of conversion detail record logic 7 2 3, the conversion detail record logic 724 of the third conversion table is generated and the conversion rule definition file logic is generated. Therefore, by the system and method provided by the present invention, Effective sharing of written or generated new conversion rule definition files. The conversion file of the structured message is written to the completion of the conversion rule definition file </ RTI> to alleviate the developer's negative </ RTI> is not intended to limit the present invention without departing from the spirit and scope of the invention. Although the embodiments of the present invention are disclosed as the invention, any one skilled in the art can make some modifications and refinements within the scope of the invention, as defined by the appended claims.

1262404 圖式簡單說明 ==^發明之上述目的、特徵和優點能更明顯易懂, 特牛貫施例,並配合所附圖示,進行詳細說明如下: 上Λ係表示依據本發明實施例之結構化訊息之轉換 牛二里糸統之系統架構圖; &amp;第2a圖係表示依據本發明實施例之範例第一轉換表示 第2b圖係表示依據本發明實施例之範例第二轉換表示 第3圖係表示依據本發明實施例之範例第三轉換表示 .訊息之轉換 ί 訊息之轉換 則係表示依據本發; 管理之轉換紀錄產生方、、/ '&quot;之、,Ό構化戒息之轉換 生方法之電腦可讀取儲存媒體示意 第7圖係表示依據本發明告 管理之轉換樣版產生方/ 例之結構化訊息之轉換 王7法之電腦可讀取儲存媒體示意 說明 統 10〜結構化訊息之轉換文 11〜儲存裝置; 十G理糸 1 2〜中央處理器; 0213-A40128TWF(Nl);SNOWBALL.ptd 第25頁 1262404 圖式簡單說明 1 3〜記憶體; 1 4〜顯示裝置; 15〜輸入裝置; 1 6〜通訊裝置; 1 7〜匯流排; 1 3 1〜轉換紀錄產生模組; 1 3 2〜轉換樣版查詢模組; 1 3 3〜轉換樣版產生模組; 3 11、3 1 2、31 3、3 1 4〜轉換明細紀錄;BRIEF DESCRIPTION OF THE DRAWINGS The above objects, features, and advantages of the invention will be more apparent and understood. Structured Message Conversion System Architecture diagram; &amp; 2a diagram showing an example of a first conversion representation according to an embodiment of the present invention. FIG. 2b is a diagram showing an example second conversion representation according to an embodiment of the present invention. 3 is a diagram showing an example of a third conversion representation according to an embodiment of the present invention. The conversion of the message ί is converted according to the present invention; the management of the conversion record generation party, / '&quot;, The computer-readable storage medium of the conversion method is shown in Fig. 7. The conversion of the structured message generated by the conversion pattern generation method according to the present invention is shown in the figure 7 of the computer readable storage medium. ~ Structured message conversion text 11 ~ storage device; ten G theory 1 2 ~ central processor; 0213-A40128TWF (Nl); SNOWBALL.ptd page 25 1262404 simple description of the diagram 1 3 ~ memory; 1 4 ~ Display Display device; 15~ input device; 1 6~ communication device; 1 7~ bus bar; 1 3 1~ conversion record generation module; 1 3 2~ conversion sample query module; 1 3 3~ conversion template generation mode Group; 3 11, 3 1 2, 31 3, 3 1 4~ conversion detail record;

3 2 1、3 2 2、3 2 3〜轉換明細紀錄; S411、S42l.....S44卜操作步驟; S511、S521、…、S531〜操作步驟; 6 2 0〜結構化訊息之轉換文件管理之轉換紀錄產生方法 電腦程式; 6 2 1〜接收來源文件、目的文件以及轉換規則定義文件 邏輯;3 2 1, 3 2 2, 3 2 3~ conversion detail record; S411, S42l.....S44 operation steps; S511, S521, ..., S531~ operation steps; 6 2 0~ structured message conversion file Management conversion record generation method computer program; 6 2 1~ receiving source file, destination file and conversion rule definition file logic;

6 2 2〜解析來源文件以及目 623〜解析目的地元素路後 6 2 4〜解析相應目的地元素 625〜產生轉換表邏輯; 7 2 0〜結構化訊息之轉換文 電腦程式; 的文件之識別域邏輯; 邏輯; 路經之轉換原則邏輯; 件管理之轉換樣版產生方法 一轉換表以及第二轉換 72 1〜接收具轉換遞移關係之 表邏輯;6 2 2~ parsing the source file and the destination 623~ parsing the destination element after the road 6 2 4~ parsing the corresponding destination element 625~ generating the conversion table logic; 7 2 0~ the structured message conversion text computer program; the identification of the file Domain logic; logic; path conversion principle logic; piece management conversion pattern generation method-conversion table and second conversion 72 1~ receiving table logic with conversion recursion relationship;

1262404__ 圖式簡單說明 722〜產生第三轉換表表頭邏輯; 723〜取得第一轉換表之目的結構路徑與第二轉換表之 來源路徑相同之成對轉換明細紀錄邏輯; 724〜產生第三轉換表之轉換明細紀錄邏輯; 72 5〜產生轉換規則定義文件邏輯。1262404__ Schematic description 722~ generate third conversion table header logic; 723~ obtain the first conversion table and the same conversion path as the source path of the second conversion table; 724~ generate the third conversion Table conversion detail record logic; 72 5~ Generate conversion rule definition file logic.

0213-A40128TWF(Nl);SNOWBAa.ptd 第27頁0213-A40128TWF(Nl);SNOWBAa.ptd第27页

Claims (1)

1262404 六、申請專利範圍 1 · 一種結構化訊息之轉換文件管理系統,包括·· 一儲存裝置,用以儲存一第一定義文件、一 文件以及一轉換文件,上述定義文件透過描述元素 (訊T:二式广元素間的階層咖 ’心备上述轉換文件包含相應於上述第一定羞.々杜 之上述結構化訊息轉換成相應於上述第 結構化訊息的轉換規則;以&amp; 義文件之上迷 一轉換紀錄產生模組,接收上述第一定義文 第二定義文件以及上述轉換件, 上达 轉換文件解析出相應定義 述第二定義文件之一目的識別碼,由丄述第 換文件中,解析出-目的結構路徑 :包構路徑,上述轉換紀錄產生模組產 並儲存上述路徑以及上述轉換原則之-轉換表, 2 換表於一儲存裝置。 件管理Π請Πϊ圍第1項所述之結構化訊息之轉換文 作介面,用以輪t—轉換樣版查詢模組,提供圖形化操 元素名稱,至上、t ^述來源識別碼、上述目的識別碼或一 碼、上述目的=儲存裝置中搜尋出相應上述來源識別 應上述來二I”述元素名稱之上述轉換表,將相 述轉換表顯示j二示的識別碼或上述元素名稱之上 第28頁 0213.A40128TW(Nl);SN〇WBAa.ptd 12624041262404 VI. Patent Application Range 1 · A structured document conversion file management system, comprising: a storage device for storing a first definition file, a file and a conversion file, wherein the definition file is through a description element (T : The hierarchical coffee between the two types of elements is prepared in accordance with the conversion rule of the above-mentioned first structured message corresponding to the above-mentioned first structured message, and converted into a conversion rule corresponding to the above structured message; The above-mentioned conversion record generation module receives the second definition file of the first definition text and the conversion component, and the conversion file parses the identification code of one of the second definition files corresponding to the definition, which is described in the conversion file. The parsing-destination structure path: the parcel path, the conversion record generation module generates and stores the above path and the conversion principle-conversion table, 2 changes the table to a storage device. The converted text interface of the structured message is used to round the t-transformation query module and provide the name of the graphical operation element. The source identification code, the destination identification code or a code, the destination=storage device searches for the above-mentioned conversion table corresponding to the source identifier of the above-mentioned source identification, and displays the conversion table as j The identification code or the above element name on page 28 0213.A40128TW (Nl); SN〇WBAa.ptd 1262404 件4里Π it: 所述之結構化訊息之轉換文 件官理糸統,1中上述可擴展標示語言定義 標示語言綱目(XML schema)文件或文件類型定義 ,、版 (Document type Definition; DTD)文件。 μ 4·如申請專利範圍第丨項所述之結構化訊息之轉換文 件管理系統,其中上述轉換文件為可延伸樣式表語言 (XSLT)文件。 # 5· —種結構化訊息之轉換文件管理系統,包括:In the case of 4: 转换 it: the structured file conversion document, the above-mentioned extensible markup language definition markup language schema (XML schema) file or file type definition, version (Document type Definition; DTD) file. A conversion file management system for structured information as described in the scope of the patent application, wherein the conversion file is an Extensible Style Sheet Language (XSLT) file. # 5· — A structured file conversion file management system, including: 一儲存裝置,用以儲存一第一轉換表以及一第二轉換 表,其中母广上述轉換表包含一來源識別碼、一目的識別 碼’以及複數包含一目的結構路徑、一來源結構路徑、一 轉換原則的轉換規則紀錄,上述識別碼相應於一定義文 件’上,述結構路徑相應於上述定義文件中之元素 (element);以及a storage device for storing a first conversion table and a second conversion table, wherein the conversion table includes a source identification code, a destination identification code, and a plurality of destination structure paths, a source structure path, and a a conversion rule record of the conversion principle, wherein the identification code corresponds to a definition file, and the structure path corresponds to an element in the definition file; 一轉換樣版產生模組接收具轉換遞移關係之上述第一 轉換表以及上述第二轉換表,產生一包含上述第一轉換表 中之上述來源識別碼以及上述第二轉換表中之上述目的識 別碼之一第二轉換表之轉換表表頭,搜尋上述第一轉換表 之目的結構路控與上述第二轉換表之來源結構路徑相同之 成對一第一轉換明細紀錄以及一第二轉換明細紀錄,產生 包含相應於上述第一轉換明細紀錄之來源結構路徑以及相 應於上述第二轉換明細紀錄之目的結構路徑之上述第三轉 換表之一第三轉換明細紀錄。 6 ·如申请專利範圍第$項所述之結構化訊息之轉換文a conversion pattern generation module receives the first conversion table having a conversion recursive relationship and the second conversion table, and generates a source identification code included in the first conversion table and the foregoing destination in the second conversion table a conversion table header of one of the identification codes of the second conversion table, searching for a pair of first conversion detail records and a second conversion of the destination structure road of the first conversion table and the source structure path of the second conversion table The detail record generates a third conversion detail record of the third conversion table including the source structure path corresponding to the first conversion detail record and the destination structure path corresponding to the second conversion detail record. 6 · Conversion of structured information as described in item $ of the patent application 第29頁 1262404 六、申請專利範圍 件管理系統,其中上述轉換樣版產生模組依據上述第三轉 換表以及上述第三轉換明細紀錄,產生一轉換文件。 ^ 7·如申請專利範圍第5項所述之結構化訊息之轉換文 件官理系統,其中上述定義文件為可擴展標示語言綱目 (XML Schema)文件或文件類型定義(D0cument type Definition; DTD)文件。 件二ί n:範圍第6項所述之結構化訊息之轉換文 (=:::其中上述轉換文件為可延伸樣式表語言轉換 9. 一種結構化訊息之轉換文件管理方法,被一 中央處理器之電子裝罟拥〜^ L 八韦 — ί執仃,其方法包括下列步驟: # 一:牛、一第二定義文件以及-轉換文 素間的階層包含關係來ί n?1:”格式和元 成相應於上述第二定=文^義文件之上述結構化訊息轉換 則; 之上述結構化訊息的轉換規 由上述可擴展標示語古中装 出相應於上述第一定義文二義文件或上述轉換文件解析 述第二定義文件之一目的%之一來源識別碼以及相應於上 卞心 a的識別碼; 由上述第二定義文侔十 的結構路徑; 〆述轉換文件中,解析出一目 由上述轉換文件中,舨 之一轉換原則以及一來神# 相應於上述目的結構路徑 +辦、結構路徑;以及 0213-A40128TWF(Nl);SNOWBAa.ptd 第30頁Page 29 1262404 6. Patent application scope management system, wherein the conversion pattern generation module generates a conversion file according to the third conversion table and the third conversion detail record. ^ 7. The system of converting documented documents of structured information as described in claim 5, wherein the above definition file is an XML Schema file or a D0cument type definition (DTD) file. . Item 2 ί n: The conversion text of the structured message described in the sixth item (=::: wherein the above conversion file is an extendable style sheet language conversion. 9. A structured message conversion file management method, which is processed by a central processing The device is equipped with the following steps: #一:牛, a second definition file, and - the hierarchical inclusion relationship between the morphemes ί n?1:" format And the meta-conformity corresponding to the above-mentioned structured message conversion of the second fixed-text file; the conversion rule of the structured message is loaded by the extensible markup language corresponding to the first definition file Or the conversion file parses one of the destination identifiers of one of the second definition files and the identification code corresponding to the upper centroid a; the structural path of the second definition text of the second definition; One of the above conversion files, one of the conversion principles and one to God # corresponds to the above purpose structure path + office, structure path; and 0231-A40128TWF (Nl); SNOWBAa.ptd page 30 1262404 六、申請專利範圍 的結構路徑:t述來源識別碼、上述目的識別碼、 換表,並:存上ί 2結構路徑以及上述轉換原則 1 〇如φ &amp;返轉換表於上述儲存媒體。 件管理方法,圍第9項所述之結構化訊息之 更包含下列步驟: 至上= 識!1碼、上述目的識別碼或元素 %M ^ ^ u I 搜尋出相應上述來源識別碼、上 f述元素名稱之上述轉換[’以及 名稱之丄iiii:識、上述目的識別碼或上 科姨表顯不於顯示裝置上。 件管^方#/ ㈣㈣9 _ 結構化訊息之 法’其中上述定義文件為可擴展一 XML -he.a)^, Definition; DTD)文件。 1 2·如申請專利範圍第9項所述之結 = ::::其中上述轉換文件為可延伸樣式= 1 3. —種結構化訊息之轉換文件管理方法, 一中央處理器之電子裝置執行,其方法包括下列步 接收具轉換遞移關係之上述第一轉換表以及上 轉換表,其中每一上述轉換表包含一來源識別碼、 識別碼、以及複數包含一目的結構路徑、一來源绎 位、一轉換原則的轉換規則紀錄,上述識別喝相' 應 義文件,上述結構路徑相應於上述定義文件中之^ 上述目 之一轉 轉換文 名稱; 述目的 述元素 轉換文 綱目 轉換文 言轉換 一具有 驟: 述第二 一目的 構路 於一定 素;1262404 Sixth, the structural path of the scope of application for patents: t source identification code, the above object identification code, change table, and: save the ί 2 structure path and the above conversion principle 1 such as φ &amp; conversion table in the above storage medium. The piece of management method, the structured message described in item 9 further comprises the following steps: supreme = knowledge! 1 code, the above object identifier or element %M ^ ^ u I search for the corresponding source identification code, upper description The above conversion of the element name ['and the name 丄iiii: the identification, the above-mentioned destination identification code or the upper syllabus is not displayed on the display device. Piece of pipe ^ square # / (four) (four) 9 _ structured message method 'The above definition file is an extensible XML -he.a) ^, Definition; DTD) file. 1 2·As stated in the scope of claim 9: :::: wherein the above conversion file is an extendable style = 1 3. A structured file conversion file management method, an electronic device of a central processing unit executes The method includes the steps of: receiving the first conversion table and the up-conversion table having a conversion recursion relationship, wherein each of the conversion tables includes a source identification code, an identification code, and a complex number including a destination structure path and a source location , a conversion rule record of the conversion principle, the above-mentioned identification and drinking, the above-mentioned structural path corresponds to the above-mentioned definition file, the above-mentioned one of the above-mentioned one-to-one conversion text name; the description of the target element conversion text, the conversion of the classical Chinese character conversion : The second goal is to construct a certain factor; 0213-A40128TWF(N1);SNOWBALL·ptd0213-A40128TWF(N1);SNOWBALL·ptd 1262404 六、申請專利範圍 ^生一包含上述第一轉換表中之上述來源識別a 第二轉換表中之上诚曰从从 够-絲〜 ^ 表―員· 4目的識別碼之一第二轉換表之轉換表 搜尋上述第一轉換表之目的結構路徑與上述第二韓換 表^來源結構路徑相同之成對一第一轉換明細紀錄以及一' 第一轉換明細紀錄;以及 /一產生包含相應於上述第一轉換明細紀錄之來源結構路 徑=及相應於上述第二轉換明細紀錄之目的結構路徑之上 述第三轉換表之一第三轉換明細紀錄。1262404 VI. The scope of the patent application ^1 contains the above-mentioned source identification in the above first conversion table. A second conversion table is above the sincere from one of the enough - silk ~ ^ table - member of the 4 destination identification code The conversion table of the table searches for the first structural conversion path of the first conversion table and the pair of first conversion detail records and the first conversion detail record; and/or the generation includes the corresponding a source structure path of the first conversion detail record = and a third conversion detail record of the third conversion table corresponding to the destination structure path of the second conversion detail record. lj·如申請專利範圍第丨3項所述之結構化訊息之轉換 文件管理方法,更包含一步驟,依據上述第三轉換表以及 上述苐二轉換明細紀錄,產生一轉換文件。 1 5 ·如申请專利範圍第1 3項所述之結構化訊息之轉換 文件管理方法,其中上述定義文件為可擴展標示語言綱目 (XML schema)文件或文件類型定義(Document type Definition; DTD)文件 ° 16·如申請專利範圍第14項所述之結構化訊息之轉換 文件管理方法,其中上述轉換文件為可延伸樣式表語言轉 換(XSLT)文件。Lj· The method for managing the converted file of the structured message as described in item 3 of the patent application further includes a step of generating a conversion file according to the third conversion table and the second conversion detail record. 1 5 · A method for managing a converted document as described in claim 13 of the patent application, wherein the definition file is an XML schema file or a Document Type Definition (DTD) file. The conversion file management method of the structured message according to claim 14, wherein the conversion file is an extendable style sheet language conversion (XSLT) file. 1 7 · —種電腦可讀取儲存媒體,用以儲存一電腦程 式’该電腦程式用以載入至一電腦系統中並且使得該電腦 系統執行如申請專利範圍第9至1 2項中任一者所述之方 法。 1 8 · —種電腦可讀取儲存媒體,用以儲存一電腦程1 7 - a computer readable storage medium for storing a computer program for loading into a computer system and causing the computer system to perform any of claims 9 to 12 The method described. 1 8 · A computer-readable storage medium for storing a computer program 0213-A40128TWF(Nl);SNOWBALL.ptd 第32頁 12624040213-A40128TWF(Nl);SNOWBALL.ptd Page 32 1262404 0213-A40128TWF(Nl);SNOWBALL.ptd 第33頁0213-A40128TWF(Nl);SNOWBALL.ptd第33页
TW92135514A 2003-12-16 2003-12-16 System, method and machine-readable storage medium of transformation document management for structural language message TWI262404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW92135514A TWI262404B (en) 2003-12-16 2003-12-16 System, method and machine-readable storage medium of transformation document management for structural language message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW92135514A TWI262404B (en) 2003-12-16 2003-12-16 System, method and machine-readable storage medium of transformation document management for structural language message

Publications (2)

Publication Number Publication Date
TW200521728A TW200521728A (en) 2005-07-01
TWI262404B true TWI262404B (en) 2006-09-21

Family

ID=37987712

Family Applications (1)

Application Number Title Priority Date Filing Date
TW92135514A TWI262404B (en) 2003-12-16 2003-12-16 System, method and machine-readable storage medium of transformation document management for structural language message

Country Status (1)

Country Link
TW (1) TWI262404B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI673647B (en) * 2018-09-19 2019-10-01 雲拓科技有限公司 Automatically generating structured graphic patent claim displaying equipment

Also Published As

Publication number Publication date
TW200521728A (en) 2005-07-01

Similar Documents

Publication Publication Date Title
Erxleben et al. Introducing wikidata to the linked data web
Chaudhri et al. XML data management: native XML and XML-enabled database systems
O’connor et al. Mapping master: a flexible approach for mapping spreadsheets to OWL
Abiteboul et al. Web data management
US8484210B2 (en) Representing markup language document data in a searchable format in a database system
Corcho et al. Towards a new generation of ontology based data access
US9690779B2 (en) Quasi natural language man-machine conversation device base on semantic logic
JP2004515836A (en) Method and apparatus for efficient management of XML documents
CN101201816B (en) Adapter and method for outputting data in data stream to XML document
Jarrar et al. MashQL: a query-by-diagram topping SPARQL
KR20080100348A (en) Xml payload specification for modeling edi schemas
O'Connor et al. Acquiring OWL ontologies from XML documents
Braunisch et al. Generation of digital twins for information exchange between partners in the industrie 4.0 value chain
Lanthaler et al. Seamless integration of restful services into the web of data
TWI262404B (en) System, method and machine-readable storage medium of transformation document management for structural language message
Fiorelli et al. Assessing VocBench custom forms in supporting editing of lemon datasets
O'Connor et al. M2: A Language for Mapping Spreadsheets to OWL.
Svihla et al. Two layer mapping from database to RDF
Harlow Data Munging tools in preparation for RDF: Catmandu and LODRefine
Mou et al. Visual orchestration and autonomous execution of distributed and heterogeneous computational biology pipelines
Li et al. Research on information transformation based on XMI
Bergweiler A flexible framework for adaptive knowledge retrieval and fusion for kiosk systems and mobile clients
Wahlin XML for asp. net developers
Trong et al. Towards Automatic Synthesis of View Update Programs on Relations
Kirchhoff et al. Integrating OData services into the semantic web: a SPARQL interface for OData

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees