Atlas automatic construction method, device, equipment, medium and program product

By reverse-checking the call relationships from the application performance monitoring platform, automatically inferring the center-project affiliation using project naming conventions, and combining target service type determination and blacklist filtering, the fully automated construction of the microservice dependency graph is achieved. This solves the problems of transient nature and manual maintenance of microservice dependency graphs in existing technologies, reduces operation and maintenance costs, and ensures consistent results.

CN123140184APending Publication Date: 2026-11-20CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611431624.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-15
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, microservice dependency graphs are mostly transient analysis products, which are difficult to be precipitated into reusable dependency knowledge graphs. They lack stable ontology structures, have limited collection methods, fail to reflect real call relationships, require manual maintenance of organizational hierarchy relationships, and lack a reliable mechanism for storing tens of thousands of relationships in the database, resulting in high operation and maintenance costs and inconsistent results.

Method used

By reverse-checking the call relationships from the application performance monitoring platform, automatically inferring the center-project affiliation using project naming conventions, constructing a microservice dependency graph, and employing target service type determination and blacklist filtering, along with a block-based batch idempotent database insertion method based on the uniqueness constraints of the center name and project name, fully automated construction and result consistency are achieved.

Benefits of technology

It achieves fully automated construction of microservice dependency graphs, eliminating the need for manual maintenance of metadata, reducing operation and maintenance costs, improving the graph signal-to-noise ratio, ensuring node integrity and result consistency, and supporting operation and maintenance scenarios such as change impact assessment and call tracing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140184A_ABST
    Figure CN123140184A_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, device, medium, and program product for automated knowledge graph construction, relating to the field of artificial intelligence technology, for automatically constructing a microservice dependency knowledge graph. The specific technical solution is as follows: Obtain a project list from a monitoring platform; based on a preset target service type, filter target projects from the project list whose service type matches the target service type to obtain a target project set; based on each target project in the target project set, call the monitoring platform to perform a reverse lookup to obtain an array of call links when each target project acts as a callee; filter each call link in the call link array to determine four-tuple relationship data; summarize the four-tuple relationship data to construct a knowledge graph, which includes a central node, project nodes, and call edges. Call edges represent the attribution relationship from project nodes to the central node or the call relationship between project nodes. This application is applied to service dependency management scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to a method, apparatus, device, medium and program product for automated map construction. Background Technology

[0002] With the continuous evolution of enterprise application architecture, microservices have become the mainstream design paradigm for large-scale distributed systems. In large business systems, the number of microservices often reaches thousands, and services interact with each other through remote procedure calls, gateway forwarding, message queues, and other means, forming a highly complex mesh dependency structure.

[0003] In related technologies, external service call relationships and service dependency topologies are generated based on traffic for adaptive rate limiting. The topology is generated in real time by real-time traffic and rebuilt on demand. The existing call relationship graph / service topology usually serves a specific analysis task and is discarded or needs to be rebuilt in real time after the task ends.

[0004] Thus, during the execution of the above scheme, the knowledge graph is either discarded upon completion or needs to be rebuilt immediately. This leads to a lack of a mechanism for persisting a stable ontology structure as a dependency knowledge graph that can be reused and queried across multiple scenarios. Summary of the Invention

[0005] This application provides a method, apparatus, device, medium, and program product for automatically constructing a knowledge graph of microservice dependencies.

[0006] In a first aspect, embodiments of this application provide an automated map construction method, the method comprising:

[0007] The project list is obtained from the monitoring platform. The project list contains at least one project and the corresponding service type of the project. Based on the preset target service type, target projects with the service type of the target service type are selected from the project list to obtain a target project set.

[0008] Based on each target project in the target project set, the monitoring platform is invoked to perform a reverse lookup to obtain the call link array when each target project acts as the callee.

[0009] Each call link in the call link array is filtered to determine the four-tuple relationship data, which includes the caller center, the caller project, the callee center, and the callee project.

[0010] All quadruple relationship data are aggregated to construct a knowledge graph. The knowledge graph includes a central node, project nodes, and call edges. Call edges are used to represent the attribution relationship from project nodes to the central node or the call relationship between project nodes.

[0011] The technical solution provided in this application brings at least the following benefits: By using the callee as the anchor point to reverse-look up runtime call relationships from the application performance monitoring platform and using project naming conventions to automatically infer the two-level ontology of "center-project", the fully automated construction of the microservice dependency graph is realized, eliminating the need for manual maintenance of metadata and significantly reducing operation and maintenance costs; At the same time, the graph signal-to-noise ratio is improved by determining the target service type and filtering the blacklist center, and placeholder records are generated for projects without callers, ensuring the integrity of nodes in the graph; The block-based batch idempotent database entry method based on the uniqueness constraints of center name and project name allows the graph construction process to be arbitrarily rerun with consistent results, and can stably support operation and maintenance scenarios such as change impact assessment, call tracing, and capacity planning.

[0012] One possible implementation involves calling a monitoring platform to perform a reverse lookup and obtain an array of call links when the target project is the callee, including:

[0013] Based on the project identifier corresponding to each target project, the service map query interface of the monitoring platform is invoked.

[0014] Construct a service map query request, which is used to request the call link data of the corresponding target project.

[0015] Send a service map query request through the service map query interface of the monitoring platform and receive the returned response data.

[0016] Extract the call link array from the response data. Each call link in the call link array contains caller information and callee information. Both the caller information and the callee information contain the project name and service type.

[0017] Another possible implementation involves filtering each call link in the call link array to determine the four-tuple relationship data, including:

[0018] Based on the caller and callee information in each call link, obtain the caller's project name, the callee's project name, and the caller's service type corresponding to each call link.

[0019] The caller service type corresponding to each call link is compared with the target service type. If the caller service type corresponding to any call link is not the target service type, then that call link is discarded.

[0020] The caller's project name is split according to a preset separator and the first segment is taken to determine the caller center. If the caller center corresponding to any call link belongs to the preset blacklist center set, then any call link is discarded.

[0021] Based on call links where the caller's service type is the target service type and the caller's center does not belong to the blacklist center set, determine the four-tuple relationship data.

[0022] Another possible implementation, before summarizing all the quadruple relationship data and constructing the knowledge graph, includes the following methods:

[0023] If at least one target project does not have any valid callers within a preset time window, then placeholder quadruple relational data with empty caller center and caller project will be generated.

[0024] Another possible implementation involves summarizing all four-tuple relation records and constructing a knowledge graph in a graph database, including:

[0025] In the graph database, pre-establish unique constraints for center name and unique constraints for project name. The unique constraint for center name is used to characterize that the name attribute of the center node in the graph database is globally unique in the graph, and the unique constraint for project name is used to characterize that the name attribute of the project node in the graph database is globally unique in the graph.

[0026] Read all quadruple relation records in blocks and normalize the null values ​​in the records to null value representations.

[0027] Based on each four-tuple relationship, first create the callee central node, the callee project node, and the attribution relationship from the callee project node to the callee central node.

[0028] Given that the caller center and caller project of each record are non-nullable, create a caller center node and a caller project node, establish the attribution relationship from the caller project node to the caller center node and the call relationship from the caller project node to the callee project node, so as to construct a knowledge graph containing the caller center node, caller project node, attribution relationship and call relationship.

[0029] Another possible implementation is to obtain the set of callee anchors based on the target service type, including:

[0030] Export and load the full project list from the monitoring platform. The project list is derived from the list response message parsed by the monitoring platform's API call. The list response message contains at least the project identifier, service type, and type code fields.

[0031] Read the list response messages, filter by the service type field, and keep only projects of the target service type.

[0032] Secondly, embodiments of this application provide an automated map construction device, including: an acquisition module, a reverse lookup module, a filtering module, and a construction module.

[0033] The acquisition module is used to obtain a project list from the monitoring platform. The project list contains at least one project and the corresponding service type of the project. Based on the preset target service type, the module filters the project list to obtain a target project set by selecting target projects whose service type is the target service type.

[0034] The reverse lookup module is used to call the monitoring platform to perform a reverse lookup based on each target project in the target project set, and obtain the call link array when each target project is the callee.

[0035] The filtering module is used to filter each call link in the call link array to determine the four-tuple relationship data. The four-tuple relationship data includes the caller center, the caller project, the callee center, and the callee project.

[0036] The construction module is used to aggregate all quadruple relationship data and build a knowledge graph. The knowledge graph includes a central node, project nodes, and call edges. Call edges are used to represent the attribution relationship from project nodes to the central node or the call relationship between project nodes.

[0037] One possible implementation, the aforementioned reverse lookup module, is specifically used for:

[0038] Based on the project identifier corresponding to each target project, the service map query interface of the monitoring platform is invoked.

[0039] Construct a service map query request, which is used to request the call link data of the corresponding target project;

[0040] Send a service map query request through the service map query interface of the monitoring platform and receive the returned response data;

[0041] Extract the call link array from the response data. Each call link in the call link array contains caller information and callee information. Both the caller information and the callee information contain the project name and service type.

[0042] Another possible implementation, the aforementioned filtering module, is specifically used for:

[0043] Based on the caller and callee information in each call link, obtain the caller's project name, callee's project name, and caller's service type corresponding to each call link;

[0044] Compare the caller service type corresponding to each call link with the target service type. If the caller service type corresponding to any call link is not the target service type, then discard any call link.

[0045] The caller's project name is split according to a preset separator and the first segment is taken to determine the caller center. If the caller center corresponding to any call link belongs to the preset blacklist center set, then any call link is discarded.

[0046] Based on call links where the caller's service type is the target service type and the caller's center does not belong to the blacklist center set, determine the four-tuple relationship data.

[0047] Another possible implementation, the aforementioned filtering module, is specifically used for:

[0048] If at least one target project does not have any valid callers within a preset time window, then placeholder quadruple relational data with empty caller center and caller project will be generated.

[0049] Another possible implementation, the aforementioned building module, is specifically used for:

[0050] In the graph database, pre-establish unique constraints for center name and unique constraints for project name. The unique constraint for center name is used to characterize that the name attribute of the center node in the graph database is globally unique in the graph, and the unique constraint for project name is used to characterize that the name attribute of the project node in the graph database is globally unique in the graph.

[0051] Read all quadruple relation records in blocks and normalize the null values ​​in the records to null value representations;

[0052] Based on each four-tuple relationship, first create the callee central node, the callee project node, and the attribution relationship from the callee project node to the callee central node;

[0053] Given that the caller center and caller project of each record are non-nullable, create a caller center node and a caller project node, establish the attribution relationship from the caller project node to the caller center node and the call relationship from the caller project node to the callee project node, so as to construct a knowledge graph containing the caller center node, caller project node, attribution relationship and call relationship.

[0054] Another possible implementation, the aforementioned acquisition module, is specifically used for:

[0055] Export and load the full project list from the monitoring platform. The project list comes from the list response message parsed from the monitoring platform's API call. The list response message contains at least the project identifier, service type, and type code fields.

[0056] Read the list response messages, filter by the service type field, and keep only projects of the target service type.

[0057] Thirdly, this application provides an electronic device comprising: a processor and a memory; the memory stores a program or instructions executable on the processor, wherein the program or instructions, when executed by the processor, implement the method of the first aspect described above.

[0058] Fourthly, this application provides a readable storage medium on which a program or instructions are stored, which, when executed by a computer, implement the method of the first aspect described above.

[0059] Fifthly, this application provides a computer program product stored in a storage medium, which, when executed by a computer, implements the method described in the first aspect.

[0060] In a sixth aspect, embodiments of this application provide a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0061] The beneficial effects of the second to sixth aspects mentioned above are described in the corresponding description of the first aspect and will not be repeated here. Attached Figure Description

[0062] Figure 1 This is a schematic diagram of the network architecture for an automated graph construction method provided in an embodiment of this application.

[0063] Figure 2 This is a flowchart illustrating an automated map construction method provided in an embodiment of this application.

[0064] Figure 3 This is a flowchart illustrating an automated map construction method provided in an embodiment of this application.

[0065] Figure 4 This is a flowchart illustrating an automated map construction method provided in an embodiment of this application.

[0066] Figure 5 This is a flowchart illustrating another automated map construction method provided in an embodiment of this application.

[0067] Figure 6 This is a flowchart illustrating another automated map construction method provided in an embodiment of this application.

[0068] Figure 7 This is a flowchart illustrating the implementation process of an automated map construction method provided in this application embodiment.

[0069] Figure 8 This is a schematic diagram of an automated map construction device provided in an embodiment of this application.

[0070] Figure 9 This is a schematic diagram of an automated map construction device provided in an embodiment of this application.

[0071] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0072] The following will describe in detail the automated map construction method, apparatus, equipment, media, and program products provided in this application, with reference to the accompanying drawings.

[0073] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0074] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0075] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."

[0076] In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0077] The embodiments of this application provide a method, apparatus, device, medium, and program product for automated map construction, which can be applied to service dependency management scenarios.

[0078] The following problems exist in the existing technology:

[0079] (1) Dependency graphs are mostly transient analysis products and are difficult to accumulate and reuse: Existing call relationship graphs / service topologies usually serve a specific analysis task. They are discarded or need to be rebuilt immediately after the task ends. There is a lack of a mechanism to persist a stable ontology structure into a dependency knowledge graph that can be reused and queried in multiple scenarios.

