Data processing method and system and electronic equipment
By formatting the home user data and analyzing the relationship tree parameter, the display strategy is determined and the data and its relationship lines are displayed, and the problem of difficult to process and display the tree relationship between home user data in the prior art is solved, and effective data display is achieved.
Patent Information
- Application Number
- CN202411675299.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-07
AI Technical Summary
The prior art is difficult to effectively process and display the tree relationship between home user data, and lacks an effective processing process.
By acquiring home user data and formatting based on the corresponding relationship tree parameters, endpoint data and relationship line data are determined, and displaying the display data and its relationship line are displayed.
It realizes the effective display and processing process of home user data, and can correctly characterize and display the complex relationships between home users.
Smart Images

Figure CN119576936A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data processing method, system and electronic equipment. Background Art
[0002] For the processing of family user data, how to characterize and display the relationship between family user data is crucial for the relevant front-end and back-end developers and operation and maintenance personnel. The corresponding family relationships in the family user data include not only kinship relationships such as husband and wife, father and son, mother and daughter, but also guardianship relationships and affiliation relationships between non-direct relatives. There is a specific tree structure between such family user data, namely the relationship tree. The relationship tree is different from the binary tree. The binary tree has only one root node, while the relationship tree has one or more root nodes. Therefore, for such tree-shaped family user data, how to process and display the data lacks an effective processing process in the existing technology. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide a data processing method, system and electronic device. After the method formats the home user data according to the corresponding relationship tree parameters, it uses the obtained endpoint data and relationship line data to determine the home users and display strategies that need to be displayed, and displays the display data and relationship lines corresponding to the home users through the display strategy, thereby realizing an effective display processing process for the home user data.
[0004] In a first aspect, an embodiment of the present invention provides a data processing method, the method comprising:
[0005] Acquire family user data, and determine relationship data of the family user data based on a first relationship tree parameter corresponding to the family user data;
[0006] Acquire the relationship information data included in the family user data based on the relationship data, and determine the endpoint data and the relationship line data of the family user data based on the second relationship tree parameter corresponding to the relationship information data;
[0007] Determine the family user corresponding to the family user data by using the endpoint data, and determine the display strategy of the family user according to the relationship line data;
[0008] The display data of the family user and the corresponding relationship lines are determined according to the display strategy, and the display data and the relationship lines are displayed based on the display strategy.
[0009] Optionally, acquiring family user data, and determining relationship data of the family user data based on a first relationship tree parameter corresponding to the family user data, includes:
[0010] Formatting the acquired family user data to obtain first key-value pair data corresponding to the family user data;
[0011] The first relationship tree parameter is used to determine a root node identifier included in the first key-value pair data, and the relationship data is determined based on the first object data corresponding to the root node identifier.
[0012] Optionally, acquiring relationship information data contained in the family user data based on the relationship data includes:
[0013] Formatting the relational data to obtain second key-value pair data corresponding to the relational data;
[0014] Obtaining the analysis identification field contained in the second key-value pair data, and obtaining the analysis identification data corresponding to the analysis identification field;
[0015] The relationship information data is determined based on the second object data corresponding to the analysis identification data.
[0016] Optionally, determining the endpoint data and the relationship line data of the family user data based on the second relationship tree parameter corresponding to the relationship information data includes:
[0017] Formatting the relationship data to obtain third key-value pair data corresponding to the relationship information data;
[0018] Obtaining the node identification field and the relationship identification field contained in the third key-value pair data;
[0019] The endpoint data is determined based on the first object array corresponding to the node identification field, and the relationship line data is determined based on the second object array corresponding to the relationship identification field.
[0020] Optionally, using the endpoint data to determine the family user corresponding to the family user data includes:
[0021] Traversing the third object data contained in the first object array in the endpoint data, and obtaining the user identifier contained in the third object data;
[0022] Determine the home user based on the endpoint name data, endpoint summary data, endpoint element data, endpoint type data, endpoint size data, endpoint relationship data, endpoint image data, endpoint parent data, endpoint peer data, and endpoint household data corresponding to the user identifier determined by the third object data.
[0023] Optionally, determining a display strategy for family users based on the relationship line data includes:
[0024] Obtaining fourth object data contained in the second object array in the relationship line data;
[0025] Determine the display strategy based on the relationship line starting endpoint data, relationship line target endpoint data, relationship line type style data, relationship type data of the relationship line, relationship starting endpoint relationship role data, and relationship line target endpoint relationship role data corresponding to the home user determined by the fourth object data.
[0026] Optionally, determining the display data of the family user and its corresponding relationship line according to the display strategy includes:
[0027] Determine the family relationship result between family users based on the relationship type data, the relationship start endpoint relationship role data, and the relationship line target endpoint relationship role data corresponding to the display strategy;
[0028] Determine the corresponding family user in the endpoint data based on the relationship line start endpoint data and the relationship line target endpoint data corresponding to the display strategy;
[0029] The display data corresponding to the family user is determined based on the relationship line type style data corresponding to the display strategy, and the relationship line is determined according to the family relationship result.
[0030] Optionally, display data and relationship lines are displayed based on a display strategy, including:
[0031] Determine the display area of the display data and the relationship line based on the relationship line type style data corresponding to the display strategy;
[0032] Determine the display direction of the relationship line based on the relationship role data of the relationship start endpoint and the relationship role data of the relationship line target endpoint corresponding to the display strategy;
[0033] The control display data and the relationship lines are displayed in the display area according to the indication of the display direction.
[0034] In a second aspect, an embodiment of the present invention provides a data processing system, the system comprising:
[0035] a relationship data determination module, configured to obtain family user data and determine relationship data of the family user data based on a first relationship tree parameter corresponding to the family user data;
[0036] A relationship information data processing module, used to obtain the relationship information data contained in the family user data based on the relationship data, and determine the endpoint data and the relationship line data of the family user data based on the second relationship tree parameter corresponding to the relationship information data;
[0037] A display strategy determination module, used to determine the family user corresponding to the family user data using the endpoint data, and determine the display strategy of the family user according to the relationship line data;
[0038] The data display processing module is used to determine the display data of the family user and its corresponding relationship line according to the display strategy, and perform display processing on the display data and the relationship line based on the display strategy.
[0039] In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the steps of the data processing method provided in the first aspect.
[0040] In a fourth aspect, an embodiment of the present invention further provides a storage medium storing computer executable instructions. When the computer executable instructions are called and executed by a processor, the computer executable instructions prompt the processor to implement the steps of the data processing method provided in the first aspect.
[0041] The embodiment of the present invention provides a data processing method, system and electronic device. In the process of displaying family user data, the method first obtains family user data, and determines the relationship data of the family user data based on the first relationship tree parameter corresponding to the family user data; then obtains the relationship information data contained in the family user data based on the relationship data, and determines the endpoint data and relationship line data of the family user data based on the second relationship tree parameter corresponding to the relationship information data; then determines the family user corresponding to the family user data using the endpoint data, and determines the display strategy of the family user according to the relationship line data; finally determines the display data of the family user and its corresponding relationship line according to the display strategy, and performs display processing on the display data and the relationship line based on the display strategy. After formatting the family user data according to the corresponding relationship tree parameters, the method determines the family user and the display strategy to be displayed using the obtained endpoint data and relationship line data, and displays the display data and the relationship line corresponding to the family user through the display strategy, thereby realizing an effective display processing process for the family user data.
[0042] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A flowchart of a data processing method provided by an embodiment of the present invention;
[0046] Figure 2 A flowchart of step S101 in a data processing method provided in an embodiment of the present invention;
[0047] Figure 3 A flow chart of obtaining relationship information data contained in family user data based on relationship data in a data processing method provided by an embodiment of the present invention;
[0048] Figure 4 A flow chart of determining endpoint data and relationship line data of family user data based on a second relationship tree parameter corresponding to relationship information data in a data processing method provided by an embodiment of the present invention;
[0049] Figure 5 A flow chart of determining a home user corresponding to home user data by using endpoint data in a data processing method provided by an embodiment of the present invention;
[0050] Figure 6 A flow chart of determining a display strategy for a family user according to relationship line data in a data processing method provided by an embodiment of the present invention;
[0051] Figure 7 A flow chart of determining display data of a family user and its corresponding relationship line according to a display strategy in a data processing method provided by an embodiment of the present invention;
[0052] Figure 8 A flow chart of display processing of display data and relationship lines based on a display strategy in a data processing method provided by an embodiment of the present invention;
[0053] Fig. 9 A diagram showing the results of the first data processing method provided in an embodiment of the present invention;
[0054] Fig.10 A diagram showing the results of the second data processing method provided in an embodiment of the present invention;
[0055] Fig.11 A diagram showing the results of the third data processing method provided in an embodiment of the present invention;
[0056] Fig.12 A diagram showing the results of the fourth data processing method provided in an embodiment of the present invention;
[0057] Fig.13 A schematic diagram of the structure of a data processing system provided by an embodiment of the present invention;
[0058] Fig.14 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0059] icon:
[0060] 1310 - relation data determination module; 1320 - relation information data processing module; 1330 - display strategy determination module; 1340 - data display processing module;
[0061] 101 - processor; 102 - memory; 103 - bus; 104 - communication interface. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described in combination with the embodiments below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0063] For the processing of family user data, how to characterize and display the relationship between family user data is crucial for the developers and operation and maintenance personnel of the relevant front-end and back-end. The corresponding family relationships in the family user data include not only kinship relationships such as husband-wife relationships, father-son relationships, mother-daughter relationships, but also guardianship relationships and affiliation relationships between non-direct relatives. There is a specific tree structure between such family user data, namely, a relationship tree. The relationship tree is different from the binary tree. The tree shape of the binary tree has only one root node, while the tree shape of the relationship tree has one or more root nodes. Therefore, for such tree-shaped family user data, how to process and display the data lacks an effective processing process in the prior art. Based on this, the present invention implements a data processing method, system and electronic device. After the method formats the family user data according to the corresponding relationship tree parameters, the obtained endpoint data and relationship line data are used to determine the family users and display strategies to be displayed, and the display data corresponding to the family users and their relationship lines are displayed through the display strategy, thereby realizing an effective display processing process for the family user data.
[0064] To facilitate understanding of this embodiment, a data processing method disclosed in an embodiment of the present invention is first described in detail. Figure 1 As shown, the method comprises the following steps:
[0065] Step S101, acquiring family user data, and determining relationship data of the family user data based on a first relationship tree parameter corresponding to the family user data;
[0066] Step S102, acquiring relationship information data contained in the family user data based on the relationship data, and determining endpoint data and relationship line data of the family user data based on a second relationship tree parameter corresponding to the relationship information data;
[0067] Step S103, using the endpoint data to determine the family user corresponding to the family user data, and determining a display strategy for the family user according to the relationship line data;
[0068] Step S104, determining the display data of the family user and its corresponding relationship line according to the display strategy, and performing display processing on the display data and the relationship line based on the display strategy.
[0069] The family user data is pre-processed data and is obtained through a related family data interface. The family user data is a data structure of a relationship tree type and contains at least one root node. Therefore, after obtaining the family user data, the corresponding relationship data is obtained according to the corresponding first relationship tree parameter.
[0070] In layman's terms, the relationship data is the source data used in the subsequent data processing process. The relationship information data corresponding to the family user data is obtained through the relationship data, so that the relationship data is further processed to obtain the sub-data contained therein, that is, the relationship information data. After obtaining the relationship information data, the corresponding root node is determined through the corresponding second relationship tree parameter, and then the endpoint data and relationship line data corresponding to the family user data are determined.
[0071] It is worth mentioning that the endpoint data represents the specific data of the family users, while the relationship line data represents the relationship between the family users. Therefore, after obtaining the endpoint data, the family users corresponding to the family user data can be obtained by parsing it; correspondingly, the display strategy of the family users for specific data can be obtained by parsing the relationship line data. The display strategy will involve the data that needs to be displayed for the family users and the corresponding relationship lines between them. After the data that needs to be displayed is obtained according to the display strategy, it is associated with the family users and displayed in a specific position; at the same time, the obtained relationship lines are also displayed in the relevant positions between the family users based on the display strategy, thereby realizing the processing process from obtaining the family user data to finally using the relationship lines to display the display data.
[0072] Optionally, the step S101 of acquiring family user data and determining the relationship data of the family user data based on the first relationship tree parameter corresponding to the family user data is as follows: Figure 2 As shown, including:
[0073] Step S201, formatting the acquired family user data to obtain first key-value pair data corresponding to the family user data;
[0074] Step S202: determine the root node identifier contained in the first key-value pair data using the first relationship tree parameter, and determine the relationship data based on the first object data corresponding to the root node identifier.
[0075] In the process of acquiring relational data, the home user data needs to be formatted. For example, the home user data can be formatted according to the JSON format to obtain the home user data in JSON format, and then the corresponding first key-value pair data can be obtained.
[0076] Then, the first relationship tree parameter is used to obtain the root node identifier of the first key-value pair data, and the data corresponding to the root node identifier is determined as the relationship data. For example, the relationship data is as follows:
[0077]
[0078]
[0079]
[0080] The relationship data is an object structure, which contains key-value pairs composed of arrays and objects at multiple levels. After subsequent parsing, the displayed data and its relationship lines are finally obtained.
[0081] Specifically, the relationship information data contained in the family user data is obtained based on the relationship data, such as Figure 3 As shown, including:
[0082] Step S301, formatting the relationship data to obtain second key-value pair data corresponding to the relationship data;
[0083] Step S302, obtaining the analysis identification field contained in the second key-value pair data, and obtaining the analysis identification data corresponding to the analysis identification field;
[0084] Step S303: determining the relationship information data based on the second object data corresponding to the analysis identification data.
[0085] Since relational data is a key-value pair containing multiple levels of arrays and objects, the relational data is first formatted to obtain the second key-value pair data corresponding to the relational data, that is, the object data under the first layer of data in the above relational data:
[0086]
[0087]
[0088]
[0089] By obtaining the analysis identification field contained in the second key-value pair receipt, namely, analyId, the analysis identification data family_0001 corresponding to the identification field is obtained, indicating that the family user data is performed on family_0001, so the corresponding second object data in family_0001, namely, data in the second key-value pair, is obtained and determined as relationship information data, as follows:
[0090]
[0091]
[0092]
[0093] On this basis, the endpoint data and the relationship line data of the family user data are determined based on the second relationship tree parameters corresponding to the relationship information data, such as Figure 4 As shown, including:
[0094] Step S401, formatting the relationship data to obtain third key-value pair data corresponding to the relationship information data;
[0095] Step S402, obtaining a node identification field and a relationship identification field contained in the third key-value pair data;
[0096] Step S403: determining endpoint data based on the first object array corresponding to the node identification field, and determining relationship line data based on the second object array corresponding to the relationship identification field.
[0097] After the relationship information data is acquired, it is formatted to obtain the corresponding third key-value pair data. For details, please refer to the form of the above relationship data. At this time, the relationship data is object data, where nodes is the node identification field and edges is the relationship identification field. By acquiring the object data corresponding to these two fields, the endpoint data and the relationship line data are obtained respectively. Specifically, the endpoint data is an array containing multiple objects, that is, the first object array, which is:
[0098]
[0099]
[0100] The relationship line data is an array containing a single object, namely the second object array, specifically:
[0101]
[0102]
[0103] Optionally, the endpoint data is used to determine the home user corresponding to the home user data, such as Figure 5 As shown, including:
[0104] Step S501, traverse the third object data included in the first object array in the endpoint data, and obtain the user identifier included in the third object data;
[0105] Step S502, determines the family user based on the endpoint name data, endpoint summary data, endpoint element data, endpoint type data, endpoint size data, endpoint relationship data, endpoint image data, endpoint parent data, endpoint peer data, and endpoint household data corresponding to the user identifier determined by the third object data.
[0106] For the endpoint data, it is essentially an array, which contains multiple objects. By traversing the first object data in the endpoint data, all objects contained therein, that is, the third object data, are obtained, and then the user identification corresponding to the third object data is obtained. For example, the above endpoint data contains two objects, and their user identification ids are 6 and 7 respectively.
[0107] After the user ID is determined, the endpoint name data, endpoint brief data, endpoint element data, endpoint type data, endpoint size data, endpoint relationship data, endpoint image data, endpoint parent data, endpoint peer data, and endpoint household data corresponding to the user ID can be obtained. These data correspond to name, subText, element, nodeType, size, level, icon, parRelation, and siblingRelation, respectively. The corresponding family user can be determined through the above data.
[0108] Accordingly, the display strategy of the family users is determined according to the relationship line data, such as Figure 6 As shown, including:
[0109] Step S601, obtaining fourth object data included in the second object array in the relationship line data;
[0110] Step S602, determine the display strategy based on the relationship line starting endpoint data, relationship line target endpoint data, relationship line type style data, relationship type data of the relationship line, relationship starting endpoint relationship role data, and relationship line target endpoint relationship role data corresponding to the family user determined by the fourth object data.
[0111] For the relationship line data, it is essentially also an array, namely the second object array, which contains an object. By obtaining the data of the object, namely the fourth object data, the relationship line starting endpoint data, relationship line target endpoint data, relationship line type style data, relationship line relationship type data, relationship starting endpoint relationship role data, and relationship line target endpoint relationship role data corresponding to the family user are determined. These data correspond to source, target, type, label, startLabel, and endLabel, respectively. The display strategy between the family users can be determined through the above data.
[0112] Specifically, in the endpoint data, id is the unique identifier of the endpoint, name is the name of the endpoint, subText is the brief display information of the endpoint, element is the endpoint type (provincial ID, mobile phone, biometrics, etc.), nodeType is the endpoint type, size is the size of the endpoint, level is the relationship generation (relative to the smallest backup endpoint), icon is the endpoint's avatar image (img is the image path), parRelation is the endpoint's direct parent endpoint id array, siblingRelation is the endpoint's peer endpoint id array, and householdRelation is the endpoint's household endpoint id array.
[0113] In the relationship line data, source is the relationship line starting endpoint id, target is the relationship line target endpoint id, type is the relationship line type style, label is the relationship type of the relationship line, startLabel is the relationship role of the relationship starting endpoint, and endLabel is the relationship role of the relationship target endpoint.
[0114] On this basis, the display data of the family users and their corresponding relationship lines are determined according to the display strategy, such as Figure 7 As shown, including:
[0115] Step S701, determining the family relationship result between family users based on the relationship type data, the relationship start endpoint relationship role data, and the relationship line target endpoint relationship role data corresponding to the display strategy;
[0116] Step S702, determining the corresponding family user in the endpoint data based on the relationship line start endpoint data and the relationship line target endpoint data corresponding to the display strategy;
[0117] Step S703, determining display data corresponding to the family user based on the relationship line type style data corresponding to the display strategy, and determining the relationship line according to the family relationship result.
[0118] After the display strategy is obtained, the family relationship result between family users is obtained by obtaining the corresponding relationship type data, that is, the data corresponding to label, startLabel, and endLabel. Taking the above relationship line data as an example, label, startLabel, and endLabel correspond to "husband and wife", "husband", and "wife" respectively. It can be seen that the family relationship result is a husband and wife relationship, and the relationship between family users is husband and wife.
[0119] Then, based on the relationship line starting endpoint data source and the relationship line target endpoint data target, the corresponding values are determined to be 6 and 7 respectively, which correspond to the corresponding id values in the home user, and then the objects with id values of 6 and 7 are obtained from the endpoint data, that is:
[0120]
[0121]
[0122] After the family user is determined, the display data corresponding to the family user is determined based on the relationship line type style data corresponding to the display strategy, that is, the data corresponding to type, that is, the family users with ID values 6 and 7 mentioned above, and then the relationship line between the two is determined according to the family relationship results, that is, the specific direction is: 6 points to 7.
[0123] On this basis, the display data and relationship lines are displayed based on the display strategy, such as Figure 8 As shown, including:
[0124] Step S801, determining the display area of display data and relationship lines based on the relationship line type style data corresponding to the display strategy;
[0125] Step S802, determining the display direction of the relationship line based on the relationship role data of the relationship start endpoint and the relationship role data of the relationship line target endpoint corresponding to the display strategy;
[0126] Step S803, controlling the display data and the relationship lines to be displayed in the display area according to the indication of the display direction.
[0127] During the display process, the display area is first determined, and then the data to be displayed and the relationship lines are determined. Specifically, the relationship line type style data is obtained based on the display strategy to determine the display area for the display data and the relationship lines; then, the display direction of the relationship line is determined based on the relationship role data of the relationship starting endpoint and the relationship role data of the relationship line target endpoint, and then the display data and relationship lines are controlled to be displayed in the corresponding display area. At the same time, the relationship lines are added and displayed in a specific position of the display area according to the display direction.
[0128] like Fig. 9The first display result diagram shown is used to display the husband-wife relationship line. In the husband-wife relationship line, "husband and wife" on the relationship line indicates the endpoint relationship at both ends of the relationship line, and "husband" and "wife" are marked at both ends of the relationship line to show the endpoint roles. In the endpoint data: level is 1, parRelation is an empty array, siblingRelation is an empty array, and householdRelation is an empty array. In the relationship line data: source is the endpoint id on the left side of the figure below, target is the endpoint id on the right side of the figure below, type is r-line1 (husband-wife relationship line), label is husband and wife, startLabel is the left endpoint relationship role (husband), and endLabel is the right endpoint relationship role (wife).
[0129] like Fig.10 The second display result diagram shown is used to display the parent-child relationship line. In the parent-child relationship line, "son" or "daughter" on the relationship line indicates the endpoint relationship at both ends of the relationship line, and the relationship line points from the parent to the child. In the endpoint data: the lower endpoint level is 1, parRelation is the upper endpoint id, siblingRelation is an empty array, and householdRelation is an empty array; the upper endpoint level is 2, parRelation is an empty array, siblingRelation is an empty array, and householdRelation is an empty array. In the relationship line data: source is the upper endpoint id in the figure below, target is the lower endpoint id in the figure below, type is r-line3 (parent-child relationship line), and label is son or daughter.
[0130] like Fig.11 The third display result diagram shown is used to display the guardianship relationship line. The "guardianship relationship" on the relationship line indicates the relationship type of the relationship line, and the relationship line points from the guardian to the ward. In the endpoint data: the lower endpoint level is 1, parRelation is the upper endpoint id, siblingRelation is an empty array, and householdRelation is an empty array; the upper endpoint level is 2, parRelation is an empty array, siblingRelation is an empty array, and householdRelation is an empty array. In the relationship line data: source is the upper endpoint id in the figure below, target is the lower endpoint id in the figure below, type is r-line8 (father-child relationship line), and label is guardianship relationship.
[0131] like Fig.12The fourth display result diagram shown is used to display the same-household relationship line. In the same-household relationship line, "same household" on the relationship line indicates the relationship line type, and the relationship line arrow points to each same-household endpoint. In the endpoint data: level is 1, parRelation is an empty array, siblingRelation is an empty array, and householdRelation is an array composed of itself and the other two endpoint IDs. In the relationship line data: source is the point ID on the left side of the figure below, target is the endpoint ID on the right side of the figure below, type is r-line5 (guardianship relationship line), and label is the same-household relationship.
[0132] It can be seen from the data processing method described in the above embodiment that after the method formats the home user data according to the corresponding relationship tree parameters, it uses the obtained endpoint data and relationship line data to determine the home users and display strategies that need to be displayed, and displays the display data and relationship lines corresponding to the home users through the display strategy, thereby realizing an effective display processing process for the home user data.
[0133] Corresponding to the above data processing method embodiment, the embodiment of the present invention also provides a data processing system, such as Fig.13 As shown, the system includes:
[0134] The relationship data determination module 1310 is used to obtain family user data and determine the relationship data of the family user data based on the first relationship tree parameter corresponding to the family user data;
[0135] The relationship information data processing module 1320 is used to obtain the relationship information data contained in the family user data based on the relationship data, and determine the endpoint data and the relationship line data of the family user data based on the second relationship tree parameter corresponding to the relationship information data;
[0136] A display strategy determination module 1330, for determining the family user corresponding to the family user data by using the endpoint data, and determining the display strategy of the family user according to the relationship line data;
[0137] The data display processing module 1340 is used to determine the display data of the family user and its corresponding relationship line according to the display strategy, and perform display processing on the display data and the relationship line based on the display strategy.
[0138] From the data processing system mentioned in the above embodiment, it can be seen that after the system formats the home user data according to the corresponding relationship tree parameters, it uses the obtained endpoint data and relationship line data to determine the home users and display strategies that need to be displayed, and displays the display data and relationship lines corresponding to the home users through the display strategy, thereby realizing an effective display processing process for the home user data.
[0139] The data processing system provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned data processing method embodiment. For the sake of brief description, for parts not mentioned in the method embodiment, reference can be made to the corresponding contents in the aforementioned data processing method embodiment.
[0140] This embodiment also provides an electronic device. The structural diagram of the electronic device is as follows: Fig.14 As shown, the device includes a processor 101 and a memory 102; wherein the memory 102 is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor to implement the steps of the above data processing method.
[0141] Fig.14 The electronic device shown further includes a bus 103 and a communication interface 104 , and the processor 101 , the communication interface 104 and the memory 102 are connected via the bus 103 .
[0142] The memory 102 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The bus 103 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0143] The communication interface 104 is used to connect to at least one user terminal and other network units through a network interface, and send the encapsulated IPv4 message or IPv4 message to the user terminal through the network interface.
[0144] The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 101. The above processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 102, and the processor 101 reads the information in the memory 102 and completes the steps of the method of the above embodiment in combination with its hardware.
[0145] An embodiment of the present invention further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the data processing method in the above embodiment are executed.
[0146] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0147] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present invention can essentially or in other words, the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, electronic device, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0148] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A data processing method, characterized in that: The method comprises: Acquire family user data, and determine relationship data of the family user data based on a first relationship tree parameter corresponding to the family user data; Acquire the relationship information data contained in the family user data based on the relationship data, and determine the endpoint data and the relationship line data of the family user data based on the second relationship tree parameter corresponding to the relationship information data; Determine the family user corresponding to the family user data by using the endpoint data, and determine the display strategy of the family user according to the relationship line data; The display data of the family user and the corresponding relationship line are determined according to the display strategy, and the display data and the relationship line are displayed based on the display strategy.
2. The data processing method according to claim 1, characterized in that: Acquiring family user data, and determining relationship data of the family user data based on a first relationship tree parameter corresponding to the family user data, includes: Formatting the acquired family user data to obtain first key-value pair data corresponding to the family user data; The first relationship tree parameter is used to determine a root node identifier included in the first key-value pair data, and the relationship data is determined based on the first object data corresponding to the root node identifier.
3. The data processing method according to claim 1, characterized in that: Acquiring the relationship information data contained in the family user data based on the relationship data includes: Formatting the relationship data to obtain second key-value pair data corresponding to the relationship data; Obtaining the analysis identification field contained in the second key-value pair data, and obtaining the analysis identification data corresponding to the analysis identification field; The relationship information data is determined based on the second object data corresponding to the analysis identification data.
4. The data processing method according to claim 1, characterized in that: Determining the endpoint data and the relationship line data of the family user data based on the second relationship tree parameter corresponding to the relationship information data includes: Formatting the relationship data to obtain third key-value pair data corresponding to the relationship information data; Obtaining a node identification field and a relationship identification field contained in the third key-value pair data; The endpoint data is determined based on a first object array corresponding to the node identification field, and the relationship line data is determined based on a second object array corresponding to the relationship identification field.
5. The data processing method according to claim 4, characterized in that: Determining the family user corresponding to the family user data by using the endpoint data includes: Traversing the third object data included in the first object array in the endpoint data, and acquiring the user identifier included in the third object data; The family user is determined based on the endpoint name data, endpoint summary data, endpoint element data, endpoint type data, endpoint size data, endpoint relationship data, endpoint image data, endpoint parent data, endpoint peer data, and endpoint household data corresponding to the user identifier determined by the third object data.
6. The data processing method according to claim 5, characterized in that: Determining the display strategy of the family user according to the relationship line data includes: Acquire fourth object data contained in the second object array in the relationship line data; The display strategy is determined based on the relationship line starting endpoint data, relationship line target endpoint data, relationship line type style data, relationship type data of the relationship line, relationship starting endpoint relationship role data, and relationship line target endpoint relationship role data corresponding to the family user determined by the fourth object data.
7. The data processing method according to claim 6, characterized in that: Determining the display data of the family user and its corresponding relationship line according to the display strategy includes: Determine the family relationship result between the family users based on the relationship type data, the relationship start endpoint relationship role data, and the relationship line target endpoint relationship role data corresponding to the display strategy; Determine the family user corresponding to the endpoint data based on the relationship line start endpoint data and the relationship line target endpoint data corresponding to the display strategy; The display data corresponding to the family user is determined based on the relationship line type style data corresponding to the display strategy, and the relationship line is determined according to the family relationship result.
8. The data processing method according to claim 7, characterized in that: The display data and the relationship line are displayed based on the display strategy, including: Determining a display area of the display data and the relationship line based on the relationship line type style data corresponding to the display strategy; Determining a display direction of the relationship line based on the relationship role data of the relationship start endpoint and the relationship role data of the relationship line target endpoint corresponding to the display strategy; The display data and the relationship line are controlled to be displayed in the display area according to the indication of the display direction.
9. A data processing system, characterized in that: The system comprises: a relationship data determination module, configured to obtain family user data, and determine relationship data of the family user data based on a first relationship tree parameter corresponding to the family user data; a relationship information data processing module, configured to obtain the relationship information data contained in the family user data based on the relationship data, and determine the endpoint data and the relationship line data of the family user data based on the second relationship tree parameter corresponding to the relationship information data; A display strategy determination module, used to determine the family user corresponding to the family user data using the endpoint data, and determine the display strategy of the family user according to the relationship line data; The data display processing module is used to determine the display data of the family user and its corresponding relationship line according to the display strategy, and display the display data and the relationship line based on the display strategy.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the steps of the data processing method according to any one of claims 1 to 8.