Identity entity data processing method, device, computer equipment, computer readable storage medium and computer program product

By introducing an interceptor in front of the data processing module, unstructured data is converted into triple data, the problem of cumbersome processing of unstructured data in the prior art is solved, and the effect of simplifying the processing flow and improving processing efficiency is achieved.

CN119293127BActive Publication Date: 2025-04-01SHENZHEN BAMBOOCLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411814458.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-04-01
Estimated Expiration
2044-12-11

AI Technical Summary

Technical Problem

The prior art cannot directly store unstructured data into a structured graph database, resulting in a more cumbersome processing process of unstructured data.

Method used

By introducing an interceptor decoupled from the data processing module, the data processing request is intercepted, and the unstructured data in the data processing request is converted into corresponding triple data using the triple attributes to which the unstructured identity entity data belongs, so that the data processing module can identify and process it.

Benefits of technology

The processing process of unstructured data is simplified, the processing efficiency of unstructured identity entity data in the graph database is improved, and the processing cost is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119293127B_ABST
    Figure CN119293127B_ABST
Patent Text Reader

Abstract

The present application relates to the field of information technology, and in particular to an identity entity data processing method, device, computer equipment, computer-readable storage medium and computer program product. The method comprises: before the data processing request reaches the data processing module, intercepting the data processing request by an interceptor decoupled from the data processing module; parsing and processing the data processing request by the interceptor, converting the unstructured identity entity data in the data processing request into corresponding triple data according to the triple attributes to which the unstructured multiple identity entity data carried in the data processing request belong, obtaining the converted data processing request and returning it to the data processing module; responding to the converted data processing request by the data processing module, executing the data processing operation corresponding to the identity entity data in a preset graph database. The use of this method can improve the data processing efficiency of unstructured identity entity data in the graph database.
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 an identity entity data processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] In recent years, with the rapid development of knowledge graph technology, the application of knowledge graph in various industries has become more and more extensive. Knowledge graph is a structured semantic knowledge base, and its basic component unit is the triple of "entity-relationship-entity". In the triple, entities are connected to each other through relationships to form a network knowledge structure. Therefore, graph databases that use knowledge graph technology to organize, manage and store multi-source heterogeneous entity data in an orderly manner have emerged.

[0003] In the prior art, triples can be stored in the graph database corresponding to the knowledge graph by using a pre-packaged JAVA module (a program instruction module built in the programming language JAVA format, used to execute fixed program instructions), thereby forming effective management of triples.

[0004] However, when the data received by the JAVA module is not a structured triple, the entire JAVA module needs to be rectified because the existing JAVA module cannot directly store unstructured data in a structured graph database. As a result, the processing process for unstructured data in the existing graph database management process is relatively cumbersome. Summary of the invention

[0005] Based on this, it is necessary to provide an identity entity data processing method, apparatus, computer equipment, computer-readable storage medium and computer program product that can simplify the processing flow of unstructured data in response to the above technical problems.

[0006] In a first aspect, the present application provides an identity entity data processing method, comprising:

[0007] Before the data processing request sent by the business system reaches the data processing module, the data processing request is intercepted by an interceptor decoupled from the data processing module;

[0008] The data processing request is parsed by the interceptor to obtain multiple unstructured identity entity data carried in the data processing request, wherein the identity entity data includes identity entity data under a user identity category and / or identity entity data under an institution identity category;

[0009] The interceptor converts the unstructured identity entity data in the data processing request into corresponding triple data according to the triple attributes to which each identity entity data belongs, thereby obtaining a converted data processing request, wherein the triple attributes include the entity category to which each identity entity data belongs and the attribution relationship between the identity entity data under the user identity category and the identity entity data under the institution identity category;

[0010] Returning the converted data processing request to the data processing module through the interceptor;

[0011] The data processing module responds to the converted data processing request and executes a data processing operation corresponding to the identity entity data in a preset graph database.

[0012] In one of the embodiments, the data processing request includes a data write request;

[0013] The step of converting the unstructured identity entity data in the data processing request into corresponding triple data according to the triple attributes to which each identity entity data belongs, to obtain the converted data processing request, includes:

[0014] Identify the entity category to which each identity entity data belongs through the interceptor;

[0015] The interceptor constructs the relationship between each of the identity entity data according to the entity category, and uses the entity category and the relationship as triple attributes of each of the identity entity data;

[0016] Constructing triple data of each of the identity entity data according to the triple attributes through the interceptor;

[0017] The interceptor uses the triplet data to replace the unstructured identity entity data in the data write request to obtain the converted data write request.

[0018] In one embodiment, the data processing module responds to the converted data processing request and executes a data processing operation corresponding to the identity entity data in a preset graph database, including:

