CN101751382B - Data acquisition method based on labels and system thereof - Google Patents

Data acquisition method based on labels and system thereof Download PDF

Info

Publication number
CN101751382B
CN101751382B CN2008102275605A CN200810227560A CN101751382B CN 101751382 B CN101751382 B CN 101751382B CN 2008102275605 A CN2008102275605 A CN 2008102275605A CN 200810227560 A CN200810227560 A CN 200810227560A CN 101751382 B CN101751382 B CN 101751382B
Authority
CN
China
Prior art keywords
data
label
flag
template
source
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
CN2008102275605A
Other languages
Chinese (zh)
Other versions
CN101751382A (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.)
Founder International Beijing Co Ltd
Original Assignee
Founder International Beijing 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 Founder International Beijing Co Ltd filed Critical Founder International Beijing Co Ltd
Priority to CN2008102275605A priority Critical patent/CN101751382B/en
Publication of CN101751382A publication Critical patent/CN101751382A/en
Application granted granted Critical
Publication of CN101751382B publication Critical patent/CN101751382B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a data acquisition method based on labels and a system thereof, and belongs to the field of information processing. The method comprises: firstly defining a data template, defining a data storage format and a data processing rule, pre-processing according to the rule of defining the template by a pre-processing unit, adding necessary labels according to application, and generating flag data; then synthesizing to generate a user interaction interface file by using a skin file and the flag data through a data acquisition unit, and generating a user interaction interface; writing back, by the data acquisition unit, the user data submitted by the user interaction interface in the flag data; and reducing the data through a data reduction unit after data acquisition. The invention realizes the uniform management of a plurality of data formats through the labels, realizes business change when the system runs, and decreases differential programming caused by data alignment.

Description

