TW200521728A - 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
TW200521728A
TW200521728A TW92135514A TW92135514A TW200521728A TW 200521728 A TW200521728 A TW 200521728A TW 92135514 A TW92135514 A TW 92135514A TW 92135514 A TW92135514 A TW 92135514A TW 200521728 A TW200521728 A TW 200521728A
Authority
TW
Taiwan
Prior art keywords
conversion
file
mentioned
definition
source
Prior art date
Application number
TW92135514A
Other languages
Chinese (zh)
Other versions
TWI262404B (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

200521728200521728

發明所屬之技術領域 此發明是一種訊息管理系統及方法,特別是一種結構 化訊息之轉換文件管理系統及方法。 先前技術 現今企業内部或企業之間的資料交換與整合,無不採 用可擴展標不語言(eXtensible Markup Unguage; XML),FIELD OF THE INVENTION The present invention is a message management system and method, and more particularly a structured message conversion file management system and method. Previous technology Today, data exchange and integration within or between companies are all implemented using eXtensible Markup Unguage (XML),

作為基礎。以目前通行於高科技產業供應鏈的標準 RosettaNet為例,透過定義作業流程之夥伴介面流程 CPaftnei· Interface Process; Pip),來促成企業間電子 交易’其定義内容包括訊息格式、文件内容、參與的角色 及作業流程等,而其中,交換的訊息内容皆採用XML標準 作為基礎。然而於此趨勢下,對於使用該標準的系統開發 人員而言,將需要開發許多重複且類似的XML文件轉換程 式。因此’如何讓採用不同可擴展標示語言綱目(XML schema)的XML文件之間可互相轉換,為系統開發人員經常 需要面臨的問題。as basic. Taking RosettaNet, a standard currently used in the supply chain of high-tech industries, as an example, through the partner interface process CPaftnei · Interface Process (Pip) to define the operation process, to facilitate electronic transactions between enterprises. Its definition includes message format, file content, participating Roles and operational processes, among which the content of the messages exchanged are based on XML standards. With this trend, however, for system developers using this standard, many repetitive and similar XML file conversion procedures will need to be developed. Therefore, how to make XML files using different extensible markup language schemas (XML schemas) interchangeable is a problem that system developers often need to face.

在共通之資料轉換問題上,目前的做法大致分為兩 種,一為分別針對兩個不同XML schema撰寫轉換文件,例 如,可延伸樣式表語言轉換(Extensible Stylesheet Language: Transformations; XSLT)文件,讓採用一綱目 之XML文件可藉此轉換成採用另一綱目之UL文件;另一為 使用既存如XML Mapper等工具進行轉換。xSLT是另一種 以XML為基礎的語言(可擴充式樣式表語言XSL的子集)。 XSL用來疋義XML文件的格式,而xslt則包含範未與指令來On common data transformation issues, the current approach is roughly divided into two types. One is to write transformation files for two different XML schemas, for example, Extensible Stylesheet Language: Transformations (XSLT) files. XML files that use one schema can be converted into UL files that use another schema; another is to use existing tools such as XML Mapper for conversion. xSLT is another XML-based language (a subset of XSL, an extensible style sheet language). XSL is used to define the format of an XML file, while xslt contains Fan Wei and instructions to

200521728 五、發明說明(2) _ 選擇與操作資料的結構。 不官使用何種方法,皆會導致如 之間可能重複撰寫相同的轉換程式 良:备首先’廠商 源,且當XML文件的元素(element)數量】=統1發資 過程不僅容易出錯’而且除錯困發 三家廠商之間的XML文件較為困難。匕之外,整合超過 因此’需要一系統與方法有效分享 規則定義文件或產生新的轉換規則 :寫=轉換 發人員的負擔。 件,用以減輕開 發明内容 有鑑於此,本發明之目的為提供一種結 換文件管理系統與方法,可藉由轉換纪 〇 ^ ^七w j稭田轉換紀錄以及轉換樣版自 動產生技術,有效分旱已撰寫完成之轉換規 產生新的轉換規則定義文件,用以減輕開發人員:負:成 依據上述目的,本發明之結構化訊息之轉換文件管理 系統及方法,首先設置一儲存裝置、一中央處理器、一記 憶體、顯示裝置、輸入裝置以及通訊裝置,並使用匯流排 將其連結在一起。儲存裝置儲存多份可擴展標示語言定義 文件、多份可擴展標示語言轉換文件以及多個轉換表。記 憶體中含有一由程式指令碼組成之轉換紀錄產生模組、轉 換樣版查詢模組以及轉換樣版產生模組。 ^ ’ 可擴展標示語言定義文件透過描述元素 式和元素間的階層包含關係來完成對整個結構化訊息内容 (例如’ XML文件)之疋義。可擴展標示語言轉換文件定義200521728 V. Description of invention (2) _ Structure of selection and operation data. Whatever method is used, it will lead to the same conversion program that may be repeatedly written between: good first: 'vendor source, and when the number of elements of the XML file] = system 1 is not only easy to make mistakes in the funding process; It is more difficult to debug XML files between the three vendors. Beyond daggers, integration is more than ‘needs a system and method to effectively share rule definition files or generate new conversion rules: write = conversion burden on the sender. In view of this, the purpose of the present invention is to provide a system and method for document exchange and replacement, which can be effectively converted by the conversion history of the conversion history and the automatic generation technology of the conversion template. The conversion rules that have been written have been written to generate new conversion rule definition files to reduce developers: negative: according to the above purpose, the conversion file management system and method for structured information of the present invention, first set up a storage device, a A central processing unit, a memory, a display device, an input device, and a communication device, and connected together using a bus. The storage device stores multiple extensible markup language definition files, multiple extensible markup language conversion files, and multiple conversion tables. The memory contains a conversion record generation module composed of program scripts, a conversion template query module, and a conversion template generation module. ^ ’The Extensible Markup Language Definition document completes the definition of the entire structured message content (such as an‘ XML document ’) by describing elements and hierarchical inclusion relationships between elements. Extensible Markup Language Conversion File Definition

0213-A40128TWF(Nl);SNOWBALL.ptd 第6頁 200521728 五、發明說明(3) 了兩可擴展標示訊息之間的轉換規則。轉換表包含一個表 頭以及多筆轉換明細紀錄。表頭包含轉換表名稱、類別、 描述、來源文件之識別域以及目的文件之識別域。每一筆 轉換明細紀錄包含來源文件之元素路徑(xpath)、轉換原 則以及目的文件之元素路徑。 轉換紀錄產生模組首先輸入一來源文件、一目的文件 以及一轉換規則定義文件。轉換紀錄產生模組可解析 (farse)來源文件以及轉換規則定義文件’或解析來源文 件以及目的文件,得到來源文件之識別碼以及目的文件之 |碼從目的文件中或轉換規則定義文件中,解析出所0213-A40128TWF (Nl); SNOWBALL.ptd Page 6 200521728 V. Description of the invention (3) The conversion rules between two extensible mark messages. The conversion table contains a header and multiple conversion details. The header contains the translation table name, category, description, identification field of the source file, and identification field of the destination file. Each conversion detail record contains the element path (xpath) of the source document, the conversion principle, and the element path of the destination document. The conversion record generating module first inputs a source file, a destination file, and a conversion rule definition file. The conversion record generation module can parse (farse) the source file and the conversion rule definition file 'or parse the source file and the destination file to obtain the identification code of the source file and the | code of the destination file from the destination file or the conversion rule definition file to parse Source

Hi:有ΓΓ元素以及其目的結構路徑。針對每-目的 換規則定義文件,#到相應之來源結構 = 原則。將解析出之來源文件之識別碼、目的 ^牛之識別碼,以及多筆包含來源結構路徑、轉換原則以 及目的結構路徑的轉換原則資料, 資料士 儲存到儲存裝置中。 课轉換表之貝枓結構 轉換樣版查詢模組提供一圖形化操^ ^ ^ ^ user lnterface; GUI),方便使用去仏」Uraphical 碼、目的文件之識別碼一各 雨入來源文件之識別 ί:中找出相應之轉換表,並將查詢結果顯示於顯示裝 一—轉換樣版產生模組首先輸 (transitive relation)之第一轉 目的在產生一轉換規則定義文件, 入兩個具轉換遞移關係 換表以及第二轉換表, 此轉換規則定義文件可Hi: There are ΓΓ elements and their destination structure path. For each-purpose change the rule definition file, # to the corresponding source structure = principle. The parsed source document identification code, destination identification code, and multiple transformation principle data including the source structure path, the conversion principle, and the destination structure path are stored in the storage device. The course conversion table's shell structure conversion template query module provides a graphical operation ^ ^ ^ ^ user lnterface; GUI), which is convenient to use. "Uraphical code, the identification code of the destination file-the identification of each rain source file. : Find the corresponding conversion table, and display the query result on the display. The first turn of the transformation template generation module first input (transitive relation) is to generate a conversion rule definition file. Shift relationship conversion table and second conversion table, this conversion rule definition file can

