Data element query method and device, electronic equipment and storage medium

By extracting and matching target tags, obtaining the data elements of the target node, and performing tag dimension aggregation processing, it solves the problem of high-frequency and concurrent access when querying multi-target tags in Internet communications, and improves the accuracy and efficiency of query results.

CN118733869APending Publication Date: 2024-10-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310350631.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In Internet communication technology, when a query request carries multiple target tags, the high-frequency and concurrent access problems stored in the existing technology cause the accuracy and efficiency of the query results to be affected.

Method used

By extracting multiple target tags, the target node matching each target tag is determined, the data elements contained in the target node are obtained, and the tag dimensions are aggregated based on the association relationship to optimize the storage search mechanism and reduce the impact on storage. Visit frequency.

Benefits of technology

It effectively alleviates the problem of high-frequency and concurrent access in storage, improves the accuracy and efficiency of query results, optimizes the pertinence of access to storage, and reduces the access frequency of the same data element.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733869A_ABST
    Figure CN118733869A_ABST
Patent Text Reader

Abstract

The invention relates to a data element query method and device, electronic equipment and a storage medium. The method comprises the following steps: extracting a plurality of target tags from a data element query request; respectively determining a target node matched with each target label to obtain a first node set corresponding to the plurality of target labels; obtaining a first type of data elements contained in each target node from a storage unit to obtain a first data element set corresponding to the first node set, and determining an association relationship between the first type of data elements and the target nodes; and based on the association relationship, carrying out tag dimension aggregation processing on the first data element set to obtain a second data element set corresponding to each target tag. According to the method and the device, the access pertinence for storage in a single request is improved, and the access frequency of the same data element in the storage is reduced, so that the problem of high-frequency concurrency brought to the storage can be relieved. The embodiment of the invention can be applied to various scenes such as cloud technology, artificial intelligence, intelligent transportation, intelligent entertainment and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet communication technology, and in particular to a data element query method, device, electronic device and storage medium. Background Art

[0002] With the development of Internet communication technology, various Internet products emerge in an endless stream, which provide users with the experience of using related functions. The use of related functions may involve the query of data elements, such as querying data elements indicating target tags. In related technologies, the corresponding data elements are searched in the storage based on the target tags. When a query request carries multiple target tags, a data element search is often performed in the storage based on each target tag. Such a search mechanism may bring high-frequency and concurrent access problems to the storage, thereby affecting the query results. Summary of the invention

[0003] In order to solve at least one of the above-mentioned technical problems, the present application provides a data element query method, device, electronic device and storage medium:

[0004] According to a first aspect of the present application, a data element query method is provided, the method comprising:

[0005] Extracting a plurality of target tags from the data element query request;

[0006] Determine the target node matching each of the target tags respectively, and obtain a first node set corresponding to the multiple target tags;

[0007] Respectively obtaining the first-category data elements contained in each of the target nodes from the storage unit, obtaining the first data element set corresponding to the first node set, and determining the association relationship between the first-category data elements and the target nodes, wherein the first-category data elements contained in the target nodes include the same-level data elements corresponding to the target nodes and the same-level data elements corresponding to at least one subordinate node of the target nodes;

[0008] Based on the association relationship, the first data element set is aggregated in the label dimension to obtain a second data element set corresponding to each target label to obtain a data element query result.

[0009] According to a second aspect of the present application, a data element query method is provided, the method comprising:

[0010] The first server extracts a plurality of target tags from the data element query request;

[0011] The first server determines the target node matching each of the target tags respectively, and obtains a first node set corresponding to the multiple target tags;

[0012] The first server obtains the first-category data elements contained in each of the target nodes from the storage unit, obtains the first data element set corresponding to the first node set, and determines the association relationship between the first-category data elements and the target nodes, wherein the first-category data elements contained in the target nodes include the same-level data elements corresponding to the target nodes and the same-level data elements corresponding to at least one subordinate node of the target nodes;

[0013] The first server sends the first data element set, the association relationship, and the matching relationship between the target tag and the target node to the second server;

[0014] The second server performs tag dimension aggregation processing on the first data element set based on the association relationship and the matching relationship to obtain a second data element set corresponding to each target tag to obtain a data element query result.

[0015] According to a third aspect of the present application, a data element query device is provided, the device comprising:

[0016] Extraction module: used to extract multiple target tags from the data element query request;

[0017] A node set obtaining module: used to respectively determine a target node matching each of the target tags, and obtain a first node set corresponding to the multiple target tags;

[0018] A data element acquisition module: used to acquire the first-class data elements contained in each of the target nodes from the storage unit, obtain the first data element set corresponding to the first node set, and determine the association relationship between the first-class data elements and the target nodes, wherein the first-class data elements contained in the target nodes include the same-level data elements corresponding to the target nodes and the same-level data elements corresponding to at least one subordinate node of the target nodes;

[0019] Query result acquisition module: used to perform label dimension aggregation processing on the first data element set based on the association relationship, obtain the second data element set corresponding to each target label, so as to obtain the data element query result.

[0020] According to the fourth aspect of the present application, an electronic device is provided, comprising at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the at least one processor to implement the data element query method as described in the first aspect or the data element query method as described in the second aspect.

[0021] According to the fifth aspect of the present application, a computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the data element query method as described in the first aspect or the data element query method as described in the second aspect.

[0022] According to the sixth aspect of the present application, a computer program product is provided, which includes at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by a processor to implement the data element query method as described in the first aspect or the data element query method as described in the second aspect.

[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.

[0024] Implementing this application has the following beneficial effects:

[0025] The present application provides a scheme for querying data elements under a target tag, which is applied to the scenario where data elements under multiple target tags need to be queried, and can effectively meet the situation where a data element query request carries multiple target tags. In the present application, the target nodes matching each target tag are determined respectively, and the first node set corresponding to the multiple target tags is obtained; then, the first type of data elements contained in each target node are obtained from the storage unit respectively, and the first data element set corresponding to the first node set is obtained, and the association relationship between the first type of data elements and the target node is determined; further, based on the association relationship, the first data element set is aggregated in the label dimension to obtain the second data element set corresponding to each target tag, so as to obtain the data element query result. The present application obtains data elements in the node dimension, and then aggregates the obtained data elements in the label dimension to obtain the query result. Through the first node set, the same target nodes that may be matched by different target tags are sorted, which optimizes the storage search mechanism, improves the access pertinence to the storage in a single request, and reduces the access frequency to the same data element in the storage. In this way, the high-frequency and concurrent access problems brought to the storage in the related technology can be alleviated to a certain extent, or even avoided. For the data elements obtained from the storage, they are aggregated by label dimension to ensure the accuracy and effectiveness of the query results.

[0026] Other features and aspects of the present application will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 A schematic diagram of an application environment according to an embodiment of the present application is shown;

[0029] Figure 2 A schematic diagram showing a flow chart of a data element query method according to an embodiment of the present application;

[0030] Figure 3 A schematic diagram showing a process of obtaining a first data element set according to an embodiment of the present application is shown;

[0031] Figure 4 A schematic diagram of a process for obtaining a first data element set according to an embodiment of the present application is also shown;

[0032] Figure 5A schematic diagram of a data element query method according to an embodiment of the present application is also shown;

[0033] Figure 6 A schematic diagram of an interface for expanding a tag according to an embodiment of the present application is shown;

[0034] Figure 7 A schematic diagram of an interface for expanding a tag according to an embodiment of the present application is also shown;

[0035] Figure 8 A schematic diagram showing the architecture of a data element query method according to an embodiment of the present application;

[0036] Fig. 9 A schematic diagram showing a process of processing batch tags according to an embodiment of the present application is shown;

[0037] Fig.10 A schematic diagram of a company structure according to an embodiment of the present application is shown;

[0038] Fig.11 A device block diagram according to an embodiment of the present application is shown;

[0039] Fig.12 A schematic diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0042] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0043] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0044] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0045] In addition, in order to better illustrate the present application, numerous specific details are provided in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.

[0046] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0047] Database (DB): It can be seen as an electronic filing cabinet - a place to store electronic files, where users can add, query, update, delete, etc. The so-called "database" is a collection of data that is stored together in a certain way, can be shared with multiple users, has as little redundancy as possible, and is independent of the application.

[0048] See also Figure 1 , Figure 1A schematic diagram of an application environment according to an embodiment of the present application is shown, and the application environment may include a client 10 and a server 20. The client 10 and the server 20 may be directly or indirectly connected via wired or wireless communication. The user may send a data element query request to the server 20 via the client 10. For the received data element query request, the server 20 extracts a plurality of target tags from the data element query request; then, the target nodes matching each target tag are determined respectively, and a first node set corresponding to the plurality of target tags is obtained; furthermore, the first type of data elements contained in each target node are obtained from the storage unit respectively, and a first data element set corresponding to the first node set is obtained, and an association relationship between the first type of data elements and the target node is determined, and the first type of data elements contained in the target node include data elements of the same level corresponding to the target node, and data elements of the same level corresponding to at least one subordinate node of the target node; finally, based on the association relationship, the first data element set is aggregated in the label dimension to obtain a second data element set corresponding to each target tag, so as to obtain a data element query result. It should be noted that Figure 1 Just an example.

[0049] The client 10 may be a physical device such as a smart phone, a computer (such as a desktop computer, a tablet computer, a laptop computer), an augmented reality (AR) / virtual reality (VR) device, a digital assistant, an intelligent voice interaction device (such as an intelligent speaker), an intelligent wearable device, an intelligent home appliance, a vehicle-mounted terminal, etc., or may be software running in a physical device, such as a computer program. The operating system corresponding to the client 10 may be an Android system (Android system), an iOS system (a mobile operating system developed by Apple), a Linux system (an operating system), a Microsoft Windows system (Microsoft Windows operating system), etc.

[0050] The server end 20 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server can include a network communication unit, a processor, a memory, etc. The server end 20 can provide background services for the corresponding client.

