CN101794240A - Method and system for aggregating data content - Google Patents

Method and system for aggregating data content Download PDF

Info

Publication number
CN101794240A
CN101794240A CN201010001201A CN201010001201A CN101794240A CN 101794240 A CN101794240 A CN 101794240A CN 201010001201 A CN201010001201 A CN 201010001201A CN 201010001201 A CN201010001201 A CN 201010001201A CN 101794240 A CN101794240 A CN 101794240A
Authority
CN
China
Prior art keywords
widget
output
input
user
polymerization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201010001201A
Other languages
Chinese (zh)
Other versions
CN101794240B (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.)
ZTE Corp
Beijing University of Posts and Telecommunications
Original Assignee
ZTE Corp
Beijing University of Posts and Telecommunications
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 ZTE Corp, Beijing University of Posts and Telecommunications filed Critical ZTE Corp
Priority to CN201010001201.5A priority Critical patent/CN101794240B/en
Publication of CN101794240A publication Critical patent/CN101794240A/en
Priority to PCT/CN2010/076210 priority patent/WO2011079619A1/en
Application granted granted Critical
Publication of CN101794240B publication Critical patent/CN101794240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for aggregating data content, which comprises the steps of analyzing an inputted Widget source code; establishing more than one inter-Widget input-output mapping relationships according to the selection of a user and generating an aggregating template; generating a Widget code according to the aggregating template and inserting the generated Widget code into the Widget source code; and using a Widget engine for running a Widget and the Widget source code, and using the Widget for reading an output variable from the Widget engine as the Widget outside the itself for input. The invention further discloses a system for aggregating the Widget data content, and the technical scheme can carry out interaction and aggregation on the data content between the Widgets, thereby meeting the personalization demands of the user and upgrading the experience of the user.

Description

A kind of method and system of aggregating data content
Technical field
The present invention relates to the data aggregation technique in the Web application, relate in particular to a kind of method and system of polymerization Widget data content.
Background technology
Widget is a kind of application program of client, and it allows the developer to use the Web standard that content is embedded the Web file.Widget generally provides certain configuration feature, allows the user to carry out self-defined.Because the function of Widget is more specific, reusable degree is than higher.Widget generally is structured on certain platform, is responsible for Widget is managed by platform, and meanwhile, platform can provide a series of application programming interfaces (API, Application Programming Intemet) to use for Widget.The development specifications that the third party can provide according to this platform is developed the widget of self, and is operated on this platform.Usually, Widget can be divided into three classes according to operation platform: desktop window Widget (desktop Widget), mobile Widget (Mobile Widget) and Web Widget.
Fig. 1 shows the structure of existing Widget, as shown in Figure 1, Widget is made up of user's input (UserInput) and processing logic (Logic), Widget provides an interface to accept user's input, processing logic obtains exporting the result according to this input, processing logic adopts the language JavaScript of Web standard to write, and shows output by embed JavaScript in HTML to the user.
Fig. 2 shows the system of existing Widge operation, as shown in Figure 2, the function that Widget finished is more specific and single, operation is independent between a plurality of Widget, form the codes and standards of communication, also do not export the interface of definition standard, and the parameter between the Widget can not be transmitted directly for Widget, therefore, can not alternately and form polymerization between the Widget.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of method and system of polymerization Widget data content, can make the mutual and polymerization of carrying out data content between the Widget, satisfies user's individual demand.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method of aggregating data content, comprising:
Analyze the Widget source code of input; Set up input and output mapping relations between an above Widget according to user's selection, generate polymerizing template;
Generate the Widget code according to described polymerizing template, the Widget code that is generated is inserted described Widget source code;
Engine-operated described Widget of described Widget and described Widget source code, described Widget reads output variable and imports as the Widget outside self from the memory block of Widget engine.
Wherein, the Widget source code of described analysis input is specially: obtain described Widget source code; Analyze the input of Widget and the output of Widget; And the variable name of the output of the variable name of the input of the Widget that analysis is obtained and Widget sends converter to.
In the such scheme, described input according to rule analysis Widget is specially: described Widget utilizes the interface that receives user's input, analyzes and search the specific label that is used for defining user's input among the described Widget, obtains the input of described Widget.
In the such scheme, the output of described analysis Widget is specially: the rule of the logical foundation JavaScript output of Widget obtains the output of Widget.
In the such scheme, describedly set up input and output mapping relations between an above Widget, generate polymerizing template and be specially: obtain the input of the described Widget that analyzed and the output of Widget, user's selection needs the Widget of polymerization; Receive the change item that the user selects, if the user need to select the input of polymerization Widget, then show the Widget output variable name of having stored, and receive the output variable name of having stored; If the user need to select the output of polymerization Widget, then receive the output variable name that to store, and generate unique storaging mark according to Widget name and output variable name; Judge that whether the user finishes all change items that will receive, if finish, then generates polymerizing template according to mapping relations; If do not finish, continue then to judge that the user selects.
In the such scheme, described generation polymerizing template is: the user generates described polymerizing template according to certain rule or agreement written document, perhaps selects the back to generate described polymerizing template automatically by the polymerization pretreater by user interface.
In the such scheme, the output variable of described storage area stores Widget, and the Widget that imports for needs provides parameter.
The present invention also provides a kind of system of aggregating data content, comprising: polymerization pretreater, Widget engine; Wherein,
The polymerization pretreater is used to analyze the Widget source code of input, and sets up input and output mapping relations between an above Widget according to user's selection, generates polymerizing template; Generate the Widget code according to described polymerizing template, the Widget code that is generated is inserted described Widget source code;
The Widget engine is used to move Widget and Widget source code, and provides the memory block for the output of Widget.
Wherein, described polymerization pretreater further comprises: analysis module, template generation module, code generation module; Wherein,
Analysis module is used to receive described Widget source code and polymerizing template that described Widget engine sends, and analyzes the input of Widget and the output of Widget, sends the variable name of the output of the variable name of the input of described Widget and Widget to converter;
The template generation module is used for sending response to the user after the output of the input of the Widget that obtains to analyze and Widget, need to select the Widget of polymerization, and the change item of reception user selection; When the user selects to need the input of polymerization Widget, show the Widget output variable name of having stored for user's selection, when the user selects to need the output of polymerization Widget, the output variable name that reception will be stored; Receive the output variable name of having stored that the user selects for input variable, and generate unique storaging mark, generate polymerizing template according to mapping relations according to Widget name and output variable output variable by name;
Code generates template, is used to analyze the described polymerizing template of generation, reads storage of variables at Widget code storage variable and in described Widget code; The Widget code that the whole Widget that obtain are exported is inserted in the described Widget source code.
In the said system, described Widget engine further comprises: memory block, Widget; Wherein,
The memory block, the output that is used to store Widget, the Widget that imports for needs provides required variable;
Widget is used to provide interface to receive user's input, obtain exporting the result according to user's input, and output variable is to the memory block of Widget engine.
The method and system of polymerization Widget data content provided by the present invention, analyze the Widget source code of input, select to set up the mapping relations of the input and output between Widget according to the user, and utilize the storage area stores output variable, can read variable from the memory block when on the Widget engine, moving through the pretreated Widget source code of polymerization, thereby realize the mutual and polymerization of data content between Widget, the user can utilize a plurality of Widget to realize user's customized application, reach the effect that satisfies users ' individualized requirement, promote user's experience.
Description of drawings
Fig. 1 is the cut-away view of existing Widget;
The synoptic diagram of the system when Fig. 2 moves for existing Widget;
Fig. 3 realizes the overall flow synoptic diagram of the method for polymerization Widget data content for the present invention;
Fig. 4 analyzes the schematic flow sheet of the method for Widget source code for the present invention realizes the polymerization pretreater;
Fig. 5 generates the schematic flow sheet of the method for polymerizing template for the present invention realizes that the polymerization pretreater is right according to user's selection foundation input, output mapping;
Fig. 6 realizes polymerization pretreater generation Widget code for the present invention and code is inserted the schematic flow sheet of the method for Widget source code;
The schematic flow sheet of the method when Fig. 7 realizes engine-operated Widget of Widget and Widget source code for the present invention;
Fig. 8 realizes the synoptic diagram of inner structure of the system of polymerization Widget data content for the present invention;
Fig. 9 realizes the effect synoptic diagram of Widget data content polymerization for one embodiment of the invention.
Embodiment
In order to realize data content polymerization between Widget and mutual, need to obtain the output of Widget, and this output is passed to other Widget as input as parameter; Basic thought of the present invention is: the Widget source code of analyzing input, set up the mapping relations of input and output between Widget according to user's selection, and adopt the storage area stores output variable, make that the input and output between Widget can be undertaken by the memory block alternately.
Concrete, the polymerization pretreater can be used as an independently module, what import is the Widget source code, output be after treatment Widget source code, therefore, the Widget engine calls the polymerization pretreater and handles the Widget source code before disposing the Widget source code, when the engine-operated Widget source code of Widget, the Widget source code of handling through the polymerization pretreater can realize data content alternately and polymerization.
Below by drawings and the specific embodiments the present invention is described in further detail again.
The method of polymerization Widget data content provided by the invention, as shown in Figure 3, this method comprises:
Step 301 is analyzed the Widget source code of importing;
Step 302 is set up input and output mapping relations between an above Widget according to user's selection, generates polymerizing template;
Step 303 generates the Widget code according to polymerizing template, and the Widget code that is generated is inserted the Widget source code;
Step 304, engine-operated Widget of Widget and Widget source code read output variable and import as the Widget outside self memory block of Widget in the Widget engine.
Fig. 4 is the concrete grammar of performing step 301 among Fig. 3, is the method flow diagram of the Widget source code of polymerization pretreater analysis input of the present invention, and as shown in Figure 4, this method may further comprise the steps:
Step 401 receives Widget source code and polymerizing template that the Widget engine sends;
Wherein, the Widget code generally is to comprise the JavaScript code in the xml code.
Step 402 is analyzed the input of Widget;
Concrete, Widget utilizes the interface that receives user's input, such as: use specific label among some Widget, as<UserPref〉label defines user's input, like this, the polymerization pretreater obtains the input of Widget by analyzing and search the specific label that is used for defining user's input among the Widget.
Step 403 is analyzed the output of Widget;
Concrete, Widget sets interface for output code, but the logic of Widget realize by JavaScript, so, according to the output of the rule acquisition Widget of JavaScript output.Such as, JavaScript can use document.write (), innerText (), and innerHTML () method is dynamically exported the content of widget, can indicate the output of analyzing and obtaining Widget by seeking these.
Step 404, the variable name of the variable name of the input of the Widget that analysis is obtained and the output of Widget sends converter to.
Here, described converter is the form that is used for the variable name of the output of the variable name of the input of Widget and Widget is converted to the Widget needs, can be utilized by next procedure through the variable name of the output of the variable name of the input of the Widget of converter conversion and Widget.
Fig. 5 is the specific implementation method of step 302 among Fig. 3, be that polymerization pretreater of the present invention is set up input and output mapping relations between an above Widget according to user's selection, generate the process flow diagram of the method for polymerizing template, as shown in Figure 5, this method may further comprise the steps:
Step 501, after the output of the input of the Widget that obtains to analyze and Widget, the mode by file or graphical interfaces sends response to the user, and the user is according to the Widget of the response selection needs polymerization of polymerization pretreater transmission.
Step 502 receives the change item that the user selects, if the user need to select the input of polymerization Widget, then execution in step 503; If user's selection needs the output of the Widget of polymerization, then execution in step 504.
Wherein, described change comprises: need polymerization Widget input and need the output of the Widget of polymerization.
Step 503 shows that the Widget output variable name of having stored is for user's selection;
Following Widget output variable name is an example with the O1 among Fig. 7, O2...On.
Step 504 receives the output variable name that will store that the user selects;
Suppose that the Widget output variable name that the user selects is example with O1.
Step 505 receives the output variable name of having stored that the user selects for input variable;
For example: the input variable that the user selects is i2 among Fig. 7, and output variable is O1 among Fig. 7.
Step 506 is according to Widget name and output variable name, for the output variable in the step 404 generates unique storaging mark.
Here, described Widget name is the name of Widget in the Widget engine that defines according to demand of user, is used for distinguishing a plurality of Widget of Widget engine.
Step 507 judges whether the user finishes all change items that will receive, if finish all change items, then execution in step 508; If do not finish, then turn back to step 502, continue to judge that the change item that the user selects is Widget input or Widget output.
Step 508 generates polymerizing template according to mapping relations.
If: the input input that the processing by the polymerization pretreater obtains Widget1 (zipcode_map) is zipcode, and the output output of Widget1 (zipcode_map) is cityname; The input input of Widget2 (Real_estate_info) is city, the output output of Widget2 (Real_estate_info) is real_estate, then the user wishes the data content of polymerization Widget1 and Widget2, that is: with the output cityname of Widget1 input as Widget2, the user can come written document to generate polymerizing template according to certain rule or agreement, perhaps selects the back to generate polymerizing template automatically by the polymerization pretreater by user interface.
Wherein, described polymerizing template is represented the polymerization between Widget, can be according to following formal definition polymerizing template:
<mashup>
<widget_out?name:>
<output?name:>
</output>
</widget_out>
<widget_in?name:>
<input?name:>
</input>
</widget_in>
<mashup>
Such as: the polymerization of above-mentioned postcode Widget and house property information Widget, can represent by following polymerizing template:
<mashup>
<widget_out?name:zipcode_map>
<output?name:cityname>
</output>
</widget_out>
<widget_in?name:Real_estate_info>
<input?name:city>
</input>
</widget_in>
<mashup>
Fig. 6 is the specific implementation method of step 303 among Fig. 3, and being the present invention generates the Widget code according to polymerizing template, and the Widget code that is generated is inserted the method flow diagram of Widget source code, and as shown in Figure 6, this method may further comprise the steps:
Step 601 is analyzed the polymerizing template that generates in step 508.
Step 602 is to the output label<output in the polymerizing template〉corresponding variable name, according in the polymerizing template<widget_out label is at Widget code storage variable.
Such as: for the polymerizing template in the step 508, the code that inserts output (O1) the cityname variable of storage Widget1 (zipcode_map) be setCookie (" acityname ", city.name).
In the step 603, to the input label<input in the polymerizing template〉corresponding variable name, according in the polymerizing template<widget_in label reads storage of variables in the Widget code.
Such as: for the polymerizing template in the step 508, the code that reads O 1 for Input (i1) city of Widget2 (Real_estate_info) is var cityname=getCookieByName (cookieObj, " cityname ").
Step 604, the Widget code that the whole Widget that obtain are exported is inserted into the Widget source code.
Here, described insertion can be that the user writes into the Widget engine by the editing interface coding with the code of whole Widget outputs.
Fig. 7 is the specific implementation method of step 304 among Fig. 3, is the method flow diagram of engine-operated Widget of Widget of the present invention and Widget source code, and as shown in Figure 7, this method comprises:
Widget1 provides interface to receive the user and imports i1, and the processing logic among the Widget obtains exporting O1, O2 etc. as a result according to this user's input; Widget1 obtains exporting O1 according to input, and the output variable O1 that obtains is simultaneously outputed to memory block in the Widget engine; When on the Widget engine, moving, make Widget to read variable, so Widget2 can read the input of the output variable O1 of Widget1 as self from the memory block from the memory block through the Widget source code after the processing of polymerization pretreater; The polymerization of data content between the Widget by that analogy, is realized in Widget2 output O2 and the output variable O2 memory block in the Widget engine then.
Storage area stores in the Widget engine has output variable O1, the O2...On of Widget, and for the Widget of needs input provides parameter, therefore, the input and output between Widget can utilize described memory block to realize the mutual of Widget data content.The user can change the Widget quantity in the Widget engine as required, and the user also can select the medium as the memory block as requested.
For realizing said method, the present invention also provides a kind of system of polymerization Widget data content, and as shown in Figure 8, this system comprises: polymerization pretreater 81, Widget engine 82; Wherein,
Polymerization pretreater 81 is used to analyze the Widget source code of input, and sets up input and output mapping relations between an above Widget according to user's selection, generates polymerizing template; Generate the Widget code according to described polymerizing template, the Widget code that is generated is inserted the Widget source code;
Described polymerization pretreater 81 further comprises: analysis module 811, template generation module 812, code generation module 813; Wherein,
Analysis module 811 is used to receive Widget source code and polymerizing template that the Widget engine sends, and analyzes the input of Widget and the output of Widget, and the variable name with the output of the variable name of the input of Widget and Widget sends converter at last.
Here, described converter is used for the variable name of the output of the input of Widget and Widget is converted to the form of template generation module 812 Widget needs, and the variable name of the input of the Widget of process converter conversion and the variable name of Widget output can be utilized by template generation module 812.
Template generation module 812, be used at the Widget that obtains to analyze input, export after, mode by file or graphical interfaces sends response to the user, the Widget of needs polymerization is selected in the response that the user sends according to the polymerization pretreater, and the change item of reception user selection, when the user selects to need the input of polymerization Widget, show that then the Widget output variable name of having stored is for user's selection; When the user selects to need the output of polymerization Widget, then receive the output variable name that will store that the user selects; Receive the output variable name of having stored that the user selects for input variable; Generate unique storaging mark according to Widget name and output variable output variable by name, generate polymerizing template according to mapping relations at last.
Wherein, described Widget name is the name of Widget in the Widget engine that defines according to demand of user, is used for distinguishing a plurality of Widget of Widget engine.
Code generates template 813, is used to analyze the polymerizing template of generation, to the variable name of the output label correspondence in the polymerizing template, according in the polymerizing template<widget_out label, at Widget code storage variable; To the variable name of the input label correspondence in the polymerizing template, according in the polymerizing template<widget_in label, in the Widget code, read storage of variables; The code of the whole Widget outputs that will obtain at last is inserted into the Widget source code.
Described Widget engine 82 is used to move Widget and Widget source code, and provides the memory block for the output of Widget;
The Widget engine further comprises: memory block 821, Widget; Wherein,
Memory block 821, the output that is used to store Widget, the Widget that imports for needs provides required variable;
Here, the input and output between Widget can utilize described memory block, realize the friendship of Widget data content; The user can select the medium as the memory block according to demand, chooses the output variable of Cookie as memory block medium memory Widget in the present embodiment.
Widget is used to provide interface to receive user's input, and the processing logic among the Widget obtains exporting the result according to this user's input, and output variable is to the memory block of Widget engine;
Here, the user can change the Widget quantity in the Widget engine as required.
The detailed implementation procedure of a specific embodiment of the present invention is described below in conjunction with accompanying drawing.
Fig. 9 is the specific embodiment of a polymerization Widget data content, and as shown in Figure 9, three Widget handle the back through the polymerization pretreater and generate a new Mashup application program, have realized the data aggregate between Widget.
Three Widget among Fig. 9 are Widget independently mutually, Fig. 9 is followed successively by input frame Widget, map Widget and house property information Widget from left to right, the function of input frame Widget is to show this postcode after the input postcode on the interface of Widget, the function of map Widget is map and the weather condition that shows on the interface of this Widget after the input postcode with the corresponding geographic position of postcode, and the function of house property information Widget is the house property relevant information that shows this city on the interface of this Widget behind the input city name.
After the processing of polymerization pretreater, three Widget have realized the polymerization of data content, the function that realizes after the polymerization is to import postcode in input frame Widget, show postcode on this Widget interface, map Widget goes up the map and the weather forecast of demonstration and this postcode corresponding geographical position simultaneously, and house property information Widget goes up the house property information list that shows this geographic position phase Yingcheng City.
Describing the polymerization pretreater below set by step is how to handle these three Widget codes, concrete,
The first step, the polymerization pretreater is analyzed input, the output of Widget; The input of input frame Widget, map Widget and house property information Widget, output analysis result as follows:
Widget?name:Input?initial?input:zipcode?output:zipcode
Widget?name:Weather?Map?input:zipcode?map?output:cityname
Widget?name:Real?Estate?input:city?output:real?estate?infolist
In second step, the polymerization pretreater selects to set up input, output mapping relations according to Widget input, the output of the first step, generates polymerizing template.
In the present embodiment, when the user selects the Widget input, the output postcode (zipcode) of Widget (Input_initial) is as the input postcode (zipcode_map) of map Widget (Weather Map), the output city name (cityname) of map Widget (Weather Map) is as the input city name (city) of house property information list Widget, and the polymerizing template below using is represented the data content paradigmatic relation between the three:
<mashup>
<widget_out?name=Input_initial>
<output?name=zipcode>
</output>
</widget_out>
<widget_in?name=Weather?Map>
<input?name=zipcode_map>
</input>
</widget_in>
</mashup>
<mashup>
<widget_out?name=Weather?Map>
<output?name=cityname>
</output>
</widget_out>
<widget_in?name=Real?Estate>
<input?name=city>
</input>
<widget_in>
</mashup>
In the 3rd step, the polymerization pretreater generates the Widget code according to the polymerizing template that forms in second step, and code is inserted the Widget source code.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method for an aggregating data content is characterized in that, this method comprises:
Analyze the Widget source code of input; Set up input and output mapping relations between an above Widget according to user's selection, generate polymerizing template;
Generate the Widget code according to described polymerizing template, the Widget code that is generated is inserted described Widget source code;
Engine-operated described Widget of described Widget and described Widget source code, described Widget reads output variable and imports as the Widget outside self from the memory block of Widget engine.
2. method according to claim 1 is characterized in that, the Widget source code of described analysis input is specially:
Obtain described Widget source code;
Analyze the input of Widget and the output of Widget; And the variable name of the output of the variable name of the input of the Widget that analysis is obtained and Widget sends converter to.
3. method according to claim 2, it is characterized in that, described input according to rule analysis Widget is specially: described Widget utilizes the interface that receives user's input, analyzes and search the specific label that is used for defining user's input among the described Widget, obtains the input of described Widget.
4. method according to claim 2 is characterized in that, the output of described analysis Widget is specially: the rule of the logical foundation JavaScript output of Widget obtains the output of Widget.
5. method according to claim 1 is characterized in that, describedly sets up input and output mapping relations between an above Widget, generates polymerizing template and is specially:
The input of the described Widget that acquisition was analyzed and the output of Widget, the user need to select the Widget of polymerization;
Receive the change item that the user selects, if the user need to select the input of polymerization Widget, then show the Widget output variable name of having stored, and receive the output variable name of having stored; If the user need to select the output of polymerization Widget, then receive the output variable name that to store, and generate unique storaging mark according to Widget name and output variable name;
Judge that whether the user finishes all change items that will receive, if finish, then generates polymerizing template according to mapping relations; If do not finish, continue then to judge that the user selects.
6. method according to claim 5, it is characterized in that, described generation polymerizing template is: the user generates described polymerizing template according to certain rule or agreement written document, perhaps selects the back to generate described polymerizing template automatically by the polymerization pretreater by user interface.
7. method according to claim 1 is characterized in that, the output variable of described storage area stores Widget, and the Widget that imports for needs provides parameter.
8. the system of an aggregating data content is characterized in that, this system comprises: polymerization pretreater, Widget engine; Wherein,
The polymerization pretreater is used to analyze the Widget source code of input, and sets up input and output mapping relations between an above Widget according to user's selection, generates polymerizing template; Generate the Widget code according to described polymerizing template, the Widget code that is generated is inserted described Widget source code;
The Widget engine is used to move Widget and Widget source code, and provides the memory block for the output of Widget.
9. system according to claim 8 is characterized in that, described polymerization pretreater further comprises: analysis module, template generation module, code generation module; Wherein,
Analysis module is used to receive described Widget source code and polymerizing template that described Widget engine sends, and analyzes the input of Widget and the output of Widget, sends the variable name of the output of the variable name of the input of described Widget and Widget to converter;
The template generation module is used for sending response to the user after the output of the input of the Widget that obtains to analyze and Widget, need to select the Widget of polymerization, and the change item of reception user selection; When the user selects to need the input of polymerization Widget, show the Widget output variable name of having stored for user's selection, when the user selects to need the output of polymerization Widget, the output variable name that reception will be stored; Receive the output variable name of having stored that the user selects for input variable, and generate unique storaging mark, generate polymerizing template according to mapping relations according to Widget name and output variable output variable by name;
Code generates template, is used to analyze the described polymerizing template of generation, reads storage of variables at Widget code storage variable and in described Widget code; The Widget code that the whole Widget that obtain are exported is inserted in the described Widget source code.
10. according to Claim 8 or 9 described systems, it is characterized in that described Widget engine further comprises: memory block, Widget; Wherein,
The memory block, the output that is used to store Widget, the Widget that imports for needs provides required variable;
Widget is used to provide interface to receive user's input, obtain exporting the result according to user's input, and output variable is to the memory block of Widget engine.
CN201010001201.5A 2010-01-04 2010-01-04 Method and system for aggregating data content Active CN101794240B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010001201.5A CN101794240B (en) 2010-01-04 2010-01-04 Method and system for aggregating data content
PCT/CN2010/076210 WO2011079619A1 (en) 2010-01-04 2010-08-20 Method and system for aggregating data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010001201.5A CN101794240B (en) 2010-01-04 2010-01-04 Method and system for aggregating data content

Publications (2)

Publication Number Publication Date
CN101794240A true CN101794240A (en) 2010-08-04
CN101794240B CN101794240B (en) 2015-01-28

Family

ID=42586950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010001201.5A Active CN101794240B (en) 2010-01-04 2010-01-04 Method and system for aggregating data content

Country Status (2)

Country Link
CN (1) CN101794240B (en)
WO (1) WO2011079619A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011079619A1 (en) * 2010-01-04 2011-07-07 中兴通讯股份有限公司 Method and system for aggregating data
CN102866911A (en) * 2012-09-12 2013-01-09 北京航空航天大学 Mashup application establishing method and device
CN103092582A (en) * 2011-10-31 2013-05-08 国际商业机器公司 Method and system used for processing published events and subscribed events
CN103455459A (en) * 2012-05-31 2013-12-18 国际商业机器公司 Method and system for transmitting payload data to iWidget
CN110874216A (en) * 2018-08-31 2020-03-10 广州虎牙信息科技有限公司 Complete code generation method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080168382A1 (en) * 2007-01-07 2008-07-10 Louch John O Dashboards, Widgets and Devices
US20090100329A1 (en) * 2007-10-04 2009-04-16 Danny Javier Espinoza Method of Deploying a Web Widget In a Desktop Widget Platform
CN101533410A (en) * 2009-04-13 2009-09-16 浙江大学 Widget content buffering method facing mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794240B (en) * 2010-01-04 2015-01-28 中兴通讯股份有限公司 Method and system for aggregating data content

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080168382A1 (en) * 2007-01-07 2008-07-10 Louch John O Dashboards, Widgets and Devices
US20090100329A1 (en) * 2007-10-04 2009-04-16 Danny Javier Espinoza Method of Deploying a Web Widget In a Desktop Widget Platform
CN101533410A (en) * 2009-04-13 2009-09-16 浙江大学 Widget content buffering method facing mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李峰,李春旺: "《Mashup关键技术研究》", 《现代图书情报技术》 *
秦灵伶,王文东,贾霞,董振江: "《Mashup技术及其发展趋势》", 《电信科学》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011079619A1 (en) * 2010-01-04 2011-07-07 中兴通讯股份有限公司 Method and system for aggregating data
CN103092582A (en) * 2011-10-31 2013-05-08 国际商业机器公司 Method and system used for processing published events and subscribed events
CN103092582B (en) * 2011-10-31 2016-01-20 国际商业机器公司 For the treatment of the method and system of the event of issue with the event of subscription
CN103455459A (en) * 2012-05-31 2013-12-18 国际商业机器公司 Method and system for transmitting payload data to iWidget
CN102866911A (en) * 2012-09-12 2013-01-09 北京航空航天大学 Mashup application establishing method and device
CN102866911B (en) * 2012-09-12 2015-03-25 北京航空航天大学 Mashup application establishing method and device
CN110874216A (en) * 2018-08-31 2020-03-10 广州虎牙信息科技有限公司 Complete code generation method, device, equipment and storage medium
CN110874216B (en) * 2018-08-31 2023-07-28 广州虎牙信息科技有限公司 Complete code generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN101794240B (en) 2015-01-28
WO2011079619A1 (en) 2011-07-07

Similar Documents

Publication Publication Date Title
CN103164249B (en) Extension mechanism for script compiler
CN102915242A (en) Method for implementing code programming by graphical operations
CN104484216A (en) Method and device for generating service interface document and on-line test tool
US8756407B2 (en) Configuration rule prototyping tool
CN110221968A (en) Method for testing software and Related product
CN107341014A (en) Electronic equipment, the generation method of technical documentation and device
CN101841515A (en) Target variable protocol data unit codec code automatic generation implementation method
CN104731588B (en) Page layout document generating method and page layout file creating apparatus
CN101794240B (en) Method and system for aggregating data content
CN102591787B (en) The data processing method of JAVA card and device
CN100561476C (en) A kind of code generating method based on the ASN type object
CN103873318A (en) Website automated testing method and automated testing system
CN103235719A (en) Method and device for setting WAP website
CN114996619A (en) Page display method and device, computer equipment and storage medium
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN112671734A (en) Message processing method facing multiple data sources and related equipment thereof
CN113052262A (en) Form generation method and device, computer equipment and storage medium
CN104850498A (en) Filling information testing method and filling information testing system
CN114594927A (en) Low code development method, device, system, server and storage medium
CN104361040A (en) Method and device for customized query
CN105824647A (en) Form page generating method and device
CN113918149A (en) Interface development method and device, computer equipment and storage medium
CN102855278B (en) A kind of emulation mode and system
CN102609253B (en) A kind of application implementation method of smart card and system
CN109614457B (en) Deep learning-based geographic information identification method and device

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