200521728 五、發明說明(4) 讓相應於第一棘拖I & a e t 於第二轉換表之目的來 件之結構化訊息轉換成相應 由兩轉換表之來沔々文件之結構化訊息。上述遞移關係可 判斷。轉換樣版產生槿,且“笛一絲::文:之4別域來 件攔位儲存第一轉振nt第二轉換表之表頭,來源文 二轉換表之目的寺料表之來源文件,目的文件攔位儲存第 媒政二β_的文件。接下來,找出第一轉換表之目的杜 冓徑/、第二轉換表之來源結構路徑相 紀錄’依據第-轉換表之來源結構路徑以及第 :的=徑’產生相應之轉換規則定義文件以 乐二轉換表。 實施方式 第1圖係表示依據本發明實施例之結構化訊息之轉換 文t管理系統之系統架構圖。依據本發明實施例之結構化 甙心之轉換文件管理系統10包括一儲存裝置丨丨、一中央處200521728 V. Description of the invention (4) The structured information corresponding to the purpose of the first conversion table I & a e t in the second conversion table is converted into the structured information corresponding to the file from the two conversion tables. The above transfer relationship can be judged. The conversion template produces hibiscus, and "Fidi Yisi :: Wen: No. 4 domains block to store the header of the first conversion table nt second conversion table, the source file of the source table of the second conversion table, The target file is used to store the file of the second media table β_. Next, find out the purpose of the first conversion table, the source structure path of the second conversion table, and the phase record of the source structure path according to the first conversion table. And the first: = path 'generates the corresponding conversion rule definition file to the Le Er conversion table. Implementation Figure 1 shows the system architecture diagram of the conversion management system of the conversion message structured information according to the embodiment of the present invention. According to the present invention The structured glycoside conversion file management system 10 of the embodiment includes a storage device, a central office,

I 2 12、一記憶體13、顯示裝置"、輸入裝置15以及通訊 J置=,並使用匯流排17將其連結在一起。任何熟悉此項 =藝者皆知道結合健存裝置11、中央處理器12、記憶體 、顯不裝置14、輸入裝置15以及通訊裝置16,可以形成 一部大型電腦(mainframe)、個人電腦、工作站、筆記型 電腦或其他電腦設備。儲存裝置丨丨儲存多份可擴展標示語 言定義文件ill、多份可擴展標示語言轉換文件112以及多 個轉換表113。記憶體13中含有一由程式指令碼組成之轉 換紀錄產生杈組1 3 1、轉換樣版查詢模組丨3 2以及轉換樣版 產生杈組1 3 3。中央處理器1 2用以載入記憶體丨3所包含之 0213-A40128TWF(N1);SNOWBALL·ptd 第8頁 200521728 五、發明說明(5)" " -------- J 己錄產生模組131、轉換樣版查詢模組132以及轉換樣 f產生模組133,並根據程式指令以及使用者藉由輸入裝 ^1 5所輸入之資料,執行結構化訊息之轉換文件管理功 月b,於較佳情況下,將執行後之結果顯示到顯示裝置工4 上。 可擴展標示語言定義文件ln透過描述元素(element) 2式和7G素間的階層包含關係來完成對整個結構化訊息内 谷(例如,XML文件)之定義,於最佳情況可以為可擴展標I 2 12, a memory 13, a display device ", an input device 15, and a communication J are set, and are connected together using a bus 17. Anyone familiar with this item knows that combining a storage device 11, a central processing unit 12, a memory, a display device 14, an input device 15, and a communication device 16 can form a mainframe, a personal computer, and a workstation , Laptop, or other computer equipment. The storage device stores a plurality of extensible markup language definition files ill, a plurality of extensible markup language conversion files 112, and a plurality of conversion tables 113. The memory 13 contains a conversion record composed of a program instruction code to generate a branch group 1 3 1, a conversion template query module 丨 3 2 and a conversion template to generate a branch group 1 3 3. The central processing unit 12 is used to load the memory 丨 3 contained in 0213-A40128TWF (N1); SNOWBALL · ptd Page 8 200521728 V. Description of the invention (5) " " -------- J Recorded generating module 131, conversion template query module 132, and conversion sample f generating module 133, and executes document management of structured information according to program instructions and data input by the user through input device 15 The work month b, in a better case, displays the result after execution on the display device 4. The extensible markup language definition file ln completes the definition of the entire structured message valley (eg, XML file) by describing the hierarchical inclusion relationship between element 2 and 7G elements. In the best case, it can be an extensible markup.

不語言綱目(XML schema)或文件類型定義(Document type Definition; DTD)文件。依據本發明實施例,儲存裝置u 儲存有三份XML schema文件,第一XML schema内容如下所 示, <?xml version = n1.0丨’ encoding:丨丨 UTF-8Π ?> <xs:schema targetNamespace="http://www.mysamples.com/sampleln xmlns=Mhttp://www.mysamples.com/samplel" xmlns:xs = M http://www.w3.org/2001/XMLSchemaM elementFormDefault = n(iualifiedn > <xs: element name =丨丨 author丨丨 type =丨丨 xs: string”/ >No language schema (XML schema) or document type definition (DTD) file. According to the embodiment of the present invention, the storage device u stores three XML schema files. The contents of the first XML schema are as follows, <? Xml version = n1.0 丨 'encoding: 丨 丨 TFF-8Π? ≫ < xs: schema targetNamespace = " http: //www.mysamples.com/sampleln xmlns = Mhttp: //www.mysamples.com/samplel" xmlns: xs = M http://www.w3.org/2001/XMLSchemaM elementFormDefault = n (iualifiedn > < xs: element name = 丨 丨 author 丨 丨 type = 丨 丨 xs: string ”/ >

<xs: element name = ’丨 book丨· > <xs: comp 1exType> <xs : sequence〉 <xs:e1ement ref="name"/> <xs: element ref = M author'1 />< xs: element name = '丨 book 丨 · > < xs: comp 1exType > < xs: sequence〉 < xs: e1ement ref = " name " / > < xs: element ref = M author '1 / >

0213-A40128TWF(N1);SNOWBALL·ptd 第9頁 200521728 五、發明說明(6) ISBN"/> publisher”/> ref = ,f book type="xs:stringn/> type = "xs:string" / > <xs:e1ement ref <xs:e 1 ement ref </xs : sequence〉 </xs:complexType> </xs:e1ement> <xs : e 1 ement name = f, goods" > <xs: comp 1exType> <xs: sequence〉 <xs:element maxOccurs = n unbounded"/> </xs: sequence〉 </xs:complexType> </xs:element〉 <xs:element name=MISBN" <xs : e 1 ement name = ’’name’’ <xs:e1ement name = n publisher" type="xs:str i ng"/> </xs:schema> 第二XML schema内容如下所示, <?xml version=n1.0M encodings"UTF-8M?> <xs:schema targetNamespace = nhttp://www. mysamples. com/sample2 xmlns = n http:/ /www. mysamples. com/sample2丨’ xmlns:xs =丨丨 http://www· w3· org/2001/XMLSchema’丨 elementFormDefault = ,丨 qualified”> iim0213-A40128TWF (N1); SNOWBALL · ptd Page 9 200521728 V. Description of Invention (6) ISBN " / > publisher ”/ > ref =, f book type = " xs: stringn / > type = " xs: string " / > < xs: e1ement ref < xs: e 1 ement ref < / xs: sequence〉 < / xs: complexType > < / xs: e1ement > < xs: e 1 ement name = f, goods " > < xs: comp 1exType > < xs: sequence〉 < xs: element maxOccurs = n unbounded " / > < / xs: sequence〉 < / xs: complexType > < / xs: element〉 < xs: element name = MISBN " < xs: e 1 ement name = `` name '' < xs: e1ement name = n publisher " type = " xs: str i ng " / > < / xs: schema > The content of the second XML schema is as follows, <? xml version = n1.0M encodings " UTF-8M? > < xs: schema targetNamespace = nhttp: // www. mysamples. com / sample2 xmlns = n http: / / www. mysamples. com / sample2 丨 'xmlns: xs = 丨 丨 http: // www · w3 · org / 2001 / XMLSchema' 丨 elementFormDefault =, 丨 qualified ”> iim

