CN110489686A - A kind of data analysing method, device and terminal - Google Patents

A kind of data analysing method, device and terminal Download PDF

Info

Publication number
CN110489686A
CN110489686A CN201910813650.0A CN201910813650A CN110489686A CN 110489686 A CN110489686 A CN 110489686A CN 201910813650 A CN201910813650 A CN 201910813650A CN 110489686 A CN110489686 A CN 110489686A
Authority
CN
China
Prior art keywords
node
logical
root node
connection line
logical connection
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.)
Pending
Application number
CN201910813650.0A
Other languages
Chinese (zh)
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910813650.0A priority Critical patent/CN110489686A/en
Publication of CN110489686A publication Critical patent/CN110489686A/en
Priority to PCT/CN2020/105149 priority patent/WO2021036647A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0635Risk analysis of enterprise or organisation activities

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Quality & Reliability (AREA)
  • Educational Administration (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a kind of data analysing method, device and terminals, wherein this method comprises: obtaining the corresponding initialization data of air control rule;The initialization data includes the identification information of each non-root node of preset tree structure and the identification information of each logical connection line;The tree structure includes root node, at least one non-root node and at least one logical connection line;Deconsolidation process is carried out to the initialization data, obtains non-root node information group and logical connection line information group;The non-root node information group includes the identification information of each non-root node, and the logical connection line information group includes the identification information of each logical connection line;The non-root node information group and the logical connection line information group are parsed, to draw and show the tree structure.Using the present invention, the corresponding tree structure of air control rule can be intuitively and effectively shown.

Description

A kind of data analysing method, device and terminal
Technical field
The present invention relates to field of computer technology more particularly to a kind of data analysing methods, device and terminal.
Background technique
Tree structure has clear layer, facilitates the characteristics such as management therefore can as a kind of nonlinear data structure Being used for tree structure to various rules, such as the displaying of air control rule.However, when in the corresponding tree of terminal display air control rule When shape structure, if the data volume of the tree structure is larger, structure is complex, browser is easily caused to fall into paralysis in displaying process Paralysis state, so as to the displaying procedure failure of the tree structure.Therefore, the corresponding tree of air control rule how is intuitively and effectively shown Shape structure becomes urgent problem to be solved.
Summary of the invention
The embodiment of the invention provides a kind of data analysing method, device and terminals, can intuitively and effectively show air control The corresponding tree structure of rule.
In a first aspect, the embodiment of the invention provides a kind of data analysing methods, comprising:
Obtain the corresponding initialization data of air control rule;The initialization data includes each non-root of preset tree structure The identification information of the identification information of node and each logical connection line;The tree structure includes root node, at least one non-root Node and at least one logical connection line;
Deconsolidation process is carried out to the initialization data, obtains non-root node information group and logical connection line information group;Institute State the identification information that non-root node information group includes each non-root node, the logical connection line information group includes described respectively patrolling Collect the identification information of connecting line;
The non-root node information group and the logical connection line information group are parsed, to draw and show the tree Shape structure.
Optionally, the non-root node includes logical node and condition node, and each logical node passes through logical connection line Connect at least one condition node;
The logical node refers to that the corresponding node of logical operator, the identification information of each logical node include logic section The corresponding logical operator of mark and logical node of point;The logical operator includes at least one of the following: logical AND, patrols Volume non-, logic or;
The condition node refers to the corresponding node of condition, and the identification information of each condition node includes the mark of condition node Knowledge and the corresponding condition of condition node.
Optionally, deconsolidation process is carried out to the initialization data, obtains non-root node information group and logical connection line letter Breath group, comprising:
The initialization data is traversed;
When traversing non-root node, the identification information of the non-root node is extracted from the initialization data, and will The identification information of the non-root node is added in non-root node information group;
When traversing logical connection line, the identification information of the logical connection line is extracted from the initialization data, And the identification information of the logical connection line is added in logical connection line information group.
Optionally, the non-root node information group further includes the location information of each non-root node, the logical connection Line information group further includes the location information of each logical connection line, the method also includes:
According to the location information of preset root node, calculates the location information of each non-root node and described respectively patrol Collect the location information of connecting line;
The location information of each non-root node is added in non-root node information group, and by each logical connection line Location information be added in logical connection line information group.
Optionally, the non-root node information group and the logical connection line information group are parsed, to draw and open up Show the tree structure, comprising:
Obtain the location information of each non-root node and the location information of each logical connection line;
In the position that the location information of each non-root node indicates, is drawn on the page according to the first rule and show institute Each non-root node of non-root node information group instruction is stated, and shows the mark of each non-root node in each non-root node Target information in information;
In the position that the location information of each logical connection line indicates, drawn on the page simultaneously according to Second Rule Show each logical connection line of the logical connection line information group instruction.
Optionally, the method also includes:
The edit operation to the tree structure is responded, the tree structure is edited;
The encapsulation of the identification information of the identification information for each non-root node for including by the tree structure and each logical connection line For the data packet of preset data form, and it is corresponding just that the data packet of the preset data form is determined as the air control rule Beginningization data.
Optionally, the response edits the tree structure to telling and the edit operation of tree structure, comprising:
When detecting the touch control operation to the first logical node in the tree structure, drop-down menu is shown;It is described Drop-down menu includes newly-increased logical node option and newly-increased conditional sections point option;
When detecting the touch control operation to the newly-increased logical node option, increases the second logical node newly and increase newly and patrol Collect connecting line;Pass through newly-increased logical connection line connection between first logical node and second logical node;
When detecting the touch control operation to the newly-increased conditional sections point option, increases at least one condition node newly and patrol Collect connecting line;By newly-increased between each condition node in first logical node and at least one described condition node The connection of logical connection line.
Optionally, edit operation of the response to the tree structure, edits the tree structure, comprising:
When detecting the touch control operation to the first logical node in the tree structure, drop-down menu is shown;It is described Drop-down menu includes at least one logical operator and at least one condition;
The touch control operation to the target object in the drop-down menu is responded, the corresponding target section of the target object is generated Point;The target object is any logical operator at least one described logical operator, or for it is described at least one Either condition in part.
Second aspect, the embodiment of the invention provides a kind of data analysis set-ups, comprising:
Acquiring unit, for obtaining the corresponding initialization data of air control rule;The initialization data includes preset tree The identification information of the identification information of each non-root node of shape structure and each logical connection line;The tree structure includes root section Point, at least one non-root node and at least one logical connection line;
First processing units obtain non-root node information group and patrol for carrying out deconsolidation process to the initialization data Collect connecting line information group;The non-root node information group includes the identification information of each non-root node, the logical connection line Information group includes the identification information of each logical connection line;
The second processing unit, for being parsed to the non-root node information group and the logical connection line information group, To draw and show the tree structure.
The third aspect the embodiment of the invention provides a kind of terminal, including processor, input equipment, output equipment and is deposited Reservoir, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is calculated for storing Machine program, the computer program include program instruction, and the processor is configured for calling described program instruction, are executed such as Method described in first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program is executed by processor to realize method as described in relation to the first aspect.
In conclusion the corresponding initialization data of the available air control rule of terminal, and the initialization data is torn open Divide processing, obtain non-root node information group and logical connection line information group, to connect to the non-root node information group and the logic Wiring information group is parsed, and to draw and show the tree structure, can intuitively and effectively show the corresponding tree of air control rule Shape structure.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of data analysing method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of tree structure provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another data analysing method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of data analysis set-up provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
Referring to Fig. 1, being a kind of flow diagram of data analysing method provided in an embodiment of the present invention.This method can be with Applied to terminal, the terminal include but is not limited to be smart phone, tablet computer, laptop, desktop computer etc. intelligence eventually End.Specifically, this method may comprise steps of:
S101, the corresponding initialization data of air control rule is obtained.
Wherein, the initialization data include each non-root node of preset tree structure identification information and each logic The identification information of connecting line;The tree structure includes root node, at least one non-root node and at least one logical connection Line.Non-root node refer in the tree structure be not root node node, this at least one be one or more.The present invention is implemented Example is equally applicable to other business rules in addition to being suitable for air control rule.
In one embodiment, the non-root node includes logical node and condition node, and each logical node is by patrolling It collects connecting line and connects at least one condition node;The logical node refers to the corresponding node of logical operator, each logic section The identification information of point includes the mark and the corresponding logical operator of logical node of logical node;The logical operator includes At least one of below: logical AND, logic NOT, logic or;The condition node refers to the corresponding node of condition, each condition node Identification information include condition node mark and the corresponding condition of condition node.In one embodiment, logical node is also At least one logical node can be connected by logical connection line.The mark of logical node can be used for number of logical node etc. In the information of the unique identification logical node.Logical AND can be and above-mentioned logic NOT can be non-, logic or can be or.Item The mark of part node may include the information that number of condition node etc. is used for the unique identification condition node.In one embodiment In, which can be the Rule of judgment for carrying out air control.The condition can be made of expression formula.In one embodiment, The expression formula may include comparison other and comparison operator.For example, certain condition can be greater than 22 years old for age of user.So use Family age and 22 years old can be understood as comparison other, greater than can be understood as comparison operator.
It referring to fig. 2, is a kind of schematic diagram of tree structure provided in an embodiment of the present invention.Node 01 is logical node, section Point 01 logical operator be or.Node 02 is condition node, and the condition of node 02 is condition 1.Node 03 is logical node, The logical operator of node 03 be and.Node 04 is condition node, and the condition of node 04 is condition 2, and node 05 is conditional sections Point, the condition of node 05 are condition 3, and node 06 is logical node, the logical operator of node 06 be and.Wherein, node 02- Node 06 is the child node of node 01.Node 01 by logical connection line respectively with node 02, node 03, node 04, node 05, node 06 connects.Wherein, node 06 is connected to node 07, node 08, node 09, these three nodes by logical connection line It is condition node, corresponding condition is respectively condition 4, condition 5, condition 6.Node 07- node 09 is the son section of node 06 Point.In one embodiment, node 01 can be root node.
In one embodiment, tree structure can be more accurately constructed in order to subsequent, the mark of each non-root node Know information, can also include the mark of the non-root node respectively connected.For the non-root node as father node, this is saved as father The identification information of the non-root node of point can also include the mark of the child node of connection.For example, with reference to Fig. 2, as father node The identification information of node 06 can also include the mark of mark-node 09 of the node 07 of connection.Or, for as child node Non-root node, the identification information of the non-root node as child node can also include the mark of the father node of connection.Example Such as, referring to fig. 2, the identification information as the node of child node 09 can also include the mark of the node 06 of connection.Each logic connects The identification information of wiring can also include the mark of the non-root node of logical connection line connection.
In one embodiment, terminal can obtain the corresponding initialization data of air control rule from server.
In one embodiment, which can be the server of carrying air control regulation engine.Wherein, air control rule is drawn It holds up and refers to the component for being used to manage air control rule of insertion in the application.
In one embodiment, it is corresponding initial to obtain air control rule from database for the accessible database of terminal Change data.
In one embodiment, terminal can save the corresponding initialization data of air control rule, and available storage The corresponding initialization data of air control rule.
In one embodiment, terminal it is corresponding can also to trigger the acquisition air control rule when meeting preset condition The step of initialization data, the embodiment of the present invention are numerous to list herein.
In one embodiment, this meets preset condition, may include: to detect to the corresponding tree structure of air control rule Edit requests, and/or detect to the request of the page furbishings of target pages or accessing page request.For example, the page object Face can be the page for showing the air control rule.
In one embodiment, this meets preset condition, can also refer to meet other conditions, the embodiment of the present invention is herein It is not listed one by one.
In one embodiment, terminal can edit tree structure.The process of editor's tree structure may include creation The process of tree structure and the process edited based on the tree structure created.
In one embodiment, terminal can be used such as under type editor's tree structure: terminal is responded to the tree structure Edit operation, edit the tree structure;The identification information for each non-root node that the tree structure is included by terminal and each The identification information of logical connection line is encapsulated as the data packet of preset data form, and the data packet of the preset data form is true It is set to the corresponding initialization data of the air control rule.
In one embodiment, which can be JS object numbered musical notation (JavaScript Object Notation, JSON) data format.The identification information for each non-root node that the tree structure is included by terminal and each logic connect The identification information of wiring is encapsulated as the data packet of preset data form, may include: each non-root for including by the tree structure The identification information of the identification information of node and each logical connection line is successively assembled in JSON object in order.According to tree structure Successively assembling in order, can be convenient the process of the circular recursion of data, can carry out deconsolidation process to initialization data and obtain The efficiency of information group.In one embodiment, this can be sequentially the sequence of the level traversal to tree construction.
In one embodiment, which can be sent to aforementioned clothes after editing the tree structure by terminal Business device is saved in aforementioned data library to be saved, or by the initialization data, or the initialization data is stored in local.
S102, deconsolidation process is carried out to the initialization data, obtains non-root node information group and logical connection line information Group.
Wherein, the non-root node information group includes the identification information of each non-root node, the logical connection line letter Breath group includes the identification information of each logical connection line.In one embodiment, which can also be known as array, refer to and deposit The structure of multiple elements of same type is stored up.
In one embodiment, terminal to the initialization data carry out deconsolidation process, obtain non-root node information group and Logical connection line information group may include: that terminal traverses the initialization data;Terminal, which is worked as, traverses non-root node When, the identification information of the non-root node is extracted from the initialization data, and the identification information of the non-root node is added It is added in non-root node information group;Terminal extracts the logic when traversing logical connection line from the initialization data The identification information of connecting line, and the identification information of the logical connection line is added in logical connection line information group.The present invention Embodiment can traverse initialization data to obtain non-root node information group and logical connection line information group, facilitate to non- The process that the identification information of root node and the identification information of logical connection line are managed respectively.
In one embodiment, in order to improve subsequent parsing array to draw and show the efficiency of tree structure, terminal can In above-mentioned split process, to calculate the location information of each non-root node and the location information of each logical connection line.For example, Terminal according to the location information of preset root node, can calculate the location information of each non-root node and described respectively patrol Collect the location information of connecting line;The location information of each non-root node is added in non-root node information group, and will be described The location information of each logical connection line is added in logical connection line information group.
In one embodiment, terminal can be according to the location information of preset root node, using cascading style sheets (Cascading Style Sheets, CSS) absolute fix technology calculate each root node location information and this respectively patrol Collect the location information of connecting line.Wherein, which may include coordinate information.For example, the coordinate information of root node and non- The coordinate information of root node may include corresponding left margin and top margin.Since the location information of root node is known , therefore terminal often traverses a non-root node can correspondingly increase the left margin and top margin of the non-root node, with this Calculate the location information of the non-root node.
In one embodiment, location information of the terminal in addition to each non-root node can be calculated in above-mentioned split process And the location information of each logical connection line, it can also be after obtaining non-root node information group and non-root node information group, root According to the location information of preset root node, the location information of each root node and the position letter of each logical connection line are calculated Breath.Correspondingly, the calculating of location information can also be carried out using CSS absolute fix technology.
S103, the non-root node information group and the logical connection line information group are parsed, to draw and show The tree structure.
In the embodiment of the present invention, in order to intuitively and effectively show tree structure, can to the non-root node information group and The logical connection line information group is parsed, to draw and show the tree structure.
In one embodiment, terminal solves the non-root node information group and the logical connection line information group Analysis may include: that terminal obtains the location information of each non-root node and described to draw and show the tree structure The location information of each logical connection line;Terminal is in the position that the location information of each non-root node indicates, according to the first rule Each non-root node of the non-root node information group instruction is drawn and shown on the page, and is shown in each non-root node Target information in the identification information of each non-root node;Each logical connection line location information indicate position, Draw and show each logical connection line of the logical connection line information group instruction on the page according to Second Rule.
In one embodiment, which can specify that the display format of each non-root node, and such as regulation is in non-root node The pattern of the information of upper display and/or the information shown in non-root node, such as font, font size, font color.For example, The corresponding logical operator of the logical node is shown on logical node, the color of logical operator is yellow, in condition node Upper display corresponding condition of condition node, the color of condition are green.In one embodiment, the display of each non-root node Form can also be included in corresponding non-root node position and show control corresponding with the non-root node, such as pull down choice box. The Second Rule can specify that the display format of each logical connection line, such as provide the information shown on logical connection line, at this The Show Styles of the pattern of the information of the upper display of logical connection line, the logical connection line.The Show Styles of the logical connection line, The including but not limited to shape of the logical connection line, fineness, color.
As it can be seen that in embodiment shown in FIG. 1, the corresponding initialization data of the available air control rule of terminal, and it is first to this Beginningization data carry out deconsolidation process, obtain non-root node information group and logical connection line information group, to believe the non-root node Breath group and the logical connection line information group are parsed, and to draw and show the tree structure, can intuitively and effectively show wind Regulatory control then corresponding tree structure.
Referring to Fig. 3, for the flow diagram of another data processing method provided in an embodiment of the present invention.This method can To be applied to terminal.Specifically, this method may comprise steps of:
S301, the corresponding initialization data of air control rule is obtained;
S302, deconsolidation process is carried out to the initialization data, obtains non-root node information group and logical connection line information Group;
S303, the non-root node information group and the logical connection line information group are parsed, to draw and show The tree structure.
The edit operation of S304, response to the tree structure, edits the tree structure;
The identification information of S305, the identification information for each non-root node for including by the tree structure and each logical connection line It is encapsulated as the data packet of preset data form, and the data packet of the preset data form is determined as the air control rule and is corresponded to Initialization data.
Wherein, in the embodiment of the present invention to the edit operation of the tree structure include but is not limited to following any one or It is multinomial: to be the operation of the deletion of node of the tree structure, to described tree-like for the operation of the newly-increased node of the tree structure The operation of the modification node of structure, such as logical operator and condition of modification display.The embodiment of the present invention passes through directly to displaying Tree structure edited, can solve and in the prior art increase, delete, modifying node and cause what tree structure redrew to ask Topic, improves the editorial efficiency to tree structure.To briefly enumerate below provided in the embodiment of the present invention it is several for the tree The mode of the newly-increased node of shape structure.
In one embodiment, terminal responds the edit operation to the tree structure, edits the tree structure, wraps Include: terminal shows drop-down menu when detecting the touch control operation to the first logical node in the tree structure;Under described Drawing menu includes newly-increased logical node option and newly-increased conditional sections point option;Terminal, which is worked as, to be detected to the newly-increased logical node choosing When the touch control operation of item, the second logical node and newly-increased logical connection line are increased newly;First logical node and described second Pass through newly-increased logical connection line connection between logical node;Terminal works as the touch-control detected to the newly-increased conditional sections point option When operation, at least one condition node and logical connection line are increased newly;First logical node and at least one described condition Pass through newly-increased logical connection line connection between each condition node in node.Wherein, which is that this is tree-like Any logical node in each logical node that structure includes.Correspondingly, terminal can also edit second in the same way Logical node, this will not be repeated here for the embodiment of the present invention.
In one embodiment, aforementioned newly-increased second logical node, may include: that terminal is shown including at least one logic The option of operator;Terminal increases the target logic newly when detecting the touch control operation for the option of target logic operator Corresponding second logical node of operator;Or, terminal display logic operator input frame, is directed to the logical operator when detecting When the target logic operator of input frame input, corresponding second logical node of the target logic operator is increased newly.
In one embodiment, aforementioned to increase at least one condition node newly, it may include: that terminal is shown including at least one The option of condition increases the corresponding conditional sections of the goal condition newly when detecting the touch control operation for the option of goal condition Point;Or, terminal display condition input frame increases the target newly when detecting the goal condition for condition entry frame input The corresponding condition node of condition.
In one embodiment, aforementioned to increase at least one condition node newly, it can also include: that terminal ought be detected to newly-increased When the touch control operation of conditional sections point option, display adding conditional option and addition combination condition option;Terminal is when detecting to adding When adding the touch control operation of condition options, add a condition node, when detect to addition combination condition option touch control operation When, add multiple condition nodes.For example, terminal when detect to addition combination condition option touch control operation when, adding conditional 1 Corresponding node, the corresponding node of condition 2, the corresponding node of condition 3, these three nodes pass through logical connection line and the first logic Node connection.
In one embodiment, terminal is when detecting to goal condition node (or the target that goal condition node is corresponding Pull down choice box) touch control operation when, show drop-down list;The drop-down list includes following any one or more options: choosing Select variable options, selection parameter option, selection constant option, selection method option;Terminal is responded to the mesh in the drop-down list The touch control operation for marking option, obtains and shows the parameter value list of the targets option corresponding types;The parameter value list includes belonging to In at least one parameter value of the type;The selection operation to the parameter value in the parameter list is responded, by the parameter value of selection The comparison other being determined as in the corresponding condition of condition node.For example, selecting corresponding show of constant option is constant list, Constant list includes multiple constants, and corresponding show of options method option is method list, and method list includes multiple methods.Its In, above-mentioned goal condition node is the either condition node in the tree structure.It is the goal condition that the target, which pulls down choice box, The corresponding drop-down choice box of any comparison other in the corresponding condition of node, target drop-down choice box can be used in setting should Any comparison other in the corresponding condition of goal condition node.In one embodiment, terminal can also be by the ginseng of the selection Numerical value is filled into target drop-down choice box.
In one embodiment, which can also include input value option, and terminal, which is worked as, to be detected to the input value When the touch control operation of option, display parameter value input frame;Terminal, which can be worked as, detects the input value based on the parameter value input frame When, which is determined as the comparison other in the corresponding condition of goal condition node.
In one embodiment, terminal responds the edit operation to the tree structure, edits the tree structure, wraps Include: terminal shows drop-down menu when detecting the touch control operation to the first logical node in the tree structure;Under described Drawing menu includes at least one logical operator and at least one condition;Terminal is responded to the target object in the drop-down menu Touch control operation, generate the corresponding destination node of the target object;The target object is at least one described logical operation Any logical operator in symbol, or be the either condition at least one described condition.Wherein, the drop-down menu include to A logical operator and at least one condition can be pre-configured less, or can also be user in preset time range It is interior, as being arranged in nearly 1 year.
In one embodiment, the aforementioned touch control operation detected to the first logical node can be to detect to first The corresponding control of logical node, such as the touch control operation of the corresponding drop-down choice box of first logical node.
In one embodiment, terminal can show a delete button for each node in each tree structure is corresponding. Terminal when detecting the touch control operation to the corresponding delete button of destination node, delete the destination node and with the target section The relevant connection relationship of point, such as deletes the logical connection line connecting with the destination node.Also, it can also be deposited in the destination node In child node, corresponding child node and corresponding logical connection line are deleted.Wherein, which is appointing in the tree structure One node, such as any non-root node or can be root node.
In one embodiment, the initialization data obtained in step S305 can be sent to server by terminal, with Just server handles the corresponding initialization data of existing air control rule, as update is handled.Or, terminal can be with benefit The initialization data obtained in the step S305 has the corresponding initialization data of air control rule and handles to local, Such as update processing.Or, terminal can also utilize the initialization data obtained in step S305, the air control existing to database The corresponding initialization data of rule is handled, as update is handled.
In a kind of optional embodiment, step S304 and step S305 are also possible to execute before step S301 , this will not be repeated here for the embodiment of the present invention.
As it can be seen that terminal can be by non-root node information group and logical connection line information group in embodiment shown in Fig. 3 It is parsed, to draw and show tree structure, and directly the tree structure of displaying can also be edited, be realized preceding The editing process to air control rule is held, the editorial efficiency to air control rule is improved.
Referring to Fig. 4, being a kind of flow diagram of data analysis set-up provided in an embodiment of the present invention.The device can be with Applied to terminal.Specifically, the apparatus may include:
Acquiring unit 401, for obtaining the corresponding initialization data of air control rule;The initialization data includes preset The identification information of the identification information of each non-root node of tree structure and each logical connection line;The tree structure includes root section Point, at least one non-root node and at least one logical connection line;
First processing units 402, for the initialization data carry out deconsolidation process, obtain non-root node information group and Logical connection line information group;The non-root node information group includes the identification information of each non-root node, the logical connection Line information group includes the identification information of each logical connection line;
The second processing unit 403, for being solved to the non-root node information group and the logical connection line information group Analysis, to draw and show the tree structure.
In a kind of optional embodiment, the non-root node includes logical node and condition node, each logic section Point connects at least one condition node by logical connection line;The logical node refers to the corresponding node of logical operator, often The identification information of a logical node includes the mark and the corresponding logical operator of logical node of logical node;The logic fortune Operator include at least one of the following: logical AND, logic NOT, logic or;The condition node refers to the corresponding node of condition, each The identification information of condition node includes the mark and the corresponding condition of condition node of condition node.
In a kind of optional embodiment, first processing units 401 are specifically used for initialization data progress time It goes through;When traversing non-root node, the identification information of the non-root node is extracted from the initialization data, and will be described non- The identification information of root node is added in non-root node information group;When traversing logical connection line, from the initialization data The middle identification information for extracting the logical connection line, and the identification information of the logical connection line is added to logical connection line letter In breath group.
In a kind of optional embodiment, the non-root node information group further includes the position letter of each non-root node Breath, the logical connection line information group further includes the location information of each logical connection line, and first processing units 401 are also used In the location information according to preset root node, calculate each non-root node location information and each logical connection The location information of line;The location information of each non-root node is added in non-root node information group, and by each logic The location information of connecting line is added in logical connection line information group.
In a kind of optional embodiment, the second processing unit 402, specifically for obtaining the position of each non-root node The location information of confidence breath and each logical connection line;In the position that the location information of each non-root node indicates, press Each non-root node of the non-root node information group instruction is drawn and shown on the page according to the first rule, and in each non-root The target information in the identification information of each non-root node is shown on node;Refer in the location information of each logical connection line Described respectively the patrolling of the logical connection line information group instruction is drawn on the page according to Second Rule and shown in the position shown Collect connecting line.
In a kind of optional embodiment, first processing units 401 are also used to respond the editor to the tree structure Operation, edits the tree structure;The identification information for each non-root node for including by the tree structure and each logical connection line Identification information be encapsulated as the data packet of preset data form, and the data packet of the preset data form is determined as the wind Regulatory control then corresponding initialization data.
In a kind of optional embodiment, the response of first processing units 401 to telling and the edit operation of tree structure, The tree structure is edited, specially when detecting the touch control operation to the first logical node in the tree structure, is shown Show drop-down menu;The drop-down menu includes newly-increased logical node option and newly-increased conditional sections point option;When detecting to described When the touch control operation of newly-increased logical node option, the second logical node and newly-increased logical connection line are increased newly;First logic Pass through newly-increased logical connection line connection between node and second logical node;When detecting to the newly-increased condition node When the touch control operation of option, at least one condition node and logical connection line are increased newly;First logical node and it is described extremely Pass through newly-increased logical connection line connection between each condition node in a few condition node.
In a kind of optional embodiment, first processing units 401 respond the edit operation to the tree structure, compile The tree structure is collected, specially when detecting the touch control operation to the first logical node in the tree structure, display Drop-down menu;The drop-down menu includes at least one logical operator and at least one condition;Response is to the drop-down menu In target object touch control operation, generate the corresponding destination node of the target object;The target object be it is described at least Any logical operator in one logical operator, or be the either condition at least one described condition.
As it can be seen that in embodiment shown in Fig. 4, the corresponding initialization data of the available air control rule of terminal, and it is first to this Beginningization data carry out deconsolidation process, obtain non-root node information group and logical connection line information group, to believe the non-root node Breath group and the logical connection line information group are parsed, and to draw and show the tree structure, can intuitively and effectively show wind Regulatory control then corresponding tree structure.
Referring to Fig. 5, being a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.Wherein, institute in the present embodiment The terminal of description may include: processor 1000, one or more input equipment 2000, one or more output equipments 3000, Memory 4000.Processor 1000, one or more input equipments 2000, one or more output equipments 3000, memory It can be connected by bus or other means between 4000.Input equipment 2000 includes but is not limited to touch screen, phonographic recorder, sensing The equipment such as device.Output equipment 3000 includes but is not limited to the equipment such as display screen, loudspeaker.In one embodiment, the touch screen It may be replaced by touch display screen with display screen.Input equipment 2000 and output equipment 3000 can also include the wired of standard Or wireless communication interface.
Processor 1000 can be central processing module (Central Processing Unit, CPU), and the processor is also It can be other general processors, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
Memory 4000 can be high speed RAM memory, can also be non-labile memory (non-volatile ), such as magnetic disk storage memory.Memory 4000 is used to store a set of program code, processor 1000, input equipment 2000 The program code stored in memory 4000 can be called with output equipment 3000.Specifically:
Processor 1000, for obtaining the corresponding initialization data of air control rule;The initialization data includes preset The identification information of the identification information of each non-root node of tree structure and each logical connection line;The tree structure includes root section Point, at least one non-root node and at least one logical connection line;Deconsolidation process is carried out to the initialization data, is obtained non- Root node information group and logical connection line information group;The non-root node information group includes the mark letter of each non-root node Breath, the logical connection line information group includes the identification information of each logical connection line;To the non-root node information group and The logical connection line information group is parsed, to draw and show the tree structure.
Optionally, the non-root node includes logical node and condition node, and each logical node passes through logical connection line Connect at least one condition node;The logical node refers to the corresponding node of logical operator, the mark of each logical node Information includes the mark and the corresponding logical operator of logical node of logical node;The logical operator include it is following at least One: logical AND, logic NOT, logic or;The condition node refers to the corresponding node of condition, the mark letter of each condition node Breath includes the mark and the corresponding condition of condition node of condition node.
Optionally, processor 1000 carries out deconsolidation process to the initialization data, obtains non-root node information group and patrols Connecting line information group is collected, specially the initialization data is traversed;When traversing non-root node, from the initialization The identification information of the non-root node is extracted in data, and the identification information of the non-root node is added to non-root node information In group;When traversing logical connection line, the identification information of the logical connection line is extracted from the initialization data, and will The identification information of the logical connection line is added in logical connection line information group.
Optionally, the non-root node information group further includes the location information of each non-root node, the logical connection Line information group further includes the location information of each logical connection line, and processor 1000 is also used to according to preset root node Location information calculates the location information of each non-root node and the location information of each logical connection line;It will be described The location information of each non-root node is added in non-root node information group, and the location information of each logical connection line is added Into logical connection line information group.
Optionally, processor 1000 parses the non-root node information group and the logical connection line information group, To draw and show the tree structure, specially obtain each non-root node location information and each logical connection The location information of line;In the position that the location information of each non-root node indicates, drawn simultaneously on the page according to the first rule It shows each non-root node of the non-root node information group instruction, and shows each non-root node in each non-root node Identification information in target information;In the position that the location information of each logical connection line indicates, exist according to Second Rule Each logical connection line of the logical connection line information group instruction is drawn and shown on the page.
Optionally, processor 1000 are also used to respond the edit operation to the tree structure, edit the tree-like knot Structure;The identification information of the identification information for each non-root node that the tree structure includes and each logical connection line is encapsulated as presetting The data packet of data format, and the data packet of the preset data form is determined as the corresponding initialization number of the air control rule According to.
Optionally, the response of processor 1000 edits the tree structure, specifically to telling and the edit operation of tree structure To pass through output when detecting the touch control operation to the first logical node in the tree structure by input equipment 2000 Equipment 3000 shows drop-down menu;The drop-down menu includes newly-increased logical node option and newly-increased conditional sections point option;When logical When crossing input equipment 2000 and detecting the touch control operation to the newly-increased logical node option, the second logical node and new is increased newly Increase logical connection line;Pass through newly-increased logical connection line connection between first logical node and second logical node; When detecting the touch control operation to the newly-increased conditional sections point option by input equipment 2000, at least one conditional sections is increased newly Point and logical connection line;Lead between each condition node in first logical node and at least one described condition node Cross newly-increased logical connection line connection.
Optionally, processor 1000 responds the edit operation to the tree structure, edits the tree structure, specially When detecting the touch control operation to the first logical node in the tree structure by input equipment 2000, set by output Standby 3000 display drop-down menu;The drop-down menu includes at least one logical operator and at least one condition;Response is to institute The touch control operation for stating the target object in drop-down menu generates the corresponding destination node of the target object;The target object It for any logical operator at least one described logical operator, or is the either condition at least one described condition.
In the specific implementation, processor 1000, input equipment 2000 described in the embodiment of the present application, output equipment 3000 Implementation described in executable Fig. 1 and Fig. 3 embodiment, also can be performed implementation described in the embodiment of the present application, In This is repeated no more.
It can integrate in a processing module, be also possible to each in each functional module in each embodiment of the application Module physically exists alone, and is also possible to two or more modules and is integrated in a module.Above-mentioned integrated module was both It can be realized, can also be realized in the form of sampling software functional module in the form of sampling hardware.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the medium is that computer can Read storage medium, the computer readable storage medium can for magnetic disk, CD, read-only memory (Read-Only Memory, ) or random access memory (Random Access Memory, RAM) etc. ROM.
Above disclosed is only a kind of preferred embodiment of the application, cannot limit the power of the application with this certainly Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and weighs according to the application Benefit requires made equivalent variations, still belongs to the scope covered by the invention.

Claims (10)

1. a kind of data analysing method characterized by comprising
Obtain the corresponding initialization data of air control rule;The initialization data includes each non-root node of preset tree structure Identification information and each logical connection line identification information;The tree structure includes root node, at least one non-root node And at least one logical connection line;
Deconsolidation process is carried out to the initialization data, obtains non-root node information group and logical connection line information group;It is described non- Root node information group includes the identification information of each non-root node, and the logical connection line information group includes that each logic connects The identification information of wiring;
The non-root node information group and the logical connection line information group are parsed, to draw and show the tree-like knot Structure.
2. the method according to claim 1, wherein the non-root node includes logical node and condition node, Each logical node connects at least one condition node by logical connection line;
The logical node refers to that the corresponding node of logical operator, the identification information of each logical node include logical node Mark and the corresponding logical operator of logical node;The logical operator includes at least one of the following: logical AND, logic Non-, logic or;
The condition node refers to the corresponding node of condition, the identification information of each condition node include the mark of condition node with And the corresponding condition of condition node.
3. being obtained non-the method according to claim 1, wherein carrying out deconsolidation process to the initialization data Root node information group and logical connection line information group, comprising:
The initialization data is traversed;
When traversing non-root node, the identification information of the non-root node is extracted from the initialization data, and will be described The identification information of non-root node is added in non-root node information group;
When traversing logical connection line, the identification information of the logical connection line is extracted from the initialization data, and will The identification information of the logical connection line is added in logical connection line information group.
4. the method according to claim 1, wherein the non-root node information group further includes each non-root section The location information of point, the logical connection line information group further includes the location information of each logical connection line, and the method is also Include:
According to the location information of preset root node, the location information and each logic for calculating each non-root node connect The location information of wiring;
The location information of each non-root node is added in non-root node information group, and by the position of each logical connection line Confidence breath is added in logical connection line information group.
5. the method according to claim 3 or 4, which is characterized in that connect to the non-root node information group and the logic Wiring information group is parsed, to draw and show the tree structure, comprising:
Obtain the location information of each non-root node and the location information of each logical connection line;
In the position that the location information of each non-root node indicates, draws and show described non-on the page according to the first rule Each non-root node of root node information group instruction, and show in each non-root node the identification information of each non-root node In target information;
In the position that the location information of each logical connection line indicates, draws and show on the page according to Second Rule Each logical connection line of the logical connection line information group instruction.
6. the method according to claim 1, wherein the method also includes:
The edit operation to the tree structure is responded, the tree structure is edited;
The identification information of the identification information for each non-root node that the tree structure includes and each logical connection line is encapsulated as pre- If the data packet of data format, and the data packet of the preset data form is determined as the corresponding initialization of the air control rule Data.
7. according to the method described in claim 6, it is characterized in that, edit operation of the response to the tree structure, is compiled Collect the tree structure, comprising:
When detecting the touch control operation to the first logical node in the tree structure, drop-down menu is shown;The drop-down Menu includes newly-increased logical node option and newly-increased conditional sections point option;
When detecting the touch control operation to the newly-increased logical node option, increases the second logical node newly and newly-increased logic connects Wiring;Pass through newly-increased logical connection line connection between first logical node and second logical node;
When detecting the touch control operation to the newly-increased conditional sections point option, increases at least one condition node newly and logic connects Wiring;Pass through newly-increased logic between each condition node in first logical node and at least one described condition node Connecting line connection.
8. according to the method described in claim 6, it is characterized in that, edit operation of the response to the tree structure, is compiled Collect the tree structure, comprising:
When detecting the touch control operation to the first logical node in the tree structure, drop-down menu is shown;The drop-down Menu includes at least one logical operator and at least one condition;
The touch control operation to the target object in the drop-down menu is responded, the corresponding destination node of the target object is generated; The target object is any logical operator at least one described logical operator, or at least one described condition Either condition.
9. a kind of data analysis set-up characterized by comprising
Acquiring unit, for obtaining the corresponding initialization data of air control rule;The initialization data includes preset tree-like knot The identification information of the identification information of each non-root node of structure and each logical connection line;The tree structure includes root node, extremely A few non-root node and at least one logical connection line;
First processing units obtain non-root node information group and logic connect for carrying out deconsolidation process to the initialization data Wiring information group;The non-root node information group includes the identification information of each non-root node, the logical connection line information Group includes the identification information of each logical connection line;
The second processing unit, for being parsed to the non-root node information group and the logical connection line information group, to draw It makes and shows the tree structure.
10. a kind of terminal, which is characterized in that the processor, defeated including processor, input equipment, output equipment and memory Enter equipment, output equipment and memory to be connected with each other, wherein the memory is for storing computer program, the computer Program includes program instruction, and the processor is configured for calling described program instruction, is executed such as any one of claim 1-8 The method.
CN201910813650.0A 2019-08-30 2019-08-30 A kind of data analysing method, device and terminal Pending CN110489686A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910813650.0A CN110489686A (en) 2019-08-30 2019-08-30 A kind of data analysing method, device and terminal
PCT/CN2020/105149 WO2021036647A1 (en) 2019-08-30 2020-07-28 Data analysis method and apparatus, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910813650.0A CN110489686A (en) 2019-08-30 2019-08-30 A kind of data analysing method, device and terminal

Publications (1)

Publication Number Publication Date
CN110489686A true CN110489686A (en) 2019-11-22

Family

ID=68555399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910813650.0A Pending CN110489686A (en) 2019-08-30 2019-08-30 A kind of data analysing method, device and terminal

Country Status (2)

Country Link
CN (1) CN110489686A (en)
WO (1) WO2021036647A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021036647A1 (en) * 2019-08-30 2021-03-04 深圳壹账通智能科技有限公司 Data analysis method and apparatus, and terminal
CN114091899A (en) * 2021-11-22 2022-02-25 支付宝(杭州)信息技术有限公司 Risk feature identification method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106845991A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 A kind of rules process method and equipment
CN109032599A (en) * 2018-07-17 2018-12-18 北京新唐思创教育科技有限公司 Based on XML indicate generate can interaction diagrams method, apparatus, equipment, medium
CN109189393A (en) * 2018-07-24 2019-01-11 中国联合网络通信集团有限公司 Method for processing business and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8612468B2 (en) * 2005-03-02 2013-12-17 Red Hat, Inc. System and method for retrieving data from a relational database management system
CN104142929A (en) * 2013-05-07 2014-11-12 苏州精易会信息技术有限公司 Tree-type display method of form condition query process
KR101716692B1 (en) * 2015-05-28 2017-03-15 삼성에스디에스 주식회사 Method and apparatus for rule managing using informal input data
CN109829034A (en) * 2018-08-24 2019-05-31 长威信息科技发展股份有限公司 A kind of enterprise's tree spectrogram methods of exhibiting based on main market players's credit data
CN110489686A (en) * 2019-08-30 2019-11-22 深圳壹账通智能科技有限公司 A kind of data analysing method, device and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106845991A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 A kind of rules process method and equipment
CN109032599A (en) * 2018-07-17 2018-12-18 北京新唐思创教育科技有限公司 Based on XML indicate generate can interaction diagrams method, apparatus, equipment, medium
CN109189393A (en) * 2018-07-24 2019-01-11 中国联合网络通信集团有限公司 Method for processing business and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021036647A1 (en) * 2019-08-30 2021-03-04 深圳壹账通智能科技有限公司 Data analysis method and apparatus, and terminal
CN114091899A (en) * 2021-11-22 2022-02-25 支付宝(杭州)信息技术有限公司 Risk feature identification method and device

Also Published As

Publication number Publication date
WO2021036647A1 (en) 2021-03-04

Similar Documents

Publication Publication Date Title
US11853361B1 (en) Performance monitoring using correlation search with triggering conditions
US11531679B1 (en) Incident review interface for a service monitoring system
US11741089B1 (en) Interactive location queries for raw machine data
US11522769B1 (en) Service monitoring interface with an aggregate key performance indicator of a service and aspect key performance indicators of aspects of the service
US10853382B2 (en) Interactive punchcard visualizations
US20220318308A1 (en) Monitoring system control interface for asset tree determination
US20200019549A1 (en) Interactive parallel coordinates visualizations
US11037342B1 (en) Visualization modules for use within a framework for displaying interactive visualizations of event data
US10528607B2 (en) Syntax templates for coding
CN104268428B (en) A kind of visual configuration method calculated for index
US10853380B1 (en) Framework for displaying interactive visualizations of event data
CN110515896B (en) Model resource management method, model file manufacturing method, device and system
US10861202B1 (en) Sankey graph visualization for machine data search and analysis system
US20070266039A1 (en) Simplifying A Visual Depiction of A Graph
CN110489686A (en) A kind of data analysing method, device and terminal
CN107480036A (en) Automatic test approach, device, storage medium and the terminal of iOS Mobile solutions
CN103109264A (en) Creating a configuration file template
WO2019029107A1 (en) Method for designing and operating categorized display of drc in pcb design
CN113656533A (en) Tree control processing method and device and electronic equipment
JP6057750B2 (en) Log visualization operation screen control system and method
CN109558403A (en) Data aggregation method and device, computer installation and computer readable storage medium
CN106528730B (en) Method and device for designing components in webpage
CN115878098A (en) Data processing method, device, equipment and storage medium
CN115170700A (en) Method for realizing CSS animation based on Flutter framework, computer equipment and storage medium
WO2016190444A1 (en) Information management device, and file management method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination