A method, device, equipment and storage medium for representing data relations

By encoding order data and business elements in the e-commerce system and generating a data relationship network, the problem that the existing technology cannot meet complex business application scenarios is solved, and flexible display and efficient binding analysis are realized.

CN113393296BActive Publication Date: 2024-12-31BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 17 Cites 0 Cited by

Patent Information

Application Number
CN202110666610.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-16
Publication Date
2024-12-31
Estimated Expiration
2041-06-16

AI Technical Summary

Technical Problem

The existing technology cannot effectively meet the changing and complex business application scenarios in the e-commerce system, and cannot flexibly display the complex relationship between multiple business elements of the order.

Method used

By encoding the data to be processed and its associated set of business elements, a identification code and a target code are generated, and a data relationship network is generated based on these codes to achieve flexible display of data organization.

Benefits of technology

It realizes the data display form for variable and complex application scenarios, improves the binding and analysis efficiency of data relationships, and adapts to the flexible arrangement requirements of different business elements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113393296B_ABST
    Figure CN113393296B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a method, apparatus, device and storage medium for representing data relationships, wherein the method comprises: obtaining data to be processed and a set of business elements associated with the data to be processed; marking the data to be processed based on a preset identification strategy to obtain an identification code of the data to be processed; determining a target code of each of the business elements based on the identification code and the association relationship between the data to be processed and each business element in the set of business elements; and in response to a received request carrying an arrangement of business elements, generating and outputting a data relationship network representing the association relationship between the data to be processed and each of the business elements based on each of the business elements having the target code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a method, device, equipment and storage medium for representing data relations. Background Art

[0002] In the e-commerce system, each order has multiple business elements such as delivery, timeliness, address and goods. In the related technology, the multiple business elements of each order are simply displayed in a flat format, which cannot meet the diverse and complex business application scenarios corresponding to orders in actual applications. Summary of the invention

[0003] In order to solve the above technical problems, the embodiments of the present application provide a method, apparatus, device and storage medium for representing data relationships. By encoding the data to be processed and each business element in the set of business elements associated with the data to be processed, the corresponding identification code and the target code are obtained. At the same time, based on the received request carrying the arrangement of business elements, the business elements with the target code are used to generate a data relationship network corresponding to the data to be processed, which can realize flexible display of the data organization form corresponding to the data to be processed, and thus enable the display form of the data to be processed to meet the diverse and complex application scenarios.

[0004] To achieve the above purpose, the technical solution of this application is implemented as follows:

[0005] The present application provides a method for representing a data relationship, the method comprising:

[0006] Acquire data to be processed and a set of business elements associated with the data to be processed;

[0007] Based on a preset identification strategy, the data to be processed is marked to obtain an identification code of the data to be processed;

[0008] Determine a target code for each of the service elements based on the identification code and the association relationship between the data to be processed and each service element in the service element set;

[0009] In response to the received request carrying the arrangement of the service elements, based on each of the service elements having the target code, a data relationship network representing the association relationship between the to-be-processed data and each of the service elements is generated and output.

[0010] The embodiment of the present application provides a data relationship representation device, the device comprising:

[0011] An acquisition module, used to acquire data to be processed and a set of business elements associated with the data to be processed;

[0012] A marking module, used to mark the data to be processed based on a preset marking strategy to obtain an identification code of the data to be processed;

[0013] A determination module, configured to determine a target code for each of the service elements based on the identification code and an association relationship between the data to be processed and each service element in the service element set;

[0014] The generating module is used to generate and output a data relationship network representing the association relationship between the to-be-processed data and each of the service elements based on each of the service elements having the target code in response to the received request carrying the service element arrangement.

[0015] An embodiment of the present application provides a data relationship representation device, the device comprising: a processor, a memory, and a communication bus;

[0016] The communication bus is used to realize the communication connection between the processor and the memory;

[0017] The processor is used to execute the program in the memory to implement the above-mentioned method for representing data relations.

[0018] Correspondingly, an embodiment of the present application also provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned method of representing data relations.

[0019] The data relationship representation method, device, equipment and storage medium provided in the embodiment of the present application first obtain the data to be processed and the set of business elements associated with the data to be processed; secondly, based on the preset identification strategy, mark the data to be processed to obtain the identification code of the data to be processed; based on the identification code and the association relationship between the data to be processed and each business element in the set of business elements, determine the target code of each business element; finally, in response to the received request carrying the arrangement of business elements, based on each business element with the target code, generate and output a data relationship network representing the association relationship between the data to be processed and each business element. In this way, by encoding the data to be processed and each business element in the set of business elements associated with the data to be processed, the corresponding identification code and target code are obtained, and at the same time, based on the received request carrying the arrangement of business elements, the business elements with the target code are used to generate the data relationship network corresponding to the data to be processed, so that the data organization form corresponding to the data to be processed can be flexibly displayed, so that the display form of the data to be processed can meet the varied and complex application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1AA schematic diagram showing multiple business elements of an order in the related art;

[0021] Figure 1B A schematic diagram of displaying multiple business elements of an order in a tree structure in the related art;

[0022] Figure 2 A schematic diagram of a flow chart of a first method for representing a data relationship provided in an embodiment of the present application;

[0023] Figure 3 A schematic diagram of a flow chart of a second method for representing a data relationship provided in an embodiment of the present application;

[0024] Figure 4 A schematic diagram of a flow chart of a third method for representing a data relationship provided in an embodiment of the present application;

[0025] Figure 5 A schematic diagram of representing the relationship between data based on binary values ​​is provided for an embodiment of the present application;

[0026] Figure 6 A schematic diagram of displaying business elements based on a root node provided for an embodiment of the application;

[0027] Figure 7 A schematic diagram of the structure of a data relationship representation device provided in an embodiment of the present application;

[0028] Figure 8 A schematic diagram of the structure of a data relationship representation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0030] It should be understood that the "embodiments of the present application" or "the aforementioned embodiments" mentioned throughout the specification mean that specific features, structures or characteristics related to the embodiments are included in at least one embodiment of the present application. Therefore, "in the embodiments of the present application" or "in the aforementioned embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. In the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.

[0031] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the present application.

[0032] In e-commerce systems, each order has many business elements (also called domains). Business elements can include delivery, timeliness, address, coupons, promotions, and products. It is usually necessary to organize multiple business elements for each order. In practical applications, one "order" is usually used as a whole to lay out the data of each business element. Figure 1A As shown, it is a schematic diagram showing multiple business elements of an order in the related art. Figure 1A In the case where an order includes two addresses, that is, one order with multiple addresses, in the process of organizing and displaying multiple business elements in the order, all business elements except the addresses are respectively classified under address 1 and address 2. Figure 1A As shown in , address 1 and address 2 include goods, invoices, merchants, coupons, payment methods, delivery methods, time limits and gift cards respectively, and each has specific data information such as goods 1 to 3, invoices 1 to 3, merchants 1 to 3, coupons 1 to 3, payment methods 1 to 3, delivery methods 1 to 3, time limits 1 to 3 and gift cards 1 to 3.

[0033] Based on Figure 1A As shown, it can be Figure 1A The display data is displayed in a tree structure, such as Figure 1B As shown in FIG. 1 , it is a schematic diagram showing multiple business elements of an order in a tree structure in the related art. Figure 1B The corresponding information of product 1 and product 2 under address 1, product 1 and product 2 under address 2, etc. are given in the table. Figure 1B Other business elements are not shown, such as invoices, merchants, coupons, payment methods, and delivery methods.

[0034] However, as more and more business parties are connected to the commodity trading platform, the demands of each business party are different and the differences are very large. For example: In case 1, there need to be two addresses under one order, that is, one order with multiple addresses, such as: address 1, address 2, and all other business elements are respectively attributed to address 1 and address 2. In case 2, two users are required under one order, that is, one order with multiple users, such as: user 1 and user 2, and all other business elements are respectively attributed to user 1 and user 2. Based on the above tiled display or tree structure display, when receiving the attribution demands of multiple different business elements, it is necessary to decouple the multiple business elements based on the orders to determine the corresponding relationship, and then determine the existence of multiple identical business elements in each determined order business element to generate the corresponding display form. In this way, the display method of the business elements corresponding to the orders in actual applications is not flexible and changeable enough, and thus cannot meet the changeable and complex business application scenarios corresponding to the orders in actual applications.

[0035] Based on the above problems, the present application embodiment provides a method for representing a data relationship, which is applied to a device for representing a data relationship, referring to Figure 2 As shown, the method comprises the following steps:

[0036] Step 101: Acquire data to be processed and a set of business elements associated with the data to be processed.

[0037] In the embodiment of the present application, the device representing the data relationship may be any device having data processing capability.

[0038] The data to be processed may refer to any data information, may refer to the corresponding commodity list information on the commodity trading platform, may refer to the device name information of office equipment in the office scene, or may refer to the commodity information of the user purchasing the commodity on the shopping platform.

[0039] Meanwhile, the business element set associated with the data to be processed represents an information set having a certain association relationship with the data to be processed; wherein the association relationship may be a direct association or an indirect association.

[0040] In a feasible implementation, when the data to be processed is a product order, the business elements in the business element set associated with the data to be processed may be multiple business information in the product order, such as: invoice, merchant, coupon, payment method, and delivery method.

[0041] In another feasible implementation, when the data to be processed is the device name of the device, the business elements in the business element set associated with the data to be processed can be multiple attribute information of the device, such as: battery information, display device information, manufacturer, model information, and memory information.

[0042] It should be noted that the data to be processed may be one, two or more. At the same time, the number of business elements in the business element set associated with the data to be processed may be one, two or more. In other embodiments of the present application, the data to be processed refers to the commodity order information generated by commodity trading behavior on the commodity trading platform.

[0043] Step 102: Based on a preset identification strategy, mark the data to be processed to obtain an identification code of the data to be processed.

[0044] In the embodiment of the present application, the data relationship representation device marks the data to be processed based on a preset identification strategy to obtain an identification code that matches the data to be processed. The identification code can be text information, digital information, symbol information, etc., or any combination of the above multiple information.

[0045] In a feasible implementation, the identification code may be a binary value, a decimal value, an octal value, a hexadecimal value, etc.

[0046] The preset identification strategy may be pre-set by the data relationship representation device, or may be determined by the data relationship representation device based on the attribute information of the data to be processed. At the same time, the preset identification strategy may refer to a strategy for marking the identification code of the data to be processed based on a bitmap (BitSet) algorithm.

[0047] It should be noted that when the number of data to be processed is two or more, the data relationship representation device marks the two or more data to be processed based on a preset identification strategy, so that each data to be processed has a different identification code.

[0048] Step 103: Determine the target code of each business element based on the identification code and the association relationship between the data to be processed and each business element in the business element set.

[0049] In the embodiment of the present application, the data relationship representation device determines the target code of each business element based on the identification code of the data to be processed and the association relationship between the data to be processed and each business element.

