发明名称 Modularizing complex XML data for generation and extraction
摘要 A mechanism is provided for creating modules from an XML schema. The mechanism includes creating a syntax tree from a sample XML fragment of the XML schema, creating a module with a list of parameters based on the syntax tree, identifying variable pieces of information in the syntax tree to be inserted in the list of parameters with a variable sign, and inserting the variable information into the list of parameters. The mechanism includes inserting another module in the syntax tree of the module, in which the other module corresponds to another sample XML fragment and has another list of parameters, and identifying the other module with the variable sign in the syntax tree of the module. The mechanism includes inserting the other module into the list of parameters of the module in which the other module to serve as a parameter, and providing an option for constraining the module.
申请公布号 US9588997(B2) 申请公布日期 2017.03.07
申请号 US201314022410 申请日期 2013.09.10
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Hui Joshua W.;Knoop Sarah E.;Schwarz Peter M.;Timm John T.
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Cantor Colburn LLP 代理人 Cantor Colburn LLP
主权项 1. An apparatus for creating modules from a XML schema, the apparatus comprising: memory comprising computer-executable instructions; and a processor executing the computer-executable instructions, the computer-executable instructions, when executed by the processor, cause the processor to perform operations comprising: creating a syntax tree from a sample XML, fragment, wherein the sample XML fragment is an instance of a sample fragment of the XML schema; creating a module based on the syntax tree of the sample XML fragment, the module comprising a list of parameters and the syntax tree; identifying, on a computer, variable pieces of information in the syntax tree to be inserted in the list of parameters; designating in the syntax tree the variable pieces of information with a variable sign to be inserted in the list of parameters, the variable sign is a visible designation of “V” displayed at each of the variable pieces of information, wherein fixed pieces of information are designated with a fixed sign, the fixed sign is another visible designation of “F” displayed at each of the fixed pieces of information, wherein the visible designation “V” of the variable sign is different from the another visible designation “F” of the fixed sign, wherein, prior to designating in the syntax tree the variable pieces of information with the variable sign, each of the variable pieces of information were initially fixed pieces of information designated with the another visible designation “F”; inserting the variable pieces of information into the list of parameters of the module based on the variable pieces of information having been designated with the variable sign; inserting another module in the syntax tree of the module, the another module corresponding to another sample XML fragment of the XML schema and having another list of parameters; identifying the another module with the variable sign in the syntax tree of the module; inserting the another module designated with the variable sign into the list of parameters of the module in which the another module serves as a parameter; and providing an option for constraining the module, wherein constraining the module allows creation of a cloned module by refining the list of parameters of the module already existing without visibly displaying mapping to the sample XML, fragment and without requiring a user to be aware of the mapping to the sample XML fragment.
地址 Armonk NY US