[0080] (2) Limited collection methods make it difficult to reflect real runtime calls: solutions that rely on static code structure / annotations can only parse explicit calls and cannot cover real calls generated during runtime through gateway forwarding, dynamic routing, reflection, and configuration orchestration; solutions that rely on additional active tracking points intrude into business code and have high modification costs.

[0081] (3) Organizational hierarchy needs to be maintained manually: Microservices in large organizations are usually organized in two levels, "center-project". Existing technology lacks the ability to automatically infer organizational affiliation from existing information such as project naming conventions, so manual metadata tables need to be maintained separately.

[0082] (4) The database lacks a reliable and idempotent batch mechanism for storing tens of thousands of relationships: When the project scale reaches thousands and the dependency relationships reach tens of thousands, single insertion or full refill may result in problems such as repeated writing, memory overflow, and inconsistent rerun results.

[0083] To address the aforementioned technical issues, this application provides an automated graph construction method, apparatus, device, medium, and program product. By using the callee as the anchor point to reverse-look up runtime call relationships from the application performance monitoring platform and automatically inferring the "center-project" two-level ontology affiliation using project naming conventions, it achieves fully automated construction of microservice dependency graphs without the need for manual metadata maintenance, significantly reducing operation and maintenance costs. Simultaneously, it improves the graph signal-to-noise ratio through target service type determination and blacklist center filtering, and generates placeholder records for projects without callers, ensuring the integrity of nodes in the graph. The block-based batch idempotent database entry method based on the uniqueness constraints of center and project names allows the graph construction process to be arbitrarily rerun with consistent final results, stably supporting operation and maintenance scenarios such as change impact assessment, call tracing, and capacity planning.

[0084] The following description, in conjunction with the accompanying drawings, details the automated map construction method, apparatus, device, medium, and program products provided in the embodiments of this application.

[0085] Figure 1 This illustration shows the network architecture of an automated graph construction method provided in an embodiment of this application. For example... Figure 1 As shown, the network architecture includes an automated map construction device 101 and a terminal device 102. The automated map construction device 101 and the terminal device 102 are interconnected.

[0086] In some embodiments, the automated map construction device 101 may be a server, a computer, or a processor or processing unit within a server or computer. The server may be a single server or a server cluster comprising multiple servers. It should be noted that the embodiments of this application do not limit the specific device form of the automated map construction device 101. Figure 1 The map automated construction device 101 is used as an example of a single server.

[0087] In some embodiments, the terminal device may be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, personal computer (PC), ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc., and the embodiments of this application do not specifically limit it. Figure 1 The example shown is a mobile phone, with terminal device 102 as an example.

[0088] In some embodiments, the terminal device 102, in response to a user operation, sends a graph construction request to the graph automated construction device 101. Upon receiving the request, the graph automated construction device 101 obtains a project list from the application performance monitoring platform and filters it to obtain a set of callee anchor points. For each target project, it obtains an array of call links using a reverse lookup method, filters the call links and infers their center affiliation, generates four-tuple relationship records, and writes them in batches into the graph database, thus completing the construction of a two-level ontology dependency knowledge graph of "center-project". After the construction is completed, the graph automated construction device 101 returns a construction completion indication message to the terminal device 102, or responds to a query request from the terminal device 102 and sends the dependency query results in the graph database to the terminal device 102 for display.

[0089] It should be noted that the network architecture described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As network architectures evolve, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0090] See Figure 2 This is a flowchart illustrating an automated map construction method provided in an embodiment of this application. Figure 2As shown, the automated map construction method provided in this application embodiment can be implemented by the above-mentioned automated map construction device, specifically including the following steps 201 to 204.

[0091] Step 201: The map automated construction device obtains a project list from the monitoring platform. The project list contains at least one project and the corresponding service type of the project. Based on the preset target service type, the device selects target projects from the project list whose service type is the target service type to obtain a target project set.

[0092] In some embodiments, the target service type is a filtering condition or screening rule used to limit the scope of data collection and processing.

[0093] Specifically, it is used to filter and extract projects that match a specific service type from the project list obtained from the monitoring platform, thereby determining the starting point for subsequent processing, avoiding unnecessary data scraping of irrelevant services, and playing a role in noise reduction and improving processing efficiency. The target service type includes an identifier for the service type, which is predefined (e.g., core business services, non-core services, etc.).

[0094] The aforementioned set of anchor points of the called party is the starting base set for the entire reverse lookup process, representing the set of all service objects that are under key monitoring.

[0095] Specifically, it is used as the base dataset for loop traversal, and is used to initiate reverse lookup operations for each target project in it.

[0096] Contents include: at least one target project, and each target project includes its corresponding "project identifier" and "service type".

[0097] In some embodiments, combined with Figure 3 ,like Figure 3 As shown, step 201 above can be implemented through steps 201a and 201b.

[0098] Step 201a: The map automation construction device exports and loads the full project list from the monitoring platform. The project list comes from the list response message parsed by the monitoring platform's call interface. The list response message contains at least the project identifier, service type, and type code fields.

[0099] Step 201b: The map automation construction device reads the list response message, filters it by the service type field, and retains only the projects of the target service type.

[0100] In some embodiments, a full list of target type projects is exported and loaded from the APM platform, with each record containing at least a project identifier and service type; this module is the source of the "callee anchor point" for reverse lookup collection, determines the map coverage, and outputs it to the call relationship reverse lookup collection module.

[0101] The project list originates from the list response message parsed from the APM platform's API call. It uses a JSON array structure, and each element in the array contains at least three fields: [

[0103] {"applicationName": "centerA_projectX", "serviceType": "SPRING_BOOT", "code": 1210},

[0104] {"applicationName": "centerB_projectY", "serviceType": "SPRING_BOOT", "code": 1210} ]

[0106] Here, `applicationName` is the project identifier (following the naming convention of "central identifier_project identifier"), `serviceType` is the service type, and `code` is the type code. After the loading module reads this JSON array, it filters by the `serviceType` field, retaining only projects with the target service type (such as `SPRING_BOOT`), thus obtaining the callee anchor set. This serves as the iterative input for subsequent reverse data collection from each project. This filter determines the coverage area of ​​the map.

[0107] In this way, by exporting and loading the full list of projects from the monitoring platform and filtering it according to the service type field, the set of caller anchors for the target service type can be obtained automatically and completely, providing accurate and reliable iterative input for subsequent project-by-project reverse lookup and collection. This set of anchors determines the coverage of the dependency graph, which avoids the invalid collection overhead caused by non-target type projects and ensures that no target projects are missed, thereby guaranteeing the integrity and efficiency of subsequent graph construction from the source.

[0108] Step 202: The automated map construction device calls the monitoring platform to perform a reverse lookup based on each target project in the target project set, and obtains the call link array when each target project is the callee.

[0109] In some embodiments, the aforementioned target project feature is essentially: the smallest operational unit in the anchor point set, and a specific project regarded as the "callee" in this reverse lookup action.