[0051] In practical applications, the data element query solution provided by the embodiment of the present application can be applied to the label expansion scenario to ensure the correct return of data in the batch label expansion scenario. Taking the label expansion scenario combined with the group architecture as an example, the data element can refer to the department members under the company structure, and the target label can refer to the work project in which the relevant department members participate. As shown in Figures 6 and 7, by expanding the target label, you can view multiple department members under the target label. The multiple department members can include a class of department members (such as all members of the department to which they belong participate in the work project (corresponding to the target label) Figure 6 All members of Team A, Team B, and Team C in the above example can also include all members of their department who do not all participate in the work project (corresponding to the target label), but a group of department members who participate in the work project (corresponding to the target label) (e.g. Figure 6 In the example, "Member A", "Member B" and "Member C" are used to distinguish the nature of the work of personnel, such as finance, personnel, etc. Figure 6 As shown in the figure, "

Product Operation

[0052] It should be noted that for target tags, target nodes, first-category data elements, second-category data elements, etc. that are associated with user information, when the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0053] Figure 2 A flow chart of a data element query method according to an embodiment of the present application is shown as follows: Figure 2 As shown, the method includes:

[0054] S201: extracting multiple target tags from the data element query request;

[0055] In an embodiment of the present application, the server extracts multiple target tags from the data element query request. The data element query request can be generated by a user through a client trigger and sent to the server. The data element query request carries multiple target tags, and the data element query request is intended to request a query for the data element corresponding to each target tag.

[0056] For example, in an office scenario, a data element can refer to a department member under the company structure, and a target tag can refer to a work project in which the relevant department member participates. The data element query request is intended to request a query of the department member involved in each work project. The data element query result can be used as a copy of the approval process. Accordingly, the department members involved in the data element query result can view the pending approval information corresponding to the approval process, see Figure 7 .

[0057] In the media content management scenario, data elements can refer to media content, such as text, images, graphics, audio, video, etc. Target tags can refer to feature descriptors of related media content. The data element query request is intended to request a query for media content that matches each feature descriptor. The media content that matches each feature descriptor can be media content whose tags it carries match the feature descriptor, or media content whose collection name matches the feature descriptor. Multiple target collections can be constructed based on the data element query results, and multiple target collections correspond one-to-one to multiple target tags. For example, a video collection includes videos 1-10, and the collection name of the video collection matches the feature descriptor, then videos 1-10 are media content that matches the feature descriptor.

[0058] S202: Determine the target node matching each of the target tags respectively, and obtain a first node set corresponding to the multiple target tags;

[0059] In an embodiment of the present application, the server side determines the target node that matches each target tag respectively, and obtains the first node set corresponding to the multiple target tags. The target node matches the target tag, indicating that the information carried by the target node matches the target tag. Whether the match is or not can be determined by calculating the similarity between the two and comparing the similarity with the threshold. Considering the management settings for the data element, compared with directly obtaining the data element corresponding to the target tag from the storage, the target node that matches each target tag is first determined respectively to obtain the first node set corresponding to the multiple target tags, and then the data element is obtained in the node dimension. In this way, the access targeting of the storage in a single request can be improved, and the access frequency of the same data element in the storage can be reduced, thereby alleviating or even avoiding the high-frequency and concurrent access problems caused by obtaining data elements for storage. It can be understood that different target tags in multiple target tags may match the same target node. With the target node as the anchor point, the corresponding data element is obtained from the storage unit. A data element search is performed in the storage unit based on each target node. Compared with "a data element search is performed in the storage based on each target tag", the access frequency of the same data element in the storage can be effectively reduced.

[0060] Exemplarily, if the multiple target labels are N labels, label i represents the i-th label among the N labels, and the value range of i is 1-N. For label i, determine the target node that matches label i. For N labels, integrate the target nodes matched by each label in the N labels to obtain the first node set. For example, the multiple target labels are labels 1-3, label 1 matches nodes 1-3, label 2 matches nodes 2-5, and label 3 matches node 7. The first node set consists of nodes 1-5 and 7. Nodes 2 and 3 are nodes matched by both labels 1 and 2. If "a data element search is performed in the storage based on each target label", the data elements under nodes 2 and 3 will be accessed twice. And if "a data element search is performed in the storage unit based on each target node", the data elements under nodes 2 and 3 will be accessed once.

[0061] Nodes are used here for the management settings of data elements. Combined with the example in the above step S201, in an office scenario, a node may refer to a group under a group structure, such as a department under a company structure. Whether a group matches a target tag can be determined by calculating the similarity between the tag information carried by the group and the target tag, and comparing the calculated similarity with a threshold; it can also be determined by calculating the similarity between the group name and the target tag, and comparing the calculated similarity with a threshold. In a media content management scenario, a node may refer to a media content collection. Whether a media content collection matches a target tag can be determined by calculating the similarity between the tag information carried by the media content collection and the target tag, and comparing the calculated similarity with a threshold; it can also be determined by calculating the similarity between the collection name of the media content collection and the target tag, and comparing the calculated similarity with a threshold.

[0062] S203: respectively obtaining the first-category data elements contained in each of the target nodes from the storage unit, obtaining the first data element set corresponding to the first node set, and determining the association relationship between the first-category data elements and the target nodes, wherein the first-category data elements contained in the target nodes include the same-level data elements corresponding to the target nodes and the same-level data elements corresponding to at least one subordinate node of the target nodes;

[0063] In an embodiment of the present application, the server side obtains the first-class data elements contained in each target node from the storage unit, obtains the first data element set corresponding to the first node set, and determines the association relationship between the first-class data elements and the target node. The first-class data elements contained in each target node in the first node set are merged to obtain the first data element set. For the first-class data elements contained in the target node, it should be understood that 1) if the target node has no subordinate nodes, then the first-class data elements contained in the target node are the same-level data elements corresponding to the target node itself; 1) if the target node has subordinate nodes, then the first-class data elements contained in the target node include the same-level data elements corresponding to the target node itself, and the same-level data elements corresponding to the subordinate nodes themselves. It should be noted that the subordinate nodes here include the first-class subordinate nodes that have a direct superior-subordinate relationship with the target node, and also include the second-class subordinate nodes that have an indirect superior-subordinate relationship with the target node. For example, if node a is a first-type subordinate node that has a direct superior-subordinate relationship with the target node, and node b is a first-type subordinate node that has a direct superior-subordinate relationship with node a, then node b is a second-type subordinate node that has an indirect superior-subordinate relationship with the target node.

[0064] To determine the association relationship between the first-category data element and the target node, it is necessary to determine the association relationship between each first-category data element and the target node. It can be understood that when acquiring data elements in the node dimension, for each data element, an association relationship between it and the relevant node is established.

[0065] S204: Based on the association relationship, perform label dimension aggregation processing on the first data element set to obtain a second data element set corresponding to each target label to obtain a data element query result.

[0066] In an embodiment of the present application, the server performs label dimension aggregation processing on the first data element set based on the association relationship to obtain the second data element set corresponding to each target label to obtain the data element query result. When the association relationship between each first-class data element and the target node and the matching relationship between each target node and the target label are known, the first data element set is aggregated in the label dimension, that is, the first-class data elements under each target label are sorted out. In this way, the second data element set corresponding to each target label can be obtained, and then the data element query result can be obtained.

[0067] Exemplarily, if multiple target labels are labels 1-3, label 1 matches nodes 1-3, label 2 matches nodes 2-5, and label 3 matches node 7. The first node set consists of nodes 1-5 and 7. The first data element set consists of the first type of data elements contained in each of nodes 1-5 and 7. The second data element set corresponding to label 1 consists of the first type of data elements contained in each of nodes 1-3. The second data element set corresponding to label 2 consists of the first type of data elements contained in each of nodes 2-5. The second data element set corresponding to label 3 consists of the first type of data elements contained in node 7.

[0068] It can be seen from the technical solution provided by the above embodiment of the present application that the embodiment of the present application provides a solution for querying data elements under a target tag, which is applied to the scene where data elements under multiple target tags need to be queried, and can effectively meet the situation where a data element query request carries multiple target tags. In the embodiment of the present application, the target nodes matching each target tag are determined respectively, and the first node set corresponding to the multiple target tags is obtained; then, the first type of data elements contained in each target node are obtained from the storage unit respectively, and the first data element set corresponding to the first node set is obtained, and the association relationship between the first type of data elements and the target node is determined; further, based on the association relationship, the first data element set is aggregated in the label dimension to obtain the second data element set corresponding to each target tag, so as to obtain the data element query result. The embodiment of the present application obtains data elements in the node dimension, and then aggregates the obtained data elements in the label dimension to obtain the query result. Through the first node set, the same target nodes that may be matched by different target tags are sorted, so that the storage search mechanism is optimized, the access pertinence to the storage in a single request is improved, and the access frequency to the same data element in the storage is reduced. This can alleviate or even avoid the high-frequency and concurrent access problems that related technologies bring to storage to a certain extent. For the data elements obtained from the storage, the label dimension is aggregated to ensure the accuracy and effectiveness of the query results.

[0069] The embodiments of the present application will be described in detail below.

[0070] As a possible implementation, for the aforementioned step S204, before the aggregation processing of the label dimension is performed on the first data element set based on the association relationship to obtain the second data element set corresponding to each of the target labels, the following steps may be included: for each of the target labels, the second type of data elements carrying the target label are obtained from the storage unit to obtain a third data element set corresponding to each of the target labels, the same-level nodes corresponding to the second type of data elements do not match the target label, and at least one upper-level node of the same-level nodes does not match the target label;

[0071] Based on the association relationship, after the first data element set is aggregated in the label dimension to obtain the second data element set corresponding to each of the target tags, the following steps may be included: based on the second data element set corresponding to each of the target tags and the third data element set corresponding to each of the target tags, the data element query result is obtained.

[0072] Considering the different relationships between labels and data elements, in addition to the pointing relationship between the first-category data elements and the target label through the target node, the second-category data elements here also establish a pointing relationship with the target label through their own attributes. Here, a method is provided to obtain the second-category data elements in the label dimension and integrate them with the first-category data elements under the above label. By integrating the first-category data elements and the second-category data elements under the same target label, it is beneficial to the globality and accuracy of the data element query results.

[0073] For example, label 1 refers to the operating project of product xx, label 1 matches nodes 1-3, and nodes 1-3 indicate departments 1-3 respectively. The first type of data elements under label 1 are composed of department members of departments 1-3, so the second data element set corresponding to label 1 can be obtained. Nodes 4-6 indicate departments 4-6 respectively, and label 1 does not match nodes 4-6. Member a is a department member of department 4, member b is a department member of department 5, and member c is a department member of department 6. But member ac carries label 1, so member ac is the second type of data element under label 1, so the third data element set corresponding to label 1 can be obtained. Integrating the first type of data elements and the second type of data elements under label 1, it can be seen that the data elements under label 1 are composed of member ac and department members of departments 1-3.