[0050] The attribute information between the identification code and the target code is the same, but the specific content is different. At the same time, when there are two or more business elements, the specific content between the target codes of every two business elements is also different.

[0051] In a feasible implementation, when the identification code is a binary value 0001, the target code of each service element in the service element set associated with the data to be processed may be: 1001, 1011, 1001, and so on.

[0052] In another feasible implementation, when the identification code is a combination of numbers and letters 120000A, the target code of each service element in the service element set associated with the data to be processed may be: 120000B, 120000D, 12000AB, and so on.

[0053] It should be noted that in an embodiment of the present application, when the association relationship between the data to be processed and each business element in the business element set is a direct association, the relationship between the identification code and the target code of the business element with the direct association is a first relationship; when the association relationship between the data to be processed and each business element in the business element set is an indirect association, the relationship between the identification code and the target code of the business element with the indirect association is a second relationship; wherein the first relationship is different from the second relationship.

[0054] In a feasible implementation, a direct association may be that the attributes of the identification code and the target code are the same, and the number of digital components corresponding to the identification code and the target code are the same, while an indirect association may be that the attributes of the identification code and the target code are the same, and the number of digital components corresponding to the identification code and the target code are different.

[0055] Step 104 : In response to the received request carrying the arrangement of service elements, based on each service element having the target code, generate and output a data relationship network representing the association relationship between the to-be-processed data and each service element.

[0056] In an embodiment of the present application, a data relationship representation device responds to a received request carrying a business element arrangement and parses the request to obtain business element arrangement information; then, based on the business element arrangement information, each business element with a target code is arranged to generate and output a data relationship network representing the association relationship between the data to be processed and each business element.

[0057] The service element arrangement may be a tree structure or a mesh structure, and the specific implementation method of the service element arrangement is not limited in any way in the embodiments of the present application.

[0058] In the embodiment of the present application, the request carrying the arrangement of business elements may be information input by a user in an operation interface of a device representing a data relationship, or may be sent by a device capable of performing information interaction with the device representing a data relationship.

[0059] The specific organization form of the data relationship network representing the association relationship between the data to be processed and each business element has a corresponding relationship with the request carrying the business element arrangement. At the same time, when the number of data to be processed is two or more, the data relationship network can also simultaneously display the organization form of the association relationship between each data to be processed and its associated business element.

[0060] It should be noted that, in the embodiment of the present application, the data relationship representation device encodes the data to be processed and each business element in the set of business elements associated with the data to be processed to obtain the corresponding identification code and the target code; in this way, the association relationship between any two business elements among the business elements associated with the data to be processed can be efficiently and accurately bound and parsed; at the same time, based on the received request carrying the arrangement of business elements, the business elements with the target code are generated into a data relationship network corresponding to the data to be processed, which can realize flexible display of the data organization form corresponding to the data to be processed.

[0061] The method for representing data relations provided in the embodiment of the present application, first, obtains the data to be processed and the set of business elements associated with the data to be processed; secondly, based on the preset identification strategy, marks the data to be processed to obtain the identification code of the data to be processed; based on the identification code and the association relationship between the data to be processed and each business element in the set of business elements, determines the target code of each business element; finally, in response to the received request carrying the arrangement of business elements, based on each business element with the target code, generates and outputs a data relationship network representing the association relationship between the data to be processed and each business element. In this way, by encoding the data to be processed and each business element in the set of business elements associated with the data to be processed, the corresponding identification code and target code are obtained, and at the same time, based on the received request carrying the arrangement of business elements, the business elements with the target code are used to generate the data relationship network corresponding to the data to be processed, so as to realize the flexible display of the data organization form corresponding to the data to be processed, and thus enable the display form of the data to be processed to meet the varied and complex application scenarios.

[0062] Based on the above embodiments, the present application provides a method for representing a data relationship, which is applied to a device for representing a data relationship. Figure 2 and Figure 3 As shown, the method comprises the following steps:

[0063] Step 201: Obtain the identification code of the data to be processed.

[0064] In an embodiment of the present application, a device representing a data relationship obtains an identification code of the data to be processed; wherein the identification code may be symbolic information that can uniquely identify the data to be processed, such as a universally unique identifier (UUID).

[0065] It should be noted that the identification code is character information that uniquely identifies the data to be processed and is unique; at the same time, the identification code of the data to be processed can be automatically generated by the device representing the data relationship after generating or acquiring the data to be processed.

[0066] Step 202: Use a preset identification strategy to mark the identification code to obtain an identification code.

[0067] In the embodiment of the present application, the data relationship representation device uses a preset identification strategy to mark the identification code to obtain an identification code; wherein the identification code is different from the attribute information of the identification code. In a possible implementation, the amount of information of the identification code is less than the amount of information of the identification code.

[0068] The data relationship representation device may use a BitSet algorithm to mark the identification code or the data to be processed to obtain an identification code represented by a binary value.

[0069] In a possible implementation, when the number of data to be processed is two or more, the data relationship representation device uses a preset identification strategy to mark the identification code of each data to be processed to obtain the identification code of each data to be processed. The identification code of each data to be processed is different, and the identification code of each data to be processed is also different.

[0070] It should be noted that in the embodiment of the present application, the data relationship representation device obtains the corresponding identification code by marking the identification code of the data to be processed. In this way, by efficiently and conveniently marking each data to be processed, the accuracy and efficiency of marking the business elements associated with the data to be processed can be improved in the later stage.

[0071] Step 203: Determine the initial code of each service element.

[0072] In the embodiment of the present application, the data relationship determination device determines the initial code of each service element; wherein, the information representing the initial code of each service element may be empty.

[0073] In a possible implementation, when the data to be processed is a binary value, such as 0001, the initial code of each service element may be 0000.

[0074] Step 204: Determine the target code of each service element based on the identification code, the initial code of each service element and the association relationship.

[0075] In the embodiment of the present application, the data relationship representation device calculates the identification code and the initial code of each business element based on the association relationship between the data to be processed and each business element, and determines the target code of each business element.

[0076] In a feasible implementation, the data relationship representation device may add the identification code and the initial code of each business element based on the association relationship to determine the target code of each business element.

[0077] In another feasible implementation, the data relationship representation device may perform a bitwise OR operation on the identification code and the initial code of each business element based on the association relationship to determine the target code of each business element.

[0078] It should be noted that in the embodiment of the present application, the data relationship representation device performs correlation calculation on the identification code and the initial code of each business element based on the association relationship between the data to be processed and each business element, and determines the target code of each business element. In this way, by binding the identification code and the initial code based on the correlation calculation, the accuracy of the determined target code of each business element can be made higher.

[0079] In a feasible implementation, the data relationship representation device determines the target code of each business element based on the identification code, the initial code of each business element and the association relationship, that is, the data relationship representation device executes step 204, which can also be implemented by the following steps 204a:

[0080] Step 204a: Based on the association relationship, perform a bitwise OR operation on the identification code and the initial code of each service element to obtain a target code of each service element.

[0081] In the embodiment of the present application, the data relationship representation device performs a bitwise OR operation on the identification code and the initial code of each business element based on the association relationship between the data to be processed and each business element to obtain the target code of each business element. The identification code and the target code can both be binary values ​​with an association relationship.

[0082] In a possible implementation, the identification code of the data to be processed is 0010, and the initial codes of the business elements 1 to 3 associated with the data to be processed are all 0000, wherein business element 1 is directly associated with the data to be processed, business element 2 is directly associated with the data to be processed, and business element 3 is indirectly associated with the data to be processed. Then, the identification code and the corresponding initial code are bitwise ORed, and the target code of business element 1 is 0011, the target code of business element 2 is 0110, the target code of business element 3 is 0010 0010, etc. It should be noted that there are direct associations and indirect associations, and the attribute information corresponding to the target codes generated by the bitwise OR operation is different.

[0083] It should be noted that in the embodiment of the present application, the data relationship representation device performs a bitwise OR operation on the identification code and the initial code based on the association relationship to obtain the target code of each business element. In this way, the data to be processed and the business elements associated with it are bound based on concise numerical information through a convenient and efficient calculation method, which can improve the binding efficiency between relational data.

[0084] The method for representing data relationships provided in the embodiment of the present application encodes the data to be processed and each business element in the set of business elements associated with the data to be processed in an efficient and convenient marking manner to obtain corresponding identification codes and target codes, thereby improving the binding efficiency between relational data; at the same time, based on the received request carrying the arrangement of business elements, the business elements with the target code are generated into a data relationship network corresponding to the data to be processed, which can realize flexible display of the data organization form corresponding to the data to be processed, thereby enabling the display form of the data to be processed to meet the diverse and complex application scenarios.

[0085] Based on the foregoing embodiment, when the data to be processed is at least two data to be tested, in a method for representing a data relationship provided in an embodiment of the present application, a data relationship representation device responds to a received request carrying a business element arrangement, and based on each business element with a target code, generates and outputs a data relationship network representing the association relationship between the data to be processed and each business element, which can be implemented by the following steps, with reference to Figure 2 and Figure 4 As shown:

[0086] Step 301: In response to a received request, based on each service element with a target code, determine a set of service elements to be tested associated with each data to be tested.

[0087] In the embodiment of the present application, the data relationship representation device determines, in response to the received request carrying the arrangement of service elements, a set of service elements to be tested associated with each data to be tested based on each service element with a target code, wherein the service elements to be tested in the set of service elements to be tested associated with each data to be tested may be completely different or partially the same.

[0088] In one possible implementation, a data relationship representation device responds to a received request carrying a business element arrangement by parsing each business element having a target code, determining an association relationship between each data to be tested and each business element, and then based on the association relationship, screening and determining a set of business elements to be tested associated with each data to be tested.

[0089] It should be noted that the number of the service elements to be tested included in the service element set to be tested associated with each data to be tested is not limited in the embodiment of the present application.

[0090] In a possible implementation, the data relationship representation device determines, in response to the received request, a set of service elements to be tested associated with each data to be tested based on each service element having a target code, that is, the data relationship representation device performs step 301, which can be implemented by the following steps 301a and 301b:

[0091] Step 301a: In response to the received request, perform a bitwise AND operation on the identification code and the target code of each service element to determine the association relationship between each data to be tested and each service element.

[0092] In the embodiment of the present application, the data relationship representation device performs a bitwise AND operation on the identification code of each data to be tested and the target code of each business element in response to the received request carrying the arrangement of business elements, and determines the association relationship between each data to be tested and each business element. Wherein, if the result obtained by the bitwise AND operation of identification code 1 and target code 1 is 1, it proves that there is an association relationship between the data to be tested 1 corresponding to identification code 1 and the business element 1 corresponding to target code 1; if the result obtained by the bitwise AND operation of identification code 1 and target code 2 is 0, it proves that there is no association relationship between the data to be tested 1 corresponding to identification code 1 and the business element 2 corresponding to target code 2.

[0093] Step 301b: Based on the association relationship between each piece of data to be tested and each service element, determine a set of service elements to be tested associated with each piece of data to be tested.

[0094] In the embodiment of the present application, the data relationship representation device determines a set of service elements to be tested associated with each data to be tested based on the association relationship between each data to be tested and each service element, that is, whether there is an association or no association.

[0095] It should be noted that in the embodiment of the present application, the data relationship representation device performs a bitwise AND operation on the identification code and the target code to determine whether there is an association between each data to be tested and each business element, and then determines the set of business elements to be tested associated with each data to be tested based on the result; in this way, through a convenient and efficient calculation method, the data to be processed and the business elements associated with it are parsed based on concise numerical information, which can improve the parsing efficiency between data relationships.

[0096] Step 302: Generate a service element queue for each data to be tested based on the service element set to be tested associated with each data to be tested.

[0097] In an embodiment of the present application, a data relationship representation device generates a service element queue for each data to be tested based on a set of service elements to be tested associated with each data to be tested; wherein the service element queue for each data to be tested has a corresponding relationship with a request for carrying an element arrangement.

[0098] It should be noted that the order of related service elements in the service element queue of each data to be tested may be the same or different, and the embodiment of the present application does not impose any limitation on this.

[0099] In a feasible implementation, when the data to be tested are all product orders, the business element queue of the data to be tested 1 can be: product-payment method-address-coupon; the business element queue of the data to be tested 2 can be: product-merchant-coupon-disposal method, etc.

[0100] In a possible implementation, the data relationship representation device generates a service element queue for each data to be tested based on a set of service elements to be tested associated with each data to be tested, that is, the data relationship representation device executes step 302, which can also be implemented by the following steps 302a and 302b:

[0101] Step 302a: In response to the received request, based on the service set to be tested associated with each data to be tested, determine the upper layer element and the lower layer element of the service element to be tested associated with each data to be tested.

[0102] In an embodiment of the present application, a data relationship representation device responds to a received request carrying a business element queue, parses the request, and determines the upper and lower elements of the business element to be tested associated with each data to be tested based on the information in the business set to be tested associated with each data to be tested.

[0103] Step 302b: Determine a service element queue for each data to be tested based on the upper layer elements and lower layer elements of the service element to be tested associated with each data to be tested.

[0104] In an embodiment of the present application, a data relationship representation device determines the position information of the business to be tested associated with each data to be tested in the corresponding business element queue based on the upper-layer elements and lower-layer elements of the business element to be tested associated with each data to be tested, and then determines the business element queue of each data to be tested based on the position information.

[0105] It should be noted that in an embodiment of the present application, the data relationship representation device determines the upper-layer elements and lower-layer elements of the business element to be tested associated with each data to be tested in response to the received request, and then determines the business element queue of each data to be tested; in this way, based on more accurate upper-layer element and lower-layer element information of each element to be tested, the position information of the business element to be tested associated with each data to be tested in the corresponding business element queue is determined, which can improve the accuracy of determining the business element queue of each data to be tested.

[0106] Step 303: Based on the business element queue of each data to be tested, generate and output a data relationship network corresponding to each data to be tested.

[0107] In an embodiment of the present application, a data relationship representation device generates and outputs a data relationship network corresponding to each data to be tested based on a business element queue of each data to be tested; wherein the data relationship network corresponding to each data to be tested can be displayed and output independently, or the data relationship networks corresponding to each data to be tested can be combined for display and output.

[0108] The data relationship representation device may display the data relationship network corresponding to each data to be tested on the display interface corresponding to its display module, or send it to other devices with which information is interacted and displayed. At the same time, the display mode, display cycle, display color, etc. of the data relationship network corresponding to each data to be tested are not limited in any way in the embodiments of the present application.

[0109] It should be noted that, in the embodiment of the present application, the data relationship representation device can display and store the specific data information corresponding to the business element in the data relationship network corresponding to each data to be tested.

[0110] In a possible implementation, the data relationship representation device generates and outputs the data relationship network corresponding to each data to be tested based on the business element queue of each data to be tested, that is, the data relationship representation device executes step 303, which can also be implemented by the following steps 303a and 303b:

[0111] Step 303a: Obtain data information corresponding to each business element.

[0112] In the embodiment of the present application, the data relationship representation device obtains the data information corresponding to each business element, which may refer to obtaining the data information of the business element to be tested associated with each data to be tested.

[0113] In a feasible implementation, the business element is a commodity, and the data information corresponding to the business element is a book; the business element is an address, and the data information corresponding to the business element is Xi'an City, Shaanxi Province, etc.

[0114] Step 303b: Based on the position information of each service element in the service element queue and the data information corresponding to each service element, generate and output a data relationship network corresponding to each data to be tested.

[0115] In an embodiment of the present application, a data relationship representation device fills in the data information corresponding to each business element at the position node of each business element in the business element queue, generates and outputs a data relationship network corresponding to each data to be tested; wherein the data relationship network includes: a data relationship node network and a data information node network, and at the same time, the data relationship node network can refer to the association relationship between the business elements to be tested of each data to be tested, and the association relationship is displayed through the business element queue, and the data information node network can refer to the association relationship between the specific data information of the business elements to be tested of each data to be tested.

[0116] In a feasible implementation, the data relationship network of the test data 1 is: address-distribution method-coupon-product, Xi'an, Shaanxi Province-cash payment-2 off for purchases over 30 yuan-books; the data relationship network of the test data 2 is: time limit-distribution method-coupon-product, delivery within two hours-cash payment-2 off for purchases over 30 yuan-books.

[0117] In a feasible implementation, the data relationship representation device fills in the data information of the business element to be tested associated with each data to be tested into the position node in the business element queue corresponding to the business element to be tested associated with each data to be tested, so as to obtain the data relationship network corresponding to each data to be tested.

[0118] It should be noted that in an embodiment of the present application, the data relationship representation device obtains a data relationship network for each data to be tested based on the data information of each business element and the position information of each business element in the business element queue; in this way, the node relationship and data information corresponding to each data to be tested are displayed in the data relationship network of the data to be tested, so that the information displayed in the data relationship network can be more comprehensive.

[0119] At the same time, in an embodiment of the present application, a data relationship representation device responds to receiving a request carrying an arrangement of business elements, and parses the data to be processed and the business elements associated therewith based on concise numerical information through a convenient and efficient calculation method, thereby improving the parsing efficiency between relational data; at the same time, parsing the request carrying the arrangement of business elements and assigning values ​​to the data information of each business element can realize flexible display of the data organization form corresponding to the data to be processed on the basis of obtaining a more comprehensive data relationship network, thereby enabling the display form of the data to be processed to meet the diverse and complex application scenarios.

[0120] The method for representing data relationships provided in the embodiment of the present application encodes the data to be processed and each business element in the set of business elements associated with the data to be processed through an efficient and convenient marking method to obtain corresponding identification codes and target codes, which can improve the binding efficiency between relational data; at the same time, based on a convenient and efficient calculation method, the data to be processed and the business elements associated with it are parsed based on concise numerical information, which can improve the parsing efficiency between data relationships; in addition, based on the received request carrying the arrangement of business elements and the data information of each business element, the business elements with the target code are generated into a data relationship network corresponding to the data to be processed, which can realize flexible display of the data organization form corresponding to the data to be processed, and thus enable the display form of the data to be processed to meet the diverse and complex application scenarios.

[0121] Based on this, in the method for representing data relations provided in the embodiment of the present application, the bit or algorithm and the bit and algorithm are used to bind and parse data relations, which can be implemented by the following steps:

[0122] The first step is to construct a product list: each product list (Shopping Item) corresponds to a UUID, and each product list is marked according to the BitSet algorithm to generate a corresponding binary value. For example: there are 4 product lists, the corresponding bit of product list 1 is 0001, the corresponding bit of product list 2 is 0010, the corresponding bit of product list 3 is 0100, and the corresponding bit of product list 4 is 1000. The value corresponding to each product list is a binary bit that increases in multiples of 2. At the same time, the generated bits can be stored in the relevant storage area accordingly, where the UUID of each product list corresponds to its corresponding bit one by one.

[0123] The second step is binding relationship. When binding a product list, each business element or product superstructure in a product list, such as a shopping cart or a package, must perform a binary bit OR operation with the current product list to generate the corresponding binary bit. It is also stored in the above-mentioned related storage area. At the same time, each business element or product superstructure also has its own corresponding UUID. For example: Product superstructure: Package 1 contains two product lists, Product List 1 and Product List 2. Package 2 contains Product List 3. Package 3 contains Product List 4. Then the bit of package 1 is the binary bit 0001 of Product List 1 and the binary bit 0010 of Product List 2, as well as the binary bit 0000 of package 1 itself. The bit OR operation is 0011. Similarly, the bit of package 2 is the binary bit 0100 of Product List 3 and its own binary bit 0000. The bit OR operation is 0100, and the bit of package 3 is 1000. Business element: Product List 1 is associated with Inventory 1 and Delivery 1. Product List 2 is associated with Delivery 1. The bit of Inventory 1 is the bitwise OR operation of the binary bit 0001 of Product List 1 and itself 000, which is 0001. The binary bit of Delivery 1 is the bitwise OR operation of the binary bit 0001 of Product List 1 and the binary bit 0010 of Product List 2, which is 0011.

[0124] The third step is to parse the relationship. After the above relationship is bound, any two business elements can be parsed without the need to transfer the associated product list. At the same time, when performing a bitwise AND operation, if the result is greater than 0, it means there is a relationship. For example: Get the binary bit 0011 corresponding to delivery 1 and the binary bit 0001 corresponding to inventory 1. Perform a bitwise AND operation to get 0001. If it is greater than zero, it is considered that there is a relationship, and the corresponding inventory data can be obtained. At the same time, Figure 5 As shown in FIG. 1 , a schematic diagram of a binary numerical representation of the relationship between data is provided in an embodiment of the present application. Figure 5 It can be determined that package 1 is associated with list 1 and list 2, package 2 is associated with list 3, and package 3 is associated with list 4; shopping basket 1 is associated with list 1, list 2, and list 3, and shopping basket 3 is associated with list 4; the entire order is associated with list 1, list 2, list 3, and list 4, inventory 1 is associated with list 1, and product 1 is associated with list 1; delivery 1 is associated with list 1 and list 2.

[0125] In this way, the commodity list and the business elements or upper-level structure information associated with the commodity list are marked through an efficient and convenient marking method to obtain the corresponding binary values. At the same time, based on a convenient and efficient calculation method, the commodity list and the business elements associated with the commodity list are parsed based on concise numerical information, that is, there is no need to transfer business elements through related information links, etc., which can improve the binding efficiency between the commodity list and the business elements associated with the commodity list, and between the business elements, and can improve the parsing efficiency between the commodity list and the business elements associated with the commodity list, and between the business elements.