[0110] Specifically, as the input parameter for reverse lookup, the target project is used as the "callee" to call the monitoring platform interface, trace back and obtain all upstream dependency data that called it.

[0111] It includes the project identifier (a unique ID or name that identifies the project) and its corresponding target service type attribute.

[0112] The aforementioned call link array is the smallest data unit in the call link array, carrying the actual physical call trajectory.

[0113] As objects to be traversed and filtered, the core relationships between callers and callees required for constructing the graph are extracted by analyzing the information they contain.

[0114] It includes specific information such as the identity of the calling project, the identity of the called project, and details of the link path.

[0115] In some embodiments, combined with Figure 4 ,like Figure 4 As shown, step 202 above can be implemented through steps 202a to 202c.

[0116] Step 202a: Based on the project identifier corresponding to each target project, the automated map construction device calls the service map query interface of the monitoring platform to construct a service map query request. The service map query request is used to request the query link data of the corresponding target project.

[0117] In some embodiments, for each target project (callee) in the list, the APM platform service map query interface is called to obtain "who called this project" in the reverse lookup direction (caller direction) within a specified time window, that is, to obtain all upstream callers when the project is the callee; a retry mechanism with backoff is built in and output to the noise reduction and filtering module.

[0118] For each target project (the callee) in the anchor point set, the service map query interface of the APM platform is called to obtain "who called this project". The specific technical methods are as follows:

[0119] Request Construction: Request the APM service map query interface (e.g., Pinpoint's getServerMapDataV2 interface) using the HTTP GET method. The request query parameters are constructed as follows:

[0120] applicationName=p_i (The identifier of the called project, which serves as the central node of the service map)

[0121] serviceTypeName=t_i (the service type of this project)

[0122] from = T_to − W (time window start point, millisecond timestamp; W is the time window length, such as 24 hours)

[0123] to = T_to (time window end point, current millisecond timestamp)

[0124] wasOnly=true (Only includes Java / Web application service nodes)

[0125] bidirectional = false (unidirectional expansion)

[0126] calleeRange / callerRange (limits the number of layers the service map expands in the direction of the callee / caller)

[0127] The timestamp is in milliseconds. T_to takes the current millisecond timestamp when the request was initiated, and T_from = T_to - 24 × 3600 × 1000.

[0128] Authentication: The request includes session credentials (such as a JWT session token) from the APM platform for interface authentication.

[0129] Fault tolerance and reliability: Use HTTP sessions with connection pooling (requests.Session + HTTPAdapter) and configure automatic retry policies (Retry: maximum number of retries such as 3, backoff factor such as 1, trigger retries for 500 / 502 / 503 / 504 status codes) and request timeout (such as 30 seconds) to deal with momentary unavailability of the interface.

[0130] Step 202b: The automated map construction device sends a service map query request through the service map query interface of the monitoring platform and receives the returned response data.

[0131] Step 202c: The automated map construction device extracts the call link array from the response data. Each call link data in the call link array contains caller information and callee information. Both the caller information and the callee information contain the project name and service type.

[0132] In some embodiments, the response structure is as follows: the interface returns JSON, and the call relationship data is located in the `applicationMapData.linkDataArray` field of the response body, which is an array of "call links". The service map is centered on the callee, and each link in the array has a `sourceInfo` representing the caller and a `targetInfo` representing the callee, each containing an `applicationName` (application / project name) and a `serviceType` (service type) field. This module uses the callee as the anchor point to unify and aggregate the call relationships scattered in the service maps of various projects into a caller list centered on the callee.

[0133] In this way, by calling the service map query interface of the monitoring platform for each target project with the callee as the anchor point, and constructing a query request that includes time windows, authentication parameters, and retry policies, all call link data of the project when it is the callee within a preset time window can be automatically and reliably obtained. The call relationships scattered in the service maps of various projects are unified into a caller list centered on the callee, providing a complete and accurate raw data foundation for subsequent noise filtering and ontology inference. At the same time, the retry mechanism and timeout settings effectively deal with the momentary unavailability of the interface, ensuring the stability of the collection process and the reliability of the map construction.

[0134] Step 203: The automated graph construction device filters each call link data in the call link array to determine the quadruple relationship data, which includes the caller center, the caller project, the callee center, and the callee project.

[0135] In some embodiments, the aforementioned quadruple relation data is structured logical relation data obtained by semantically upscaling physical-level call data, and it is also the core edge data for constructing a knowledge graph.

[0136] Specifically, it is used to construct a knowledge graph containing a central node and project nodes after summarizing multiple sets of quadruple relationship data.

[0137] It includes: the calling center, the calling project, the calling center, and the calling project. It directly represents the calling relationship between projects and the affiliation of projects to their respective centers.

[0138] In some embodiments, combined with Figure 5 ,like Figure 5 As shown, step 203 above can be implemented through steps 203a to 203d.

[0139] Step 203a: The automated graph construction device obtains the caller's project name, the callee's project name, and the caller's service type for each call link based on the caller's information and the callee's information in each call link.

[0140] In some embodiments, the link array in the original service map is evaluated one by one, and only links whose caller service type is the target type (such as Spring Boot type) are retained, while links whose caller center belongs to the preset blacklist center set are removed, thereby improving the graph signal-to-noise ratio and outputting it to the naming convention ontology inference module.

[0141] Perform the following parsing, filtering, and ontology inference on each link in the linkDataArray obtained in the previous step:

[0142] Retrieve fields: For each link, retrieve source_info=link["sourceInfo"], target_info=link["targetInfo"], and then retrieve the caller's project name source_app=source_info["applicationName"], the callee's project name target_app=target_info["applicationName"], and the caller's service type source_type=source_info["serviceType"].

[0143] Step 203b: The automated graph construction device compares the caller service type corresponding to each call link with the target service type. If the caller service type corresponding to any call link is not the target service type, then any call link is discarded.

[0144] In some embodiments, filter 1 (target service type determination): if source_type ≠ T_target (the caller is not the target type, such as not SPRING_BOOT), then discard the link and continue to the next one.

[0145] Center attribution inference (core of ontology modeling): Based on the naming convention of "center identifier_project identifier", the project name is split according to a preset separator (such as an underscore _) and the first segment is taken to obtain the caller center and the callee center:

[0146] source_center=source_app.split("_")[0]

[0147] target_center=target_app.split("_")[0]

[0148] Step 203c: The automated map construction device segments the caller project name according to a preset separator and takes the first segment to determine the caller center. If the caller center corresponding to any call link belongs to the preset blacklist center set, then any call link is discarded.

[0149] In some embodiments, if source_center∈C_skip (belongs to a preset blacklist of centers, such as gateways or infrastructure operation and maintenance centers), the link is discarded.

[0150] Step 203d: The automated graph construction device determines the quadruple relationship data based on the call link where the caller's service type is the target service type and the caller's center does not belong to the blacklist center set.

[0151] In some embodiments, the links filtered above are output as a quadruple relationship record (source_center, source_app, target_center, target_app), that is, (caller center, caller project, callee center, callee project).

[0152] In some embodiments, after step 204 above, the method provided in this application embodiment may further include the following step 203a1:

[0153] Step 203a1: If at least one target project does not have any valid caller within a preset time window, the automated graph construction device generates placeholder quadruple relation data with empty caller center and caller project.

[0154] In some embodiments, if a called project's linkDataArray is empty after filtering within a time window (no valid caller), a placeholder record containing only the called project (empty, empty, target_center, target_app) is generated to ensure that the project is still stored as a node and is not missing in the graph.

[0155] Thus, by parsing each call link and obtaining the caller's service type, caller's project name, and callee's project name, the caller's service type is compared with the target service type, and links that do not match are removed. Then, the caller's project name is split according to a preset separator, and the first segment is taken to determine the caller center, and links belonging to the preset blacklist center set are removed. This effectively filters out noisy call relationships that are not of the target type and are in the blacklist, improves the graph's signal-to-noise ratio, and ensures that only real and valid call relationships are retained for generating quadruple relationship data. At the same time, for target projects that have no valid callers after filtering, placeholder quadruple relationship data with empty caller centers and caller projects is generated to ensure that the project is still stored as a node in the database, avoiding its absence in the graph. This improves data quality while ensuring the integrity of graph nodes.

[0156] Step 204: The automated graph construction device summarizes all the quadruple relationship data and constructs a knowledge graph. The knowledge graph includes a central node, project nodes, and call edges. Call edges are used to represent the attribution relationship from the project node to the central node or the call relationship between project nodes.

[0157] In some embodiments, combined with Figure 6 ,like Figure 6 As shown, step 204 above can be implemented through steps 204a to 204d.

[0158] Step 204a: The automated graph construction device pre-establishes center name uniqueness constraints and project name uniqueness constraints in the graph database. The center name uniqueness constraint is used to characterize that the name attribute of the center node in the graph database is globally unique in the graph, and the project name uniqueness constraint is used to characterize that the name attribute of the project node in the graph database is globally unique in the graph.

[0159] In some embodiments, based on the project naming convention (project name in the form of "center identifier_project identifier", segmented by a preset delimiter), the first segment of the project name of the caller and the callee is extracted according to the delimiter, and the center to which they belong is automatically inferred. The instantiation and establishment of the "center-project" two-level ontology are completed without the need for manual metadata; the four-element information is output to the relationship record generation module.

[0160] The ontology inference results are organized into standard quadruple relation records (caller center, caller project, callee center, callee project), and summarized into a full relation file. For projects without a caller within the time window, placeholder records containing only callee information are generated to ensure node integrity. The output file is then sent to the batch idempotent database module. All quadruple relation record files use a CSV four-column structure (with optional headers): source_center, source_project, target_center, target_project. This file serves as the data source for the graph database.

[0161] Two unique constraints, "unique center name" and "unique project name", are pre-established in the graph database; all relation records are read in blocks, and null values ​​and abnormal floating points are uniformly cleaned to NULL; batch expansion (UNWIND) is combined with idempotent merging (MERGE) statements, and null value condition branches are used to handle callers that may be null, and the center node, project node, belonging edge and calling edge are written in batches; it supports any number of reruns and the results are eventually consistent.

[0162] The database insertion module establishes a connection through a graph database driver (such as Neo4j's Bolt protocol driver) (GraphDatabase.driver(uri,auth), where the target database can be specified), and implements batch, idempotent, and rerunnable database insertion according to the following steps:

[0163] Step ①: Establish unique constraints (execute once before graph creation): Create two types of unique constraints in the graph database: center name and project name. These serve as the basis for idempotent write and query performance.

[0164] CREATE CONSTRAINT unique_center_name IF NOT EXISTS FOR (c:Center)REQUIRE c.name IS UNIQUE;

[0165] CREATE CONSTRAINT unique_project_name IF NOT EXISTS FOR (p:Project)REQUIRE p.name IS UNIQUE.

[0166] Specifically, in step ①, MERGE is an operation statement in the Cypher query language of the graph database. Its execution logic is: if the specified node or relation schema already exists in the graph database, then the existing element is directly matched and used; if it does not exist, a new element is created.

[0167] The "uniqueness constraint of center name" and "uniqueness constraint of project name" established in step ① ensure that the name attributes of the center node and the project node are globally unique in the graph. The database can quickly determine whether a node with the same name already exists based on this uniqueness constraint.

[0168] When the two work together, when the batch write program is executed repeatedly, for the same four-tuple relationship record, MERGE will first try to match the existing central node and project node, rather than blindly creating new nodes; for existing ownership and calling relationships, MERGE will also match the existing relationship and will not generate duplicate edges.

[0169] Therefore, no matter how many times the database entry process runs, the number of nodes and edges in the final graph database remains unchanged, and the graph structure is stable and consistent.

[0170] Step 204b: The automated map construction device reads all quadruple relation records in blocks and normalizes the null values ​​in the records into null value representations;

[0171] In some embodiments, following step ① above, step ② is to read the relation record file in chunks, including: iteratively reading the relation record file in chunks (e.g., using pandas' read_csv(...,header=None,names=['src_center','src_project','target_center','target_project'],chunksize=B), with a batch size of 2000), to avoid memory overflow caused by loading a large file at once.

[0172] Step ③ is data cleaning: For each block, missing values ​​(NaN), abnormal floating-point numbers (Inf), empty strings, and the literal "nan" are uniformly normalized to null values ​​(NULL / None), so that Cypher can correctly identify whether the caller is empty.

[0173] chunk=chunk.where(notnull(chunk),None)

[0174] chunk=chunk.map(lambdax:None if str(x).strip() in ("", "nan") else x)

[0175] Step 204c: Based on each quadruple relationship, the automated graph construction device first creates the callee central node, the callee project node, and the attribution relationship from the callee project node to the callee central node.

[0176] Step 204d: Under the condition that the caller center and caller project of each record are non-nullable, the automated graph construction device creates a caller center node and a caller project node, establishes the attribution relationship from the caller project node to the caller center node and the call relationship from the caller project node to the callee project node, so as to construct a knowledge graph containing the caller center node, the caller project node, the attribution relationship and the call relationship.

[0177] In some embodiments, after converting the current block into a list of records, the following batch Cypher (batch expansion and idempotent merging in a single request) is performed in a parameterized manner:

[0178] UNWIND $rows AS row

[0179] / / 1. Callee (must exist in every line): Create center, create project, create belonging edge

[0180] MERGE (target_center:Center {name: row.target_center})

[0181] MERGE (target_project:Project {name: row.target_project})

[0182] MERGE (target_project)-[:BELONGS_TO]->(target_center)

[0183] / / 2. The caller may be null (placeholder record): Use a null conditional branch, only build the caller-CALLS edge if it is not null.

[0184] FOREACH (_ IN CASE WHEN row.src_center IS NOT NULL AND row.src_project IS NOT NULL

[0185] THEN [1] ELSE [] END |

[0186] MERGE (src_center:Center {name: row.src_center})

[0187] MERGE (src_project:Project {name: row.src_project})

[0188] MERGE (src_project)-[:BELONGS_TO]->(src_center)

[0189] MERGE (src_project)-[:CALLS]->(target_project) )

[0191] Submit each batch using session.run(Cypher above, rows=list of records in the current batch) until all blocks have been written.

[0192] The UNWIND $rows AS row used in the above steps is used to expand a batch of records from the outside into multiple rows in the database at once. The subsequent MERGE is executed on each row, thereby compressing "thousands of single requests" into "a small number of batch requests", significantly reducing transaction and network overhead.

[0193] The FOREACH(_ IN CASE WHEN ... THEN [1] ELSE [] END |...) used in the above steps is the core method for handling "the caller may be empty" - when the caller is not empty, CASE returns a single-element list [1], the FOREACH body is executed once, and the caller center, caller project, belonging edge and CALLS edge are created; when the caller is empty (placeholder record), CASE returns an empty list [], the FOREACH body is not executed, thus skipping the creation of caller-related nodes and CALLS edges. This realizes the graph building rule of "the callee must have it, and the caller is on demand", ensuring that projects without callers still exist in the form of nodes.

[0194] Graph Database (Graph Persistence Layer): It carries the dependency knowledge graph of the "Center-Project" two-level ontology. Nodes include two types: Center and Project. Edges include two types: Belongs to (BELONGS_TO, Project belongs to Center) and Calls (CALLS, Project calls Project). Nodes use their names as unique primary keys and can be reused for queries in multiple scenarios.

[0195] The dependency knowledge graph ontology formed after being stored in the database is shown in Table 1 below:

[0196] Table 1 Dependency Knowledge Graph

[0197]

[0198] The nodes are constructed using name as the unique primary key (unique constraint guaranteed), forming a two-level ontology of "center - project". The graph after being stored can be reused and queried in multiple scenarios such as change impact assessment, call tracing, and capacity planning.

[0199] Thus, by pre-establishing unique constraints on center names and project names in the graph database, and employing block reading, null value normalization, and batch writing, node creation and relationship establishment are made idempotent, supporting any number of reruns with consistent final results, effectively avoiding the generation of duplicate nodes and edges. Simultaneously, the processing logic of first creating the called party node and its affiliation relationship, and only creating the caller node and its calling relationship when the caller is not null, ensures that projects without valid callers can still be fully entered into the database as nodes, and accurately constructs the calling relationships between projects. Ultimately, this forms a clearly structured and reusable two-level ontology dependency knowledge graph of "center-project," providing a reliable data foundation for subsequent scenarios such as change impact assessment and call tracing.

[0200] The automated graph construction method provided in this application achieves fully automated construction of microservice dependency graphs by using the callee as the anchor point to reverse-look up runtime call relationships from the application performance monitoring platform and automatically inferring the "center-project" two-level ontology using project naming conventions. This eliminates the need for manual maintenance of metadata and significantly reduces operation and maintenance costs. Simultaneously, it improves the graph signal-to-noise ratio through target service type determination and blacklist center filtering, and generates placeholder records for projects without callers, ensuring the integrity of nodes in the graph. The block-based batch idempotent database entry method based on the uniqueness constraints of center and project names allows the graph construction process to be arbitrarily rerun with consistent final results, stably supporting operation and maintenance scenarios such as change impact assessment, call tracing, and capacity planning.

[0201] The following specific embodiments illustrate the automated map construction method of this application:

[0202] like Figure 7 As shown, the implementation process of the automated map construction method provided in this application embodiment includes the following S1 to S14:

[0203] S1 and S2 export the project list JSON and filter by serviceType to obtain the set of callee anchors.

[0204] S3 to S4 request the current project construction service map (including project name, service type, time window, and session credentials) and call the interface.

[0205] S5 and S6 iterate through linkDataArray, determine the caller service type and blacklist center for each link, and keep it if they meet the requirements.

[0206] S7 uses the separator to divide the project name and extracts the first segment to infer the center.

[0207] S8 generates quadruple relation records and generates placeholder records for projects without a caller.

[0208] S9 determines whether there are still uncollected projects; if not, it proceeds to the data entry stage.

[0209] S10 to S11 summarize all relationship files and establish unique constraints for the center / project.

[0210] S12~S13 reads in blocks, cleans up null values, and writes in batches using UNWIND+MERGE+null value conditional branches.

[0211] S14 is persisted as a two-level ontology dependency graph of "center-project".

[0212] In another embodiment, the implementation process of the graph automated construction method provided in this application is as follows: Application scenario (anonymized): A large microservice system has approximately several thousand registered projects on the APM platform, of which several thousand are target type (SpringBoot type) projects, and the project naming follows the convention of "central identifier_project identifier".

[0213] Implementation process: ① Export the project list JSON (including applicationName / serviceType / code) from the APM platform, filter by serviceType to obtain thousands of target type projects as the callee anchor set.

[0214] ② Call the service map query interface for each project with applicationName as the parameter (24-hour time window, carrying JWT session credentials, 3 retries on failure, exponential backoff, 30-second timeout), and parse applicationMapData.linkDataArray; ③ For each link, discard links that are not the target type of the caller and the blacklist center, extract the first segment of the project name by _ to infer the center, and output a quadruple (caller center, caller project, callee center, callee project). For those without a caller, output a placeholder record; ④ Summarize into four columns of CSV; ⑤ Establish a unique constraint for Center / Project in the graph database, read and clean null values ​​in chunks with chunksize=2000, and write idempotently in batches using UNWIND+MERGE+null value conditional branches.

[0215] In this way, thousands of target type projects can be fully incorporated into the graph, and projects without callers also exist as nodes; more than 10,000 dependency records were entered into the database at once, and the database entry process can be rerun. After multiple executions, the number of nodes and edges remains consistent (idempotent); compared with static code analysis, it can cover real calls such as gateway forwarding and dynamic routing during runtime, and compared with manual maintenance of the central ontology model, it has zero manual cost; the graph after being entered into the database can support multiple types of queries such as "which upstream projects call a certain project", "the callable capabilities provided by a certain center", and "the scope of impact of changes".

[0216] It should be noted that the descriptions of each step S1 to S14 in this embodiment can be found in the descriptions in the above embodiments, and will not be repeated here.

[0217] It should be noted that the above-described method embodiments, or the various possible implementations of the method embodiments, can be executed individually, or, provided there is no conflict, they can be combined with each other. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any restrictions on this.

[0218] It should be noted that for a detailed explanation of the steps performed by each module and their beneficial effects, please refer to the description in the above embodiments, which will not be repeated here.

[0219] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0220] This application embodiment can divide the automated map construction device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0221] In some embodiments, this application also provides an automated map construction apparatus. This automated map construction apparatus may include one or more functional modules for implementing the automated map construction method of the above method embodiments.

[0222] For example, Figure 8 This is a schematic diagram of the structure of an automated map construction device provided in an embodiment of this application. Figure 8 As shown, the automated map construction device 900 includes: an acquisition module 901, a reverse lookup module 902, a filtering module 903, and a construction module 904.

[0223] The acquisition module 901 is used to acquire a project list from the monitoring platform. The project list contains at least one project and the corresponding service type of the project. Based on the preset target service type, the module selects target projects with the service type of the target service type from the project list to obtain a target project set.

[0224] The reverse lookup module 902 is used to perform a reverse lookup on the monitoring platform based on each target project in the set of anchor points of the callee, with each target project as the callee, to obtain the array of call links when each target project is the callee.

[0225] The filtering module 903 is used to filter each calling link in the calling link array to determine the four-tuple relationship data, which includes the calling party center, the calling party project, the called party center, and the called party project.

[0226] Module 904 is used to aggregate all quadruple relationship data and construct a knowledge graph. The knowledge graph includes a central node, project nodes, and call edges. Call edges are used to represent the attribution relationship from project nodes to the central node or the call relationship between project nodes.

[0227] The automated graph construction device provided in this application achieves fully automated construction of microservice dependency graphs by using the callee as the anchor point to reverse-look up runtime call relationships from the application performance monitoring platform and automatically inferring the two-level ontology of "center-project" using project naming conventions. This eliminates the need for manual maintenance of metadata and significantly reduces operation and maintenance costs. At the same time, it improves the graph signal-to-noise ratio by determining the target service type and filtering through the blacklist center, and generates placeholder records for projects without callers, ensuring the integrity of nodes in the graph. The block-based batch idempotent database entry method based on the uniqueness constraints of center name and project name allows the graph construction process to be arbitrarily rerun with consistent results, stably supporting operation and maintenance scenarios such as change impact assessment, call tracing, and capacity planning.

[0228] In some embodiments, the reverse lookup module 902 is specifically used for:

[0229] Based on the project identifier corresponding to each target project, the service map query interface of the monitoring platform is invoked.

[0230] Construct a service map query request, which is used to request the call link data of the corresponding target project.

[0231] Send a service map query request through the service map query interface of the monitoring platform and receive the returned response data;

[0232] Extract the call link array from the response data. Each call link in the call link array contains caller information and callee information. Both the caller information and the callee information contain the project name and service type.

[0233] In other embodiments, the screening module 903 described above is specifically used for:

[0234] Based on the caller and callee information in each call link, obtain the caller's project name, callee's project name, and caller's service type corresponding to each call link;

[0235] Compare the caller service type corresponding to each call link with the target service type. If the caller service type corresponding to any call link is not the target service type, then discard any call link.

[0236] The caller's project name is split according to a preset separator and the first segment is taken to determine the caller center. If the caller center corresponding to any call link belongs to the preset blacklist center set, then any call link is discarded.

[0237] Based on call links where the caller's service type is the target service type and the caller's center does not belong to the blacklist center set, determine the four-tuple relationship data.

[0238] In some other embodiments, the screening module 903 described above is specifically used for:

[0239] If at least one target project does not have any valid callers within a preset time window, then placeholder quadruple relational data with empty caller center and caller project will be generated.

[0240] In some other embodiments, the aforementioned building module 904 is specifically used for:

[0241] In the graph database, pre-establish unique constraints for center name and unique constraints for project name. The unique constraint for center name is used to characterize that the name attribute of the center node in the graph database is globally unique in the graph, and the unique constraint for project name is used to characterize that the name attribute of the project node in the graph database is globally unique in the graph.

[0242] Read all quadruple relation records in blocks and normalize the null values ​​in the records to null value representations;

[0243] Based on each four-tuple relationship, first create the callee central node, the callee project node, and the attribution relationship from the callee project node to the callee central node;

[0244] Given that the caller center and caller project of each record are non-nullable, create a caller center node and a caller project node, establish the attribution relationship from the caller project node to the caller center node and the call relationship from the caller project node to the callee project node, so as to construct a knowledge graph containing the caller center node, caller project node, attribution relationship and call relationship.

[0245] In some other embodiments, the acquisition module 901 described above is specifically used for:

[0246] Export and load the full project list from the monitoring platform. The project list comes from the list response message parsed from the monitoring platform's API call. The list response message contains at least the project identifier, service type, and type code fields.

[0247] Read the list response messages, filter by the service type field, and keep only projects of the target service type.

[0248] In another embodiment, Figure 9 This is a schematic diagram of the structure of an automated map construction device provided in an embodiment of this application. Figure 9 The diagram shows the data source layer, runtime-dependent acquisition layer, ontology modeling and transformation layer, and graph persistence layer.

[0249] The first layer, the data source layer, is used to provide raw data input. It specifically includes:

[0250] The Application Performance Monitoring (APM) platform module is configured to collect real call data during application operation through runtime probes and service maps.

[0251] The Project List module is used to retrieve basic project information, including project name and service type.

[0252] The second layer, which depends on the acquisition layer at runtime, connects to the data source layer and is used for preliminary processing of the raw data. Specifically, it includes:

[0253] The bill of quantities loading module is used to load bill of quantities data.

[0254] The call relationship reverse lookup and collection module is configured to use the callee as the anchor point to reverse query and trace its upstream caller in order to build a complete runtime call chain.

[0255] The noise reduction and filtering module is used to clean the collected call relationships. Preferably, invalid or interfering data is filtered according to the preset "service type" and "blacklist center" configuration to improve the data purity of subsequent processing.

[0256] The third layer, the ontology modeling and transformation layer, connects to the runtime dependency acquisition layer and is used to transform the cleaned data into relational data with semantic information. Specifically, it includes:

[0257] The naming convention ontology inference module is used to parse the project name and, based on the preset naming convention rules, infer and map the "central affiliation" hierarchy relationship corresponding to the project name, thereby realizing the conversion from unstructured project name to structured ontology.

[0258] The relation record generation module is used to generate quadruple relation records from the inferred data in order to construct a topological structure in which the data are interconnected.

[0259] The fourth layer, the graph persistence layer, connects to the ontology modeling and transformation layer and is used to persist the generated topology data to disk. Specifically, it includes:

[0260] The batch idempotent data insertion module adopts the database's underlying "unique constraint" mechanism, combined with graph database operation commands such as UNWIND (unpack) and MERGE (merge) to achieve idempotent writing of large batches of relational data, effectively avoiding data duplication.

[0261] The graph database, as the final storage medium, is used to receive and store the data written above, ultimately forming a "center / engineering ontology dependency graph" consisting of centers and projects.

[0262] In the case where the functions of the integrated modules described above are implemented in hardware, this application provides a possible structural schematic diagram of the electronic device involved in the above embodiments. For example... Figure 10 As shown, the electronic device 90 includes: a processor 92, a communication interface 93, and a bus 94. Optionally, the electronic device 90 may also include a memory 91.

[0263] Processor 92 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 92 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 92 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0264] Communication interface 93 is used to connect with other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.

[0265] The memory 91 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.

[0266] As one possible implementation, the memory 91 can exist independently of the processor 92. The memory 91 can be connected to the processor 92 via a bus 94 and is used to store instructions or program code. When the processor 92 calls and executes the instructions or program code stored in the memory 91, it can implement the automated map construction method provided in the embodiments of this application.

[0267] In another possible implementation, the memory 91 can also be integrated with the processor 92.

[0268] Bus 94 can be an Extended Industry Standard Architecture (EISA) bus, etc. Bus 94 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0269] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the service calling device can be divided into different functional modules to complete all or part of the functions described above.

[0270] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described automated map construction method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0271] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0272] This application also provides a readable storage medium storing a program or instructions that, when executed by a computer, implement the automated map construction method provided in the above embodiments. It is understood that all or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware; the readable storage medium can be any of the foregoing embodiments or memory; the readable storage medium can also be an external storage device of the service invocation device, such as a pluggable hard drive, SmartMedia Card (SMC), Secure Digital (SD) card, flash card, etc., equipped on the service invocation device. Further, the readable storage medium can include both internal storage units of the service invocation device and external storage devices. The readable storage medium is used to store the computer program and other programs and data required by the service invocation device. The readable storage medium can also be used to temporarily store data that has been output or will be output.

[0273] This application also provides a computer program product, which is stored in a storage medium and, when executed by a computer, implements the automated map construction method provided in the above embodiments.

[0274] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0275] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0276] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for automated map construction, characterized in that, include: Obtain a project list from the monitoring platform. The project list contains at least one project and the corresponding service type of the project. Based on the preset target service type, filter the project list to select target projects whose service type is the target service type to obtain a target project set. Based on each target project in the target project set, the monitoring platform is invoked to perform a reverse lookup to obtain the call link array when each target project acts as the callee. Each call link in the call link array is filtered to determine the four-tuple relationship data, which includes the caller center, the caller project, the callee center, and the callee project. All quadruple relationship data are aggregated to construct a knowledge graph. The knowledge graph includes a central node, project nodes, and call edges. The call edges are used to represent the attribution relationship from the project node to the central node or the call relationship between the project nodes.

2. The method according to claim 1, characterized in that, The call monitoring platform performs a reverse lookup to obtain an array of call links for each target project as the callee, including: Based on the project identifier corresponding to each target project, the service map query interface of the monitoring platform is invoked. Construct a service map query request, which is used to request the query link data of the corresponding target project; The service map query request is sent through the service map query interface of the monitoring platform, and the returned response data is received. Extract the call link array from the response data. Each call link data in the call link array contains caller information and callee information. Both the caller information and the callee information contain the project name and service type.

3. The method according to claim 1, characterized in that, The step of filtering each call link data in the call link array to determine the four-tuple relationship data includes: Based on the caller information and callee information in each of the call links, obtain the caller project name, callee project name, and caller service type corresponding to each of the call links; Compare the caller service type corresponding to each call link with the target service type. If the caller service type corresponding to any call link is not the target service type, then discard any call link. The caller's project name is segmented according to a preset separator and the first segment is taken to determine the caller center. If the caller center corresponding to any call link belongs to the preset blacklist center set, then any call link is discarded. The quadruple relationship data is determined based on the call link where the caller's service type is the target service type and the caller's center does not belong to the blacklist center set.

4. The method according to claim 1, characterized in that, Before summarizing all four-tuple relation data and constructing the knowledge graph, the method further includes: If at least one of the target projects does not have any valid callers within the preset time window, then placeholder quadruples of relationship data with empty caller center and caller project are generated.

5. The method according to claim 4, characterized in that, The process of summarizing all four-tuple relation records and constructing a knowledge graph in the graph database includes: In the graph database, a unique constraint on the center name and a unique constraint on the project name are pre-established. The unique constraint on the center name is used to characterize that the name attribute of the center node in the graph database is globally unique in the graph, and the unique constraint on the project name is used to characterize that the name attribute of the project node in the graph database is globally unique in the graph. Read all quadruple relation records in blocks and normalize the null values ​​in the records to null value representations; Based on each four-tuple relationship, first create the callee central node, the callee project node, and the attribution relationship from the callee project node to the callee central node; Given that the caller center and caller project of each record are non-nullable, a caller center node and a caller project node are created. The attribution relationship from the caller project node to the caller center node and the call relationship from the caller project node to the callee project node are established to construct a knowledge graph containing the caller center node, the caller project node, the attribution relationship, and the call relationship.

6. The method according to claim 1, characterized in that, The set of callee anchor points obtained by filtering based on the target service type includes: Export and load the full project list from the monitoring platform. The project list is derived from the list response message parsed from the monitoring platform's API call. The list response message contains at least the project identifier, service type, and type code fields. Read the response messages from the list, filter by the service type field, and retain only projects of the target service type.

7. An apparatus for automated map construction, characterized in that, include: The module includes an acquisition module, a reverse lookup module, a filtering module, and a construction module. The acquisition module is used to acquire a project list from the monitoring platform. The project list contains at least one project and the corresponding service type of the project. Based on a preset target service type, the module filters target projects whose service type is the target service type from the project list to obtain a target project set. The reverse lookup module is used to call the monitoring platform to perform a reverse lookup based on each target project in the target project set, and obtain the call link array when each target project is the callee; The filtering module is used to filter each call link in the call link array to determine the four-tuple relationship data, which includes the caller center, the caller project, the callee center, and the callee project. The construction module is used to aggregate all quadruple relationship data and construct a knowledge graph. The knowledge graph includes a central node, project nodes, and call edges. The call edges are used to represent the attribution relationship from the project node to the central node or the call relationship between the project nodes.

8. An electronic device, characterized in that, It includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the automated map construction method as described in any one of claims 1-6.

9. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a computer, implement the automated map construction method as described in any one of claims 1-6.

10. A computer program product, characterized in that, The computer program product is stored in a storage medium, and when executed by a computer, the computer program product implements the automated map construction method as described in any one of claims 1-6.