[0074] As a possible implementation, Figure 3 As shown, for the aforementioned step S203, in the case where there are subordinate nodes of the target node, the first type of data elements contained in each of the target nodes are respectively obtained from the storage unit to obtain the first data element set corresponding to the first node set, including:

[0075] S301: For each target node, taking the target node as a starting point and the lowest node of the level relationship link where the target node is located as an end point, according to the level relationship link, obtaining in the storage unit a data element of the same level corresponding to the target node and a data element of the same level corresponding to at least one lower node of the target node;

[0076] S302: Obtaining first-category data elements included in each of the target nodes based on the same-level data elements corresponding to the target node and the same-level data elements corresponding to at least one subordinate node of the target node;

[0077] S303: Obtain the first data element set based on the first type of data elements included in each of the target nodes.

[0078] Combined with the above introduction to the first category of data elements, when there are no subordinate nodes of the target node, the data elements of the same level corresponding to the target node are obtained in the storage unit to obtain the first category of data elements contained in the target node. When there are subordinate nodes of the target node, the hierarchical acquisition of the first category of data elements is performed based on the level relationship link of the target node, which can avoid missing data elements, thereby facilitating the accuracy of the acquisition of the first category of data elements. Orderly acquisition of the first category of data elements for a target node can further optimize the storage search mechanism by maintaining order.

[0079] Taking the target node as node 12 as an example, the level relationship link of node 12 is node 11-node 12-node 13-node 14, where node 11 is the top node and node 14 is the bottom node. When obtaining the first type of data element contained in node 12, take node 12 as the starting point and node 14 as the end point, and according to the level relationship link ("node 11-node 12-node 13-node 14"), obtain the same-level data element corresponding to node 12, the same-level data element corresponding to node 13, and the same-level data element corresponding to node 14 in the storage unit.

[0080] Furthermore, the determining the association relationship between the first type of data element and the target node may include the following steps:

[0081] 1) when the node at the same level corresponding to the first-category data element is the target node, establishing a corresponding relationship between the first-category data element and the target node, and determining the corresponding relationship as the association relationship;

[0082] 2) In the case where the same-level node corresponding to the first-type data element is a subordinate node of the target node, the target path corresponding to the first-type data element is determined based on the level relationship link, a corresponding relationship between the first-type data element and the target path is established, and the corresponding relationship is determined to be the association relationship, and the two endpoints of the target path are the target node and the subordinate node of the target node, respectively.

[0083] In the case of the target node's subordinate node, the first type of data element contained in the target node has two levels, one is the same level data element corresponding to the target node itself, and the other is the same level data element corresponding to the target node's subordinate node. Correspondingly, from the perspective of a single data element, if it is the same level data element corresponding to the target node itself, that is, the same level node corresponding to it is the target node itself, then establish the corresponding relationship between it and the target node, and determine the corresponding relationship as an association relationship; if it is the same level data element corresponding to the target node's subordinate node, that is, the same level node corresponding to it is the target node's subordinate node, then determine its corresponding target path based on the level relationship link, establish the corresponding relationship between it and the target path, and determine the corresponding relationship as an association relationship. Using the example of node 12 above, if the same level node corresponding to data element i is node 12 (i.e., the target node), then establish the corresponding relationship between data element i and node 12 to obtain the association relationship of data element i. If the same-level node corresponding to data element j is node 14 (that is, the subordinate node of the target node), then based on the level relationship link ("node 11-node 12-node 13-node 14"), the target path corresponding to data element j is determined as: node 12-node 13-node 14, and the corresponding relationship between data element j and the target path is established to obtain the association relationship of data element j.

[0084] The association relationship of the first type of data elements reflects the attribution path of the first type of data elements to the target node. The determination of the association relationship can provide a basis for the subsequent aggregation processing of the label dimension, thereby ensuring the accuracy of the aggregation processing. For some complex situations (such as the situation where the same data element corresponds to at least two nodes of the same level), the determination of the association relationship is also conducive to improving the adaptability of the aggregation processing, thereby facilitating the accuracy of the data element query results. In combination with the above example, the target node is known to be node 12, and the level relationship link of node 12 is known to be node 11-node 12-node 13-node 14. If the same-level node corresponding to data element j is node 15 in addition to node 14, the association relationship of data element j can be effectively determined based on the known target node and level relationship link. This association relationship is adapted to the target node.

[0085] As a possible implementation, Figure 4 As shown, for the aforementioned step S203, the first type of data elements contained in each of the target nodes are respectively obtained from the storage unit to obtain a first data element set corresponding to the first node set, including:

[0086] S401: Based on the level relationship link where each of the target nodes is located, determine at least one node pair from the first node set, where the node pair is composed of two of the target nodes in a superior-subordinate relationship;

[0087] S402: updating the first node set based on the at least one node pair to obtain a second node set, where the second node set is a result of filtering out lower-level nodes in the node pair from the first node set;

[0088] S403: Respectively obtain the first type of data elements contained in each target node in the second node set from the storage unit to obtain the first data element set.

[0089] Considering that there may be target nodes with a superior-subordinate relationship in the first node set, the subordinate nodes are filtered to update the first node set. Compared with the first node set, the number of target nodes in the second node set is smaller, so the data elements of the node dimension are obtained, which can reduce the access to the storage and the search consumption of obtaining the first type of data elements.

[0090] If both node 12 and node 14 are target nodes, according to the level relationship link (node ​​11—node 12—node 13—node 14), it can be known that node 14 is the subordinate node of node 12, and node 14 and node 12 can form a node pair. Node 14 is filtered out in the first node set to update the first node set. Therefore, when acquiring data elements of the node dimension, the step of acquiring the first type of data elements contained in node 12 from the storage unit is still executed, and the step of acquiring the first type of data elements contained in node 14 from the storage unit is no longer executed. However, this will not affect the first data element set, because the first type of data elements contained in node 14 belong to the first type of data elements contained in node 12.

[0091] In addition, the step of respectively obtaining the first type of data elements contained in each target node in the second node set from the storage unit can refer to the relevant contents of the aforementioned steps S301-S303 and will not be repeated here.

[0092] For determining the association relationship of the first type of data elements, due to the difference between the first node set and the second node set, the target nodes can be divided into two categories: first type nodes and second type nodes. The first type of node is the target node that exists in both the first node set and the second node set, and the second type of node is the target node that only exists in the first node set. When determining the association relationship of the first type of data elements, for determining the relationship between the peer node corresponding to the first type of data element and the target node, it is necessary to consider the two situations where the target node is a first type of node and a second type of node.

[0093] As a possible implementation method, the data element query scheme can be applied to office scenarios. Here, the characteristics of the office scenario are integrated into the specific steps of the data element query scheme, which can reflect the purpose of the data element query request in the office scenario, the matching object of the target tag, and the connotation of the first category of data elements. For example, a data element can refer to group member information under a group architecture, and a target tag can refer to a work project in which relevant group members participate. The data element query request is intended to request information about group members participating in each work project. The group node belongs to the group architecture, and it is responsible for the maintenance of a part of the group members.

[0094] In the case where the data element query request is used to request a query for group member information in a group architecture, the target nodes that match each of the target tags are determined respectively to obtain a first node set corresponding to the multiple target tags, including: the target group nodes that match each of the target tags are determined respectively to obtain a first group node set corresponding to the multiple target tags; the first type of data elements contained in each of the target nodes are obtained from the storage unit respectively to obtain a first data element set corresponding to the first node set, and determining the association between the first type of data elements and the target nodes, including: the first type of member information contained in each of the target group nodes is obtained from the storage unit respectively to obtain a first data element set corresponding to the first group node set, and determining the association between the first type of member information and the target group nodes.

[0095] Figure 5 A flow chart of a data element query method according to an embodiment of the present application is shown as follows: Figure 5 As shown, the method includes:

[0096] S501: The first server extracts a plurality of target tags from the data element query request;

[0097] S502: The first server determines a target node matching each of the target tags respectively, and obtains a first node set corresponding to the multiple target tags;

[0098] S503: The first server obtains the first-category data elements contained in each of the target nodes from the storage unit, obtains the first data element set corresponding to the first node set, and determines the association relationship between the first-category data elements and the target nodes, wherein the first-category data elements contained in the target nodes include the same-level data elements corresponding to the target nodes and the same-level data elements corresponding to at least one subordinate node of the target nodes;

[0099] S504: The first server sends the first data element set, the association relationship, and the matching relationship between the target tag and the target node to the second server;

[0100] S505: The second server performs label dimension aggregation processing on the first data element set based on the association relationship and the matching relationship to obtain a second data element set corresponding to each target label to obtain a data element query result.

[0101] If the execution subject of the data element query scheme is the background server, then the specific server is allocated for the execution of the specific steps in the data element query scheme. The first server is mainly used to perform the tasks of target label extraction, target node matching, and data element acquisition in the node dimension, and the second server is mainly used to perform the tasks of aggregation processing in the label dimension. Different tasks are configured for different servers, and the servers focus on their own tasks, which is conducive to improving the efficiency of task processing, and then to the response speed of the background server as a whole to multiple or even massive data element query requests.

[0102] As a possible implementation manner, before the first server sends the first data element set, the association relationship, and the matching relationship between the target tag and the target node to the second server, the method also includes: for each target tag, the first server obtains the second type of data elements carrying the target tag from the storage unit to obtain a third data element set corresponding to each target tag, the same-level nodes corresponding to the second type of data elements do not match the target tag, and at least one upper-level node of the same-level node does not match the target tag; the first server sends the first data element set, the association relationship, and the matching relationship between the target tag and the target node to the second server, including: the first server sends the first data element set, the association relationship, the matching relationship, and the second data element set corresponding to each target tag to the second server; the second server performs label dimension aggregation processing on the first data element set based on the association relationship and the matching relationship to obtain the second data element set corresponding to each target tag, and the method also includes: the second server obtains the data element query result based on the second data element set corresponding to each target tag and the third data element set corresponding to each target tag.

[0103] Considering the different relationships between labels and data elements, in addition to the pointing relationship between the first-category data elements and the target label through the target node, the second-category data elements here also establish a pointing relationship with the target label through their own attributes. Here, a method is provided to obtain the second-category data elements in the label dimension and integrate them with the first-category data elements under the above label. By integrating the first-category data elements and the second-category data elements under the same target label, it is beneficial to the globality and accuracy of the data element query results.

[0104] In practical applications, such as Figure 8 As shown, the backend server can include a backend process engine, a tag server, and a storage unit. After the user fills in the document content on the client and submits it, the document content will flow to the backend process engine for processing. The backend process processing engine starts and processes the previous process until the process reaches the tag expansion logic. The tag expansion logic is executed by the tag server and the storage unit. For more information about the tag expansion logic, please refer to Fig. 9 , the department set indicated by the label set is taken out and expanded all at once, and the department path is constructed for mapping optimization, which can improve efficiency.

[0105] For mapping optimization of department paths, please refer to the determination and application of associations in the previous steps. You can build a mapping relationship in advance: root department->sub-department set to build department paths, which will help achieve the mapping between members, departments, and labels. After building such a mapping relationship in advance, each path search is a hash search with O(1) complexity. Fig.10 As shown, department 1-1 matches label X, and department 1-2 matches label Y. If the members of departments 1-1 and 1-2 are members A and B. First, pass in the root department set and batch obtain all department sets from the root department to the sub-departments. For example, if departments 1-1 and 1-2 are passed in, what will be returned will be department 1-1, department 1-2, department 2-1, department 2-2, department 2-3, and department 3-1. Then, batch obtain the department paths of all departments. The department paths from bottom to top can be retained in the database. In the process of obtaining the path nodes of all departments, a mapping relationship is established. For example, for department 3-1, its department path is department 3-1->department 2-1->department 1-1. Then the mapping relationship established is department 2-1->department 3-1, department 1-1->department 2-1.

[0106] After building such a mapping relationship, the corresponding label can be accurately reverse-searched for each returned member, which greatly optimizes the efficiency of label expansion. In this way, all labels can be expanded at once, and then all members under the label can be aggregated to obtain the final result. The background process engine returns the final result to the client, and the client presents it to the user.

[0107] The present application also provides a data element query device, such as Fig.11 As shown, the data element query device 110 includes:

[0108] Extraction module 1101: used to extract multiple target tags from the data element query request;

[0109] The node set obtaining module 1102 is used to respectively determine the target node matching each of the target tags, and obtain a first node set corresponding to the multiple target tags;

[0110] The data element acquisition module 1103 is used to acquire the first-class data elements contained in each of the target nodes from the storage unit, obtain the first data element set corresponding to the first node set, and determine the association relationship between the first-class data elements and the target nodes, wherein the first-class data elements contained in the target nodes include the same-level data elements corresponding to the target nodes and the same-level data elements corresponding to at least one subordinate node of the target nodes;

[0111] The query result obtaining module 1104 is used to perform label dimension aggregation processing on the first data element set based on the association relationship to obtain a second data element set corresponding to each target label to obtain a data element query result.

[0112] It should be noted that the device in the device embodiment and the method embodiment are based on the same inventive concept.

[0113] In some embodiments, the functions or modules included in the device provided in the embodiments of the present application can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.

[0114] The embodiment of the present application also provides a computer-readable storage medium, wherein at least one instruction or at least one program is stored in the computer-readable storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above method. The computer-readable storage medium may be a non-volatile computer-readable storage medium.

[0115] An embodiment of the present application also provides an electronic device, which includes at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the at least one processor to implement the above method.

[0116] The electronic device may be provided as a terminal, a server, or a device in other forms.

[0117] Fig.12 1 shows a block diagram of an electronic device according to an embodiment of the present application. For example, the electronic device 1900 can be provided as a server. Fig.12 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions executable by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0118] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0119] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.

[0120] The present application may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.

[0121] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0122] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0123] The computer program instructions for performing the operation of the present application can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C+, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of computer-readable program instructions to personalize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer-readable program instructions, thereby realizing various aspects of the present application.

[0124] Various aspects of the present application are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0125] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0126] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0127] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present application. In this regard, each square frame in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the above-mentioned module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the standard function in the square frame can also occur in a sequence different from the standard in the accompanying drawings. For example, two continuous square frames can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square frame in the block diagram and / or flow chart, and the combination of the square frames in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0128] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A data element query method, characterized in that: The method comprises: Extracting a plurality of target tags from the data element query request; Determine the target node matching each of the target tags respectively, and obtain a first node set corresponding to the multiple target tags; Respectively obtaining the first-category data elements contained in each of the target nodes from the storage unit, obtaining the first data element set corresponding to the first node set, and determining the association relationship between the first-category data elements and the target nodes, wherein the first-category data elements contained in the target nodes include the same-level data elements corresponding to the target nodes and the same-level data elements corresponding to at least one subordinate node of the target nodes; Based on the association relationship, the first data element set is aggregated in the label dimension to obtain a second data element set corresponding to each target label to obtain a data element query result.

2. The method according to claim 1, characterized in that: Before performing tag dimension aggregation processing on the first data element set based on the association relationship to obtain a second data element set corresponding to each target tag, the method further includes: For each of the target tags, obtain the second type of data elements carrying the target tag from the storage unit to obtain a third data element set corresponding to each of the target tags, wherein the sibling nodes corresponding to the second type of data elements do not match the target tag, and at least one parent node of the sibling nodes does not match the target tag; After performing label dimension aggregation processing on the first data element set based on the association relationship to obtain a second data element set corresponding to each target label, the method further includes: The data element query result is obtained based on the second data element set corresponding to each of the target tags and the third data element set corresponding to each of the target tags.

3. The method according to claim 1, characterized in that In the case that there are subordinate nodes of the target node, respectively acquiring the first type of data elements contained in each of the target nodes from the storage unit to obtain the first data element set corresponding to the first node set includes: For each of the target nodes, taking the target node as a starting point and the lowest node of the level relationship link where the target node is located as an end point, according to the level relationship link, obtaining in the storage unit a data element of the same level corresponding to the target node and a data element of the same level corresponding to each of at least one lower node of the target node; Based on the data elements of the same level corresponding to the target node and the data elements of the same level corresponding to at least one subordinate node of the target node, obtain the first type of data elements contained in each of the target nodes; The first data element set is obtained based on the first type of data elements included in each of the target nodes.

4. The method according to claim 3, characterized in that The determining the association relationship between the first-category data element and the target node includes: In a case where the node at the same level corresponding to the first-category data element is the target node, establishing a corresponding relationship between the first-category data element and the target node, and determining the corresponding relationship to be the association relationship; In the case where the same-level node corresponding to the first-type data element is a subordinate node of the target node, the target path corresponding to the first-type data element is determined based on the level relationship link, a corresponding relationship between the first-type data element and the target path is established, and the corresponding relationship is determined to be the association relationship, and the two endpoints of the target path are the target node and the subordinate node of the target node, respectively.

5. The method according to claim 1, characterized in that The acquiring the first type of data elements contained in each of the target nodes from the storage unit to obtain the first data element set corresponding to the first node set includes: Based on the level relationship link where each of the target nodes is located, determining at least one node pair from the first node set, wherein the node pair is composed of two of the target nodes having a superior-subordinate relationship; Based on the at least one node pair, the first node set is updated to obtain a second node set, where the second node set is a result of filtering out lower-level nodes in the node pair from the first node set; The first type of data elements contained in each of the target nodes in the second node set are respectively obtained from the storage unit to obtain the first data element set.

6. The method according to any one of claims 1 to 5, characterized in that: In the case where the data element query request is used to request to query group member information in a group architecture; The step of respectively determining a target node that matches each of the target tags to obtain a first node set corresponding to the multiple target tags includes: respectively determining a target group node that matches each of the target tags to obtain a first group node set corresponding to the multiple target tags; The method of respectively obtaining the first type of data elements contained in each of the target nodes from the storage unit, obtaining the first data element set corresponding to the first node set, and determining the association relationship between the first type of data elements and the target nodes includes: respectively obtaining the first type of member information contained in each of the target group nodes from the storage unit, obtaining the first data element set corresponding to the first group node set, and determining the association relationship between the first type of member information and the target group nodes.

7. A data element query method, characterized in that: The method comprises: The first server extracts a plurality of target tags from the data element query request; The first server determines the target node matching each of the target tags respectively, and obtains a first node set corresponding to the multiple target tags; The first server obtains the first-category data elements contained in each of the target nodes from the storage unit, obtains the first data element set corresponding to the first node set, and determines the association relationship between the first-category data elements and the target nodes, wherein the first-category data elements contained in the target nodes include the same-level data elements corresponding to the target nodes and the same-level data elements corresponding to at least one subordinate node of the target nodes; The first server sends the first data element set, the association relationship, and the matching relationship between the target tag and the target node to the second server; The second server performs tag dimension aggregation processing on the first data element set based on the association relationship and the matching relationship to obtain a second data element set corresponding to each target tag to obtain a data element query result.

8. The method according to claim 7, characterized in that: Before the first server sends the first data element set, the association relationship, and the matching relationship between the target tag and the target node to the second server, the method further includes: for each of the target tags, the first server obtains the second type of data elements carrying the target tag from the storage unit to obtain a third data element set corresponding to each of the target tags, the same-level nodes corresponding to the second type of data elements do not match the target tag, and at least one upper-level node of the same-level node does not match the target tag; The first server sends the first data element set, the association relationship, and the matching relationship between the target tag and the target node to the second server, comprising: the first server sends the first data element set, the association relationship, the matching relationship, and the second data element set corresponding to each target tag to the second server; The second server performs label dimension aggregation processing on the first data element set based on the association relationship and the matching relationship to obtain the second data element set corresponding to each target label. The method further includes: the second server obtains the data element query result based on the second data element set corresponding to each target label and the third data element set corresponding to each target label.

9. A data element query device, characterized in that: The device comprises: Extraction module: used to extract multiple target tags from the data element query request; A node set obtaining module: used to respectively determine a target node matching each of the target tags, and obtain a first node set corresponding to the multiple target tags; A data element acquisition module: used to acquire the first-class data elements contained in each of the target nodes from the storage unit, obtain the first data element set corresponding to the first node set, and determine the association relationship between the first-class data elements and the target nodes, wherein the first-class data elements contained in the target nodes include the same-level data elements corresponding to the target nodes and the same-level data elements corresponding to at least one subordinate node of the target nodes; Query result acquisition module: used to perform label dimension aggregation processing on the first data element set based on the association relationship, obtain the second data element set corresponding to each target label, so as to obtain the data element query result.

10. An electronic device, characterized in that: The electronic device includes at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the at least one processor to implement the data element query method as described in any one of claims 1 to 6, or the data element query method as described in any one of claims 7 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the data element query method as described in any one of claims 1-6, or the data element query method as described in any one of claims 7-8.