[0126] At the same time, in the method for representing data relationships provided in the embodiment of the present application, based on the received request for arranging business elements and the data information of each business element, the business elements with the target code are used to generate a data relationship network corresponding to the data to be processed. Among them, taking the above-mentioned 4 commodity lists as an example, after responding to the request for arranging business elements, the corresponding business elements of each commodity list are parsed based on the commodity as the dimension, that is, the business elements associated with each commodity list are determined through bitwise AND operations, and then based on the request for arranging business elements, the arrangement order corresponding to all business elements in each commodity list is determined, so that all businesses in each commodity list can be displayed hierarchically according to the hierarchy. At the same time, in the process of hierarchical display, the node structure based on the hierarchical display can be divided into: a data area and a node relationship area corresponding to the data relationship network in the embodiment of the present application. Among them, the data area is the display information composed of the data corresponding to the business elements on each node of each presentation layer, and the node relationship area is the relationship between the data of each presentation layer, and each presentation layer level is associated through a node relationship. Different business parties have different node relationships, but the data corresponding to their business elements remain unchanged. As Figure 6 As shown, it is a schematic diagram of displaying business elements based on the root node provided by the application embodiment; based on the root node, the hierarchical display of different businesses is performed, and the first layer 601 gives all the business elements of the product list, such as: address, merchant, coupon, tax, instant discount, invoice and payment method, etc. Figure 6 This is only an example and does not represent all business element information of any product list. At the same time, when the merchant node 602 includes merchant 1 and merchant 2, a specific arrangement method is given for each merchant, such as Figure 6 Merchant 1 in 603 includes: total price promotion and general package, and 604 express delivery and time efficiency information, and then based on the total price promotion in 603, determine the package consisting of single product M and single product N, and the independent promotion information of single product X; and the general package in 603 includes single product C and single product D and the corresponding gift information.

[0127] In this way, based on the received request carrying the arrangement of business elements and the data information of each business element, the business elements with target coding will generate a data relationship network corresponding to the data to be processed, that is, the business elements are decoupled and the corresponding business element organization form is dynamically generated, which can realize the flexible display of the data organization form corresponding to the data to be processed, and thus the display form of the data to be processed can meet the diverse and complex application scenarios.

[0128] Based on the above embodiments, the present application also provides a data relationship representation device 7, which can be applied to Figures 2 to 4 In a method for expressing a data relationship provided in a corresponding embodiment, referring to Figure 7 As shown, the data relationship representation device 7 includes: an acquisition module 71, a marking module 72, a determination module 73 and a generation module 74, wherein:

[0129] An acquisition module 71 is used to acquire the data to be processed and a set of business elements associated with the data to be processed;

[0130] A marking module 72, used to mark the data to be processed based on a preset marking strategy to obtain an identification code of the data to be processed;

[0131] A determination module 73, configured to determine a target code for each business element based on the identification code and the association relationship between the data to be processed and each business element in the business element set;

[0132] The generating module 74 is used to generate and output a data relationship network representing the association relationship between the to-be-processed data and each service element based on each service element with a target code in response to the received request carrying the service element arrangement.

[0133] In the embodiment of the present application, the marking module 72 is also used to obtain the identification code of the data to be processed; and to mark the identification code using a preset identification strategy to obtain an identification code.

[0134] In the embodiment of the present application, the determination module 73 is further used to determine the initial code of each business element; based on the identification code, the initial code of each business element and the association relationship, determine the target code of each business element.

[0135] In the embodiment of the present application, the determination module 73 is further used to perform a bitwise OR operation on the identification code and the initial code of each service element based on the association relationship to obtain a target code of each service element.

[0136] In the embodiment of the present application, the data to be processed are at least two data to be tested, and the generating module 74 includes:

[0137] A first determination submodule, configured to determine, in response to a received request, a set of service elements to be tested associated with each data to be tested based on each service element having a target code;

[0138] A first generating submodule, configured to generate a service element queue for each data to be tested based on a set of service elements to be tested associated with each data to be tested;

[0139] The second generating submodule is used to generate and output a data relationship network corresponding to each data to be tested based on the business element queue of each data to be tested.

[0140] In an embodiment of the present application, the first determination submodule is also used to respond to the received request, perform a bitwise AND operation on the identification code and the target code of each business element, and determine the association relationship between each data to be tested and each business element; based on the association relationship between each data to be tested and each business element, determine the set of business elements to be tested associated with each data to be tested.

[0141] In an embodiment of the present application, the first generation submodule is used to determine, in response to a received request, the upper-layer elements and lower-layer elements of the business element to be tested associated with each data to be tested based on the business set to be tested associated with each data to be tested; and determine the business element queue of each data to be tested based on the upper-layer elements and lower-layer elements of the business element to be tested associated with each data to be tested.

[0142] In an embodiment of the present application, the second generating submodule is used to obtain data information corresponding to each business element; based on the position information of each business element in the business element queue and the data information corresponding to each business element, generate and output a data relationship network corresponding to each data to be tested.

[0143] It should be noted that the specific implementation process of the steps executed by each module in this embodiment can be referred to Figures 2 to 4 The implementation process of the method for representing data relations provided in the corresponding embodiment will not be repeated here.

[0144] The data relationship representation device provided in the embodiment of the present application encodes the data to be processed and each business element in the set of business elements associated with the data to be processed through an efficient and convenient marking method to obtain corresponding identification codes and target codes, which can improve the binding efficiency between relational data; at the same time, based on a convenient and efficient calculation method, the data to be processed and the business elements associated with it are parsed based on concise numerical information, which can improve the parsing efficiency between relational data; in addition, based on the received request carrying the arrangement of business elements and the data information of each business element, the business elements with the target code are used to generate a data relationship network corresponding to the data to be processed, which can realize flexible display of the data organization form corresponding to the data to be processed, and thus enable the display form of the data to be processed to meet the diverse and complex application scenarios.