[0019] In response to the converted data write request, the data processing module queries the graph database for stored triples corresponding to each of the identity entity data;

[0020] When it is determined that there are no stored triples corresponding to each of the identity entity data in the graph database, the data processing module performs a new adding operation to write the triple data into the graph database.

[0021] In one embodiment, the method further comprises:

[0022] When it is determined that a stored triplet corresponding to any of the identity entity data already exists in the graph database, the data processing module performs a modification operation to update the stored triplet in the graph database to the triplet data.

[0023] In one of the embodiments, the data processing request includes a data read request;

[0024] The step of converting the unstructured identity entity data in the data processing request into corresponding triple data according to the triple attributes to which each identity entity data belongs, to obtain the converted data processing request, includes:

[0025] The interceptor converts the unstructured identity entity data in the data read request into triple data under the corresponding triple attributes according to the triple attributes to which each identity entity data belongs;

[0026] The interceptor uses the triple data to replace the query field in the data read request to obtain the converted data read request;

[0027] The step of executing a data processing operation corresponding to the identity entity data in a preset graph database in response to the converted data processing request by the data processing module includes:

[0028] In response to the converted data read request, the data processing module performs a data query operation in the graph database according to the query field;

[0029] The data query result corresponding to the data query operation is returned to the business system through the data processing module.

[0030] In one of the embodiments, the data processing request includes a data deletion request;

[0031] The step of converting the unstructured identity entity data in the data processing request into corresponding triple data according to the triple attributes to which each identity entity data belongs, to obtain the converted data processing request, includes:

[0032] The interceptor converts the unstructured identity entity data in the data deletion request into triple data under the corresponding triple attributes according to the triple attributes to which each identity entity data belongs;

[0033] The interceptor uses the triple data to replace the to-be-deleted field in the data deletion request to obtain the converted data deletion request;

[0034] The step of executing a data processing operation corresponding to the identity entity data in a preset graph database in response to the converted data processing request by the data processing module includes:

[0035] In response to the converted data deletion request, the data processing module executes a data deletion operation corresponding to the field to be deleted in the graph database.

[0036] In a second aspect, the present application also provides an identity entity data processing device, comprising:

[0037] A request interception module, used for intercepting the data processing request sent by the business system before it reaches the data processing module through an interceptor decoupled from the data processing module;

[0038] A data parsing module, used to parse the data processing request through the interceptor to obtain multiple unstructured identity entity data carried in the data processing request, wherein the identity entity data includes identity entity data under a user identity category and / or identity entity data under an institution identity category;

[0039] a structured conversion module, used for converting the unstructured identity entity data in the data processing request into corresponding triple data through the interceptor according to the triple attributes to which each identity entity data belongs, so as to obtain a converted data processing request, wherein the triple attributes include the entity category to which each identity entity data belongs and the attribution relationship between the identity entity data under the user identity category and the identity entity data under the institution identity category;

[0040] A request returning module, used for returning the converted data processing request to the data processing module through the interceptor;

[0041] The request response module is used to respond to the converted data processing request through the data processing module and execute the data processing operation corresponding to the identity entity data in the preset graph database.

[0042] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the identity entity data processing method described in any one of the embodiments of the first aspect is implemented.

[0043] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the identity entity data processing method described in any one of the embodiments of the first aspect above is implemented.

[0044] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the identity entity data processing method described in any one of the embodiments of the first aspect is implemented.

[0045] The above-mentioned identity entity data processing method, device, computer equipment, computer-readable storage medium and computer program product introduce an interceptor decoupled from the data processing module on the basis of the original module system. The interceptor parses the data processing request before the data processing request reaches the data processing module, and uses the triple attributes of the unstructured identity entity data to convert the unstructured identity entity data in the data processing request into corresponding triple data, so that the data processing module can recognize and process the converted data processing request, and execute the data processing operation corresponding to the identity entity data in the preset graph database. Without modifying the module system, the interceptor can be used to convert the data processing request that the original data processing module cannot recognize into the data processing request that the current data processing module can recognize and process based on the triple attributes of the identity entity data, thereby simplifying the data processing flow in the interaction between unstructured data and the graph database in the identity management field, improving the efficiency of unstructured identity entity data processing, and reducing the cost of unstructured identity entity data processing. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0047] Figure 1 is an application environment diagram of an identity entity data processing method in an embodiment;

[0048] Figure 2is a flowchart of a method for processing identity entity data in one embodiment;

[0049] Figure 3 A schematic diagram of a flow chart of a data write request conversion step in one embodiment;

[0050] Figure 4 A schematic diagram of a flow chart of a data read request conversion step in one embodiment;

[0051] Figure 5 A flowchart of a data deletion request conversion step in one embodiment;

[0052] Figure 6 is a flowchart of an identity entity data processing method in another embodiment;

[0053] Figure 7 is a structural block diagram of an identity entity data processing device 700 in one embodiment;

[0054] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0055] The following is an explanation of the application scenarios of this application:

[0056] Before the emergence of the identity entity data processing method provided in the present application, in the field of identity management, since graph databases can only store and manage structured data, the original data processing module is usually configured to only recognize and process data processing requests that carry structured data. Exemplarily, the original data processing module can only recognize and process complete triplet data such as "user A-institution B-user C". Once data such as "user A", "institution B", and "user C" are input into the original data processing module, it is easy to prompt that the current input data cannot be recognized and processed, please try again. Therefore, in the original data processing module, if the received data processing request carries unstructured data, the original data processing module will not be able to recognize and process the data processing request.

[0057] Therefore, in response to the shortcomings of the above-mentioned prior art, the present application proposes a method for using an interceptor to perform structured conversion on data processing requests for unstructured data without changing the original data processing module, so as to solve the problem that the existing data processing module cannot recognize unstructured data.

[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0059] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0060] The identity entity data processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the business system 120 and the data processing module 160, as well as the data processing module 160 and the graph database 180, can communicate through the corresponding input / output interfaces. The interceptor 140 is an independent functional unit decoupled from the data processing module 160. The business system 120, the interceptor 140, the data processing module 160 and the graph database 180 can be deployed on the same server 100, or, can be distributedly deployed on nodes of different servers 100 in a server 100 cluster.

[0061] Specifically, before the data processing request sent by the business system 120 reaches the data processing module 160, the server 100 can intercept the data processing request through the interceptor 140. The data processing request is parsed and processed by the interceptor 140 to obtain multiple unstructured identity entity data carried in the data processing request. Among them, the identity entity data includes identity entity data under the user identity category and / or identity entity data under the institution identity category. The interceptor 140 converts the unstructured identity entity data in the data processing request into corresponding triple data according to the triple attributes to which each identity entity data belongs, and obtains the converted data processing request. Among them, the triple attributes include the entity category to which each identity entity data belongs and the attribution relationship between the identity entity data under the user identity category and the identity entity data under the institution identity category. The interceptor 140 returns the converted data processing request to the data processing module 160. The data processing module 160 responds to the converted data processing request and executes the data processing operation corresponding to the identity entity data in the preset graph database 180.

[0062] In this embodiment, by adding a decoupled interceptor based on the original business system, data processing module, and graph database in the server, all data processing requests sent from the business system to the data processing module are intercepted, and the interceptor is used to convert the unstructured identity entity data in the data processing request that cannot be recognized by the data processing module into corresponding triple data, and then the converted data processing request is sent back to the data processing module, and the data processing module responds to the converted data processing request and performs the corresponding identity entity data processing operation according to the original data processing logic. Without the need to rectify the original data processing module, the rapid processing of unstructured data is achieved, thereby simplifying the processing flow of unstructured data and improving the efficiency of corresponding processing of unstructured data in the graph database.

[0063] In an exemplary embodiment, Figure 2 As shown, a method for processing identity entity data in the field of identity management is provided, and the method is applied to Figure 1 The server 100 in FIG. 1 is taken as an example to illustrate the method, which includes the following steps S202 to S210. Among them:

[0064] Step S202: Before the data processing request sent by the business system reaches the data processing module, the data processing request is intercepted by an interceptor decoupled from the data processing module.

[0065] Among them, the data processing request may include but is not limited to any one or more of a variety of requests such as a data write request (such as a data addition request, a data modification request, etc.), a data read request (such as a data read request), and a data deletion request.

[0066] The data processing module may be configured to perform corresponding data processing operations in the graph database based on the received identifiable data processing request. The data processing module may be a program module built based on JAVA language (a programming language).

[0067] An interceptor can be used to represent an independent program module that is decoupled from a data processing module and can be flexibly accessed or modified according to different user requirements.

[0068] Exemplarily, the business system can interact with the user through the front-end interactive page and generate a corresponding data processing request based on the user's interactive operation. For example, when the data uploaded by the user is received by the business system as data addition information, a corresponding data addition request can be generated. When the data input by the user's voice input is received by the business system as data query information, a corresponding data read request can be generated. When the business system detects that the user clicks to trigger the data deletion button, a corresponding data deletion request is generated based on.

[0069] The server can send the data processing request to the data processing module through the business system. Before the data processing request sent by the business system reaches the data processing module, the data processing request can be intercepted by the interceptor, so that the data processing request enters the interceptor to perform the following processing operations from step S204 to step S206.

[0070] Step S204: the data processing request is parsed by the interceptor to obtain unstructured multiple identity entity data carried in the data processing request.

[0071] Among them, unstructured identity entity data can be used to represent identity entities that do not have a triple relationship. Identity entity data can include but is not limited to identity entity data under the user identity category (such as user identity entity, administrator identity entity, etc.) and / or identity entity data under the institution identity category (such as institution identity entity).

[0072] Exemplarily, the server can parse the data processing request through an interceptor. For example, a named entity recognition algorithm can be used to parse the data processing request message, or a text recognition algorithm can be used to extract the corresponding field content from a preset position of the data processing request message, thereby obtaining unstructured multiple identity entity data carried in the data processing request.

[0073] Step S206: The unstructured identity entity data in the data processing request is converted into corresponding triple data by the interceptor according to the triple attributes to which each identity entity data belongs, so as to obtain a converted data processing request.

[0074] The triplet attributes may include but are not limited to the entity category to which each identity entity data belongs and the attribution relationship between the identity entity data under the user identity category and the identity entity data under the institution identity category.

[0075] The triple data may include but is not limited to triple basic units formed by using identity entity data and the relationship between identity entity data, triple entity data, triple relationship data, triple attribute data, etc.

[0076] Exemplarily, the server can determine the relationship between each identity entity data through an interceptor according to the triple attributes to which each identity entity data belongs, and construct the corresponding triple basic unit using the identity entity data and the relationship between the identity entity data. Alternatively, the interceptor can also annotate the triple attributes of each identity entity data according to the triple attributes to which each identity entity data belongs, to form triple entity data corresponding to the identity entity data. The server can use the triple data obtained after conversion to replace the original identity entity data in the data processing request, thereby removing the unstructured data in the data processing request and obtaining the converted data processing request.

[0077] Step S208: Return the converted data processing request to the data processing module through the interceptor.

[0078] Step S210, in response to the converted data processing request, the data processing module executes a data processing operation corresponding to the identity entity data in a preset graph database.

[0079] Among them, graph database can be used to represent a database that stores and manages data based on knowledge graph technology. Graph database can only store and manage structured data.

[0080] Exemplarily, the server can return the converted data processing request to the data processing module through the interceptor. At this time, since the converted data processing request no longer contains unstructured identity entity data that the data processing module cannot recognize, the data processing module can directly recognize and process the converted data processing request. The data processing module responds to the converted data processing request based on the pre-configured data processing logic and executes the data processing operation corresponding to the identity entity data in the preset graph database.

[0081] In the above-mentioned identity entity data processing method, an interceptor decoupled from the data processing module is introduced on the basis of the original module system. The interceptor parses the data processing request before the data processing request reaches the data processing module, and uses the triple attributes of the unstructured identity entity data to convert the unstructured identity entity data in the data processing request into corresponding triple data, so that the data processing module can recognize and process the converted data processing request, and execute the data processing operation corresponding to the identity entity data in the preset graph database. Without modifying the module system, the interceptor can be used to convert the data processing request that cannot be recognized by the data processing module into the data processing request that can be recognized and processed by the data processing module based on the triple attributes, thereby simplifying the data processing flow in the interaction between unstructured data and the graph database, improving the efficiency of unstructured identity entity data processing, and reducing the cost of unstructured identity entity data processing.

[0082] In an exemplary embodiment, the data processing request includes a data write request. Figure 3 As shown, the above step S206 may also include the following steps S302 to S308. Among them:

[0083] Step S302: Identify the entity category to which each identity entity data belongs through an interceptor.

[0084] Among them, entity categories may include but are not limited to user identity categories, organization identity categories, administrator identity categories, etc.

[0085] Exemplarily, a named entity recognition algorithm may be pre-configured in the interceptor. The server may perform word segmentation processing on the message of the data processing request through the interceptor, perform feature extraction on the word segmentation result obtained after processing, match the extracted word segmentation features with the features of each entity category, and thus identify the entity category to which each identity entity data belongs.

[0086] Step S304: construct the relationship between each identity entity data according to the entity category through the interceptor, and use the entity category and the relationship as the triple attribute of each identity entity data.

[0087] Exemplarily, the server may pre-store relationship types of identity entity data under various entity categories. For example, when the data processing request carries identity entity data under the user identity category and identity entity data under the institution identity category, the server may construct a relationship between the identity entity data under the user identity category and the identity entity data under the institution identity category according to the entity category to which each identity entity data belongs through an interceptor. The entity category to which each identity entity data belongs and the relationship between each identity entity data are used as triple attributes corresponding to each identity entity data.

[0088] Step S306: construct triple data of each identity entity data according to triple attributes through the interceptor.

[0089] Step S308: The interceptor uses triple data to replace the unstructured identity entity data in the data write request to obtain a converted data write request.

[0090] Exemplarily, the server may concatenate the triple attributes of each identity entity data through an interceptor to obtain triple data corresponding to each identity entity data. The interceptor may replace each unstructured identity entity data in the data write request with the triple data generated in step S306 to obtain a converted data write request.

[0091] In this embodiment, an interceptor is used to construct the relationship between each identity entity data according to the entity category to which each identity entity data belongs, and triple data is constructed using the entity category and the relationship. The triple data is used to replace the unstructured identity entity data in the data write request. The interceptor can be used to automatically identify and generate the triple data corresponding to the identity entity data, thereby facilitating the subsequent data processing module to quickly process the data write request and improving the processing efficiency of the data write request.

[0092] In an exemplary embodiment, Figure 3 Based on the conversion method of the data write request shown, the above step S210 may further include the following operation steps:

[0093] In response to the converted data write request, the data processing module searches the graph database for stored triples corresponding to each identity entity data. When it is determined that there is no stored triple corresponding to each identity entity data in the graph database, the data processing module performs a new addition operation to write the triple data into the graph database.

[0094] Exemplarily, the server can respond to the converted data write request through the data processing module, use the triple data in the data write request as the query field, and perform a matching query in the graph database to determine whether there are stored triples corresponding to each identity entity data in the current graph database. When it is determined that there are no stored triples corresponding to each identity entity data in the graph database, it can be determined that the data write request currently to be executed is a data addition request. The server can perform the addition operation through the data processing module to write the triple data to the graph database for storage.

[0095] In this embodiment, the data processing module queries the graph database to see whether there is a stored triple corresponding to the triple data to be processed currently. When it is determined that there is no stored triple, a new operation is performed to write the triple data into the graph database. This can avoid repeated storage of the same triple data in the graph database and ensure the data reliability in the graph database.

[0096] In an exemplary embodiment, the identity entity data processing method provided in this application may also include the following operation steps:

[0097] When it is determined that a stored triplet corresponding to any identity entity data already exists in the graph database, a modification operation is performed by the data processing module to update the stored triplet in the graph database into triple data.

[0098] Optionally, in some embodiments, when it is determined that a stored triplet corresponding to any identity entity data already exists in the graph database, the server may send a prompt message to the user through the business system to instruct the user to confirm whether the data needs to be modified. When the user's confirmation operation is detected, the data processing module may perform a modification operation to update the stored triplet in the graph database to the currently input triplet data.

[0099] Alternatively, in other embodiments, when a data write request is generated by the user triggering a corresponding modification button, the server may also query the stored triples corresponding to any identity entity data in the graph database through the data processing module, and update and modify the stored triples according to the triple data carried in the converted data write request.

[0100] In this embodiment, by using the triplet data carried in the converted data write request to update and modify the stored triplet corresponding to the same identity entity data in the graph database, the accuracy of data modification can be improved, which is beneficial to ensuring the data accuracy of the graph database.

[0101] In an exemplary embodiment, the data processing request may also include a data read request. Figure 4 As shown, the execution method of the data processing operation may also include the following steps S402 to S408. Among them:

[0102] Step S402: The interceptor converts the unstructured identity entity data in the data read request into triple data under the corresponding triple attributes according to the triple attributes to which each identity entity data belongs.

[0103] Optionally, in some embodiments, when the triple attribute to which the identity entity data belongs includes a user identity category, the server may convert the identity entity data in the data processing request into triple data under the user identity category through an interceptor according to the user identity category. When the triple attribute of the identity entity data includes that there are relations between the identity entity data, the server may convert the multiple identity entity data in the data processing request into triple data structured under the relation type through an interceptor according to the relations between the identity entity data.

[0104] Step S404: The interceptor replaces the query field in the data read request with triple data to obtain a converted data read request.

[0105] Exemplarily, the data read request sent by the business system may be composed of a structured query language (SQL). The server may replace the query field in the data read request with the converted triple data through an interceptor to obtain a converted data read request. The server may return the converted data read request to the data processing module through the interceptor.

[0106] Step S406, the data processing module responds to the converted data read request and performs a data query operation in the graph database according to the query field.

[0107] Step S408: Return the data query result corresponding to the data query operation to the business system through the data processing module.

[0108] Exemplarily, the server can respond to the converted data read request through the data processing module, use the query field as the query primary key, and perform a matching query in the graph database to perform a data query operation. The data query result obtained after the data query operation is executed is received through the data processing module, and the data query result corresponding to the data query operation is returned to the business system for display to the user.

[0109] In this embodiment, an interceptor is used to perform structured conversion on the data read request sent by the business system, and the triple data corresponding to the identity entity data in the data read request is used as the query field in the converted data read request. The converted data read request is returned to the data processing module, so that the data processing module can directly respond to the converted data read request, thereby improving the data query efficiency for unstructured identity entity data in the graph database.

[0110] In an exemplary embodiment, the data processing request includes a data deletion request. Figure 5 As shown, the execution method of the data processing operation may also include the following steps S502 to S506. Among them:

[0111] Step S502: The unstructured identity entity data in the data deletion request is converted into triple data under the corresponding triple attributes by an interceptor according to the triple attributes to which each identity entity data belongs.

[0112] Exemplarily, the server may refer to the triple data conversion method in the above step S402, and convert the unstructured identity entity data in the data deletion request into triple data under the corresponding triple attributes according to the triple attributes to which each identity entity data belongs through an interceptor.

[0113] Step S504: The interceptor uses triple data to replace the field to be deleted in the data deletion request to obtain a converted data deletion request.

[0114] Step S506: In response to the converted data deletion request, the data processing module executes a data deletion operation corresponding to the field to be deleted in the graph database.

[0115] Exemplarily, the server can replace the to-be-deleted field in the original data deletion request with the triple data corresponding to the identity entity data through the interceptor to obtain a converted data deletion request. The data processing module responds to the converted data deletion request, searches the graph database for stored triples matching the to-be-deleted field, and deletes the stored triples obtained by the query.

[0116] Optionally, in some embodiments, after the data deletion operation of the data processing module is completed, the server may also send the execution result, execution time, and execution object (that is, the deleted stored triples) of the data deletion operation to the business system through the data processing module, so that the business system can display the execution status of the data deletion operation to the user.

[0117] In this embodiment, an interceptor is used to convert the identity entity data in the data deletion request, and the triple data corresponding to the identity entity data is used to replace the field to be deleted in the data deletion request to obtain a converted data deletion request. The converted data deletion request is returned to the data processing module through the interceptor, and the data processing module executes the data deletion request to query and delete the stored triples matching the field to be deleted in the graph database, thereby improving the data deletion efficiency of unstructured identity entity data in the graph database.

[0118] In an exemplary embodiment, Figure 6 As shown, a method for processing identity entity data is also provided, comprising the following steps S602 to S612. Among them:

[0119] Step S602: Before the data processing request sent by the business system reaches the data processing module, the data processing request is intercepted by an interceptor decoupled from the data processing module.

[0120] Step S604: the data processing request is parsed by the interceptor, and the entity category to which each unstructured identity entity data carried in the data processing request belongs is identified.

[0121] Step S606: when the data processing request includes a data writing request, the relationship between each identity entity data is constructed according to the entity category, and the entity category and the relationship are used as triple attributes of each identity entity category to construct triple data.

[0122] Step S608: when the data processing request includes a data read request / data delete request, the unstructured identity entity data in the data processing request is converted into corresponding triple data according to the triple attributes to which each identity entity data belongs.

[0123] Step S610: The interceptor uses triple data to replace the unstructured identity entity data in the data processing request, and returns the converted data write request to the data processing module.

[0124] Optionally, in some implementations, when the data write request sent by the business system includes: please write the data of user A and organization B into the graph database, the server can obtain the converted data write request as: please write user A-(affiliation)-organization B by adopting the operations of the above steps S602 to S606. Since the data carried in the converted data write request is a planned structured triple, the data processing module can directly identify and process the converted data write request.

[0125] Optionally, in other implementations, when the data read request sent by the business system includes: please query the identity entity data having relationship C with user A, the server can obtain the converted data read request as: please query the field value of identity entity data X in user A-relationship C-identity entity data X by adopting the operations of the above steps S602, S604 and S608. Since the query field carried in the converted data read request is a planned structured triple, the data processing module can directly identify and process the converted data read request.

[0126] Similarly, when the data deletion request sent by the business system includes "please delete the data of user A", the server can obtain the converted data deletion request by adopting the operations of the above steps S602, S604 and S608: please delete the identity entity data E in the graph database G=(E, R, S) (E represents the set of identity entity data, R represents the set of relationships, and S represents the set of triples consisting of identity entity data and relationships) as the stored triple S of user A. Since the fields to be deleted carried in the converted data deletion request are planned structured triples, the data processing module can directly identify and process the converted data deletion request.

[0127] Step S612, in response to the converted data processing request, the data processing module executes the data processing operation corresponding to the identity entity data in the graph database.

[0128] In this embodiment, an interceptor is used to intercept the data processing request sent by the business system to the data processing module, and the interceptor is used to convert the unstructured identity entity data in the data processing request into corresponding triple data, so that the data processing module can directly identify and respond to the converted data processing request, thereby improving the data processing efficiency of the unstructured identity entity data. Compared with the existing technical solution of receiving the data processing request sent by the business system through the data processing module and executing the data processing request to perform corresponding data processing operations in the graph database, this embodiment does not need to rectify the data processing module, but directly decouples and connects an interceptor to convert the unstructured data processing request, which can also reduce the deployment cost of the overall software system and simplify the data processing process of the unstructured identity entity data.

[0129] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0130] Based on the same inventive concept, the embodiment of the present application also provides an identity entity data processing device for implementing the identity entity data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more identity entity data processing device embodiments provided below can refer to the limitations of the identity entity data processing method above, and will not be repeated here.

[0131] In an exemplary embodiment, Figure 7 As shown, an identity entity data processing device 700 is provided, comprising: a request interception module 702, a data parsing module 704, a structured conversion module 706, a request return module 708 and a request response module 710, wherein:

[0132] The request interception module 702 is used to intercept the data processing request sent by the business system through an interceptor decoupled from the data processing module before the data processing request reaches the data processing module.

[0133] The data parsing module 704 is used to parse the data processing request through the interceptor to obtain multiple unstructured identity entity data carried in the data processing request, wherein the identity entity data includes identity entity data under the user identity category and / or identity entity data under the institution identity category.

[0134] The structured conversion module 706 is used to convert the unstructured identity entity data in the data processing request into corresponding triple data through an interceptor according to the triple attributes to which each identity entity data belongs, so as to obtain a converted data processing request, wherein the triple attributes include the entity category to which each identity entity data belongs and the attribution relationship between the identity entity data under the user identity category and the identity entity data under the institution identity category.

[0135] The request return module 708 is used to return the converted data processing request to the data processing module through the interceptor.

[0136] The request response module 710 is used to respond to the converted data processing request through the data processing module and execute the data processing operation corresponding to the identity entity data in the preset graph database.

[0137] In an exemplary embodiment, the data processing request includes a data write request. The structured conversion module 706 includes: a category identification unit, which is used to identify the entity category to which each identity entity data belongs through an interceptor; a relationship construction unit, which is used to construct the relationship between each identity entity data according to the entity category through an interceptor, and use the entity category and the relationship as the triple attribute of each identity entity data; a triple construction unit, which is used to construct the triple data of each identity entity data according to the triple attribute through an interceptor; and a triple replacement unit, which is used to replace the unstructured identity entity data in the data write request with the triple data through an interceptor to obtain the converted data write request.

[0138] In an exemplary embodiment, the request response module 710 is also used to respond to the converted data write request through the data processing module to query the stored triples corresponding to each identity entity data in the graph database; when it is determined that there are no stored triples corresponding to each identity entity data in the graph database, the data processing module executes a new operation to write the triple data to the graph database.

[0139] In an exemplary embodiment, the request response module 710 is also used to update the stored triples in the graph database to triple data by performing a modification operation through the data processing module when it is determined that a stored triple corresponding to any identity entity data already exists in the graph database.

[0140] In an exemplary embodiment, the data processing request includes a data read request. The structured conversion module 706 includes: an attribute conversion unit, which is used to convert the unstructured identity entity data in the data read request into triple data under the corresponding triple attributes according to the triple attributes to which each identity entity data belongs through an interceptor; a field replacement unit, which is used to replace the query field in the data read request with the triple data through an interceptor to obtain a converted data read request. The request response module 710 is also used to respond to the converted data read request through the data processing module, and perform a data query operation in the graph database according to the query field; and return the data query result corresponding to the data query operation to the business system through the data processing module.

[0141] In an exemplary embodiment, the data processing request includes a data deletion request. The structured conversion module 706 includes: an attribute conversion unit, which is used to convert the unstructured identity entity data in the data deletion request into triple data under the corresponding triple attributes according to the triple attributes to which each identity entity data belongs through an interceptor; a field replacement unit, which is used to replace the to-be-deleted field in the data deletion request with the triple data through an interceptor to obtain a converted data deletion request; the request response module 710 is also used to respond to the converted data deletion request through the data processing module, and execute the data deletion operation corresponding to the to-be-deleted field in the graph database.

[0142] Each module in the above-mentioned identity entity data processing device 700 can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0143] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 8As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data processing requests, identity entity data, triple data and other data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an identity entity data processing method is implemented.

[0144] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0145] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0146] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0147] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0148] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0149] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0150] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for processing identity entity data, characterized in that: The method comprises: Before the data processing request sent by the business system reaches the data processing module, the data processing request is intercepted by an interceptor decoupled from the data processing module; The data processing request is parsed by the interceptor to obtain multiple unstructured identity entity data carried in the data processing request, wherein the identity entity data includes identity entity data under a user identity category and / or identity entity data under an institution identity category; The interceptor converts the unstructured identity entity data in the data processing request into corresponding triple data according to the triple attributes to which each identity entity data belongs, thereby obtaining a converted data processing request, wherein the triple attributes include the entity category to which each identity entity data belongs and the attribution relationship between the identity entity data under the user identity category and the identity entity data under the institution identity category; Returning the converted data processing request to the data processing module through the interceptor; The data processing module responds to the converted data processing request and executes a data processing operation corresponding to the identity entity data in a preset graph database.

2. The method according to claim 1, characterized in that The data processing request includes a data writing request; The step of converting the unstructured identity entity data in the data processing request into corresponding triple data according to the triple attributes to which each identity entity data belongs, to obtain the converted data processing request, includes: Identify the entity category to which each identity entity data belongs through the interceptor; The interceptor constructs the relationship between each of the identity entity data according to the entity category, and uses the entity category and the relationship as triple attributes of each of the identity entity data; Constructing triple data of each of the identity entity data according to the triple attributes through the interceptor; The interceptor uses the triplet data to replace the unstructured identity entity data in the data write request to obtain the converted data write request.

3. The method according to claim 2, characterized in that The step of executing a data processing operation corresponding to the identity entity data in a preset graph database in response to the converted data processing request by the data processing module includes: In response to the converted data write request, the data processing module queries the graph database for stored triples corresponding to each of the identity entity data; When it is determined that there are no stored triples corresponding to each of the identity entity data in the graph database, the data processing module performs a new adding operation to write the triple data into the graph database.

4. The method according to claim 3, characterized in that The method further comprises: When it is determined that a stored triplet corresponding to any of the identity entity data already exists in the graph database, the data processing module performs a modification operation to update the stored triplet in the graph database to the triplet data.

5. The method according to claim 1, characterized in that The data processing request includes a data read request; The step of converting the unstructured identity entity data in the data processing request into corresponding triple data according to the triple attributes to which each identity entity data belongs, to obtain the converted data processing request, includes: The interceptor converts the unstructured identity entity data in the data read request into triple data under the corresponding triple attributes according to the triple attributes to which each identity entity data belongs; The interceptor uses the triple data to replace the query field in the data read request to obtain the converted data read request; The step of executing a data processing operation corresponding to the identity entity data in a preset graph database in response to the converted data processing request by the data processing module includes: In response to the converted data read request, the data processing module performs a data query operation in the graph database according to the query field; The data query result corresponding to the data query operation is returned to the business system through the data processing module.

6. The method according to claim 1, characterized in that The data processing request includes a data deletion request; The step of converting the unstructured identity entity data in the data processing request into corresponding triple data according to the triple attributes to which each identity entity data belongs, to obtain the converted data processing request, includes: The interceptor converts the unstructured identity entity data in the data deletion request into triple data under the corresponding triple attributes according to the triple attributes to which each identity entity data belongs; The interceptor uses the triple data to replace the to-be-deleted field in the data deletion request to obtain the converted data deletion request; The step of executing a data processing operation corresponding to the identity entity data in a preset graph database in response to the converted data processing request by the data processing module includes: In response to the converted data deletion request, the data processing module executes a data deletion operation corresponding to the field to be deleted in the graph database.

7. An identity entity data processing device, characterized in that: The device comprises: A request interception module, used for intercepting the data processing request sent by the business system before it reaches the data processing module through an interceptor decoupled from the data processing module; A data parsing module, used to parse the data processing request through the interceptor to obtain multiple unstructured identity entity data carried in the data processing request, wherein the identity entity data includes identity entity data under a user identity category and / or identity entity data under an institution identity category; a structured conversion module, used for converting the unstructured identity entity data in the data processing request into corresponding triple data through the interceptor according to the triple attributes to which each identity entity data belongs, so as to obtain a converted data processing request, wherein the triple attributes include the entity category to which each identity entity data belongs and the attribution relationship between the identity entity data under the user identity category and the identity entity data under the institution identity category; A request returning module, used for returning the converted data processing request to the data processing module through the interceptor; The request response module is used to respond to the converted data processing request through the data processing module and execute the data processing operation corresponding to the identity entity data in the preset graph database.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Request processing method and device, computer equipment and storage medium

    CN117539965A

  • Multi-tenant authentication and permissions framework

    US10819750B1