0213-A40128TWF(Nl);SNOWBALL.ptd 第10頁 200521728 五、發明說明(7) <xs:e1ement name = "i tern"> <xs:complexType> <xs: sequence〉 id" /> name"/> maker"/> <xs:e1ement ref <xs:e1ement ref <xs:element ref </xs: sequence〉 </xs:complexType> </xs:e1ement> <xs:e1ement name ="id" type = "xs:stringM/> <xs:e 1 ement name = Mmaker" type = Mxs:stringM/> <xs:element name = M name" type = "xs:string"/> <xs : e 1 ement name =丨,root丨,> <xs:complexType> <xs: sequence〉 r e f =n item" <xs:e1ement maxOccurs = n unbounded丨’ / > </xs:sequence> </xs:complexType> </xs:e1ement> </xs:schema> 第三XML schema内容如下所示, UTF-8n ?> <?xm1 version^"1.0n encoding <xs: schema0213-A40128TWF (Nl); SNOWBALL.ptd Page 10 200521728 V. Description of Invention (7) < xs: e1ement name = " i tern " > < xs: complexType > < xs: sequence〉 id " / > name " / > maker " / > < xs: e1ement ref < xs: e1ement ref < xs: element ref < / xs: sequence〉 < / xs: complexType > < / xs: e1ement > < xs: e1ement name = " id " type = " xs: stringM / > < xs: e 1 ement name = Mmaker " type = Mxs: stringM / > < xs: element name = M name " type = " xs: string " / > < xs: e 1 ement name = 丨, root 丨, > < xs: complexType > < xs: sequence〉 ref = n item " < xs: e1ement maxOccurs = n unbounded 丨 '/ > < / xs: sequence > < / xs: complexType > < / xs: e1ement > < / xs: schema > The content of the third XML schema is shown below, UTF-8n? > <? xm1 version ^ " 1.0n encoding < xs: schema

0213-A40128TW(N1) ;SNOWBALL.ptd 第11頁 200521728 五、發明說明(8) targetNamespace = Mhttp://www. mysamples.com/sample3 xmlns^"http://www.mysamples.com/sample3M xmlns:xs = n http://www.w3.org/2001/XMLScheman elementFormDefault = n qualified"> <xs : e 1 ement name:丨,bookn> <xs: comp 1 exType> <xs:sequence> ref t em1 <xs:e1ement maxOccurs = n unbounded"/> # </xs: sequence〉 </xs:complexType> </xs : e 1 ement> <xs:e1ement name = n item"> <xs : comp 1exType> name" /> idM /> writer"/> <xs: sequence〉 <xs:element ref <xs:e1ement ref <xs:e1ement ref <xs: element ref =丨丨 publishing-house 丨丨 / > </xs: sequence〉 </xs:complexType> </xs:e1ement> <xs:e1ement name = M list"> <xs : comp 1 exType>0213-A40128TW (N1); SNOWBALL.ptd Page 11 200521728 V. Description of the invention (8) targetNamespace = Mhttp: //www.mysamples.com/sample3 xmlns ^ " http: //www.mysamples.com/sample3M xmlns : xs = n http://www.w3.org/2001/XMLScheman elementFormDefault = n qualified " > < xs: e 1 ement name: 丨, bookn > < xs: comp 1 exType > < xs: sequence > ref t em1 < xs: e1ement maxOccurs = n unbounded " / ># < / xs: sequence〉 < / xs: complexType > < / xs: e 1 ement > < xs: e1ement name = n item " > < xs: comp 1exType > name " / > idM / > writer " / > < xs: sequence〉 < xs: element ref < xs: e1ement ref < xs: e1ement ref < xs: element ref = 丨 丨 publishing-house 丨 丨 / > < / xs: sequence〉 < / xs: complexType > < / xs: e1ement > < xs: e1ement name = M list " > < xs: comp 1 exType >

0213-A40128TWF(N1);SNOWBALL·ptd 第12頁 200521728 五、發明說明(9) <xs : sequence〉 <xs:e1ement ref = n object"/> </xs:sequence> </xs:complexType> </xs:e1ement> <xs:element name:丨,id 丨’ type = n xs:string" / > <xs : e 1 ement name = n name丨丨 type = M xs : string" / > <xs:element name=Mobject”> <xs: comp 1exType> <xs: sequence〉 <xs : e 1 ement ref =丨丨 book丨丨/ > </xs: sequence〉 </xs:complexType> </xs:e1ement> <xs : e 1 ement name = n publishing - house 丨丨 type=Mxs:string"/> <xs : e 1 ement name =丨丨 writer'丨 type 二丨'xs:stringn / > </xs:schema> 這三份XML schema文件中,其識別域(namespace)分別為, http://www.mysamples.com/samplel"、” http ://www· mysamples· com/sampl e2丨丨以及,丨 http://www.mysamples.com/samp1e3n 。第一XML schema 文件中包含四個元素,’’ name’,、n author”、n ISBNn以及 "publisher",其中的元素路徑(xpath)分別為 ϊη 0213-A40128TW(Nl);SNOWBALL.ptd 第13頁 200521728 五、發明說明(ίο) 丨丨 goods/book/name" ''丨 goods/book/author”、 "goods/book/ISBN” 以及ng〇〇ds/book/publisher"。第二 XML schema文件中包含三個元素,” id"、" name',以及 nmakern ,其中的元素路徑(xpath)分別為 n root / item / id" 、” root/item/name'丨以及丨’ root/item/maker’·。第三XML schema文件中包含四個元 素,n name'’、’’writer”、,,id,,以及n pub 1 ishing-housen , 其中的元素路徑(XPath)分別為π list/object/book/item/name"、 丨丨 list/object/book/item/writer'丨、 "list/object/book/item/id” 以及’’ list/object/book/item/publishing-house” 。 可擴展標示語言轉換文件1 2定義了兩可擴展標示訊息 的轉換規則’於較佳情況下為一可延伸樣式表語言轉換 (XSLT)文件。依據本發明實施例,儲存裝置11儲存有兩份 XSLT文件,第一XSLT文件定義了從第一XML schema文件轉 換成第三XML schema文件之轉換規則,内容如下所示, <?xml version:丨丨 1.0’丨 encoding = '’UTF-8丨丨?> <xs 1 : sty 1 esheet xmlns:ns = ,丨 http: //www· my s am ples.com/samplel 丨丨 xmlns: xsl = "http://www.w3.org/1999/XSL/Transformn > <xs1: template match:” " > <1i st> < o b j e c t >0213-A40128TWF (N1); SNOWBALL · ptd Page 12 200521728 V. Description of the invention (9) < xs: sequence> < xs: e1ement ref = n object " / > < / xs: sequence > < / xs: complexType > < / xs: e1ement > < xs: element name: 丨, id 丨 'type = n xs: string " / > < xs: e 1 ement name = n name 丨 type = M xs : string " / > < xs: element name = Mobject "> < xs: comp 1exType > < xs: sequence〉 < xs: e 1 ement ref = 丨 丨 book 丨 丨 / > < / xs: sequence〉 < / xs: complexType > < / xs: e1ement > < xs: e 1 ement name = n publishing-house 丨 丨 type = Mxs: string " / > < xs: e 1 ement name = 丨 丨 writer '丨 type II 丨' xs: stringn / > < / xs: schema > In these three XML schema files, the identification domains (namespaces) are respectively, http://www.mysamples.com/ samplel ", "http: // www · mysamples · com / sampl e2 丨 丨, and 丨 http://www.mysamples.com/samp1e3n. 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 first 13 pages 200521728 V. Description of the invention (丨) 丨 丨 goods / book / name " '' 丨 goods / book / author '', " goods / book / ISBN '' and ng〇〇ds / book / publisher ". Second XML The schema file contains three elements, "id ", " name ', and nmakern, where the element path (xpath) is n root / item / id "," root / item / name' 丨 and 丨 'root / item / maker '.. The third XML schema file contains four elements, n name' ', `` writer' ',, id, and n pub 1 ishing-housen, where the element path (XPath) is π list / object / book / item / name ", 丨 丨 list / object / book / item / writer '丨, " list / object / book / item / id' 'and `` list / object / book / item / publishing- house ". The extensible markup language conversion file 12 defines conversion rules for two extensible markup messages', and is preferably an extensible style sheet language conversion (XSLT) file. According to the embodiment of the present invention, the storage device 11 stores two XSLT files. The first XSLT file defines a conversion rule for converting from a first XML schema file to a third XML schema file. The content is as follows, <? Xml version:丨 丨 1.0 '丨 encoding =' 'UTF-8 丨 丨? > < xs 1: sty 1 esheet xmlns: ns =, 丨 http: // www · my s am ples.com/samplel 丨 丨 xmlns: xsl = " http: //www.w3.org/1999/ XSL / Transformn > < xs1: template match: "" > < 1i st > < object >

200521728 五、發明說明(11) <book> <item> <name> <xsl:value-of select^’丨 ns:goods/ns:book/ns:name 丨’/> </name> <id> <xsl:value-of select:1’ns:goods/ns:book/ns: ISBN"/〉 </id> <wr i ter> <xsl :value-of slect=Mns:goods/ns:book/ns:authorM/> </wr i ter> <publ ishing-house> <xs 1 : va 1 ue-of select = ,,ns:goods/ns:book/ns:publisher,丨/ > 〈/publishing-house> </i tem> </book> </ob j ect> </ 1 i st> </xs1: temp 1 ate> </xs 1 : sty 1esheet> 第二XSLT文件定義了從第三XML schema文件轉換成第_ XML schema文件之轉換規則,内容如下所示,200521728 V. Description of the invention (11) < book > < item > < name > < xsl: value-of select ^ '丨 ns: goods / ns: book / ns: name 丨' / > < / name > < id > < xsl: value-of select: 1'ns: goods / ns: book / ns: ISBN " /> < / id > < wr i ter > < xsl: value-of slect = Mns: goods / ns: book / ns: authorM / > < / wr i ter > < publ ishing-house > < xs 1: va 1 ue-of select = ,, ns: goods / ns: book / ns: publisher, 丨 / > 〈/ publishing-house > < / item > < / book > < / ob j ect > < / 1 i st > < / xs1: temp 1 ate > < / xs 1: sty 1esheet > The second XSLT file defines the conversion rules from the third XML schema file to the _ XML schema file, as shown below,

200521728 五、發明說明(12) <?xml version」1·0" encoding:"UTF-8"?〉 <xs 1 : sty 1 esheet xmlns:ns = n http://www.mysamples.com/sample3n xmlns:xsl = "http://www. w3.org/1999/XSL/TransformM > <xsl:template match=M/"> <root> < i tem> <id> <xs1:va1ue-of select="ns:list/ns:object/ns:book/ns:item/ns:id"/> </id> <name> <xsl :value-of select = n ns: list/ns:object/ns:book/ns:item/ns:name" /> </name> <maker> <xs1:va1ue-o f select:” ns: list/ns:object/ns:book/ns:item/ns:write rM/> </maker> </i tem> </root> </xsl : template〉 </xs 1 : sty 1esheet> 第一XSLT文件以第三XML schema文件的元素架構為基礎,200521728 V. Description of the invention (12) <? Xml version "1 · 0 " encoding: " UTF-8 "?> ≪ xs 1: sty 1 esheet xmlns: ns = n http://www.mysamples.com / sample3n xmlns: xsl = " http: // www. w3.org/1999/XSL/TransformM > < xsl: template match = M / " > < root > < it tem > < id > < xs1: va1ue-of select = " ns: list / ns: object / ns: book / ns: item / ns: id " / > < / id > < name > < xsl: value- of select = n ns: list / ns: object / ns: book / ns: item / ns: name " / > < / name > < maker > < xs1: va1ue-o f select: ”ns: list / ns: object / ns: book / ns: item / ns: write rM / > < / maker > < / item > < / root > < / xsl: template> < / xs 1: sty 1esheet > The first XSLT file is based on the element schema of the third XML schema file,

0213-A40128TWF(N1);SNOWBALL·ptd 第16頁 200521728 五、發明說明(13) 定義其中每一元素要從第一 XML schema文件選擇哪一個元 素中所包含資料的轉換規則。在第一XSLT文件中,欲轉換 出符合第三XML schema文件中所包含之四元素"name”、 n wr i t erπ、·’ i d” 以及"pub 1 i sh i ng_house’·的轉換規則 (transformation ru 1 e)分另丨J 為,丨 <xs 1 : va 1 ue-〇f select = n ns: goods/ns : book/ns : name" />f,、’丨 <xs 1 : va1ue-of select^" ns: goods/ns : book/ns : author" />"、丨丨 <xsl:value-of select = " ns: goods/ns: book/ns: ISBN" / >>» 以及n <xsl:value - of select =丨丨 ns:goods/ns: book/ns: publisher 丨’/>丨丨 ° 第二 XSLT文件以第二XML schema文件的元素架構為基礎,定義 其中每一元素要從第三XML schema文件選擇哪一個元素中 所包含資料的轉換規則。在第一XSLT文件中,欲轉換出符 合第二XML schema文件中所包含之四元素,,idn、" name,, 以及’’ maker”的轉換規則分別為,1 <xSl : value-of select 二丨丨 ns:list/ns:object/ns:book/ns:item/ns:idn/> π、'丨 < x s 1 : v a 1 u e - o f0213-A40128TWF (N1); SNOWBALL · ptd Page 16 200521728 V. Description of the Invention (13) A conversion rule that defines which element in each element should be selected from the first XML schema file. In the first XSLT file, you want to convert the conversion rules that conform to the four elements contained in the third XML schema file: "name", n wr it erπ, "'id", and "pub 1 i sh i ng_house". (transformation ru 1 e) In addition, J is, < xs 1: va 1 ue-〇f select = n ns: goods / ns: book / ns: name " / > f ,, '丨 < xs 1: va1ue-of select ^ " ns: goods / ns: book / ns: author " / > ", 丨 丨 < xsl: value-of select = " ns: goods / ns: book / ns: ISBN " / > > »and n < xsl: value-of select = 丨 丨 ns: goods / ns: book / ns: publisher 丨 '/ > 丨 丨 ° The second XSLT file is a second XML schema file Based on the element's schema, define the transformation rules for which each element should select from the third XML schema file which element contains the data. In the first XSLT file, to convert the four elements contained in the second XML schema file, the conversion rules for idn, " name, and "maker" are 1 < xSl: value-of select two 丨 ns: list / ns: object / ns: book / ns: item / ns: idn / > π, '丨 < xs 1: va 1 ue-of

select = M ns:list/ns:object/ns:book/ns:i tem/ns:nameH />’’ 以及”<xsl:value-of select = n ns:list/ns:object/ns:book/ns:item/ns:write r”/>” 。 依據本發明實施例’每一個轉換表1 1 3包含一個表頭 以及多筆轉換明細紀錄。表頭包含轉換表名稱、類別、描 0213-A40128TWF(N1);5 ..ptd 第17頁 1^^ 200521728select = M ns: list / ns: object / ns: book / ns: item / ns: nameH / > '' and `` &x; l: value-of select = n ns: list / ns: object / ns: book / ns: item / ns: write r ”/ >”. According to the embodiment of the present invention, each conversion table 1 1 3 includes a header and multiple conversion detail records. The header includes the conversion table name, category, and description. 0213-A40128TWF (N1); 5..ptd Page 17 1 ^^ 200521728

五、發明說明(14) 述、來源(source)文件之識別域(namespace)以及目的 (target)文件之識別域。每一筆轉換明細紀錄包含來源文 件之元素路徑(XPath)、轉換原則以及目的文件之元素路 徑。轉換表11 3可紀錄於關聯式資料庫系統、物件資料庫 系統、檔案系統或其他用以儲存資料之系統。 轉換紀錄產生模組1 31首先 … 冬你、又1干i亦即來漏V. Description of the invention (14), the identification domain of the source file and the identification domain of the target file. Each conversion detail record contains the element path (XPath) of the source file, the conversion principle, and the element path of the destination file. The conversion table 11 3 may be recorded in a relational database system, an object database system, a file system, or another system for storing data. Conversion record generation module 1 31 First of all ... winter you, 1 dry i also come to drain

可擴展標示語言定義文件)、一目的文件(亦即目的可擴层 標示語言定義文件)以及一轉換規則定義文件(亦即可擴展 才示示语言轉換文件)。轉換紀錄產生模組1 3 1可解析 (parse)來源文件以及轉換規則定義文件,或解析來源文 件以及目的文件,得到來源文件之識別域以及目的文'件之 識別域。從目的文件中或轉換規則定義文件中,解析出所 包含之所有目的元素以及其目的結構路徑。針對每一目的 結構路徑,解析轉換規則定義文件,得到相應之來源結 路徑以及轉換原則。將解析出之來源文件之識別域、目的 文件之識別域,以及多筆包含來源結構路徑、轉換原則以 及目的結構路徑的轉換原則資料,依據轉換表113之資料 結構儲存到儲存裝置1丨中。Extensible markup language definition file), a purpose file (ie, the purpose expandable layer markup language definition file), and a conversion rule definition file (that is, it can be extended to display the language conversion file). The conversion record generation module 1 3 1 can parse the source file and the conversion rule definition file, or parse the source file and the destination file to obtain the identification domain of the source file and the identification domain of the destination file. From the destination file or the transformation rule definition file, resolve all the contained destination elements and their destination structure paths. For each destination structure path, parse the conversion rule definition file to get the corresponding source and destination path and conversion principles. The parsed identification domain of the source document, the identification domain of the destination document, 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 1 丨 according to the data structure of the conversion table 113.

依據本發明實施例,轉換紀錄產生模組丨3 }首先輸入 如上所示之第一 XMLschema文株、笛-ymt 及第一XSLT々杜甘士始文件第二XML schema文件以 ,其中第一XML schema文件為來源文件, Μ : ^ ^ ^ -XSLT # ,Γ # 文件為相應於目的文件之XML文件的轉 換規則疋義文件。轉換紀錄產生模組131會自動解析出來According to the embodiment of the present invention, the conversion record generating module 丨 3} firstly input the first XMLschema file, flute-ymt and the first XSLT Duganshi file as shown in the second XML schema file, where the first XML The schema file is the source file, Μ: ^ ^ ^ -XSLT #, Γ # The file is a translation rule definition file corresponding to the XML file of the destination file. Conversion record generation module 131 will automatically parse it out

200521728 五、發明說明(15) 源文件之識別域、目的文件之識別域,以及多筆包人 結構路徑、轉換原則以及目的結構路徑的轉換原^^源 依據轉換表11 3之資料結構儲存到儲存裝置丨丨中。'第1 ’ 係表示依據本發明實施例之範例第一轉換表立 a圖 包含上述自動解析出之資料。 〃 γ 第2 b圖係表示依據本發明實施例之範例第二轉 一 意圖’描述從相應於第三XML schema之XML文件轉換成表^不 應於第二XML schema之XML文件的所有轉換原則。、目 轉換樣版查詢模組1 32提供一圖形化操作介面 (graphic user interface; GUI),方便使用者輪入 =之識別域、目的文件之識別域、元素路徑或其他相關 貝料,至儲存裝置11中找出相應之轉換表113,並將查詢 結果顯示於顯示裝置1 4上。 轉換樣版產生模組133首先輸入兩個具轉換遞移關係 (transltlve relation)之第一轉換表以及第二轉換表, 5的f產生-轉換規則定義文# ’此轉換規則定•文件可 讓:應於第一轉換表之來源文件之結構化訊息轉換成相應 =第:轉換表之目的文件之結構化訊息。上述遞移關係可 =:轉換表113之來源文件之識別域以及目的文 識別 ^來”。轉換樣版產生模組133產生第三轉換表之表 US件f位儲存第一轉換表之來源文件,目的文件 存第二轉換表之目的文件。接下來,找出第一轉換 M iA的°構路仏與第二轉換表之來源結構路徑相同之成 對轉換明細紀錄’依據第一轉換表之來源結構路徑以及第200521728 V. Description of the invention (15) The identification domain of the source file, the identification domain of the destination file, and the multiple original structure path, conversion principle, and conversion destination path of the destination structure path. Storage device. The “first” is an example of a first conversion table according to an embodiment of the present invention, and the figure a contains the data parsed automatically. Γ γ Figure 2b shows an example of a second-to-one intent according to an embodiment of the present invention, describing all conversion principles for transforming an XML file corresponding to a third XML schema into a table ^ not an XML file corresponding to a second XML schema . The project conversion template query module 1 32 provides a graphical user interface (GUI), which is convenient for users to turn in the identification field of =, the identification field of the destination document, the element path, or other related materials, to storage. The corresponding conversion table 113 is found in the device 11, and the query result is displayed on the display device 14. The conversion template generation module 133 first enters two first conversion tables and a second conversion table with a transltlve relation. The 5 generation-conversion rule definition text # 'This conversion rule defines a file that allows : The structured information of the source document of the first conversion table should be converted to the structured information of the corresponding document of the first: conversion table. The above-mentioned transfer relationship may be =: the identification field of the source file of the conversion table 113 and the identification of the target text ". The conversion template generation module 133 generates a table of the third conversion table US f and stores the source file of the first conversion table , The destination file stores the destination file of the second conversion table. Next, find the pair of conversion details of the structure path of the first conversion M iA and the source structure path of the second conversion table. Source structure path and the first

200521728200521728

五、發明說明(16) 二轉換表之目的結構路徑, 以及相應之第三轉換表。 王相應之轉換規則定義文件 依據本發明之實施例,轉換 入如第2a圖所示之第一範例拖主產生模組133首先輸 第二範例轉換表。之後,找出、^,以及如第2b圖所示之 路徑與第二範例轉換表之來源以= = = = ; 例轉換表之紀錄322,第一範例艎#主綠1相應於第一犯 -铲办丨姑说生 範例轉換表之紀錄3 1 2相應於第 範例轉換表之紀錄313相應 接二 表紀錄323。依據第-轉換表之來源結 及ί二轉換表之目的結構路徑’ *生相應之轉換 規則疋義文件以及相應之第三轉換表。第3圖係表示依據 本發明實施例之範例第三轉換表示意圖,其中包含上述自 動解析出之資料’而自動產生之第三XSLT文件如下所示, <?xml version:" 1.0丨丨 encoding:丨丨 UTF-8丨丨?〉 <xsl : stylesheet xmlns:ns = ,fhttp: //www. mysamples. com/samplel" xmlns:xsl=n http://www.w3.org/ 1 999/XSL/Transformn > <xs 1 : template match =丨丨"> <root> < i tem> <id> <xs1:va1ue-o f select:丨丨 ns:goods/ns:book/ns: ISBNn / >5. Description of the invention (16) The purpose structure path of the second conversion table, and the corresponding third conversion table. Corresponding conversion rule definition file According to the embodiment of the present invention, the conversion into the first example drag master generating module 133 shown in Fig. 2a first enters the second example conversion table. After that, find, ^, and the path shown in Figure 2b and the source of the second example conversion table with = = = =; Example conversion table record 322, the first example 艎 # 主 绿 1 corresponds to the first offense -Should manage the record of the example conversion table 3 1 2 corresponding to the record of the first example conversion table 313 and the second table record 323. According to the source of the first conversion table and the destination structure path of the second conversion table ’, a corresponding conversion rule definition file and a corresponding third conversion table are generated. FIG. 3 is a schematic diagram of an exemplary third conversion table according to an embodiment of the present invention, which includes the third XSLT file automatically generated by the above-mentioned automatically parsed data, as shown below, <? Xml version: " 1.0 丨 丨encoding: 丨 丨 UTF-8 丨 丨? 〉 ≪ xsl: stylesheet xmlns: ns =, fhttp: // www. Mysamples. Com / samplel " xmlns: xsl = n http://www.w3.org/ 1 999 / XSL / Transformn > < xs 1 : template match = 丨 丨 " > < root > < ittem > < id > < xs1: va1ue-o f select: 丨 丨 ns: goods / ns: book / ns: ISBNn / >

0213-A40128TWF(Nl);SNOWBALL.ptd 第20頁 2005217280213-A40128TWF (Nl); SNOWBALL.ptd Page 20 200521728

五、發明說明(17) </id> <name> <xsl :value_of select:丨,ns:goods/ns:book/ns:namen/> </name> <maker> <xsl: value-of select = M ns:goods/ns:book/ns:authorM/> </maker> </i tem> </root> </xsl:template> </xs1: sty 1esheet> 雖然本發明實施例以兩個具轉換遞移關 例,但不限定於只可處理兩個轉換表,亦可之轉換表』 以上具有轉換遞移關係之轉換表,用以 =接文兩個s 文件。例如’假設有三個轉換表分別 3換規則定』V. Description of the invention (17) < / id > < name > < xsl: value_of select: 丨, ns: goods / ns: book / ns: namen / > < / name > < maker > < xsl: value-of select = M ns: goods / ns: book / ns: authorM / > < / maker > < / item > < / root > < / xsl: template > < / xs1: sty 1esheet > Although the embodiment of the present invention uses two examples of conversion and transfer, it is not limited to only two conversion tables that can be processed, and the conversion tables are also available. Text two s files. For example, "Suppose there are three conversion tables and three conversion rules."

件D。轉換樣版產生模組丨33合轉換至疋義〕 相請之c的來源結構路徑:二=;牛D為基礎,九找 依旦M k上A P 找相應於C之B的來源結構3 仫,最後找相應於C之B的來源結構路徑八。 圖係表示依據本發明實施例 換 文件管理之轉換紀錄產生方法之方法流程構圖,此方法…Piece D. Conversion template generation module 丨 33-combined conversion to righteousness] The source structure path of the phase c: two =; cattle D as the basis, nine to find the source structure B corresponding to C on Yidan M k 3 仫Finally, find the source structure path corresponding to B of C. FIG. Is a flow chart showing a method for generating a conversion record management method according to an embodiment of the present invention. This method ...

〇213-A40128TWF(Nl);SNOWBALL.ptd 第21頁 200521728〇213-A40128TWF (Nl); SNOWBALL.ptd Page 21 200521728

式碼所組成,並可被中央處理器載入並執行。 如步驟S411所示,首先輸入—來源文件、一目的文件 以及一轉換規則定義文件。如步驟5421所示,解析 Coarse)來源文件以及轉換規則定義文件,或解析來源文 件以及目的文件,得到來源文件之識別域以及目的文件之 如步驟S431所示,從目 中,解析出一個新的目的元 驟S432所示,解析轉換規則 路徑之來源結構路徑以及轉 斷’是否還存在未解析之目 S 4 3 1,繼續解析下一個目的 S441。如步驟S441所示,將 目的文件之識別域,以及多 則以及目的結構路徑的轉換 資料結構儲存到儲存裝置i j 的文件中或轉換規則定義文件 素以及其目的結構路徑。如步 疋義文件’得到相應目的結構 換原則。進行如步驟S433的判 的結構路徑,是則回到步驟 結構路徑,否則進行步驟 ,析出之來源文件之識別域、 筆包含來源結構路徑、轉換原 原則資料’依據轉換表丨丨3之 中。It can be loaded and executed by the central processing unit. As shown in step S411, first, a source file, a destination file, and a conversion rule definition file are input. As shown in step 5421, the Coarse source file and the conversion rule definition file are parsed, or the source file and the destination file are parsed to obtain the identification domain of the source file and the destination file. As shown in step S431, a new As shown in the objective element step S432, the source structure path of the conversion rule path and whether there are unresolved objectives S 4 31 in the transition break are analyzed, and the analysis proceeds to the next objective S441. As shown in step S441, the identification field of the destination file, and multiple and destination data paths are stored in the file of the storage device i j or the conversion rule defines the document element and its destination structure path. For example, you can get the corresponding structure of the target file. If the structural path judged as in step S433 is yes, then return to the step structural path, otherwise proceed to step, the identification field of the extracted source document, the pen contains the source structural path, and the conversion principle data is based on the conversion table.

