CN101763255B - Format conversion method and device of special interface tool - Google Patents

Format conversion method and device of special interface tool Download PDF

Info

Publication number
CN101763255B
CN101763255B CN2008102405350A CN200810240535A CN101763255B CN 101763255 B CN101763255 B CN 101763255B CN 2008102405350 A CN2008102405350 A CN 2008102405350A CN 200810240535 A CN200810240535 A CN 200810240535A CN 101763255 B CN101763255 B CN 101763255B
Authority
CN
China
Prior art keywords
widget
source
template
file
format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2008102405350A
Other languages
Chinese (zh)
Other versions
CN101763255A (en
Inventor
朱春梅
白曦
程宝平
张鑫
侯睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN2008102405350A priority Critical patent/CN101763255B/en
Publication of CN101763255A publication Critical patent/CN101763255A/en
Application granted granted Critical
Publication of CN101763255B publication Critical patent/CN101763255B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses format conversion method and device of a special interface tool, which are used for realizing the conversion of widget among arbitrary formats. The widget format conversion method comprises the following steps of: selecting a corresponding target template from a template base according to a target format to be converted of a source widget, wherein each template in the template base is used for describing file information of a widget in a corresponding format; unpacking the source widget to obtain a source widget file set; carrying out format recognition according to the source widget file set to determine a source format, and selecting a corresponding source template from the template base according to the source format; carrying out correlation on the file information with the same semanteme in the source template and the target template according to a widget body, and generating a target widget file set on the basis of the source widget file set; and packing the target widget file set to obtain a target widget, wherein the widget body is used for describing the semanteme correlation of the file information among each template in the template base. The invention reduces the development cost of the widget and improves the development efficiency of the widget and code reuse ratio.

Description

A kind of format conversion method of special interface tool and device
Technical field
The present invention relates to moving communicating field, relate in particular to the format conversion technology of a kind of special interface tool (widget).
Background technology
Widget (special interface tool) is a kind of web application of lightweight; Be used for realizing function that certain is single and the content on Web2.0 or the Internet (the Internet) carried out fast directly visit that user installation just can be used widget after being responsible for moving the engine of widget.Performance history for standardization widget; W3C (World Wide Web Consortium; World Wide Web Consortium) widget is defined: widget is a kind of mutual single goal application program; Widget is used to show or upgrade the data on the local perhaps Web, and is packed so that download and be installed on user's the PC (Personal Computer, personal computer) or portable terminal through certain form.
Be different from the application program on traditional P C and the portable terminal; Widget uses the Web technology of standard; HTML (Hyper-Text Markup Language for example; HTML), XML (ExtensibleMarkup Language, extendible SGML), CSS (Cascading Style Sheets, CSS) and JavaScript.Above-mentioned Web technology also is AJAX (Asynchronous JavaScript andXML; Asynchronous JavaScript and XML) core technology that uses in the performance history; Thereby widget itself also is that a kind of AJAX uses, and we can say that the AJAX technology has promoted generation and the development of widget.
Along with the user increases the increasing demand of widget; The user often need move the Widget of multiple form on PC or portable terminal; Though widget is with the Web technological development of standard, generally, the engine of being responsible for operation different-format Widget is different.Main cause is: the Widget of different-format; Packing form and the pack arrangement that Property Name in its configuration file is not quite similar, the Widget file set adopts is not quite similar, is responsible for the operation platform that the engine of operation different-format Widget supports and be not quite similar, and is used for the API (API) of call operation systemic-function as yet not by standardization.This just needs the user that a plurality of engines are installed on PC or portable terminal in advance; Cause system resource a large amount of on PC or the portable terminal occupied; Especially for the limited portable terminal of system resource, a plurality of engines are installed may influence other professional normal use of user.Therefore, how the widget that an engine just can move various forms only is installed on PC and portable terminal, just how widget is carried out format conversion, become present widget hot research fields.
For possessing the user of professional domain knowledge with the programming experience; Can adopt manual type that widget is carried out format conversion; But conversion efficiency and accuracy rate are all lower, and most of user can't realize the format conversion of widget owing to do not possess professional domain knowledge and programming experience.
In the prior art; The format conversion instrument of widget is provided: Amnesty Generator and Widgetop; But can only realize having the conversion of the widget of specific format to another kind of specific format; For example Amnesty Generator can only convert Google gadget in the Windows Vista avris hurdle gadget, and Widgetop can only convert the widget that operates on the Apple Dashboard into may operate on the webpage Web widget.It is thus clear that the extensibility of the format conversion instrument of existing widget is lower, can not realize the conversion of widget between arbitrary format, makes that the cost of development of widget is higher, development efficiency and the rate of code reuse of widget are lower.
Summary of the invention
The present invention provides format conversion method and the device of a kind of special interface tool widget, in order to realize the conversion of widget between arbitrary format.
The format conversion method of special interface tool provided by the invention comprises:
From ATL, select corresponding To Template according to source special interface tool widget object format to be converted, wherein, each template in the ATL is used to describe the fileinfo of the widget of corresponding form;
Source widget unpacked obtain source widget file set, according to source widget file set source widget is carried out format identification and confirm source format, and from ATL, select corresponding From Template according to source format;
According to the widget body semantic identical fileinfo in From Template and the To Template is carried out association; And combine source widget file set to generate target widget file set; Target widget file set packed obtains target widget, and said widget body is used for the semantic association relation of fileinfo between each template of description template storehouse.
The format conversion apparatus of special interface tool provided by the invention comprises:
First memory module: be used for the storing template storehouse, each template in the said ATL is used to describe the fileinfo of the special interface tool widget of corresponding form;
Second memory module: be used to store the widget body, said widget body is used for the semantic association relation of fileinfo between each template of description template storehouse;
To Template is selected module: be used for selecting corresponding To Template according to source widget object format to be converted from ATL;
Parse module: be used for source widget unpacked and obtain source widget file set;
Packet analysis module: be used for source widget being carried out format identification and confirm source format, and from ATL, select corresponding From Template according to source format according to source widget file set;
Semantic mapping module: be used for the semantic identical fileinfo of From Template and To Template being carried out association, and combine source widget file set to generate target widget file set according to the widget body;
Packetization module: being used for target widget file set packed obtains target widget.
The format conversion method of special interface tool provided by the invention and device; Widget body and ATL have been made up; From ATL, select corresponding To Template according to object format; Source widget is unpacked the source widget file set that obtains carry out format identification and confirm source format, and from ATL, select corresponding From Template, carry out related to From Template with To Template according to the widget body according to source format; And combine source widget file set to generate target widget file set, obtain target widget after the packing.The present invention has realized the conversion of widget between arbitrary format under the guidance of widget body; Reduced the cost of development of widget; Improved development efficiency and the rate of code reuse of widget, thereby laid the foundation for the transplanting of widget on different operation platforms.
Description of drawings
Fig. 1 is the format conversion method process flow diagram of widget in the embodiment of the invention;
Fig. 2 is the method flow diagram that generates target widget file set in the embodiment of the invention;
Fig. 3 converts the method flow diagram of S60 widget into for Dashboard widget in the embodiment of the invention;
Fig. 4 is the format conversion sequence chart of widget in the embodiment of the invention;
Fig. 5 is the format conversion apparatus block diagram of widget in the embodiment of the invention;
Fig. 6 is the structured flowchart of packet analysis module in the embodiment of the invention;
Fig. 7 is the structured flowchart of Semantic mapping module in the embodiment of the invention.
Embodiment
In the embodiment of the invention; In order to realize the conversion of widget between arbitrary format; Widget body and ATL have at first been made up; Comprise a plurality of templates in the ATL, each template is used to describe the fileinfo of the widget of corresponding form, and the widget body is used for the semantic association relation of fileinfo between each template of description template storehouse.For the ease of distinguishing, widget to be converted can be called source widget, and the form of source widget can be called source format; The widget that generates after the format conversion can be called target widget, and the form of target widget can be called object format.In order to realize the conversion of widget from the source format to the object format; Source format according to source widget is selected From Template from ATL; According to source widget object format select target template from ATL to be converted; Under the guidance of widget body, carry out the related of From Template and To Template, thereby can realize the conversion of widget between arbitrary format, reduced the cost of development of widget; Improve development efficiency and the rate of code reuse of widget, thereby lay the foundation for the transplanting of widget on different operation platforms.
As shown in table 1, be the file structure of existing main flow widget.Can find out that from table 1 though the extension name (.zip/.wgz/.widget/.gg) of main flow widget file is not quite similar, the packing form is the zip form, is essentially a zip file; Include a widget configuration file and a widget master file in the widget file set that obtains after widget unpacks; The form of the Property Name of widget configuration file and widget master file is not quite similar.
Table 1
Engine Engine Packing form Format Icon Icon Configuration file Manifest Master file Main File
Dashboard Zip form (.zip) Icon.png Info.plist Main.html
Nokia Zip form (.wgz) Icon.png Info.plist Main.html
Yahoo! Zip form (.widget) - *.kon *.kon
Google Zip form (.gg) - gadget.gmanifest Main.xml
Opera Zip form (.zip) - config.xml Index.html
Based on analysis to the file structure of existing main flow widget; In the ATL that makes up; The fileinfo of the widget of the described corresponding form of each template; File attribute title and file label should be comprised, and through the described fileinfo of all templates in the logging template storehouse in the widget body, the purpose of the semantic association of fileinfo relation between each template can be reached in the description template storehouse.Illustrate; The file attribute title comprises the Property Name of configuration file; The Property Name of the described configuration file of each template is also inequality, in order to describe the semantic association relation of the Property Name of configuration file between each template, in the widget body; Correspondence is provided with Information_Property_List (configuration file) type; The Information_Property_List class has several attributes, and for example wipl_name (title), wipl_identifier (identifier), wipl_version (version), wipl_main_file (form of master file), wipl_location (position), wipl_size (size) etc. are to each attribute; With the Property Name of the configuration file that all templates adopted sub-attribute, be indicated as semantic identical synonym attribute as this attribute.In the widget body, also be provided with Widget_Object (widget object), User_Interface_Component (graphics part), Event (incident), DTD (DTD) etc. types, repeat no more.The widget body is described through RDF (resource description framework) language.
Based on above-mentioned analysis, the embodiment of the invention provides the format conversion method of a kind of widget, and is as shown in Figure 1, comprises step:
S101, from ATL, select corresponding To Template according to source widget object format to be converted, wherein, comprise a plurality of templates in the ATL, each template is used to describe the fileinfo of the widget of corresponding form;
S102, source widget unpacked obtain source widget file set, according to source widget file set source widget is carried out format identification and confirm source format, and from ATL, select corresponding From Template according to source format;
S103, semantic identical fileinfo in From Template and the To Template is carried out association according to the widget body; And combine source widget file set to generate target widget file set; Target widget file set packed obtain target widget; Wherein, the widget body is used for the semantic association relation of fileinfo between each template of description template storehouse.
In S101, the fileinfo of the widget of the corresponding form that each template is used to describe specifically comprises file attribute title and file label.Each template exists with document form in the ATL; The form of template file can be TXT or XML; Template file adopts XML in the embodiment of the invention, makes template to transmit through Web, and can utilize the JDOM kit of increasing income that template is generated and resolves.Development along with the widget technology; If the form of existing widget is modified or has newly produced the form of widget; Can be according to the modification that the form of existing widget is done; In ATL, revise the corresponding template of form of existing widget, and, in ATL, increase the corresponding template of form of the new widget that produces according to the form of the widget of new generation.
In S102, because widget all adopts the zip form to pack, so source widget comes down to a zip file, the mode that unpacks to the zip file is very many, for example can adopt the java.util.zip bag to unpack; Source widget unpacked obtain source widget file set, comprise source widget master file and source widget configuration file.
Preferable; When the form of source widget master file is HTML in source widget being unpacked the source widget file set that obtains; The form of source widget master file is converted into XML from HTML,, has simplified subsequent operation through the widget master file is carried out uniform format.General two kinds of form: HTML and the XML of adopting of widget master file.The dirigibility of HTML grammer is higher, makes writing of HTML code have diversity, for example; Have only the beginning label and do not have end-tag or the like; And the XML grammer compares standard and rigorous, and therefore, the uniform format of widget master file adopts XML in the embodiment of the invention.
Wherein, the form of source widget master file is converted into XML from HTML, specifically comprises:
The end-tag that lacks in step 1, the source widget master file to html format adds; Sequence error or unmatched end-tag are made amendment; Mistake to title accent type label is corrected; Chaotic or incomplete label recovers, and the property value that does not add double quotation marks is replenished double quotation marks;
Step 2, the label of html format in the source widget master file of html format is converted into the label of XML form, obtains the source widget master file of XML form.
Though the form of the configuration file of different-format widget is XML, the Property Name of configuration file and the label of configuration file be difference to some extent.In the embodiment of the invention; In ATL, set up the corresponding relation between the label of form and widget configuration file of widget in advance, the label that possibly occur in the configuration file with the widget of each form is recorded in this corresponding relation with the form of key word.When source widget file set is transfused to; Label with the keyword form record in source widget configuration file and the corresponding relation in the widget file set of source is carried out tag match; Tag match result according to source widget configuration file can confirm source format, just can from ATL, select corresponding From Template according to source format.
In S103, according to the widget body semantic identical fileinfo in From Template and the To Template is carried out association, and combine source widget file set to generate target widget file set, as shown in Figure 2, specifically comprise:
S201, semantic identical fileinfo in From Template and the To Template is carried out association according to the widget body;
S202, according to the incidence relation of semantic identical file attribute title in From Template and the To Template, and combine source widget file set, confirm file attribute title and property value thereof with the corresponding object format of file attribute title of source format;
S203, according to the incidence relation of semantic identical file label in From Template and the To Template, the content of source widget file set is filled in the To Template, generate target widget file set.
At last, the target widget file set that generates packed according to the zip form obtains the zip file, and the zip file is given and the corresponding extension name of object format, has promptly accomplished the format conversion of widget.Wherein, the mode that the widget file set is packed is very many, for example can adopt the java.util.zip bag to pack.
Specify the format conversion method of widget below with specific embodiment.Suppose that source widget is the Dashboard widget of Apple, target widget is the S60 widget of Nokia, and is as shown in Figure 3, comprises the steps:
S301, according to Dashboard widget object format to be converted, from ATL, select corresponding To Template, selected here To Template is a Nokia S60 widget template.
S302, Dashboard widget unpacked obtain Dashboard widget file set; Dashboard widget file set comprises Dashboard widget master file and Dashboard widget configuration file; The form of Dashboard widget master file is HTML, and the name of Dashboard widget configuration file is called Info.plist.
S303, the form of Dashboard widget master file is converted into XML from HTML.
S304, according to Dashboard widget file set Dashboard widget is carried out format identification and confirm source format; And from ATL, select corresponding From Template according to source format, selected here From Template is an Apple Dashboard widget template;
Specifically be according to the corresponding relation between the label of widget form and widget configuration file; Dashboard widget configuration file is carried out tag match; Tag match result according to Dashboard widget configuration file confirms source format, and from ATL, selecting corresponding From Template according to source format is Apple Dashboard widget template.
S305, semantic identical fileinfo in Apple Dashboard widget template and the Nokia S60 widget template is carried out association, and combine Dashboard widget file set to generate S60 widget file set according to the widget body;
For example, in the widget body, the Identifier in CFBundleIdentifier in the Apple Dashboard widget template and the Nokia S60 widget template belongs to the synonym attribute; Version among CFBundleVersion in the AppleDashboard widget template and the Nokia S60 widget belongs to the synonym attribute, and above-mentioned attribute and semantic association relation thereof are following with the RDF language description:
<rdf:RDF
xmlns=″http://www.owl-ontologies.com/Ontology1221011256.owl#″
xml:base=″http://www.owl-ontologies.com/Ontology1221011256.owl″
xmlns:rdfs=″http://www.w3.org/2000/01/rdf-schema#″
xmlns:xsd=″http://www.w3.org/2001/XMLSchema#″
xmlns:owl=″http://www.w3.org/2002/07/owl#″
xmlns:rdf=″http://www.w3.org/1999/02/22-rdf-syntax-ns#″>
The external file that need use when making up the Widget body
<owl:DatatypeProperty?rdf:ID=″wipl_identifier″>
<rdfs:domain?rdf:resource=″#Information_Property_List″/>
<rdfs:range?rdf:resource=″&xsd;string″/>
</owl:DatatypeProperty>
Defined attribute wipl_identifier, the field of definition of this attribute is Information_Property_List,
Codomain is a character string
<owl:DatatypeProperty?rdf:ID=″CFBundleIdentifier″>
<rdfs:subProperty?Of?rdf:resource=″#wipl_identifier″/>
</owl:DatatypeProperty>
Defined attribute CFBundleIdentifier, this attribute is the sub-attribute of wipl_identifier
<owl:DatatypeProperty?rdf:ID=″Identifier″>
<rdfs:subProperty?Of?rdf:resource=″#wipl_identifier″/>
</owl:DatatypeProperty>
Due to attribute Identifier, this attribute is the sub-attribute of wipl_identifier
<owl:DatatypeProperty?rdf:ID=″CFBundleVersion″>
<rdfs:domain?rdf:resource=″#Information_Property_List″/>
<rdfs:subPropertyOf?rdf:resource=″#release_version″/>
</owl:DatatypeProperty>
Defined attribute CFBundleVersion, the field of definition of this attribute is Information_Property_List,
This attribute is the sub-attribute of release_version
<owl:DatatypeProperty?rdf:ID=″release_version″>
<rdfs:subPropertyOf?rdf:resource=″#wipl_version″/>
</owl:DatatypeProperty>
Defined attribute release_version, this attribute is the sub-attribute of wipl_version
<owl:DatatypeProperty?rdf:ID=″wipl_version″>
<rdfs:domain?rdf:resource=″#Information_Property_List″/>
<rdfs:range?rdf:resource=″&xsd;string″/>
</owl:DatatypeProperty>
Defined attribute wipl_version, the field of definition of this attribute is Information_Property_List, the value
The territory is a character string
<owl:DatatypeProperty?rdf:ID=″Version″>
<rdfs:subPropertyOf?rdf:resource=″#release_version″/>
</owl:DatatypeProperty>
Defined attribute Version, this attribute is the sub-attribute of release_version
Can find out that from above-mentioned RDF language description CFBundleIdentifier and Identifier are the sub-attributes of attribute wipl_identifier, wipl_identifier belongs to the Information_Property_List class; CFBundle Version and Version are the sub-attributes of attribute release_version, and release_version is the sub-attribute of attribute wipl_version, and wipl_version belongs to the Information_Property_List class.
It is to be noted; If under the guidance of widget body; If the fileinfo that does not find the corresponding target widget of the fileinfo of supporting with source widget to support that is to say that the engine of being responsible for operational objective widget does not comprise the correlation function of this document information, then directly ignores.
S306, S60 widget file set packed obtains S60 widget.
The format conversion sequence chart of widget; As shown in Figure 4, the format conversion process of widget is excited by the user, and the user sends the format conversion message of widget; Widget object format to be converted in indication source can be selected To Template according to object format from ATL; Assure the reason object after receiving the format conversion message of widget, the source widget that imports is unpacked; The pre-service object carries out pre-service to source widget master file; The bag analytic target is to carrying out format identification through pretreated source widget file set and returning the corresponding From Template of source format; Semantic mapping object reference widget body carries out related to From Template and To Template, and the target widget file set that generates returned to assures the reason object; Assuring the reason object obtains the packing of target widget file set target widget and returns to the user.
The format conversion method of the widget that the embodiment of the invention provides because ATL and widget body can upgrade, therefore has stronger extensibility; Because each template in the ATL adopts XML to describe and has used JDOM as the XML analytical tool, thereby has higher reading and processing speed; Simultaneously, the widget body provides localized support to widget, and for example, if source widget provides multi-lingual support, the target widget after the format conversion still supports multi-lingual so.
Based on same technical conceive, the embodiment of the invention provides the format conversion apparatus of a kind of widget, and is as shown in Figure 5, comprising:
First memory module 501: be used to store the ATL that comprises a plurality of templates, each template is used to describe the fileinfo of the widget of corresponding form;
Second memory module 502: be used to store the widget body, wherein, the widget body is used for the semantic association relation of fileinfo between each template of description template storehouse;
To Template is selected module 503: be used for selecting corresponding To Template according to source widget object format to be converted from ATL;
Parse module 504: be used for source widget unpacked and obtain source widget file set;
Packet analysis module 505: be used for source widget being carried out format identification and confirm source format, and from ATL, select corresponding From Template according to source format according to source widget file set;
Semantic mapping module 506: be used for the semantic identical fileinfo of From Template and To Template being carried out association, and combine source widget file set to generate target widget file set according to the widget body;
Packetization module 507: being used for target widget file set packed obtains target widget.
As shown in Figure 6, a kind of of packet analysis module 505 maybe structure, comprises that tag match submodule 601, form confirm submodule 602 and From Template chooser module 603, wherein:
Also comprise the corresponding relation between the label of widget form and widget configuration file in the ATL of first memory module 501 storage;
Tag match submodule 601 is used for according to said corresponding relation, and source widget configuration file is carried out tag match, and said source widget file set comprises source widget master file and source widget configuration file;
Form is confirmed submodule 602, is used for confirming source format according to the tag match result to source widget configuration file;
From Template chooser module 603 is used for selecting corresponding From Template according to source format from ATL.
Preferable, parse module 504 also is used for when the form that source widget is unpacked widget file set source, the source widget master file that obtains is HTML, and the form of source widget master file is converted into XML from HTML.
As shown in Figure 7, a kind of possibility structure of Semantic mapping module 506 comprises:
Semantic mapping submodule 701: be used for according to the widget body the semantic identical fileinfo of From Template and To Template being carried out association, said fileinfo comprises file attribute title and file label;
Attribute Association submodule 702: be used for incidence relation according to the From Template file attribute title identical with the To Template semanteme; And combine source widget file set, confirm file attribute title and property value thereof with the corresponding object format of file attribute title of source format;
Content is filled submodule 703: be used for the incidence relation according to the semantic identical file label of From Template and To Template, the content of source widget file set is filled in the To Template generation target widget file set.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (8)

1. the format conversion method of a special interface tool is characterized in that, comprising:
From ATL, select corresponding To Template according to source special interface tool widget object format to be converted, wherein, each template in the ATL is used to describe the fileinfo of the widget of corresponding form;
Source widget unpacked obtain source widget file set, according to source widget file set source widget is carried out format identification and confirm source format, and from ATL, select corresponding From Template according to source format;
According to the widget body semantic identical fileinfo in From Template and the To Template is carried out association, wherein, said fileinfo comprises file attribute title and file label;
According to the incidence relation of semantic identical file attribute title in From Template and the To Template, and combine source widget file set, confirm file attribute title and property value thereof with the corresponding object format of file attribute title of source format; And
Incidence relation according to semantic identical file label in From Template and the To Template; The content of source widget file set is filled in the To Template; Generate target widget file set; Target widget file set packed obtains target widget, and said widget body is used for the semantic association relation of fileinfo between each template of description template storehouse.
2. the method for claim 1; It is characterized in that; Said source widget file set comprises source widget master file and source widget configuration file, also comprises the corresponding relation between the label of form and widget configuration file of widget in the said ATL;
Saidly according to source widget file set source widget is carried out format identification and confirms source format, specifically comprise:
According to said corresponding relation, source widget configuration file is carried out tag match; And
Tag match result according to source widget configuration file confirms source format.
3. method as claimed in claim 2; It is characterized in that; Also comprise: when the form of source widget master file is HTML HTML in source widget being unpacked the source widget file set that obtains, the form of source widget master file is converted into extendible mark language XML from HTML.
4. method as claimed in claim 3 is characterized in that, said form with source widget master file is converted into XML from HTML, specifically comprises:
The end-tag that lacks in the source widget master file to html format adds; Sequence error or unmatched end-tag are made amendment; Mistake to title accent type label is corrected; Chaotic or incomplete label are recovered, the property value that does not add double quotation marks is replenished double quotation marks;
The label of html format in the source widget master file of html format is converted into the label of XML form, obtains the source widget master file of XML form.
5. the method for claim 1 is characterized in that, also comprises:
According to the modification that the form of existing widget is done; In said ATL, revise the corresponding template of form of said existing widget; And, in said ATL, increase the corresponding template of form of the widget of said new generation according to the form of the widget of new generation;
Upgrade said widget body according to the variation of template in the ATL.
6. the format conversion apparatus of a special interface tool is characterized in that, comprising: first memory module, second memory module, To Template are selected module, parse module, packet analysis module, Semantic mapping module and packetization module; Wherein:
First memory module: be used for the storing template storehouse, each template in the said ATL is used to describe the fileinfo of the special interface tool widget of corresponding form;
Second memory module: be used to store the widget body, said widget body is used for the semantic association relation of fileinfo between each template of description template storehouse;
To Template is selected module: be used for selecting corresponding To Template according to source widget object format to be converted from ATL;
Parse module: be used for source widget unpacked and obtain source widget file set;
Packet analysis module: be used for source widget being carried out format identification and confirm source format, and from ATL, select corresponding From Template according to source format according to source widget file set;
The Semantic mapping module specifically comprises: Semantic mapping submodule, Attribute Association submodule and content are filled submodule;
The Semantic mapping submodule: be used for according to the widget body the semantic identical fileinfo of From Template and To Template being carried out association, said fileinfo comprises file attribute title and file label;
Attribute Association submodule: be used for incidence relation according to the From Template file attribute title identical with the To Template semanteme; And combine source widget file set, confirm file attribute title and property value thereof with the corresponding object format of file attribute title of source format;
Content is filled submodule: be used for the incidence relation according to the semantic identical file label of From Template and To Template, the content of source widget file set is filled in the To Template generation target widget file set;
Packetization module: being used for target widget file set packed obtains target widget.
7. device as claimed in claim 6 is characterized in that, said packet analysis module comprises that tag match submodule, form confirm submodule and From Template chooser module, wherein:
Also comprise the corresponding relation between the label of form and widget configuration file of widget in the ATL of said first memory module storage;
Said tag match submodule is used for according to said corresponding relation, and source widget configuration file is carried out tag match, and said source widget file set comprises source widget master file and source widget configuration file;
Said form is confirmed submodule, is used for confirming source format according to the tag match result to source widget configuration file;
Said From Template chooser module is used for selecting corresponding From Template according to source format from ATL.
8. device as claimed in claim 7; It is characterized in that; Said parse module; Also be used for when the form that source widget is unpacked widget file set source, the source widget master file that obtains is HTML HTML, the form of source widget master file is converted into extendible mark language XML from HTML.
CN2008102405350A 2008-12-23 2008-12-23 Format conversion method and device of special interface tool Active CN101763255B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102405350A CN101763255B (en) 2008-12-23 2008-12-23 Format conversion method and device of special interface tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102405350A CN101763255B (en) 2008-12-23 2008-12-23 Format conversion method and device of special interface tool

Publications (2)

Publication Number Publication Date
CN101763255A CN101763255A (en) 2010-06-30
CN101763255B true CN101763255B (en) 2012-10-31

Family

ID=42494427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102405350A Active CN101763255B (en) 2008-12-23 2008-12-23 Format conversion method and device of special interface tool

Country Status (1)

Country Link
CN (1) CN101763255B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866283B (en) * 2009-04-14 2013-03-27 华为技术有限公司 Widget transplanting method and device
CN101894155A (en) * 2010-07-06 2010-11-24 中兴通讯股份有限公司 Classification method, system and terminal of widget
CN101950299A (en) * 2010-09-21 2011-01-19 浙江大学 Method for compressing and verifying zip file format of mobile widget
CN101986662B (en) * 2010-11-09 2014-11-05 中兴通讯股份有限公司 Widget instance operation method and system
CN102467405A (en) * 2010-11-12 2012-05-23 鸿富锦精密工业(深圳)有限公司 Measurement program conversion system and method
CN102262538A (en) * 2011-07-26 2011-11-30 中兴通讯股份有限公司 Method and device for processing widget
CN103377406A (en) * 2012-04-25 2013-10-30 富泰华工业(深圳)有限公司 System and method for managing test files
CN104899067B (en) * 2015-06-19 2019-04-05 江苏联宏创能信息科技有限公司 A kind of method and system of more new application
CN105468571B (en) * 2015-11-19 2019-04-23 中国地质大学(武汉) It is a kind of for automatically generating the method and device of report
CN106940664A (en) * 2017-03-13 2017-07-11 成都育芽科技有限公司 Detection method and device are called in a kind of WTC communication services
CN109947771B (en) * 2018-08-20 2023-07-21 中国平安人寿保险股份有限公司 File type conversion method, apparatus, device and computer readable storage medium
CN110688830B (en) * 2019-09-26 2023-09-22 中国银行股份有限公司 Credit investigation template conversion method and device
CN111190882B (en) * 2019-12-03 2023-07-11 泰康保险集团股份有限公司 Target template creation method and device, electronic equipment and storage medium
CN111783482A (en) * 2020-07-06 2020-10-16 南京百家云科技有限公司 Text translation method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030067485A1 (en) * 2001-09-28 2003-04-10 Wong Hoi Lee Candy Running state migration of platform specific graphical user interface widgets between heterogeneous device platforms
US20050125787A1 (en) * 2003-12-05 2005-06-09 Leonid Tertitski Convertible runtime graphical user interface
US20080222232A1 (en) * 2007-03-06 2008-09-11 Allen Stewart O Method and Apparatus for Widget and Widget-Container Platform Adaptation and Distribution
CN101866283A (en) * 2009-04-14 2010-10-20 华为技术有限公司 Widget transplanting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030067485A1 (en) * 2001-09-28 2003-04-10 Wong Hoi Lee Candy Running state migration of platform specific graphical user interface widgets between heterogeneous device platforms
US20050125787A1 (en) * 2003-12-05 2005-06-09 Leonid Tertitski Convertible runtime graphical user interface
US20080222232A1 (en) * 2007-03-06 2008-09-11 Allen Stewart O Method and Apparatus for Widget and Widget-Container Platform Adaptation and Distribution
CN101866283A (en) * 2009-04-14 2010-10-20 华为技术有限公司 Widget transplanting method and device

Also Published As

Publication number Publication date
CN101763255A (en) 2010-06-30

Similar Documents

Publication Publication Date Title
CN101763255B (en) Format conversion method and device of special interface tool
US9390097B2 (en) Dynamic generation of target files from template files and tracking of the processing of target files
US8484552B2 (en) Extensible stylesheet designs using meta-tag information
US7996754B2 (en) Consolidated content management
US7949681B2 (en) Aggregating content of disparate data types from disparate data sources for single point access
US7197510B2 (en) Method, system and program for generating structure pattern candidates
US20040268237A1 (en) Leveraging markup language data for semantically labeling text strings and data and for providing actions based on semantically labeled text strings and data
US20070192674A1 (en) Publishing content through RSS feeds
CN102279847B (en) Method and device for internationalizing software system
US20050132279A1 (en) Method and system for mapping tags to classes using namespaces
US20160117291A1 (en) Conversion of a presentation to darwin information typing architecture (dita)
US20070033520A1 (en) System and method for web page localization
KR20060045966A (en) Localization of xml via transformations
CN102566984B (en) Method and device for configuring parameters
CN102650992A (en) Method and device for generating binary XML (extensible markup language) data and locating nodes of the binary XML data
US7376650B1 (en) Method and system for redirecting a request using redirection patterns
CN102402556A (en) XML (extensive makeup language) file checking method and device
CN102622219A (en) Method, device and system for rendering execution result of dynamic transfer service
CN104898991A (en) Automatic-RAL-based register access method and system
US20080005662A1 (en) Server Device and Name Space Issuing Method
CN104378362A (en) Method and device for carrying out conversion of message interfaces
US20080005085A1 (en) Server Device and Search Method
CN107423271B (en) Document generation method and device
Le Zou et al. On synchronizing with web service evolution
Lange Mathematical semantic markup in a wiki: The roles of symbols and notations

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant