Method, recursive node and system for identity resolution
By obtaining and adding the identifier attribute name from the identifier resolution template in the recursive node, the problem of incomplete identifier resolution results in the prior art is solved, and higher readability and usability are achieved.
Patent Information
- Application Number
- CN202211005838.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-22
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-08-22
AI Technical Summary
In existing identifier resolution methods, the identifier resolution results obtained from enterprise nodes do not include the name of each attribute of the identifier, resulting in poor readability of the resolution results.
After receiving the incomplete identifier resolution result from the enterprise node in the recursive node, the name of each attribute is obtained from the identifier resolution template and added to the resolution result to form a complete identifier resolution result.
It improves the readability of identifier resolution results, enabling identifier resolution users to understand and utilize identifier information more accurately.
Smart Images

Figure CN115357191B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Internet technology, and in particular to an identifier resolution method, recursive node, and system. Background Technology
[0002] Because existing identifier resolution information storage methods do not store the name of each identifier attribute in enterprise nodes, the identifier resolution results obtained from enterprise nodes using existing identifier resolution methods do not include the name of each identifier attribute. This results in poor readability of the identifier resolution results when displayed to identifier resolution users. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to address the above-mentioned shortcomings of the prior art by providing an identifier resolution method, recursive node and system to solve the problem that the identifier resolution results obtained from enterprise nodes in the prior art do not include the name of each attribute of the identifier, resulting in poor readability.
[0004] In a first aspect, the present invention provides an identifier resolution method applied to a recursive node of an identifier resolution system, the method comprising:
[0005] Receive identifier resolution requests sent by identifier resolution users;
[0006] Send the identifier resolution request to the corresponding enterprise node;
[0007] Receive the first identifier resolution result sent by the enterprise node according to the identifier resolution request, which does not include the name of each attribute of the identifier;
[0008] Obtain the identifier resolution template corresponding to the first identifier resolution result, which includes the name of each attribute.
[0009] The name of each attribute of the identifier is added to the first identifier resolution result according to the identifier resolution template to obtain the second identifier resolution result;
[0010] The second identifier resolution result is sent to the identifier resolution user.
[0011] Preferably, sending the identifier resolution request to the corresponding enterprise node specifically includes:
[0012] Check if there is an enterprise node address in its own cache that corresponds to the identifier resolution request. If so, retrieve the corresponding enterprise node address from its own cache.
[0013] If not, obtain the address of the second-level node corresponding to the enterprise node corresponding to the identifier resolution request from the top-level node, and obtain the corresponding enterprise node address from the second-level node corresponding to the second-level node address;
[0014] The identifier resolution request is sent to the corresponding enterprise node based on the obtained enterprise node address.
[0015] Preferably, the first identifier resolution result includes: identifier resolution template identification code ID, identifier type idtype for each attribute, and specific data for each attribute;
[0016] Among them: the identifier resolution template ID, the idtype of each identifier attribute, and the specific data of each identifier attribute are obtained by the secondary node from the identifier registration information submitted by the identifier registration user and written into the data table preset by the enterprise node.
[0017] Preferably, the identifier parsing template includes: an idtype that identifies each attribute and a name that identifies each attribute;
[0018] The identifier resolution template is predefined by the identifier registration user and sent to the secondary node for storage. The secondary node assigns a unique identifier resolution template ID to the identifier resolution template and controls the enterprise node to preset a data table with the idtype of each attribute of the identifier as the table header.
[0019] Preferably, obtaining the identifier resolution template corresponding to the first identifier resolution result, which includes the name of each attribute, specifically includes:
[0020] Obtain the identifier resolution template ID from the first identifier resolution result;
[0021] Check if you have a pre-cached identifier resolution template with the identifier resolution template ID. If you do, retrieve the corresponding identifier resolution template from your cache.
[0022] If not, send an identifier resolution template retrieval request carrying the identifier resolution template ID to the secondary node, and receive the identifier resolution template sent by the secondary node according to the retrieval request.
[0023] Preferably, after receiving the identifier resolution template sent by the secondary node according to the acquisition request, the method further includes:
[0024] The identifier resolution template is cached within itself, and a clock is set for the identifier resolution template;
[0025] If no new first identifier resolution result corresponding to the identifier resolution template is received within the clock timing range, the identifier resolution template in its own cache is cleared;
[0026] If a new first identifier resolution result corresponding to the identifier resolution template is received within the clock timing range, the clock timing is reset.
[0027] Preferably, adding the name of each attribute of the identifier to the first identifier resolution result according to the identifier resolution template specifically includes:
[0028] Obtain the idtype of each attribute in the first identifier parsing result;
[0029] The name corresponding to the idtype of each attribute of the identifier is obtained according to the identifier parsing template;
[0030] Add each attribute of the obtained name to the first identifier parsing result.
[0031] Secondly, the present invention provides a recursive node for an identifier resolution system, comprising:
[0032] The receiving module is used to receive identifier resolution requests sent by identifier resolution users;
[0033] A sending module, connected to the receiving module, is used to send the identifier resolution request to the corresponding enterprise node;
[0034] The receiving module is also configured to receive a first identifier resolution result, which does not include the name of each attribute of the identifier, sent by the enterprise node according to the identifier resolution request;
[0035] An acquisition module, connected to the receiving module, is used to acquire an identifier parsing template that includes the name of each attribute of the identifier, corresponding to the first identifier parsing result;
[0036] An add module, connected to the acquisition module, is used to add the name of each attribute of the identifier to the first identifier resolution result according to the identifier resolution template, so as to obtain the second identifier resolution result;
[0037] The sending module is also connected to the adding module and is used to send the second identifier resolution result to the identifier resolution user.
[0038] Thirdly, the present invention provides a recursive node of an identifier resolution system, including a memory and a processor. The memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the identifier resolution method as described above.
[0039] Fourthly, the present invention provides an identifier resolution system, comprising:
[0040] Recursive nodes are used to execute the identifier resolution method described above;
[0041] An enterprise node, connected to the recursive node, is used to receive an identifier resolution request sent by the recursive node, and to send a first identifier resolution result to the recursive node, excluding the name of each attribute of the identifier, according to the identifier resolution request.
[0042] Preferably, the system further includes:
[0043] The second-level node, connected to the recursive node, is used to receive the identifier resolution template retrieval request sent by the recursive node, and send the identifier resolution template, which includes the name of each attribute, to the recursive node according to the retrieval request.
[0044] Preferably, the system further includes:
[0045] The top-level node, connected to the recursive node, is used to provide the recursive node with the address of the second-level node corresponding to the enterprise node corresponding to the identifier resolution request;
[0046] The secondary node is also used to provide the recursive node with the enterprise node address corresponding to the identifier resolution request.
[0047] This invention provides an identifier resolution method, recursive node, and system. For a first identifier resolution result obtained from an enterprise node that does not include the name of each attribute, the name of each attribute is obtained from an identifier resolution template and added to the first identifier resolution result to obtain a second identifier resolution result containing the name of each attribute. The second identifier resolution result is then sent to the identifier resolution user, thereby improving the readability of the identifier resolution result. Attached Figure Description
[0048] Figure 1 This is a flowchart of an identifier parsing method according to an embodiment of the present invention;
[0049] Figure 2 This is a schematic diagram of the structure of an identifier resolution system according to an embodiment of the present invention;
[0050] Figure 3 This is a schematic diagram of the structure of a recursive node according to an embodiment of the present invention;
[0051] Figure 4 This is a schematic diagram of another recursive node structure according to an embodiment of the present invention. Detailed Implementation
[0052] To enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0053] It is understood that the specific embodiments and accompanying drawings described herein are merely for explaining the invention and are not intended to limit the invention.
[0054] It is understood that, without conflict, the various embodiments and features in the embodiments of the present invention can be combined with each other.
[0055] It is understood that, for ease of description, only the parts related to the present invention are shown in the accompanying drawings, while the parts unrelated to the present invention are not shown in the drawings.
[0056] It is understood that each unit or module involved in the embodiments of the present invention may correspond to only one entity structure, or may be composed of multiple entity structures, or multiple units or modules may be integrated into one entity structure.
[0057] It is understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of this invention may occur in a different order than that marked in the accompanying drawings.
[0058] It is understood that the flowcharts and block diagrams of this invention illustrate the possible architecture, functions, and operations of systems, apparatuses, devices, and methods according to various embodiments of the invention. Each block in the flowchart or block diagram may represent a unit, module, program segment, or code, containing executable instructions for implementing the specified function. Furthermore, each block or combination of blocks in the block diagram and flowchart can be implemented using a hardware-based system to achieve the specified function, or using a combination of hardware and computer instructions.
[0059] It is understood that the units and modules involved in the embodiments of the present invention can be implemented by software or by hardware. For example, the units and modules can be located in a processor.
[0060] To facilitate understanding of this invention, the Industrial Internet Identifier Resolution System will be explained first.
[0061] The Industrial Internet Identifier Resolution System is an important component of the Industrial Internet network system and serves as the nerve center supporting the interconnection of the Industrial Internet. Its function is similar to that of the Domain Name System (DNS) in the Internet field.
[0062] The core of the Industrial Internet Identifier Resolution System includes identifier coding, identifier resolution system, and identifier data services. Identifier coding assigns a unique "ID card" to machines and items connected to the Industrial Internet; the identifier resolution system analyzes the specific information corresponding to the identifier code, enabling unique location and querying of machines and items, and is the prerequisite and foundation for achieving precise integration of global supply chain systems and enterprise production systems, full lifecycle management of products, and intelligent services; identifier data services leverage identifier coding and the identifier resolution system to conduct industrial identifier data management and data sharing across enterprises, industries, regions, and countries.
[0063] Identifier resolution technology refers to the process of mapping object identifiers to the information required for actual information services. For example, by resolving the identifier of an item, information about the item at various stages of its production, distribution, and use can be obtained, such as address, item type, and spatial location.
[0064] The current Industrial Internet Identifier Resolution System comprises top-level nodes, secondary nodes, enterprise nodes, and recursive nodes from top to bottom. Top-level nodes, as the nation's highest-level identifier service nodes, connect to international nodes and various domestic secondary industry nodes, providing nationwide identifier resolution services, identifier registration, identifier authentication, and other management capabilities. They are the core resources and infrastructure of the identifier resolution system. Secondary nodes provide identifier coding registration and resolution management services to industries or regions, and complete related identifier business management and identifier application integration. Interface specifications standardize the operation management monitoring interfaces, network communication interfaces, and data transmission formats between secondary nodes and top-level nodes and enterprise nodes. Enterprise nodes store identifier resolution data. By connecting to the identifier resolution system, they can register identifiers for enterprise entities and virtual assets, and uniquely locate and query resources based on the identifiers. Recursive nodes directly provide identifier resolution services to individual users.
[0065] Example 1:
[0066] like Figure 1 As shown, Embodiment 1 of the present invention provides an identifier parsing method, including steps S11-S16.
[0067] Specifically, in this embodiment, the method is applied to, for example... Figure 2 The recursive node 1 of the identifier resolution system shown is further divided into enterprise node 2, secondary node 3 and top-level node 4. The recursive node 1 provides identifier resolution services to identifier resolution users. The relevant information for identifier resolution is obtained in advance by the identifier registration user through secondary node 3 and the identifier resolution template is stored in secondary node 3. The specific data of the identifier is stored in the data table in enterprise node 2. The identifier resolution template defines the name of each attribute of the identifier.
[0068] like Figure 1 As shown, step S11: Receive the identifier resolution request sent by the identifier resolution user.
[0069] Specifically, in this embodiment, the process of initiating identity resolution by having the user send an identity resolution request to recursive node 1 is the same as in the prior art, so it will not be discussed further.
[0070] S12. Send the identifier resolution request to the corresponding enterprise node 2.
[0071] Optionally, sending the identifier resolution request to the corresponding enterprise node 2 specifically includes:
[0072] Check if there is an enterprise node 2 address in its own cache that corresponds to the identifier resolution request. If so, retrieve the corresponding enterprise node 2 address from its own cache.
[0073] If not, obtain the address of the second-level node 3 corresponding to the enterprise node 2 corresponding to the identifier resolution request from the top-level node 4, and obtain the corresponding enterprise node 2 address from the second-level node 3 corresponding to the second-level node 3 address;
[0074] The identifier resolution request is sent to the corresponding enterprise node 2 based on the obtained enterprise node 2 address.
[0075] Specifically, in this embodiment, the recursive node 1 caches some addresses of enterprise node 2 based on the identifier resolution requests it has received in the past. If a new identifier resolution request is received, it first retrieves the address of enterprise node 2 from the cache and sends the newly received identifier resolution request to the corresponding enterprise node 2. If the corresponding address of enterprise node 2 is not in the cache, it needs to retrieve the address of enterprise node 2 from the top-level node 4 and the second-level node 3.
[0076] S13. Receive the first identifier resolution result sent by the enterprise node 2 according to the identifier resolution request, which does not include the name of each attribute of the identifier.
[0077] Optionally, the first identifier resolution result includes: identifier resolution template identification code ID (Identity), the type idtype of each identifier attribute, and the specific data of each identifier attribute;
[0078] Among them: the identifier resolution template ID, the idtype of each identifier attribute, and the specific data of each identifier attribute are obtained from the identifier registration information submitted by the identifier registration user by the secondary node 3 and written into the preset data table of the enterprise node 2.
[0079] Specifically, in this embodiment, enterprise node 2 pre-sets a data table for recording identification information. This data table uses the idtype of each attribute as the header and records the specific data of each attribute of the corresponding object (machine or item, etc.) according to the identification code. It also records the ID of the identification resolution template corresponding to the data table. A simple example of the data table is shown in Table 1 below. Enterprise node 2 queries the specific data of each attribute of the corresponding identification according to the identification code carried in the received identification resolution request, and returns the corresponding template ID and the idtype of each attribute as the first identification resolution result. The first identification resolution result only contains the idtype, but does not return the name. Therefore, the first identification resolution result is not readable, especially for third-party identification resolution users. If the first identification resolution result is returned directly, they will not be able to fully understand the identification resolution result because they do not know the identification resolution template corresponding to the identification, resulting in the inability to effectively obtain and utilize the identification information.
[0080] Table 1: Data table of identification information recorded by enterprise node 2
[0081] Template ID batchNo productNo productName quanlity productTime Identifier Code 1 XXX XXX XXX XXX XXX Identifier Code 2 XXX XXX XXX XXX XXX
[0082] S14. Obtain an identifier resolution template that includes the name of each attribute, corresponding to the first identifier resolution result.
[0083] Optionally, the identifier parsing template includes: an idtype that identifies each attribute and a name that identifies each attribute;
[0084] The identifier resolution template is predefined by the identifier registration user and then sent to the secondary node 3 for storage. The secondary node 3 assigns a unique identifier resolution template ID to the identifier resolution template and controls the enterprise node 2 to preset a data table with the idtype of each attribute of the identifier as the table header.
[0085] Optionally, obtaining the identifier resolution template corresponding to the first identifier resolution result, which includes the name of each attribute, specifically includes:
[0086] Obtain the identifier resolution template ID from the first identifier resolution result;
[0087] Check if you have a pre-cached identifier resolution template with the identifier resolution template ID. If you do, retrieve the corresponding identifier resolution template from your cache.
[0088] If not, send an identifier resolution template retrieval request carrying the identifier resolution template ID to the secondary node 2, and receive the identifier resolution template sent by the secondary node 2 according to the retrieval request.
[0089] Optionally, after receiving the identifier resolution template sent by the secondary node 2 according to the acquisition request, the method further includes:
[0090] The identifier resolution template is cached within itself, and a clock is set for the identifier resolution template;
[0091] If no new first identifier resolution result corresponding to the identifier resolution template is received within the clock timing range, the identifier resolution template in its own cache is cleared;
[0092] If a new first identifier resolution result corresponding to the identifier resolution template is received within the clock timing range, the clock timing is reset.
[0093] Specifically, in this embodiment, a separate cache is set up in recursive node 1 to record relevant information of the identifier resolution template. The identifier resolution template is predefined by the identifier registration user and stored in the secondary node 3. Each attribute of the identifier in the identifier resolution template is described using the name and type idtype. After receiving the identifier resolution template, the secondary node 3 assigns a unique ID to the identifier resolution template and controls the enterprise node 2 to establish a data table corresponding to the identifier resolution template according to the idtype. When receiving the identifier registration information sent by the identifier resolution user for a machine or item, the secondary node 3 writes the specific data in the identifier registration information into the data table of the enterprise node 2. After receiving the first identifier resolution result, the recursive node 1 determines whether it has already cached the corresponding identifier resolution template according to the identifier resolution template ID in the first identifier resolution result. If it does, it directly... The recursive node 1 retrieves the identifier resolution template from its own cache and resets the clock corresponding to the identifier resolution template. Otherwise, it needs to query the second-level node 3 for the corresponding identifier resolution template based on the identifier resolution template ID. After recursively retrieving the identifier resolution template from the second-level node 3, the recursive node 1 records it in its own cache and sets a timer. If it then receives the first identifier resolution result containing the identifier resolution template ID, it resets the timer and starts timing again. If it does not receive the first identifier resolution result containing the identifier resolution template ID until the timer expires, it clears the corresponding identifier resolution template record in the cache and requests the identifier resolution template from the second-level node 3 through the recursive node 1. The identifier resolution template is cached on the recursive node 1. By setting the clock, the recursive node 1 avoids frequently querying the second-level node 3 for the identifier resolution template, saving resources for both the recursive node 1 and the second-level node 3.
[0094] S15. Add the name of each attribute of the identifier to the first identifier resolution result according to the identifier resolution template to obtain the second identifier resolution result.
[0095] Optionally, adding the name of each attribute of the identifier to the first identifier resolution result according to the identifier resolution template specifically includes:
[0096] Obtain the idtype of each attribute in the first identifier parsing result;
[0097] The name corresponding to the idtype of each attribute of the identifier is obtained according to the identifier parsing template;
[0098] Add each attribute of the obtained name to the first identifier parsing result.
[0099] S16. Send the second identifier resolution result to the identifier resolution user.
[0100] Specifically, in this embodiment, after the recursive node 1 adds the name of each attribute to the identifier resolution result, it sends the second identifier resolution result with the name of each attribute added to it to the identifier resolution user. This achieves the full return of identifier resolution information (especially idtype and name), which allows third-party identifier resolution users to understand and utilize the identifier more accurately, effectively enhancing the readability and usability of the identifier resolution result data.
[0101] Example 2:
[0102] like Figure 2 and 3 As shown, Embodiment 2 of the present invention provides a recursive node 1 of an identifier resolution system, comprising:
[0103] Receiving module 11 is used to receive identifier resolution requests sent by identifier resolution users;
[0104] Sending module 12, connected to receiving module 11, is used to send the identifier resolution request to the corresponding enterprise node 2;
[0105] The receiving module 11 is also configured to receive a first identifier resolution result sent by the enterprise node 2 according to the identifier resolution request, which does not include the name of each attribute of the identifier;
[0106] The acquisition module 14, connected to the receiving module 11, is used to acquire an identifier parsing template that includes the name of each attribute corresponding to the first identifier parsing result;
[0107] Add module 15, connected to the acquisition module 14, is used to add the name of each attribute of the identifier to the first identifier parsing result according to the identifier parsing template, so as to obtain the second identifier parsing result;
[0108] The sending module 12 is also connected to the adding module 15 and is used to send the second identifier resolution result to the identifier resolution user.
[0109] Optionally, the sending module 12 specifically includes:
[0110] The first acquisition unit is used to query whether there is an enterprise node 2 address corresponding to the identifier resolution request in its own cache. If there is, it retrieves the corresponding enterprise node 2 address from its own cache.
[0111] The second acquisition unit, connected to the first acquisition unit, is used to acquire the address of the second-level node 3 corresponding to the enterprise node 2 corresponding to the identifier resolution request from the top-level node 4 if there is none, and to acquire the corresponding enterprise node 2 address from the second-level node 3 corresponding to the second-level node 3 address.
[0112] The sending unit, connected to the first acquisition unit and the second acquisition unit, is used to send the identifier resolution request to the corresponding enterprise node 2 according to the acquired enterprise node 2 address.
[0113] Optionally, the first identifier resolution result includes: identifier resolution template identification code ID, identifier type idtype for each attribute, and specific data for each attribute;
[0114] Among them: the identifier resolution template ID, the idtype of each identifier attribute, and the specific data of each identifier attribute are obtained from the identifier registration information submitted by the identifier registration user by the secondary node 3 and written into the preset data table of the enterprise node 2.
[0115] Optionally, the identifier parsing template includes: an idtype that identifies each attribute and a name that identifies each attribute;
[0116] The identifier resolution template is predefined by the identifier registration user and then sent to the secondary node 3 for storage. The secondary node 3 assigns a unique identifier resolution template ID to the identifier resolution template and controls the enterprise node 2 to preset a data table with the idtype of each attribute of the identifier as the table header.
[0117] Optionally, the acquisition module 14 specifically includes:
[0118] The third acquisition unit is used to acquire the identifier resolution template ID from the first identifier resolution result;
[0119] The fourth acquisition unit, connected to the third acquisition unit, is used to query whether it has a pre-cached identifier resolution template with the identifier resolution template ID. If so, it retrieves the corresponding identifier resolution template from its own cache.
[0120] The fifth acquisition unit, connected to the fourth acquisition unit, is used to send an identifier resolution template acquisition request carrying the identifier resolution template ID to the secondary node 3 if none is available, and to receive the identifier resolution template sent by the secondary node 3 according to the acquisition request.
[0121] Preferably, the recursive node 1 further includes a timing module connected to the fifth acquisition unit, specifically including:
[0122] A clock unit is used to cache the identifier resolution template within itself and set a clock for the identifier resolution template;
[0123] A clearing unit, connected to the clock unit, is used to clear the identifier resolution template cached within its own cache if no new first identifier resolution result corresponding to the identifier resolution template is received within the clock timing range.
[0124] A reset unit, connected to the clock unit, is used to reset the clock timing if a new first identifier resolution result corresponding to the identifier resolution template is received within the clock timing range.
[0125] Optionally, the adding module 15 specifically includes:
[0126] The sixth acquisition unit is used to acquire the idtype of each attribute in the first identifier parsing result;
[0127] The seventh acquisition unit, connected to the sixth acquisition unit, is used to acquire the name corresponding to the idtype of each attribute of the identifier according to the identifier parsing template;
[0128] An adding unit, connected to the seventh acquisition unit, is used to add each attribute of the acquired name corresponding to the identifier to the first identifier parsing result.
[0129] Example 3:
[0130] like Figure 2 and 4 As shown, the present invention provides a recursive node 1 of an identifier resolution system. The recursive node 1 includes a memory 10 and a processor 20. The memory 10 stores a computer program. When the processor 20 runs the computer program stored in the memory 10, the processor 20 executes the identifier resolution method as described in Embodiment 1.
[0131] The memory 10 is connected to the processor 20. The memory 10 can be a flash memory, a read-only memory, or another type of memory. The processor 20 can be a central processing unit or a microcontroller.
[0132] The memory 10 includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules, or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other memory technologies, CD-ROM (CompactDisc Read-Only Memory), DVD or other optical disc storage, cartridges, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer.
[0133] Example 4:
[0134] like Figure 2 As shown, Embodiment 4 of the present invention provides an identifier resolution system, including:
[0135] Recursive node 1 is used to execute the identifier resolution method as described in Example 1;
[0136] Enterprise node 2, connected to recursive node 1, is used to receive the identifier resolution request sent by recursive node 1, and send a first identifier resolution result to recursive node 1 that does not include the name of each attribute of the identifier according to the identifier resolution request.
[0137] Optionally, the system further includes:
[0138] Secondary node 3, connected to recursive node 1, is used to receive the identifier resolution template acquisition request sent by recursive node 1, and send the identifier resolution template including the name of each attribute to recursive node 1 according to the acquisition request.
[0139] Optionally, the system further includes:
[0140] Top-level node 4, connected to the recursive node 1, is used to provide the recursive node 1 with the address of the second-level node 3 corresponding to the enterprise node 2 corresponding to the identifier resolution request;
[0141] The secondary node 3 is also used to provide the recursive node 1 with the address of the enterprise node 2 corresponding to the identifier resolution request.
[0142] Embodiments 1-4 of this invention provide an identifier resolution method, recursive node, and system. For a first identifier resolution result obtained from an enterprise node that does not include the attribute name identifying each attribute, the attribute name identifying each attribute is obtained from an identifier resolution template and added to the first identifier resolution result to obtain a second identifier resolution result containing the attribute name identifying each attribute. The second identifier resolution result is then sent to the identifier resolution user, thereby improving the readability of the identifier resolution result.
[0143] It is understood that the above embodiments are merely exemplary implementations used to illustrate the principles of the present invention, and the present invention is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A method for resolving identifiers, characterized in that, A recursive node is applied to an identifier resolution system, which also includes enterprise nodes, secondary nodes, and top-level nodes. The recursive node provides identifier resolution services to identifier resolution users. Identifier resolution-related information is pre-obtained through identifier registration by users via secondary nodes, and identifier resolution templates are stored in the secondary nodes. The enterprise nodes store the specific data of the identifier in a data table. The identifier resolution template defines the name of each attribute of the identifier. The method includes: Receive identifier resolution requests sent by identifier resolution users; Send the identifier resolution request to the corresponding enterprise node; Receive the first identifier resolution result sent by the enterprise node according to the identifier resolution request, which does not include the name of each attribute of the identifier; Obtaining the identifier resolution template corresponding to the first identifier resolution result, which includes the name of each attribute, specifically includes: Obtain the identifier resolution template ID from the first identifier resolution result. Check if you have a pre-cached identifier resolution template with the specified identifier resolution template ID. If so, retrieve the corresponding identifier resolution template from your cache. If not, send an identifier resolution template retrieval request carrying the identifier resolution template ID to the secondary node, receive the identifier resolution template sent by the secondary node according to the retrieval request, cache the identifier resolution template in its own cache, and set a clock for the identifier resolution template. If no new first identifier resolution result corresponding to the identifier resolution template is received within the clock timing range, the identifier resolution template in its own cache is cleared. If a new first identifier resolution result corresponding to the identifier resolution template is received within the clock timing range, the clock timing is reset; The name of each attribute of the identifier is added to the first identifier resolution result according to the identifier resolution template to obtain the second identifier resolution result; The second identifier resolution result is sent to the identifier resolution user.
2. The method according to claim 1, characterized in that, Sending the identifier resolution request to the corresponding enterprise node specifically includes: Check if there is an enterprise node address in its own cache that corresponds to the identifier resolution request. If so, retrieve the corresponding enterprise node address from its own cache. If not, obtain the address of the second-level node corresponding to the enterprise node corresponding to the identifier resolution request from the top-level node, and obtain the corresponding enterprise node address from the second-level node corresponding to the second-level node address; The identifier resolution request is sent to the corresponding enterprise node based on the obtained enterprise node address.
3. The method according to claim 1, characterized in that, The first identifier resolution result includes: identifier resolution template identification code ID, identifier type idtype for each attribute, and specific data for each attribute; Among them: the identifier resolution template ID, the idtype of each identifier attribute, and the specific data of each identifier attribute are obtained by the secondary node from the identifier registration information submitted by the identifier registration user and written into the data table preset by the enterprise node.
4. The method according to claim 3, characterized in that, The identifier parsing template includes: the idtype that identifies each attribute and the name that identifies each attribute; The identifier resolution template is predefined by the identifier registration user and sent to the secondary node for storage. The secondary node assigns a unique identifier resolution template ID to the identifier resolution template and controls the enterprise node to preset a data table with the idtype of each attribute of the identifier as the table header.
5. The method according to claim 4, characterized in that, The step of adding the name of each attribute of the identifier to the first identifier resolution result according to the identifier resolution template specifically includes: Obtain the idtype of each attribute in the first identifier parsing result; The name corresponding to the idtype of each attribute of the identifier is obtained according to the identifier parsing template; Add each attribute of the obtained name to the first identifier parsing result.
6. A recursive node in an identifier resolution system, characterized in that, The identifier resolution system also includes enterprise nodes, secondary nodes, and top-level nodes. Recursive nodes provide identifier resolution services to identifier resolution users. Identifier resolution-related information is pre-obtained by identifier registration users through secondary nodes, and identifier resolution templates are stored in the secondary nodes. Enterprise nodes store the specific identifier data in data tables. The identifier resolution template defines the name of each attribute of the identifier. The recursive nodes include: The receiving module is used to receive identifier resolution requests sent by identifier resolution users; A sending module, connected to the receiving module, is used to send the identifier resolution request to the corresponding enterprise node; The receiving module is also configured to receive a first identifier resolution result, which does not include the name of each attribute of the identifier, sent by the enterprise node according to the identifier resolution request; The acquisition module, connected to the receiving module, is used to acquire an identifier resolution template corresponding to the first identifier resolution result, which includes the name of each attribute. Specifically, it includes: Obtain the identifier resolution template ID from the first identifier resolution result. Check if you have a pre-cached identifier resolution template with the specified identifier resolution template ID. If so, retrieve the corresponding identifier resolution template from your cache. If not, send an identifier resolution template retrieval request carrying the identifier resolution template ID to the secondary node, receive the identifier resolution template sent by the secondary node according to the retrieval request, cache the identifier resolution template in its own cache, and set a clock for the identifier resolution template. If no new first identifier resolution result corresponding to the identifier resolution template is received within the clock timing range, the identifier resolution template in its own cache is cleared. If a new first identifier resolution result corresponding to the identifier resolution template is received within the clock timing range, the clock timing is reset; An add module, connected to the acquisition module, is used to add the name of each attribute of the identifier to the first identifier resolution result according to the identifier resolution template, so as to obtain the second identifier resolution result; The sending module is also connected to the adding module and is used to send the second identifier resolution result to the identifier resolution user.
7. A recursive node in an identifier resolution system, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the identifier resolution method as described in any one of claims 1-5.
Citation Information
Patent Citations
Data processing method and device based on distributed identifier analysis
CN112016015A
Identification processing method and device
CN113869806A