第5圖係表示依據本發明實施士 文件管理之轉換樣版產生方法之|之化訊息之轉換 式碼所組成,並可被中央處理器栽入:圖’此方法由3Fig. 5 shows the method for generating a conversion template for document management according to the present invention. The conversion code is composed of code and can be planted by the central processor: Fig. This method consists of 3

如步驟S511所示,首先輸入 且=二。 (transitive relati〇n)之第一兩個矣、轉換遞移關係 上述遞移關係可由兩轉換表113之來=及第二轉換表, 目的文件之識別域來判斷。如步=文件之識別域以及 換表之表頭…,來源文件欄位=示’產生第三, 4子第一轉換表之來ίAs shown in step S511, first enter and = 2. (transitive relation) the first two, the transition relationship between the transfer can be determined from the two conversion tables 113 = and the second conversion table, the identification field of the destination file. For example, step = the identification field of the file and the header of the conversion table…, the field of the source file = shows ”to generate the third and fourth sub-first conversion table.

200521728 五、發明說明(19) 文件’目的文件欄位儲存第二轉換表之目的文件。 一如步驟S521所示,找出第一轉換表之目的結構路徑與 第二轉換表之來源結構路徑相同之成對轉換明細紀錄。如 步驟S522所示,依據第一轉換表之來源結構路徑以及第二 轉換表之目的結構路徑,產生第三轉換表之轉換明細紀一 錄。接下來進行如步驟S523所示之判斷,是否存在豆他之 成對轉換明細紀錄,若是則回到步驟S5 ^ =如:一示’產生相應於第三轉=轉丁換= 則定義文件。 ^發明提出一種電腦可讀取儲存媒體,用以儲存一電 月白程式,上述電腦程式用以實現結構化訊息之轉換文件管 !之:6換圖紀#錄/生方法’此方法會執行如上所述之步驟。 ,."--- 圖。此儲存媒體6。,用以儲儲 結構化訊息之轉換文件管理之轉換紀錄產 Λ 程式包含五個邏輯,分別為接收泰 方法。其電肠 之識別域邏輯622、解析目的地元辛 :j及目的文件 的地元素路徑之轉換原則邏 存-電腦程式腦nm:::存媒體,用以儲 文件管理之轉換樣版產生方法,此方法二奐 0213-A40128TWF(N1);^ -Ptd 第23頁 200521728200521728 V. Description of the invention (19) The file of the purpose file field stores the purpose file of the second conversion table. As shown in step S521, find the pair of detailed conversion records of the destination structure path of the first conversion table and the source structure path of the second conversion table. As shown in step S522, according to the source structure path of the first conversion table and the destination structure path of the second conversion table, a conversion detail record of the third conversion table is generated. Next, a judgment is performed as shown in step S523, and whether there is a pair-wise conversion detail record of the bean, and if so, it returns to step S5. ^ = Such as: "show" to generate a definition file corresponding to the third rotation = conversion Ding =. ^ The invention proposes a computer-readable storage medium for storing an electric moonlight program, and the above computer program is used to realize the conversion of structured information into a file management! Of: 6 change maps # Record / generation method 'This method will be executed Steps as described above. ,. " --- Figure. This storage medium 6. The conversion record management program used to store the structured information in the conversion file management program contains five logics, each of which is a receiving method. Its electric intestine's identification domain logic 622, analysis of the conversion principle of the destination element path: j and the destination element's path of the elementary logic are stored logically-computer program brain nm ::: storage media, used to store the conversion template generation method of file management, This method two: 0213-A40128TWF (N1); ^ -Ptd page 23 200521728

步驟。 放ϊ7圖係表*依據本發明實施例之結構化訊息之轉換 ϊ。:2::=版ΐ生方法之電腦可讀取儲存:體示意 圖此錯存媒體70,用以錯存 結構化訊息之轉換文件管理之轉換樣版 用。以:現 程式包含五個邏輯,分別為接收具轉換遞移關係之第2 換表以及第二轉換表邏輯721、產生第三轉換表表頭邏 722、取得第-轉換表之目的結構路徑與第二轉換表之 源路徑相同之成對轉換明細紀錄邏輯7 2 3、產生第三 ^之轉換明細紀錄邏輯724與產生轉換規則定義文;邏: 因此,藉由本發明所提供 理糸統及方法,有效分享已撰 或產生新的轉換規則定義文件 擔。 之結構化訊息之轉換文件管 寫完成之轉換規則定義文件 ’用以減輕開發人員的負 雖然本發明之實施例揭露如上,然其並非用以限〜 發明,任何熟悉此項技藝者,在不脫離本發明之精^本 圍内,當可做些許更動與潤飾,因此本發明之保護〇範 視後附之申請專利範圍所界定者為準。 固當step. Figure 7 is a table of the conversion of structured information according to an embodiment of the present invention. : 2 :: == Computer readable storage method of version generation method: Schematic diagram This wrong storage medium 70 is used to store the conversion template for structured information conversion file management. Take: The current program contains five logics, which are to receive the second conversion table and the second conversion table logic 721 with the conversion transfer relationship, generate the third conversion table header logic 722, and obtain the destination structure path of the -th conversion table and Paired conversion detail record logic with the same source path for the second conversion table 7 2 3. Generate the conversion detail record logic 724 for the third ^ and generate the conversion rule definition; logic: Therefore, by using the system and method provided by the present invention , Effectively share the burden of authoring or generating new conversion rule definition files. The structured information conversion file is completed. The conversion rule definition file is used to alleviate the developer ’s burden. Although the embodiment of the present invention is disclosed as above, it is not intended to limit the invention. Anyone who is familiar with this technology will not Without departing from the spirit of the present invention, some modifications and retouching can be done. Therefore, the protection of the present invention is subject to the scope of the appended patent application. Gudang

200521728 圖式簡單說明 為使本發明之上述目的、特徵和優點能更明顯易懂, 下文特舉實施例,並配合所附圖示,進行詳細說明如下·· 第1圖係表示依據本發明實施例之結構化訊息之轉換 文件管理系統之系統架構圖; 第2a圖係表示依據本發明實施例之範例第一轉換表示 意圖; 第2b圖係表示依據本發明實施例之範例第二轉換表示 意圖; 第3圖係表示依據本發明實施例之範例第三轉換表示 意圖; 、 第4圖係表示依據本發明實施例之結構化訊息之轉換 文件官理之轉換紀錄產生方法之方法流程圖; ^ 5圖係表示依據本發明實施例之結構化訊息之轉換 文件官理之轉換樣版產生方法之方法流程圖; ,6圖係表示依據本發明實施例之結構化訊息之轉換 文件官理之轉換紀錄產生方法之電腦可讀取儲存媒體示意 圖; 、 心 第7圖係表示依據本發明實施例之結構化訊 J件管理之轉換樣版產生方法之電腦可讀取儲存。媒體示、 圖。 符號說明 1 〇〜結構化訊息之轉換文件管理系統; 1卜儲存裝置; 1 2〜中央處理器;200521728 Brief description of the drawings In order to make the above-mentioned objects, features, and advantages of the present invention more comprehensible, the following specific examples are given in conjunction with the accompanying drawings to explain in detail as follows: Figure 1 shows the implementation according to the present invention Figure 2a is a schematic diagram of a structured message conversion file management system; Figure 2a is a schematic diagram of an exemplary first conversion table according to an embodiment of the present invention; Figure 2b is a schematic diagram of an exemplary second conversion table according to an embodiment of the present invention Figure 3 is a schematic diagram showing an exemplary third conversion table according to an embodiment of the present invention; Figure 4 is a flowchart showing a method for generating a conversion record official conversion document structured information according to an embodiment of the present invention; ^ FIG. 5 is a flowchart of a method for generating a conversion template of a structured message conversion document according to an embodiment of the present invention; FIG. 6 is a diagram of a conversion process of a structured message conversion document according to an embodiment of the present invention; Schematic diagram of computer-readable storage medium for record generation method; Figure 7 shows structured information J pieces according to the embodiment of the present invention The computer can read and store the managed conversion template generation method. Media show, figure. Explanation of symbols 1 0 ~ Structured information conversion file management system; 1 Bu storage device; 12 ~ Central processing unit;