[0145] Based on the above embodiments, the present application also provides a data relationship representation device 8, which can be applied to Figures 2 to 4 In a method for expressing a data relationship provided in a corresponding embodiment, referring to Figure 8 As shown, the data relationship representation device 8 includes: a processor 81, a memory 82 and a communication bus 83, wherein:

[0146] The communication bus 83 is used to implement the communication connection between the processor 81 and the memory 82 .

[0147] The processor 81 is used to execute the program of the data relationship representation method stored in the memory 82 to realize the reference Figures 2 to 4 The corresponding embodiment provides a method for representing data relations.

[0148] The data relationship representation device provided in the embodiment of the present application encodes the data to be processed and each business element in the set of business elements associated with the data to be processed through an efficient and convenient marking method to obtain corresponding identification codes and target codes, which can improve the binding efficiency between relational data; at the same time, based on a convenient and efficient calculation method, the data to be processed and the business elements associated with it are parsed based on concise numerical information, which can improve the parsing efficiency between relational data; in addition, based on the received request carrying the arrangement of business elements and the data information of each business element, the business elements with the target code are generated into a data relationship network corresponding to the data to be processed, which can realize flexible display of the data organization form corresponding to the data to be processed, and thus enable the display form of the data to be processed to meet the diverse and complex application scenarios.

[0149] Based on the foregoing embodiments, the embodiments of the present application further provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the following. Figures 2 to 4 The corresponding embodiment provides a method for representing data relations.

[0150] It should be noted that the above-mentioned computer-readable storage medium can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM) and other memories; it can also be various electronic devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0151] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0152] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0153] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0154] The present application is described with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0155] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0156] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0157] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for expressing data relations, characterized in that: The method comprises: Acquire data to be processed and a set of business elements associated with the data to be processed; Based on a preset identification strategy, the data to be processed is marked to obtain an identification code of the data to be processed; Determine an initial code of each of the service elements; based on the association relationship between the data to be processed and each service element in the service element set, perform a bitwise OR operation on the identification code and the initial code of each of the service elements to obtain a target code of each of the service elements; In response to the received request carrying the arrangement of the service elements, based on each of the service elements having the target code, a data relationship network representing the association relationship between the to-be-processed data and each of the service elements is generated and output.

2. The method according to claim 1, characterized in that The step of marking the data to be processed based on a preset identification strategy to obtain an identification code of the data to be processed includes: Obtaining an identification code of the data to be processed; The preset identification strategy is adopted to mark the identification code to obtain the identification code.

3. The method according to claim 1, characterized in that The data to be processed is at least two data to be tested, and the response to the received request carrying the arrangement of service elements is to generate and output a data relationship network representing the association relationship between the data to be processed and each of the service elements based on each of the service elements having the target code, including: In response to the received request, determining a set of service elements to be tested associated with each data to be tested based on each service element with a target code; Based on the set of service elements to be tested associated with each of the data to be tested, generating a service element queue for each of the data to be tested; Based on the business element queue of each of the data to be tested, a data relationship network corresponding to each of the data to be tested is generated and output.

4. The method according to claim 3, characterized in that The step of determining, in response to the received request, a set of service elements to be tested associated with each data to be tested based on each service element having a target code, comprises: In response to the received request, performing a bitwise AND operation on the identification code and the target code of each of the service elements to determine an association relationship between each of the data to be tested and each of the service elements; Based on the association relationship between each of the data to be tested and each of the service elements, a set of service elements to be tested associated with each of the data to be tested is determined.

5. The method according to claim 3, characterized in that: The generating, based on the set of service elements to be tested associated with each of the data to be tested, a service element queue for each of the data to be tested, comprises: In response to the received request, based on the service set to be tested associated with each of the data to be tested, determine the upper layer element and the lower layer element of the service element to be tested associated with each of the data to be tested; Based on the upper layer elements and the lower layer elements of the service element to be tested associated with each of the data to be tested, a service element queue for each of the data to be tested is determined.

6. The method according to claim 3, characterized in that The generating and outputting a data relationship network corresponding to each of the data to be tested based on the business element queue of each of the data to be tested comprises: Obtaining data information corresponding to each of the business elements; Based on the position information of each of the service elements in the service element queue and the data information corresponding to each of the service elements, a data relationship network corresponding to each of the data to be tested is generated and output.

7. A data relationship representation device, characterized in that: The device comprises: An acquisition module, used to acquire data to be processed and a set of business elements associated with the data to be processed; A marking module, used to mark the data to be processed based on a preset marking strategy to obtain an identification code of the data to be processed; A determination module, configured to determine an initial code of each of the service elements, and based on an association relationship between the data to be processed and each of the service elements in the service element set, perform a bitwise OR operation on the identification code and the initial code of each of the service elements to obtain a target code of each of the service elements; The generating module is used to generate and output a data relationship network representing the association relationship between the to-be-processed data and each of the service elements based on each of the service elements having the target code in response to the received request carrying the service element arrangement.

8. A data relationship representation device, characterized in that: The device comprises: a processor, a memory and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the program in the memory to implement the method for representing data relations as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method for representing data relations as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Dynamic report generation method and platform

    CN101308490A

  • Matching method for data in distributed interactive simulation system

    CN102819569A

  • Value based windows on relations in continuous data streams

    CN105308592A

  • Document index establishing method and device as well as document retrieving method and device

    CN105589894A

  • Data storage method and device

    CN107545021A