A kind of collecting method and system based on label
Technical field
The invention belongs to field of information processing, be specifically related to a kind of collecting method and system based on label.
Background technology
Data acquisition is a primary link in the infosystem, the data that the user need gather vary, the form of expression and the applied logic of data also have nothing in common with each other, the most important thing is the User Interface of different application, different to the method that interface data is gathered, the typical case is as the webpage of browser, submit to the user to fill in data by id and title, general window writing routine is then collected data by id, these User Interfaces are submitted the otherness of data acquisition modes to the user, make become complexity and workload of development increase, the necessary update routine of prior later stage program upgrade itself particularly can't be realized upgrading processing at the system that uninterrupted continuous service requirement is arranged.
The common practice of existing technical scheme is: by the relevant different disposal rule of data layout of customization and User Interface collection, realization is written back to data in the source data, this processing mode is in incorporate comprehensive application systems such as present portable terminal, WEB application, desktop processing, will inevitably produce a large amount of workloads, system upgrade neither be very flexible.
Domestic patent 01116912.5 is mentioned " a kind of method and device thereof of realizing the multi-service data exchange ", it will collect the business transaction data from the input page of each terminal device by server end and implicit data-switching generates dynamic extend markup language character string, and according to these implicit data, read corresponding extendible stylesheet language file, and convert thereof into the extensible style language character string; At last, in a processor, generate finally be used for exchanges data and at the extend markup language of different business data layout.This invention has realized XML data layout and independent of service by the character string of hiding, thereby saves certain procedure exploitation amount.
The limitation of this patent is, only relates to according to business rule to make data support different business, and the data of collecting are not done any processing, do not propose from data discern, processing such as checking.
Summary of the invention
At problems of the prior art, the purpose of this invention is to provide a kind of collecting method and system based on label, this method and system can keep under the constant prerequisite of legacy data, realize the dynamic translation of data by modes such as template, labels, and template and label can carry out dynamic-configuration at different application, thereby the operability and the logicality of data have been increased, realized the unified processing of several data form, realize the business change when system moves, and reduced the otherness programming that factor brings according to adjustment.
Dynamic-configuration is carried out in application, thereby has increased the operability and the logicality of data, has realized the unified processing of several data form, the business change the when system that realized moves, and reduced the otherness programming that factor brings according to adjustment.
The object of the present invention is achieved like this:
A kind of collecting method based on label comprises the steps:
1) regular pre-service and label pre-service: pretreatment unit obtains source data, according to the data processing rule that defines in the template source data is carried out template matches, pretreatment unit generates flag data to the source data additional label, and flag data is submitted to data collector;
2) data collector generates the explicit user interactive interface by with skin file and the synthetic User Interface file that generates of flag data, and the user fills in the back and submits to;
3) data collector is written back to the user data of User Interface submission in the flag data according to label;
4) the reduction of data device is written back in the source data revising part in the flag data according to template in the step (1) and data processing rule, finishes data acquisition;
Further, in the step 1), described regular pre-service comprises following steps:
A. pretreatment unit is accepted source data, beginning data pretreatment process;
B. according to configuration information, pretreatment unit reads the template file in the template base that source data uses, and handles according to the configuration in the template file;
C. pretreatment unit circular treatment data node;
D. pretreatment unit reads and resolves the data processing rule in the template;
E. according to the data node rule type after resolving, call the data processing rule in the corresponding template file;
F. according to the rule in the template file, source data is carried out corresponding pretreatment operation;
G. judge whether to handle all data, if, then withdraw from the circular treatment flow process, otherwise execution in step c;
H. pretreatment unit obtains regular pretreated data.
Described label pre-service comprises following steps:
A. analytical applications rule, different application rules should be added different labels with convenient identification;
B. call corresponding label processing device in the pretreatment unit according to application rule;
C. circular treatment data node;
D. label processing device is that the data node adds label, and described label is that title-character string with the attribute form is to being added in the data node;
E. judge whether to handle all data nodes,, then withdraw from the circular treatment flow process if handle; Otherwise execution in step C;
F. pretreatment unit obtains pretreated flag data.
Further, in the step 1), described data processing rule is meant realizes two discernible expression formulas of handling procedure that the data node transforms mutually, described template is meant the structural data of the definition business processing identical with the source data data structure, pretreatment unit appends to label on the identical data node of the data structure of source data according to the processing rule that defines on the template data node and generates flag data, and described label is meant the structural data that comprises name-value.
Further, in the step 1), described source data additional label generation flag data is meant on the identical data node of the data structure of source data added tag attributes.
Further, step 2) in, the label that described flag data adds in step 1) satisfies User Interface is submitted data to the user sign requirement, in the step 3), the write-back process is mated according to the sign in the user data of submitting to and the label of flag data.
Further, in the step 3), described user submits to the sign in the data to mate with the label of flag data and is meant the different and different of the existing User Interface of foundation, if User Interface is by the uniqueness of id identification data, then certain existence can be converted to the label that id identifies by skin file in the flag data, and this label is corresponding one by one with the id sign.
Further, in the step 4), describedly being written back in the source data revising part in the flag data, is to mate by the data structure similarity of flag data and source data.
Further, the data structure similarity of described flag data and source data is meant that source data and flag data all are structurized data, hierarchical relationship, relation of inclusion between the data node of two kinds of data layouts are in full accord, and the data node attribute pointer of flag data tag attributes that the data node attribute of source data is increased newly.
Further, in the step 4), revising the method that partly is written back to source data in the described flag data is: will exist in the source data, meet that the data processing rule reverse process requires, data node or its data revised in the corresponding flag data, be written back to the source data from flag data, described to meet reverse process defines in data node quantity that the data processing rule reverse process requires to be meant these data and node data type and the data processing rule parametric variable quantity and data type in full accord.
A kind of data acquisition system (DAS) based on label, this system comprises pretreatment unit, data collector, reduction of data device, rule treatments device and template base, wherein:
1) pretreatment unit, be used for the source data that input interface receives is carried out pre-service, by calling template base and rule treatments device, according to the data processing rule that defines in the template source data is carried out template matches, the source data additional label is generated flag data, and flag data is submitted to data collector;
2) data collector is used for skin file and the synthetic interface file that generates of flag data are shown that the User Interface that generates is used to gather user data that then the user data that User Interface is submitted to is written back in the flag data according to label.
3) reduction of data device is used for that flag data is revised part and is written back in the source data, with the rule treatments device reduction of data that collects is become source data structure by calling template base, and exports this data by output interface.
4) rule treatments device is used for according to the data processing rule of template file definition source data being carried out pre-service.
5) template base is used for the storing template file, and template file is meant the structural data of the business processing definition identical with the source data data structure.
Further, described pretreatment unit comprises label processing device, is used for according to using source data being added label and being handled label.
Effect of the present invention is: method and system of the present invention can keep under the constant prerequisite of legacy data, realize the dynamic translation of data by modes such as template, labels, and template and label can carry out dynamic-configuration at different application, thereby the operability and the logicality of data have been increased, realized the unified processing of several data form, realize the business change when system moves, and reduced the otherness programming that factor brings according to adjustment.
Why the present invention has above-mentioned effect, reason is: the present invention is by adding the mode of data processing rule and label on the basis of source data, form by flag data, the user who has realized User Interface submits the switch transition of data and source data to, thereby can realize data synchronization updating between stream data and the structural data flexibly, pass through template configuration, can realize portable terminal, WEB uses, system upgrade during the uninterrupted continuous service of incorporate comprehensive application systems such as desktop processing, this method is obviously stronger in versatility, and dirigibility is bigger.
Description of drawings
Fig. 1 is the described data acquisition system (DAS) synoptic diagram based on label of the embodiment of the invention;
Fig. 2 is the described collecting method synoptic diagram based on label of the embodiment of the invention;
Fig. 3 is the described regular pretreatment process synoptic diagram of the embodiment of the invention;
Fig. 4 is the described label pretreatment process of an embodiment of the invention synoptic diagram;
Fig. 5 is the described reduction of data schematic flow sheet of the embodiment of the invention.
Embodiment
The invention will be further described below in conjunction with specification drawings and specific embodiments.
As shown in Figure 1, a kind of data acquisition system (DAS) based on label mainly comprises pretreatment unit, data collector, reduction of data device, rule treatments device and template base, wherein:
1) pretreatment unit 11, be used for the source data that input interface receives is carried out pre-service, by calling template base 16 and rule treatments device 15, according to the data processing rule that defines in the template source data is carried out template matches, the source data additional label is generated flag data, and flag data is submitted to data collector 13;
Described template is meant the structural data of the definition business processing identical with the source data data structure, described data processing rule is meant realizes two discernible expression formulas of handling procedure that the data node transforms mutually, and described label is meant the structural data that comprises name-value;
2) data collector 13, be used for skin file and the synthetic User Interface file that generates of flag data, show that the User Interface that generates is used to gather user data, then the user data that User Interface is submitted to is written back in the flag data according to label;
3) the reduction of data device 14, are used for that flag data is revised part and are written back in the source data, with rule treatments device 15 reduction of data that collects become source data structure by calling template base 16, and export this data by output interface.
4) the rule treatments device 15, are used for according to the data processing rule of template file definition source data being carried out pre-service.
5) template base 16, are used for the storing template file, and template file is meant the structural data of the definition business processing identical with the source data data structure.
Described pretreatment unit 11 comprises label processing device 12, and label processing device 12 is used for according to using source data being added label and being handled label.
In the present embodiment, template file is an example with structuring xml file, template definition the scope of hierarchical structure, data attribute and the property value between the data, above-mentioned information has constituted the basic format of data.
In the present embodiment, template file has not only defined the basic format of data, but also has defined data processing rule, and this data processing rule can be that template is predefined, also can be user-defined.Title-character string that this data processing rule is defined as the attribute form is right, and wherein character string is specially the function expression of a kind of regular expression or custom parameter.Described data processing rule is used to instruct how deal with data of handling procedure.Data processing rule can be the operation that data are increased, delete or revise, and also data is carried out format conversion, perhaps data is filtered the rule treatments device that dissimilar property values is corresponding different.But user's editing template file makes it meet application rule.
A kind of collecting method based on label, as shown in Figure 2, its method comprise following steps:
1) regular pre-service and label pre-service: pretreatment unit 11 obtains source data, call rule treatments device 15 and template base 16, according to the data processing rule that defines in the template source data is carried out template matches, 11 pairs of source data additional labels of pretreatment unit generate flag data, and flag data submitted to data collector, S21;
Wherein, data processing rule is meant realizes two discernible expression formulas of handling procedure that the data node transforms mutually, the mode that its control data is handled, the dirigibility that improves data.Label adds in the source data with the form of attribute according to the demand of pre-service, collection and reduction.Label carries out differentiation identification according to using with data, has realized that by label the dynamic flexible of identical data different application is changed, and has increased the identifiability of data.
In the present embodiment, template is meant the structural data of the definition business processing identical with the source data data structure, pretreatment unit appends to label on the identical data node of the data structure of source data according to the processing rule that defines on the template data node and generates flag data, and described label is meant the structural data that comprises name-value.
In the present embodiment, template definition is as follows:
<root>
<infoset>
<info>
<xsl?value=”display.xsl”default=”true”/>
</info>
</infoset>
<data>
<items>
<item?id=”1”desc=""type=""value=””operator=””>
<![CDATA[]]>
<answer?title=""/>
</item>
<item?id=”2”desc=""type="text"value=””operator=”delete”>
<! [which type of opinions or suggestions CDATA[you have to this department]] 〉
<answer?title=""/>
</item>
</items>
</data>
</root>
The skin file Display.xsl that has needed when having defined data presentation in this template in the info node has defined data processing rule in the item node, that is: if exist this node then to delete this node.
In the present embodiment, as shown in Figure 3, regular preprocessing process comprises following key step:
Step 31, pretreatment unit 11 are accepted source data, beginning data pretreatment process;
In the present embodiment, source data is defined as follows:
<root>
<data>
<items>
<item?id=”1”type="radio"value=””>
<! [whether CDATA[you are satisfied with to the management system of our company]] 〉
The satisfied " of<answer title="/〉
<answer title=" be unsatisfied with "/
</item>
<item?id=”2”type="text"value=””>
<! [which type of opinions or suggestions CDATA[you have to this department]] 〉
<answer?title=""/>
</item>
<item?id=”3”type="check"value=””>
<! [you think that our company need improve those aspects CDATA[]] 〉
<answer title=" expansion operation scale "/〉
<answer title=" carry out enterprise joint-stock system transform "/
The standardization degree " of<answer title=" raising business administration/〉
</item>
</items>
</data>
</root>
Step 32, according to configuration information, pretreatment unit 11 reads the template file in the template base 16 that source data uses, and handles according to the configuration in the template file;
Step 33, each data node of pretreatment unit 11 circular treatment;
In the present embodiment, each item node of circular treatment.
Step 34, pretreatment unit 11 read and resolve the data processing rule in the template;
In the present embodiment, read item node operator property value, this property value has defined the data processing rule of node.
Step 35, according to the node rule type after resolving, call corresponding rule treatments device 15;
In the present embodiment, preprocessor is added log-on message in configuration file, and pretreatment unit is sought preprocessor by log-on message.
<appSettings>
<add?key=”ruleHandler”value=”MyProj?ect.MyHandlers.RuleHandler"/>
<add?key=”tagHandler”value="MyProject.MyHandlers.TagHandler"/>
</appSettings>
In the present embodiment, the key property value has defined the title of handling procedure, and the value property value has defined the handling procedure class.
Step 36, rule treatments device carry out corresponding pretreatment operation according to the rule in the template file to source data;
In the present embodiment, second item node deleted from source data.
Step 37, judge whether to handle all data nodes.If then withdraw from the circular treatment flow process, otherwise handle next data node;
Step 38, pretreatment unit 11 obtain regular pretreated data.
In the present embodiment, the data file that source data is handled back formation through the rule treatments device is as follows:
<root>
<data>
<items>
<item?id=”1”type="radio"value=””>
<! [whether CDATA[you are satisfied with to the management system of our company]] 〉
The satisfied " of<answer title="/〉
<answer title=" be unsatisfied with "/
</item>
<item?id=”3”type="check"value=””>
<! [you think that our company need improve those aspects CDATA[]] 〉
<answer title=" expansion operation scale "/〉
<answer title=" carry out enterprise joint-stock system transform "/
The standardization degree " of<answer title=" raising business administration/〉
</item>
</items>
</data>
</root>
Source data is added label through after the regular pre-service according to application rule.The purpose of adding label is to make data have application background, better recognition and utilize data in helping using.
In the present embodiment, as shown in Figure 4, the label preprocessing process comprises following key step:
Step 41, analytical applications rule, different application rules should be added different labels with convenient identification;
Step 42, call corresponding label processing device 12 according to application rule;
Step 43, each data node of circular treatment;
Step 44, label processing device 12 are that the data node adds label, and described label is that title-character string with the attribute form is to being added in the data node;
Step 45, judge whether to handle all data nodes.If handle, then withdraw from the circular treatment flow process; Otherwise handle next data node;
Step 46, pretreatment unit 11 obtain pretreated flag data.
In the present embodiment, it is as follows that process label processing device 12 carries out the pretreated data file of label:
<root>
<data>
<items>
<item?id="1"type="radio"value=””>
<! [whether CDATA[you are satisfied with to the management system of our company]] 〉
The satisfied " of<answer id=" 1_1 " name=" 1 " checked=" false " value=" 0 " title="/〉
<answer id=" 1_2 " name=" 1 " checked=" false " value=" 1 " title=" be unsatisfied with "/
</item>
<item?id=”2”type="check"value=””>
<! [you think that our company need improve those aspects CDATA[]] 〉
<answer id=" 2_1 " name=" 2 " checked=" false " value=" 0 " title=" enlarges operation
Scale "/〉
<answer id=" 2_2 " name=" 2 " checked=" false " value=" 1 " title=" carries out enterprise
Shareholding system transformation "/〉
<answer id=" 2_3 " name=" 2 " checked=" false " value=" 2 " title=" improve enterprise
The standardization degree " of management/〉
</item>
</items>
</data>
</root>
Described source data additional label generation flag data is meant on the identical data node of the data structure of source data added tag attributes.In the present embodiment, added label id, name, checked, value and be used in data presentation and identification user data when collecting.
In the present embodiment, the flag data that obtains after step (1) pre-service and the structural data node relationship consistency of source data.
2) data collector 13 generates the explicit user interactive interface by with skin file and the synthetic User Interface file that generates of flag data, and the user fills in the back and submits to, S22;
3) data collector 13 is written back in the flag data S23 with the user data of User Interface submission according to label;
Data collector 13 extracts skin file display.xsl from template base, skin file and pretreated flag data are synthesized User Interface, and is responsible for the data that collect are added in the pretreated file.
In the present embodiment, display.xsl is as follows for the definition skin file:
<xsl:template?match="/">
<xsl:apply-templates?select="root/data"/>
</xsl:template>
<xsl:template?match="data">
<xsl:apply-templates?select="items"/>
</xsl:template>
<xsl:template?match="items">
<table>
<xsl:apply-templates?select="item"/>
</table>
</xsl:template>
<xsl:template?match="item">
<tr>
<td?class="Label">
<label>
<xsl:value-of?select="@text"/>
<xsl:value-of?select="':"'/>
</label>
</td>
<td?class="Label">
<label>
<xsl:value-of?select="@value"/>
</label>
</td>
</tr>
</xsl:template>
In the present embodiment, the data file that data collector is collected is as follows:
<root>
<data>
<items>
<item?id="1"type="radio"value=””>
<! [whether CDATA[you are satisfied with to the management system of our company]] 〉
The satisfied " of<answer id=" 1_1 " name=" 1 " checked=" true " value=" 0 " title="/〉
<answer id=" 1_2 " name=" 1 " checked=" false " value=" 1 " title=" be unsatisfied with "/
</item>
<item?id=”2”type="check"value=””>
<! [you think that our company need improve those aspects CDATA[]] 〉
<answer id=" 2_1 " name=" 2 " checked=" true " value=" 0 " title=" enlarges operation
Scale "/〉
<answer id=" 2_2 " name=" 2 " checked=" true " value=" 1 " title=" carries out enterprise
Shareholding system transformation "/〉
<answer id=" 2_3 " name=" 2 " checked=" false " value=" 2 " title=" improve enterprise
The standardization degree " of management/〉
</item>
</items>
</data>
</root>
In the present embodiment, step 2) in, the label that described flag data adds in step 1) satisfies User Interface is submitted data to the user sign requirement, in the step 3), the write-back process is mated according to the sign in the user data of submitting to and the label of flag data.Described user submits to the sign in the data to mate with the label of flag data and is meant the different and different of the existing User Interface of foundation, if User Interface is by the uniqueness of id identification data, then the certain existence of the label of flag data can be converted to the label of id sign by skin file, this label is corresponding one by one with the id sign, above-mentioned this conversion corresponding relation, be by the stencil design personnel according to the characteristics design of User Interface in template.
4) reduction of data device 14 is written back in the source data revising part in the flag data according to template in the step (1) and data processing rule, finishes data acquisition, S24.
After data acquisition was finished, reduction of data device 14 was according to the reduction of data of using collecting.The reduction of data function can keep source data file constant in image data.As shown in Figure 5, reduction of data comprises following key step:
Step 51, each data node of circular treatment;
Step 52, according to the feature of image data, in source data, find the position of data;
Step 53, the data that collect of in source data, adding;
Step 54, judge whether to handle all data nodes; If handle, then withdraw from the circular treatment flow process; Otherwise handle next data node;
Data after step 55,14 outputs of reduction of data device are handled.
In the present embodiment, as follows through the data file after 14 reduction of reduction of data device:
<root>
<data>
<items>
<item id=" 1 " the satisfied " of type=" radio " value=" 〉
<! [whether CDATA[you are satisfied with to the management system of our company]] 〉
The satisfied " of<answer title="/〉
<answer title=" be unsatisfied with "/
</item>
<item?id=”2”type="text"value=””>
<! [which type of opinions or suggestions CDATA[you have to this department]] 〉
<answer?title=""/>
</item>
<item id=" 3 " type=" check " value=" enlarge the operation scale, carry out enterprise joint-stock system and change
Make " 〉
<! [you think that our company need improve those aspects CDATA[]] 〉
<answer title=" expansion operation scale "/〉
<answer title=" carry out enterprise joint-stock system transform "/
The standardization degree " of<answer title=" raising business administration/〉
</item>
</items>
</data>
</root>
Being written back in the source data described in the present embodiment with revising part in the flag data, be to mate by the data structure similarity of flag data and source data, the data structure similarity of flag data and source data is meant that source data and flag data all are structurized data, hierarchical relationship, relation of inclusion between the data node of two kinds of data layouts are in full accord, and the data node attribute of flag data is the tag attributes that the data node attribute at source data increases newly.
In the present embodiment in the step 4), revising the method that partly is written back to source data in the described flag data is: will exist in the source data, data node or its data revised in the corresponding flag data, meet the data that the data processing rule reverse process requires, be written back to the source data from flag data.Wherein, it is in full accord to meet reverse process defines in data node quantity that data that the data processing rule reverse process requires are meant these data and node data type and the data processing rule parametric variable quantity and data type.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other embodiment, belongs to technological innovation scope of the present invention equally.

Claims (12)

1. the collecting method based on label comprises the steps:
1) regular pre-service and label pre-service: pretreatment unit obtains source data, according to the data processing rule that defines in the template source data is carried out template matches, pretreatment unit generates flag data to the source data additional label, and flag data is submitted to data collector;
Described data processing rule is meant realizes two discernible expression formulas of handling procedure that the data node transforms mutually, described template is meant the structural data of the definition business processing identical with the source data data structure, and described label is meant the structural data that comprises name-value;
2) data collector generates the explicit user interactive interface by with skin file and the synthetic User Interface file that generates of flag data, and the user fills in the back and submits to;
3) data collector is written back to the user data of User Interface submission in the flag data according to label;
4) the reduction of data device is written back in the source data revising part in the flag data according to template in the step (1) and data processing rule, finishes data acquisition.
2. a kind of collecting method based on label as claimed in claim 1 is characterized in that, in the step 1), the pretreated method of described rule comprises following steps:
A. pretreatment unit is accepted source data, beginning data pretreatment process;
B. according to configuration information, pretreatment unit reads the template file in the template base that source data uses, and handles according to the configuration in the template file;
C. pretreatment unit circular treatment data node;
D. pretreatment unit reads and resolves the data processing rule in the template;
E. according to the data node rule type after resolving, call the data processing rule in the corresponding template file;
F. according to the rule in the template file, source data is carried out corresponding pretreatment operation;
G. judge whether to handle all data, if, then withdraw from the circular treatment flow process, otherwise execution in step c;
H. pretreatment unit obtains regular pretreated data.
3. a kind of collecting method based on label as claimed in claim 2 is characterized in that, in the step 1), the pretreated method of described label comprises following steps:
A. analytical applications rule, different application rules should be added different labels with convenient identification;
B. call corresponding label processing device in the pretreatment unit according to application rule;
C. circular treatment data node;
D. label processing device is that the data node adds label, and described label is that title-character string with the attribute form is to being added in the data node;
E. judge whether to handle all data nodes,, then withdraw from the circular treatment flow process if handle; Otherwise execution in step C;
F. pretreatment unit obtains pretreated flag data.
4. a kind of collecting method as claimed in claim 3 based on label, it is characterized in that: in the step 1), pretreatment unit appends to label on the identical data node of the data structure of source data according to the processing rule that defines on the template data node and generates flag data.
5. a kind of collecting method based on label as claimed in claim 4 is characterized in that, in the step 1), described method to source data additional label generation flag data is: add tag attributes on the identical data node of the data structure of source data.
6. as the described a kind of collecting method of one of claim 1 to 5 based on label, it is characterized in that: step 2) in, the label that described flag data adds in step 1), satisfy User Interface and the user is submitted to the sign requirement of data, in the step 3), the write-back process is mated according to the sign in the user data of submitting to and the label of flag data.
7. a kind of collecting method as claimed in claim 6 based on label, it is characterized in that: in the step 3), described user submits to the sign in the data to mate with the label of flag data and is meant the different and different of the existing User Interface of foundation, if User Interface is by the uniqueness of id identification data, then certain existence can be converted to the label that id identifies by skin file in the flag data, and this label is corresponding one by one with the id sign.
8. as the described a kind of collecting method of one of claim 1 to 5 based on label, it is characterized in that: in the step 4), describedly being written back in the source data revising part in the flag data, is to mate by the data structure similarity of flag data and source data.
9. a kind of collecting method as claimed in claim 8 based on label, it is characterized in that: the data structure similarity of described flag data and source data is meant that source data and flag data all are structurized data, hierarchical relationship, relation of inclusion between the data node of two kinds of data layouts are in full accord, and the data node attribute of flag data is the tag attributes that the data node attribute at source data increases newly.
10. as the described a kind of collecting method of one of claim 1 to 5 based on label, it is characterized in that, in the step 4), revising the method that partly is written back to source data in the described flag data is: will exist in the source data, meet that the data processing rule reverse process requires, data node or its data revised in the corresponding flag data, be written back to the source data from flag data, described to meet reverse process defines in the data node quantity that is meant these data that the data processing rule reverse process requires and node data type and the data processing rule parametric variable quantity and data type in full accord.
11. the data acquisition system (DAS) based on label, this system comprises pretreatment unit, data collector, reduction of data device, rule treatments device and template base, wherein:
1) pretreatment unit, be used for the source data that input interface receives is carried out pre-service, by calling template base and rule treatments device, according to the data processing rule that defines in the template source data is carried out template matches, the source data additional label is generated flag data, and flag data is submitted to data collector;
2) data collector is used for skin file and the synthetic interface file that generates of flag data are shown that the User Interface that generates is used to gather user data that then the user data that User Interface is submitted to is written back in the flag data according to label;
3) reduction of data device is used for that flag data is revised part and is written back in the source data, with the rule treatments device reduction of data that collects is become source data structure by calling template base, and exports this data by output interface;
4) rule treatments device is used for according to the data processing rule of template file definition source data being carried out pre-service;
5) template base is used for the storing template file, and template file is meant the structural data of the definition business processing identical with the source data data structure.
12. as a kind of data acquisition system (DAS) based on label as described in the claim 11, it is characterized in that: described pretreatment unit comprises label processing device, this label processing device is used for according to using source data being added label and being handled label.
CN2008102275605A 2008-11-28 2008-11-28 Data acquisition method based on labels and system thereof Active CN101751382B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102275605A CN101751382B (en) 2008-11-28 2008-11-28 Data acquisition method based on labels and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102275605A CN101751382B (en) 2008-11-28 2008-11-28 Data acquisition method based on labels and system thereof

Publications (2)

Publication Number Publication Date
CN101751382A CN101751382A (en) 2010-06-23
CN101751382B true CN101751382B (en) 2011-10-05

Family

ID=42478375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102275605A Active CN101751382B (en) 2008-11-28 2008-11-28 Data acquisition method based on labels and system thereof

Country Status (1)

Country Link
CN (1) CN101751382B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387025B (en) * 2010-09-03 2014-03-12 腾讯科技(深圳)有限公司 Method for collecting service data packet log information and service logic processing system
US20120259854A1 (en) * 2011-04-11 2012-10-11 Google Inc. Conversion Path Based Segmentation
US8655907B2 (en) 2011-07-18 2014-02-18 Google Inc. Multi-channel conversion path position reporting
CN104537012B (en) * 2014-12-17 2019-03-26 广州酷狗计算机科技有限公司 Data processing method and device
CN104615465B (en) * 2015-01-30 2019-04-23 深圳市金立通信设备有限公司 A kind of terminal
CN106446184B (en) * 2016-09-29 2019-03-26 中国银联股份有限公司 Operation system data processing method and device
CN107248065A (en) * 2017-06-08 2017-10-13 中国建设银行股份有限公司 Line reports table management method, system, device and storage medium
CN107402869B (en) * 2017-07-12 2021-01-01 东软集团股份有限公司 Data acquisition method, device and system
CN108183832B (en) * 2017-11-28 2020-09-15 北京空间技术研制试验中心 Network data acquisition method
CN108614862A (en) * 2018-03-28 2018-10-02 国家计算机网络与信息安全管理中心 Real-time tag treating method and apparatus based on stream calculation engine
CN109145047B (en) * 2018-06-29 2023-02-03 土巴兔集团股份有限公司 User tag portrait configuration method, data processing device and storage medium
CN110262904B (en) * 2019-05-17 2022-10-14 北京达佳互联信息技术有限公司 Data acquisition method and device
CN112181963A (en) * 2020-09-28 2021-01-05 新奥数能科技有限公司 Data processing method, device, server and storage medium for digital enterprise
CN112948845B (en) * 2021-02-01 2022-06-07 航天科技控股集团股份有限公司 Data processing method and system based on Internet of things data center
CN114564626B (en) * 2021-12-23 2023-04-21 中国电子科技集团公司第二十九研究所 Method for filtering special situation of electronic reconnaissance and storage medium
CN114546389A (en) * 2022-04-25 2022-05-27 浙江大华技术股份有限公司 Front-end page generation method, audio and video analysis method, device and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5835712A (en) * 1996-05-03 1998-11-10 Webmate Technologies, Inc. Client-server system using embedded hypertext tags for application and database development

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5835712A (en) * 1996-05-03 1998-11-10 Webmate Technologies, Inc. Client-server system using embedded hypertext tags for application and database development

Also Published As

Publication number Publication date
CN101751382A (en) 2010-06-23

Similar Documents

Publication Publication Date Title
CN101751382B (en) Data acquisition method based on labels and system thereof
US7979793B2 (en) Graphical creation of a document conversion template
Brandes et al. Graph markup language (GraphML)
CN101937427B (en) Browser-based system and method for content edition and issue
US7721195B2 (en) RTF template and XSL/FO conversion: a new way to create computer reports
US7672957B2 (en) User interface configured to display mechanical fabric and semantic model of a legacy computer application generated, graphical view navigating links between mechanical nodes and semantic nodes based on relevant business rules
US20070250762A1 (en) Context-aware content conversion and interpretation-specific views
US20070130512A1 (en) Systems and methods for report design and generation
CN103778107A (en) Method and platform for quickly and dynamically generating form based on EXCEL
CN104424265B (en) Digital asset management method and system
JPWO2006085455A1 (en) Document processing apparatus and document processing method
CN106775770A (en) The lookup method of query statement is built based on category information
CN111208982B (en) ERP system rapid customization platform based on visual configuration mode
CN109710250B (en) Visualization engine system and method for constructing user interface
CN110688830B (en) Credit investigation template conversion method and device
US7017147B2 (en) Computer readable medium, method, and system for supporting system development
WO2007081017A1 (en) Document processor
JP7339628B2 (en) Online report creation system using Excel tools
Brandes et al. Graph markup language (GraphML)
KR101243058B1 (en) Xml thesis constructing system and method
CN113239670A (en) Method and device for uploading service template, computer equipment and storage medium
CN108228688B (en) Template generation method, system and server based on XBRL
Rodriguez-Cruz et al. Automatic generation of printed representations of ecuadorian electronic invoices through XML data binding
EP1569095A1 (en) System and method for presentation of wireless application data using repetitive UI layouts
CN111796803B (en) Template report generation method based on multi-stage container restocking

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