200521728 囷式簡單說明 1 3〜記憶體; 1 4〜顯示裝置; 1 5〜輸入裝置; 1 6〜通訊裝置; 1 7〜匯流排; 1 3 1〜轉換紀錄產生模組 1 3 2〜轉換樣版查詢模組 133〜轉換樣版產生模組 3 11、3 1 2、3 1 3、3 1 4〜轉換明細紀錄; 321、322、323〜轉換明細紀錄/、一’ S411、S421.....S441〜操作步驟; S5U、S521.....S53卜操作步驟;’ 6 2 0〜結構化訊息之轉換文杜技" 電腦程式; 轉換文件官理之轉換紀錄產生方法 邏輯 6 2 1接收來源文件、目的文件以及轉換規則定義文件 6 2 2〜解析來源文件以及 fi ? 3〜紘iff曰认丨山-主 、文件之識別域邏輯’ 623解析目的地兀素路徑邏 6 2 4〜解析相應目的地元夸, 625〜產生轉換表邏輯;京路徑之轉換原則邏輯; 件管理之轉換樣版產生方法 係之第一轉換表以及第二轉換 7 2 0〜結構化訊息之轉換文 電腦程式; 7 2 1〜接收具轉換遞移關 表邏輯;200521728 Simple description of the style 1 3 ~ memory; 1 4 ~ display device; 15 ~ input device; 16 ~ communication device; 17 ~ bus; 1 3 1 ~ conversion record generation module 1 3 2 ~ conversion sample Version query module 133 ~ Conversion template generation module 3 11, 3 1 2, 3 1 3, 3 1 4 ~ Conversion detail record; 321, 322, 323 ~ Conversion detail record /, 1 'S411, S421 ... ..S441 ~ operation steps; S5U, S521 ..... S53 operation steps; '6 2 0 ~ structured message conversion text & technology " computer program; conversion file official conversion logic generation method logic 6 2 1Receive source file, destination file, and conversion rule definition file 6 2 2 ~ Analyze source file and fi? 3 ~ 纮 iff acknowledgement 丨 mountain-master, file identification domain logic '623 analysis destination element path logic 6 2 4 ~ Resolve the corresponding destination element, 625 ~ Generate the conversion table logic; Beijing Path's conversion principle logic; the first conversion table and the second conversion of the conversion pattern generation method of the file management 7 2 0 ~ the conversion message of the structured message computer Program; 7 2 1 ~ Receive with conversion and transfer table logic

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

0213-A40128TWF(Nl);SNOWBALL.ptd 第27頁0213-A40128TWF (Nl); SNOWBALL.ptd Page 27

Claims (1)

200521728 六、申請專利範圍 1 · 一種結構化訊息之轉換文件管理系統,包括·· 一儲存裝置,用以儲存一第一定義文件、一 文件以及一轉換文件,上述定義文件透過描述元素 (element)格式和元素間的階層包含關係 纟 訊息之内容,上述轉換文件包含相應於上述第義一定口構化 之上述結構化訊息轉換成相應於上述第二定義文件 結構化訊息的轉換規則;以及 述 一轉換紀錄產生模組,接收上述第一定 第二定義文件以及上述轉換文件,由上述定義文件述 轉換文件解析出相膚於μ、+、梦— 或上述 以及相應於上述第:定義=-來源識別喝 二定義文件或上述轉換之解二 =述第 由上述轉換文件中,解析出相應於上士 ^ 仏, 生包含上述來源構路徑’上述轉換紀錄產生模組產 路徑、上述來源ί::二上述目的識別碼、上述目的結ΐ 並儲存上述轉換述轉換原則之-轉換表, 件管;里Π請圍ί 述之Λ構化訊息之 作介面,m以輸入:述來源識::珣模組’提供圖形化操 元素名稱,至上述料 尋出1目的識別碼或— 碼、上述目的識别碼或上述元:::=,來源識別 應上述來源識别碼、上噃 述轉換表,將相 述轉換表顯示於顯示裝置上的識別媽或上述元素名稱之上 200521728 六、申請專利範圍 3·如申請專利範圍第1項所述之結構化訊息之轉換文 =管理系統,其中上述可擴展標示語言定義文件為可擴展 標示語言綱目(XML schema)文件或文件類型定義 (Document type Definition; DTD)文件。 4·如申請專利範圍第丨項所述之結構化訊息之轉換文 件管理系統,其中上述轉換文件為可延伸樣式表語言轉換 (XSLT)文件。 、 5 · —種結構化訊息之轉換文件管理系統,包括: 一儲,裝置,用以儲存一第一轉換表以及一第二轉換 表,其中每一上述轉換表包含一來源識別碼、一目的識別 碼,以及複數包含一目的結構路徑、一來源結構路徑、一 轉換原則的轉換規則紀錄,上述識別碼相應於一定義文 件’上述結構路徑相應於上述定義文件中之元素 (element);以及 一轉換樣版產 及上述第 來源識別 第三轉換 之目的結構路徑與 成對一第一轉換明 轉換表以 中之上述 別碼之 包含相應 應於上述 換表之一 6.如 於上述第 第一轉換 第三轉換 申請專利 生棋組接收具轉換遞移關係之上述第_ 二轉換表,產生一包含上述第一轉換表 碼以及上述第二轉換表中之上述目的識 表之轉換表表頭,搜尋上述第一轉換表 上述第一轉換表之來源結構路徑相同之 細紀錄以及一第二轉換明細紀錄,產生 一轉換明細紀錄之來源結構路徑以及相 明細紀錄之目的結構路徑之上述第三轉 明細紀錄。 範圍第5項所述之結構化訊息之轉換文200521728 VI. Scope of patent application1. A structured information conversion file management system, including a storage device for storing a first definition file, a file, and a conversion file. The above definition file is described by an element The hierarchy between the format and the elements contains the content of the message. The conversion file includes the conversion rules for the structured information corresponding to the first definition and the structured information corresponding to the second definition file. The conversion record generating module receives the above-mentioned first and second definition files and the above-mentioned conversion files, and the above-mentioned definition files and the conversion files are parsed to find out whether they correspond to μ, +, dream—or the above and corresponding to the above-mentioned: definition = -source Identification of the second definition file or the solution of the above conversion = The first conversion file from the above conversion analysis, corresponding to the sergeant ^ 仏, contains the above source structure path 'the above conversion record generation module production path, the above source ί :: The above-mentioned purpose identification code, the above purpose ends, and stores the above-mentioned transformation principle In the table, please refer to the interface of the Λ structured message as described above, m to enter: the description of the source :: 珣 module 'to provide the name of the graphical operation element, to the above materials to find a 1-purpose identification code or — Code, the above-mentioned purpose identification code or the above element ::: =, the source identification shall be the above-mentioned source identification code and the above-mentioned conversion table, and the relative conversion table is displayed on the display device or the above-mentioned element name on the display device 200521728 6 3. Patent application scope 3. The conversion of structured information as described in item 1 of the patent application scope = management system, where the above-mentioned extensible markup language definition file is an extensible markup language schema (XML schema) file or file type definition ( Document type Definition; DTD) file. 4. The structured message conversion file management system as described in item 丨 of the patent application scope, wherein the conversion file is an extensible style sheet language conversion (XSLT) file. 5, · A structured message conversion file management system, including: a storage, a device for storing a first conversion table and a second conversion table, wherein each of the above conversion tables includes a source identification code, a purpose An identification code, and a plurality of conversion rule records including a destination structure path, a source structure path, and a conversion principle, the identification code corresponds to a definition file 'the structure path corresponds to an element in the definition file; and The conversion of the sample product and the destination structure path of the first source identification and the third conversion mentioned above and the pair of a first conversion specification conversion table with the above-mentioned other codes should correspond to one of the above conversion tables. Converting the third conversion application patent student chess group to receive the above-mentioned second conversion table with a conversion transfer relationship, and generating a conversion table header including the first conversion table code and the above-mentioned purpose identification table in the second conversion table, Search the first conversion table for a detailed record with the same source structure path as the first conversion table and a second conversion detail record To generate the above-mentioned third transfer detail record of a source detail path of the conversion detail record and a destination structure path of the detail detail record. Translation of structured messages as described in Scope Item 5 200521728 六、申請專利範圍 件管理系統,其中上述轉換樣版產生模組依據上述第三轉 換表以及上述第三轉換明細紀錄,產生一轉換文件。 7·如申請專利範圍第5項所述之結構化訊息之轉換文 件管理系統,其中上述定義文件為可擴展標示語言綱目 (XML schema)文件或文件類型定義(Document type Definition;DTD)文件。 8 ·如申請專利範圍第6項所述之結構化訊息之轉換文 件管理系統’其中上述轉換文件為可延伸樣式表語言轉換 (XSLT)文件。 ' 9· 一種結構化訊息之轉換文件管理方法,被一具有一 中央處理器之電子裝置執行,其方法包括下列步驟:200521728 6. Application scope Patent management system, in which the conversion template generation module generates a conversion file based on the third conversion table and the third conversion detail record. 7. The structured message conversion file management system as described in item 5 of the scope of patent application, wherein the above definition file is an extensible markup language schema (XML schema) file or a document type definition (DTD) file. 8 · The structured message conversion file management system described in item 6 of the scope of patent application, wherein the conversion file is an extensible style sheet language conversion (XSLT) file. '9. A structured message conversion file management method is executed by an electronic device with a central processing unit. The method includes the following steps: 接收一第一定義文件、一 件,其中上述定義文件透過描 素間的階層包含關係來定義結 文件包含相應於上述第一定義 成相應於上述第二定義文件之 則; 第二定義文件以及一轉換文 述元素(element)格式和元 構化訊息之内容,上述轉換 文件之上述結構化訊息轉換 上述結構化訊息的轉換規 出 速第一疋義文件之一目的識別碼, 由上述第二定義文件或 的結構路徑; —^轉換文件中,解析出一目 由上述轉換文件中,解把山i 之-轉換原則以及一來源沾::相應於上述目的結構路徑 y、、、°構路徑;以及A first definition file and a piece are received, wherein the definition file defines a rule that includes a rule corresponding to the first definition to correspond to the second definition file through a hierarchical inclusion relationship between pixels; a second definition file and a Conversion of textual element format and meta-structured message content, the conversion of the structured information of the conversion document, the conversion of the structured information, the identification code of one of the first definition files, is defined by the second definition File or structure path; ^ in the conversion file, parse out a project from the above conversion file, explain the conversion principle of the mountain i and a source :: the structural path y ,,, and ° corresponding to the above purpose; and 20052Π2820052Π28 產生包a上述來源識別碼、上述目 、 六、申請專利範圍 的結構路徑、上述來源結構路徑以及上述:拖:、上述目 換表,並儲存上述轉換表於上述儲存媒^轉換原則之—轉 10.如申請專利範圍第9項所述之 件管理方法,更包含下列步驟: 構化況息之轉換文 輪入上述來源識別碼、上述目的識別碼或元辛名避. 至上述儲存裝置中搜尋出相應上述來源識別碼、’、 从 識別碼或上述元素名稱之上述轉換表;以及·’、、 ;L的 將相應上述來源識別碼、上述目的識別碼或 名%之上述轉換表顯示於顯示裝置上。 素 1 1 ·如申請專利範圍第9項所述之結構 :管理方法,|中上述定義文件為可擴展標示:言綱目文 (XML schema)文件或文件類型定義(D〇Cument t ^ Definition; DTD)文件。 YPe >12.如申請專利範圍第9項所述之結構化訊息之 (m:::’中上述轉換文件為可延伸樣式表語言轉換 1 3 · —種結構化訊息之轉換文件管理方法,被一具 一中央處理器之電子裝置執行,其方法包括下列步驟'· 接收具轉換遞移關係之上述第一轉換表以及上述 轉換表,其中每一上述轉換表包含一來源識別碼、一目^ 識別碼、以及複數包含一目的結構路徑、一來源#構路 徑、一轉換原則的轉換規則紀錄’上述識別碼相於一定 義文件,上述結構路徑相應於上述定義文件中之^素.Generate a package of the above-mentioned source identification code, the above-mentioned project, the structure path of the patent application scope, the above-mentioned source structure path, and the above-mentioned: drag :, the above-mentioned project exchange table, and store the above-mentioned conversion table in the above-mentioned storage medium ^ conversion principle-conversion 10. The method of item management as described in item 9 of the scope of patent application, further comprising the following steps: structure the conversion text into the above-mentioned source identification code, the above-mentioned purpose identification code or Yuanxin name avoidance. To the above storage device Search for the above conversion table corresponding to the above-mentioned source identification code, ', from the identification code or the above element name; and ·' ,,; L to display the above conversion table corresponding to the above-mentioned source identification code, the above-mentioned destination identification code or name% Display device. Element 1 1 · The structure described in item 9 of the scope of patent application: management method, | The above definition file is an extensible mark: XML schema file or file type definition (D0Cument t ^ Definition; DTD )file. YPe > 12. According to the structured information described in item 9 of the scope of the patent application (m ::: ', the above conversion file is an extensible style sheet language conversion 1 3-a method for managing the conversion file of structured information, It is executed by an electronic device with a central processing unit. The method includes the following steps: · receiving the first conversion table and the conversion table with a conversion transfer relationship, wherein each of the conversion tables includes a source identification code and an item ^ The identification code and the plural include a destination structure path, a source #structural path, and a conversion rule record of a conversion principle. The above-mentioned identification code is relative to a definition file, and the above-mentioned structure path corresponds to a element in the above-mentioned definition file. 200521728 六、申請專利範圍 產生一包含上述第一轉 第二轉換表中之上述目 表頭; 換表中之上述來源識別碼以及上述 的識別碼之一第三轉換表之轉換表 搜哥上述第—轉換表之目 表之來源結構路徑相同之出料楚絲搞=迷第一轉換 第二轉換明細紀錄;以及 、、己錄U及一 /一產生包含相應於上述第一轉換明細紀錄之來 徑=及相應於上述第:轉換明細紀錄之目路 述第三轉換表之一第三轉換明細紀錄。 構路仏之上200521728 VI. The scope of the patent application generates a header that includes the above-mentioned header in the first to second conversion table; the source identification code in the conversion table and one of the identification codes in the third conversion table. —The source table of the conversion table has the same source structure and path. Chu Si = = the first conversion and the second conversion detail record; and, the recorded U, and the one / one generates a record containing the corresponding first conversion detail record. Path = and corresponding to the above-mentioned item No .: Conversion detail record, one of the third conversion list, third conversion detail record. Above the road 々二广專利範圍第13項所述之結構化訊息之轉換 _ I _ / ,更包含一步驟,依據上述第三轉換表以及 上述第二轉換明細紀錄,產生一轉換文件。 \5·如申請專利範圍第1 3項所述之結構化訊息之轉換 文件管理方法,其中上述定義文件為可擴展標示語言綱目 (XML schema)文件或文件類型定義(Documen1: type Def ini tion; DTD)文件。 1 6 ·如申請專利範圍第i 4項所述之結構化訊息之轉換 文件管理方法,其中上述轉換文件為可延伸樣式表語言轉 換(XSLT)文件。转换 The conversion of structured information described in item 13 of Erguang patent scope _ I _ / further includes a step of generating a conversion file according to the third conversion table and the second conversion detail record. \ 5 · The method for managing the conversion file of structured information as described in item 13 of the scope of the patent application, wherein the above definition file is an extensible markup language schema (XML schema) file or a file type definition (Documen1: type Def ini tion; DTD) file. 16 · The structured information conversion document management method described in item i 4 of the scope of patent application, wherein the conversion file is an extensible 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 'The computer program is used to load into a computer system and cause the computer system to execute any one of the items 9 to 12 of the scope of patent applications The method described. 1 8 · — a computer-readable storage medium for storing a computer program 0213-A40128TWF(Nl);SN0WBAa.ptd 第32頁 2005217280213-A40128TWF (Nl); SN0WBAa.ptd Page 32 200521728 0213-A40128TWF(N1);SNOWBALL.ptd 第33頁0213-A40128TWF (N1); SNOWBALL.ptd Page 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 true TW200521728A (en) 2005-07-01
TWI262404B 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)

Cited By (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

Cited By (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
TWI262404B (en) 2006-09-21

Similar Documents

Publication Publication Date Title
US8176412B2 (en) Generating formatted documents
US7249316B2 (en) Importing and exporting markup language data in a spreadsheet application document
O’connor et al. Mapping master: a flexible approach for mapping spreadsheets to OWL
Collard et al. Supporting document and data views of source code
US20090083297A1 (en) Apparatus and method of customizable model import and export to and from XML schema formats
Jarrar et al. MashQL: a query-by-diagram topping SPARQL
US20130124969A1 (en) Xml editor within a wysiwyg application
Breitling A standard transformation from XML to RDF via XSLT
Rudić et al. Conversion of bibliographic records to MARC 21 format
O'Connor et al. M2: A Language for Mapping Spreadsheets to OWL.
TW200521728A (en) System, method and machine-readable storage medium of transformation document management for structural language message
Harlow Data Munging tools in preparation for RDF: Catmandu and LODRefine
CN107609155B (en) Construction method of data asset model based on XBRL standard
Mou et al. Visual orchestration and autonomous execution of distributed and heterogeneous computational biology pipelines
da Silva et al. UPData: a data curation experiment at U. Porto using DSpace
Joshi Beginning XML with C# 2008: from novice to professional
Li et al. Research on information transformation based on XMI
Thoden Modeling scholarly publications for sustainable workflows
Jakovljević Creation of Structured Formatted Database for Alumni Project
Wu et al. Life Cycle Inventory Management
CN114239528A (en) File generation method, device, equipment and storage medium
Maarouf Xml integrated environment for service-oriented data management
Pavlát Transforming XML documents based on user-defined rules
Ramalho Innovations in XML Applications and Metadata Management: Advancing Technologies: Advancing Technologies
Jacobs Generating XML Content

Legal Events

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