A data processing method, electronic device and product
By determining the root resource version, resolving the dependencies of related resources, and generating a resource recovery list, the problems of runtime state disorder and dependency omission caused by resource version rollback in the prior art are solved, and the integrity and compatibility of resource combinations are guaranteed.
Patent Information
- Application Number
- CN202611532663.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-30
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies cannot accurately locate the complete dependencies of resource versions, resulting in disordered runtime state when resource versions are rolled back. Resource files may be complete but cannot run collaboratively, and reliance on manual packaging can easily lead to the omission of downstream resources, causing problems with resource integrity and compatibility.
By receiving pending business requests, determining the root resource version, parsing related resource dependencies, generating a resource recovery list, verifying resources in conjunction with side-vehicle metadata, and generating a resource recovery package, the integrity and compatibility of the resource combination are ensured.
It achieves complete resolution of dependency relationships at the version level, constructs an ordered access chain, detects abnormal resource issues in advance, ensures the integrity of offline verification at the resource receiving end, avoids missing dependent resources during manual packaging, ensures consistent running status after simulation resource combination and assembly, and improves the integrity and compatibility of resource recovery.
Smart Images

Figure CN123158699A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a data processing method, electronic device, and product. Background Technology
[0002] In simulation operations, runnable resources are often a combination of multiple types of files, rather than a single file or resource. For example, training scenario packages are usually associated with a variety of materials such as 3D equipment models, map services, adjudication rule scripts, and documentation. Furthermore, some resources are subject to multiple constraints, exhibiting the combined characteristics of multiple components, strong dependencies, and multiple constraints.
[0003] Current simulation resource management models are centered around single files or resources. While platforms can store multiple versions of a single resource, they only record simple resource reference information without simultaneously recording version adaptation and runtime compatibility constraints. Existing technologies cannot accurately pinpoint the complete dependencies corresponding to resource versions. Resource version rollback can easily lead to runtime inconsistencies, and issues like circular references and missing resources are delayed in being exposed. Furthermore, situations can arise where files are complete but resources cannot run collaboratively. External delivery of resource files relies on manual packaging, which can easily overlook downstream dependent resources, resulting in poor resource integrity and compatibility. Summary of the Invention
[0004] This invention provides a data processing method, electronic device, and product to solve the problems of poor resource integrity and compatibility in the recovery of specified resource versions.
[0005] According to one aspect of the present invention, a data processing method is provided, comprising: Receive pending business requests and determine the root resource version based on the pending business requests; Obtain the associated resource dependencies corresponding to the root resource version. Starting from the root resource version, traverse the associated resource dependencies, parse the dependent resources, and obtain the resource combination corresponding to the root resource version and the access chain of the dependent resources corresponding to the resource combination. Among them, each dependency record in the associated resource dependency includes the source resource version identifier, the target resource identifier, and the dependency constraint. The resource combination includes the root resource version and the target resource version associated with the root resource version. The access chain of the dependent resources is an ordered sequence that represents the access order of each resource version within the resource combination. Based on the preset resource constraint verification rules, and combined with the side vehicle metadata corresponding to each resource version in the resource combination, resource verification is performed on the resource combination and the access link of dependent resources to obtain the resource verification result. Based on the resource verification result, a resource recovery list corresponding to the root resource version is generated. Obtain the resource objects corresponding to each resource version in the resource recovery list, generate a resource recovery package based on the resource recovery list and the resource objects corresponding to each resource version, and send the resource recovery package to the resource receiving end so that the resource receiving end can assemble resources based on the resource recovery package.
[0006] Optionally, obtain the associated resource dependencies corresponding to the root resource version. Starting from the root resource version, traverse the associated resource dependencies, parse the dependent resources, and obtain the resource combination corresponding to the root resource version and the dependent resource access link corresponding to the resource combination. This includes: searching in a preset dependency information database based on the resource version identifier of the root resource version to obtain the associated resource dependencies that match the root resource version; constructing a dependency topology based on the associated resource dependencies starting from the root resource version; parsing the dependent resources based on the dependency topology to obtain the resource combination corresponding to the root resource version, and generating the corresponding dependent resource access link according to the access order of each resource version during the process of parsing the dependent resources.
[0007] Optionally, starting from the root resource version, a dependency topology is constructed based on the associated resource dependencies, including: starting from the root resource version, recursively expanding the resource dependencies at each level along the associated resource dependencies, and gradually constructing the dependency topology under the control of the recursion termination condition; wherein, the nodes of the dependency topology are resource versions, the directed edges of the dependency topology correspond to the associated resource dependencies, and the recursion termination condition includes: the current resource version does not have a lower-level dependency relationship, or the current resource version already exists in the set of visited nodes of the dependency topology.
[0008] Optionally, based on the dependency topology, the resource combination corresponding to the root resource version is obtained by resolving the dependency resources, including: starting from the topology node corresponding to the root resource version, recursively traversing each topology node along the directed edges of the dependency topology, and deduplicating all resource version nodes traversed to obtain a resource version set, and forming a resource combination based on the resource version set, wherein the resource version set includes the root resource version and the target resource version.
[0009] Optionally, the preset resource constraint verification rules include at least version constraint verification rules, resource compatibility verification rules, circular reference verification rules, and resource missing verification rules. Based on the preset resource constraint verification rules, and combined with the side-vehicle metadata corresponding to each resource version in the resource combination, resource verification is performed on the resource combination and the access links of dependent resources to obtain resource verification results. This includes: for each resource version in the resource combination, obtaining runtime environment constraints, interface fingerprint constraints, and version constraints from the side-vehicle metadata corresponding to the resource version; performing resource version verification using the version constraints corresponding to the resource version according to the version constraint verification rules to obtain a first verification result; performing compatibility verification using runtime environment constraints and interface fingerprint constraints according to the resource compatibility verification rules to obtain a second verification result; performing circular reference verification on the access links of dependent resources according to the circular reference verification rules to obtain a third verification result; and performing resource missing verification on the access links of dependent resources according to the resource missing verification rules to obtain a fourth verification result. If the first, second, third, and fourth verification results are all successful, the corresponding resource version verification is determined to be successful. If at least one of the first, second, third, and fourth verification results is a verification failure, the corresponding resource version verification is determined to be unsuccessful.
[0010] Optionally, generating a resource recovery list corresponding to the root resource version based on the resource verification results includes: identifying the verification results of each target resource version based on the resource verification results; if no failed verification resource version is identified, organizing the successfully verified resource versions according to the order of the dependent resource access links to generate a structured one-dimensional ordered resource recovery list as the resource recovery list corresponding to the root resource version; if a failed verification target resource version is identified, no resource recovery list is generated.
[0011] Optionally, obtain the resource objects corresponding to each resource version in the resource recovery list, and generate a resource recovery package based on the resource recovery list and the resource objects corresponding to each resource version, including: traversing each resource version in the resource recovery list, reading the resource objects corresponding to each resource version from a preset resource storage location; calculating the first integrity digest of each resource object and the second integrity digest of the resource recovery list respectively; and encapsulating the resource recovery list, the resource objects corresponding to each resource version, the first integrity digest and the second integrity digest to generate a resource recovery package corresponding to the root resource version.
[0012] Optionally, the method further includes: upon detecting a resource governance triggering event, obtaining resource change information corresponding to the resource governance triggering event, and determining the resource version associated with the resource governance triggering event; based on the resource change information, updating the side vehicle metadata corresponding to the resource version associated with the resource governance triggering event; wherein, the resource governance triggering event includes resource dependency update events, major version switching events, version metadata update events, and resource processing success events.
[0013] According to another aspect of the present invention, a data processing apparatus is provided, comprising: The root resource version determination module is used to receive pending business requests and determine the root resource version based on the pending business requests. The resource combination and access link determination module is used to obtain the associated resource dependencies corresponding to the root resource version. Starting from the root resource version, it traverses the associated resource dependencies, parses the dependent resources, and obtains the resource combination corresponding to the root resource version and the access link of the dependent resources corresponding to the resource combination. Among them, each dependency record in the associated resource dependency includes the source resource version identifier, the target resource identifier, and the dependency constraint. The resource combination includes the root resource version and the target resource version associated with the root resource version. The access link of the dependent resources is an ordered sequence that represents the access order of each resource version within the resource combination. The resource recovery list determination module is used to perform resource verification on the resource combination and dependent resource access links based on preset resource constraint verification rules and combined with the side vehicle metadata corresponding to each resource version in the resource combination, to obtain the resource verification result, and to generate the resource recovery list corresponding to the root resource version based on the resource verification result. The resource recovery package generation and transmission module is used to obtain the resource objects corresponding to each resource version in the resource recovery list, generate a resource recovery package based on the resource recovery list and the resource objects corresponding to each resource version, and send the resource recovery package to the resource receiving end so that the resource receiving end can assemble resources based on the resource recovery package.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory that is communicatively connected to at least one processor; wherein, The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to perform the data processing method of any embodiment of the present invention.
[0015] According to another aspect of the present invention, a computer-readable storage medium is provided that stores computer instructions for causing a processor to execute and implement the data processing method of any embodiment of the present invention.
[0016] According to another aspect of the present invention, a computer program product is provided, comprising a computer program that, when executed by a processor, implements a data processing method as described in any embodiment of the present invention.
[0017] The technical solution of this invention receives pending business requests and determines the root resource version based on these requests. This allows for the determination of a specific version of the resource to be delivered, avoiding version confusion during dependency resolution. The system obtains the associated resource dependencies corresponding to the root resource version. Starting from the root resource version, it traverses the associated resource dependencies, resolves the dependent resources, and obtains the resource combination corresponding to the root resource version and the access chain of the dependent resources corresponding to the resource combination. Each dependency record in the associated resource dependencies includes a source resource version identifier, a target resource identifier, and dependency constraints. The resource combination includes the root resource version and the target resource version associated with the root resource version. The access chain of the dependent resources is an ordered sequence representing the access order of each resource version within the resource combination. This achieves recursive traversal of the complete dependency tree based on structured dependency records carrying source versions, target resource identifiers, and dependency constraints, collecting all associated resources to form a resource combination, and simultaneously generating an ordered access chain. This not only ensures that deep dependent resources are not missed but also determines the resource access order, solving the problem of assembly failure caused by traditional resource recovery only fetching resources and ignoring the dependency order. Based on preset resource constraint verification rules, and combined with the side-vehicle metadata corresponding to each resource version in the resource combination, resource verification is performed on the resource combination and the access link of dependent resources to obtain resource verification results. Based on the resource verification results, a resource recovery list corresponding to the root resource version is generated. This achieves the use of the independent attribute information of each resource in the side-vehicle metadata, in conjunction with global preset verification rules, to complete the verification. The verification simultaneously covers the compliance of the resource set itself and the rationality of the access link sequence, identifying resource anomalies in advance. Furthermore, by outputting a structured resource recovery list, it clarifies the resource items that need to be restored and filters invalid resources, ensuring the accuracy and controllability of subsequent packaged resource objects. The resource objects corresponding to each resource version in the resource recovery list are obtained. Based on the resource recovery list and the resource objects corresponding to each resource version, a resource recovery package is generated and sent to the resource receiving end. The resource receiving end then assembles resources based on the resource recovery package. This achieves the packaging of resource files and dependency lists into one, ensuring the integrity of resources used for version restoration. Moreover, the resource receiving end can verify resource integrity and assemble resources offline without a central database, avoiding problems such as missing resources during manual packaging and the introduction of unexpected downstream resources during version rollback that could cause simulation failures. This solution enables complete resolution of version-level dependencies, constructs an ordered access chain, and detects abnormal resource issues in advance. It also introduces side-vehicle metadata to verify each dependent resource in the resource combination, determining the target resource version for version recovery. Furthermore, it encapsulates the verification list and resource objects into an integrated resource recovery package, allowing the receiving end to complete resource integrity verification and assembly offline, independent of the central database. This solves the problems of traditional simulation resource management easily introducing unexpected downstream resources and manual packaging easily missing dependent resources. It ensures that the running state of the assembled simulation resource combination remains consistent with historical versions, improving the integrity, compatibility, and efficiency of resource recovery.
[0018] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart of a data processing method provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of a data processing system applicable to an embodiment of the present invention; Figure 3 This is a flowchart illustrating a data processing method applicable to an embodiment of the present invention; Figure 4 This is a flowchart of a data processing method provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of a data processing device provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of an electronic device that implements the data processing method of the present invention. Detailed Implementation
[0021] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0022] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0023] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0024] Example 1 Figure 1 This is a flowchart of a data processing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the processing of resource data. The method can be executed by a data processing device, which can be implemented in hardware and / or software. The data processing device can be configured in electronic devices such as mobile phones, computers, or servers. Figure 1 As shown, the method includes: S110. Receive pending business requests and determine the root resource version based on the pending business requests.
[0025] Specifically, the pending business request can be understood as a request message used to trigger the resource recovery and delivery process. It carries business requirement information and specifies the target simulation resource that needs to be packaged and delivered. The root resource version can be understood as the baseline starting resource version for this resource resolution. As the starting point of dependency traversal, its corresponding associated resources are the main resources that need to be fully delivered. All associated downstream dependent resources are resolved layer by layer starting from this root resource version to determine the complete resource combination boundary corresponding to this delivery. This ensures that dependency resolution does not deviate from the target version and avoids introducing irrelevant or incorrect versions of dependent resources.
[0026] Specifically, upon receiving a pending business request, the request is parsed, and the root resource version is extracted. By locking the root resource version as the baseline for dependency resource parsing, the boundaries of the resource combination that needs to be processed in this business can be clearly defined, preventing version confusion during subsequent dependency traversal. This ensures that subsequent dependency parsing, resource verification, and packaging and delivery are all carried out around the same target version, avoiding the introduction of unexpected downstream resources due to uncertainty of the baseline version, and providing a unified and definite processing object for the resource recovery process.
[0027] S120. Obtain the associated resource dependencies corresponding to the root resource version. Starting from the root resource version, traverse the associated resource dependencies, parse the dependent resources, and obtain the resource combination corresponding to the root resource version and the dependent resource access chain corresponding to the resource combination. Among them, each dependency record in the associated resource dependency includes the source resource version identifier, the target resource identifier, and the dependency constraint. The resource combination includes the root resource version and the target resource version associated with the root resource version. The dependent resource access chain is an ordered sequence that represents the access order of each resource version in the resource combination.
[0028] Specifically, the associated resource dependency relationship can be understood as a record of the dependency associations between different resource versions. It forms a dependency record by binding the source resource version identifier, the target resource identifier, and dependency constraints, and stores each dependency record in a preset storage space. Optionally, dependency relationships can be maintained through a pre-built dependency maintenance module, which can write, replace, or query the dependency relationship of a specific resource version. In a specific embodiment, the corresponding associated resource dependency relationship can be retrieved from the preset storage space based on the root resource version. It should be noted that the source resource version identifier is the unique identifier of the resource version initiating the dependency, i.e., the root resource version identifier; the target resource identifier is the identifier of the resource being depended upon. Both are derived from the version identifier and resource identifier assigned during resource version registration. If the target resource identifier has a dependency relationship with the root resource version, the target resource version corresponding to the target resource identifier can be determined based on the mapping relationship between resource identifiers and resource versions. The dependency constraint can be understood as a record of the adaptation conditions that the dependent resource must meet, such as operating environment, architecture, interface, coordinate system, etc., which can be configured during the resource release phase and persistently saved with the dependency record; The source composition can be understood as the set of the root resource version and all its associated target resource versions obtained by traversing all dependencies starting from the root resource version. It is determined by gradually collecting each related resource version during the layer-by-layer traversal and dependency resolution. The dependency resource access chain can be understood as an ordered sequence representing the access order of each resource version within the resource composition. It is determined by traversing the dependency topology and recording the resource access order through depth-first or breadth-first search. It can reflect the resource assembly and loading sequence, making it easier to identify circular references and resource missing issues in advance, fully preserving version-level dependencies and adaptation constraints, and providing a complete topological foundation for subsequent resource compatibility verification.
[0029] Specifically, the associated resource dependencies corresponding to the root resource version are obtained. Starting from the root resource version, the dependencies are traversed and all dependent resources are parsed to obtain a resource combination containing the root resource version and its associated target resource version, as well as a dependency resource access link representing the access order of each resource version within the resource combination. Each dependency record stores the source resource version identifier, the target resource identifier, and the dependency constraint.
[0030] In this embodiment, all associated resources can be fully organized from the resource version dimension, the scope of resource combination can be clearly defined, and an ordered access chain can be generated. This can be used to identify circular references and missing target resources in the dependency chain. By relying on the dependency constraints of each dependency record, the associated conditions such as version adaptation and runtime environment can be preserved, avoiding version mismatch caused by dependency resolution based solely on resource name. This provides a complete dependency topology and access sequence basis for subsequent resource verification.
[0031] Optionally, obtain the associated resource dependencies corresponding to the root resource version. Starting from the root resource version, traverse the associated resource dependencies, parse the dependent resources, and obtain the resource combination corresponding to the root resource version and the dependent resource access link corresponding to the resource combination. This includes: searching in a preset dependency information database based on the resource version identifier of the root resource version to obtain the associated resource dependencies that match the root resource version; constructing a dependency topology based on the associated resource dependencies starting from the root resource version; parsing the dependent resources based on the dependency topology to obtain the resource combination corresponding to the root resource version, and generating the corresponding dependent resource access link according to the access order of each resource version during the process of parsing the dependent resources.
[0032] Specifically, the pre-defined dependency information database can be understood as a database that pre-stores the associated resource dependencies corresponding to each resource version. Each dependency record in the database stores at least the source resource version identifier, the target resource identifier, and dependency constraints, which are used to quickly query the corresponding dependency relationship based on the resource version identifier. The dependency topology can be understood as a directed graph structure built with the root resource version as the starting node and the associated resource dependencies as directed edges between nodes. After retrieving the associated resource dependencies corresponding to the root resource version from the pre-defined dependency information database, each resource version is used as a topology node, and the dependencies between resource versions are used as directed edges between nodes. Downstream dependency nodes are attached layer by layer to generate a complete dependency topology. This topology can intuitively express the dependency logic between each resource version, support subsequent traversal and parsing, facilitate the identification of circular references and missing resources, and provide a basic topology model for generating resource combinations and dependency resource access links.
[0033] Specifically, the resource version identifier of the root resource version is used to retrieve the associated resource dependencies in the preset dependency information database. Then, a dependency topology is constructed based on the associated resource dependencies, starting from the root resource version. Subsequently, dependency resource parsing is performed on the dependency topology to obtain the resource combination corresponding to the root resource version. During the parsing process, a dependency resource access link is generated according to the access order of each resource version.
[0034] In this embodiment, a fast retrieval of dependency relationships is achieved based on a preset dependency information database. By constructing a dependency topology, the dependency associations between resource versions are fully restored. While aggregating resource combinations containing the root resource version and its downstream dependent resource versions, the resource access sequence is recorded to form a dependency resource access chain. This can accurately complete version-level dependency resolution, making it easier to detect circular references and resource missing issues in the dependency chain in advance. It avoids version confusion caused by simply relying on resource name matching and provides a complete set of resources and loading sequence information for subsequent resource constraint verification.
[0035] Optionally, starting from the root resource version, a dependency topology is constructed based on the associated resource dependencies, including: starting from the root resource version, recursively expanding the resource dependencies at each level along the associated resource dependencies, and gradually constructing the dependency topology under the control of the recursion termination condition; wherein, the nodes of the dependency topology are resource versions, the directed edges of the dependency topology correspond to the associated resource dependencies, and the recursion termination condition includes: the current resource version does not have a lower-level dependency relationship, or the current resource version already exists in the set of visited nodes of the dependency topology.
[0036] Specifically, starting from the root resource version, the resource dependencies at each level are recursively expanded along the associated resource dependencies, and the dependency topology is gradually constructed under the control of the recursion termination condition. The dependency topology uses resource versions as nodes and associated resource dependencies as directed edges. The recursion termination condition can be set to the current resource version not having any lower-level dependencies, or the current resource version already existing in the set of visited nodes of the dependency topology.
[0037] In this embodiment, by recursively traversing and attaching downstream dependent nodes layer by layer, and using the set of visited nodes as the recursion termination condition, circular dependencies can be effectively identified and blocked, avoiding recursive infinite loops, fully restoring the directed dependency relationship between resource versions, generating an accurate dependency topology structure, and providing a reliable topology foundation for subsequent parsing of resource combinations and generation of dependent resource access links.
[0038] Optionally, based on the dependency topology, the resource combination corresponding to the root resource version is obtained by resolving the dependency resources, including: starting from the topology node corresponding to the root resource version, recursively traversing each topology node along the directed edges of the dependency topology, and deduplicating all resource version nodes traversed to obtain a resource version set, and forming a resource combination based on the resource version set, wherein the resource version set includes the root resource version and the target resource version.
[0039] Specifically, starting from the topology node corresponding to the root resource version, all topology nodes are recursively traversed along the directed edges of the dependent topology. Deduplication is performed on all resource version nodes obtained during the traversal to obtain a set of resource versions that includes the root resource version and target resource versions that have direct and indirect dependencies with the root resource version. This set is then used to form a resource combination.
[0040] In this embodiment, recursive traversal is completed based on the constructed dependency topology. Duplicate items caused by multiple references to the same resource version are eliminated by node deduplication. All resource versions required for this delivery are accurately collected, avoiding duplicate inclusion of resources in the resource combination. This ensures the simplicity and accuracy of the resource combination and provides a complete and non-redundant set of resource versions for subsequent resource verification and resource recovery list generation.
[0041] S130. Based on the preset resource constraint verification rules, and combined with the side vehicle metadata corresponding to each resource version in the resource combination, perform resource verification on the resource combination and the access link of dependent resources to obtain the resource verification result, and generate the resource recovery list corresponding to the root resource version based on the resource verification result.
[0042] The preset resource constraint verification rules can be understood as the judgment logic set up to perform multi-dimensional constraint verification on resource combinations and dependent resource access links. These rules can be pre-configured and persistently stored based on resource version compatibility specifications, dependency topology constraints, and resource storage requirements. Pre-configured resource constraint verification rules include, but are not limited to, version constraint verification rules, resource compatibility verification rules, circular reference verification rules, and resource missing verification rules. The side-vehicle metadata can be understood as the descriptive information stored adjacent to each resource version and / or resource object, including but not limited to resource identifier, resource name, resource tag, resource version identifier, resource type, and business attributes. The storage location of the side-vehicle metadata for a resource object can be specified based on its location in object storage. It should be noted that the side-vehicle metadata also includes the dependency digest corresponding to the resource version. The dependency digest includes the target resource identifier, resource version constraints, runtime environment constraints, and interface fingerprint constraints. The side-vehicle metadata can be dynamically updated based on the corresponding resource change information when resource governance events such as registration, changes, and version switching occur. The resource verification result can be understood as a comprehensive judgment information obtained by verifying the resource combination and dependent resource access links using preset resource constraint verification rules combined with side-vehicle metadata. This includes version matching status, resource version compatibility status, and dependency link anomaly alerts. Dependency link anomaly alerts include resource circular reference anomalies and resource missing anomalies, which can be obtained by sequentially performing version constraint verification, compatibility verification, circular reference verification, and resource missing verification, and then comprehensively judging based on the results of all sub-verifications. The resource recovery list can be understood as a directory list generated after resource verification to guide resource packaging and delivery. It includes all valid resource version information required for this delivery, filtered out after failing verification based on the resource verification results. The combination of preset resource constraint verification rules, side-vehicle metadata, resource verification results, and the resource recovery list enables compatibility and dependency legality verification before resource packaging and delivery, proactively identifying issues such as resource mismatches and dependency timing errors, ensuring that delivered resources can be assembled and run normally.
[0043] Specifically, the system retrieves preset resource constraint verification rules, combines the side vehicle metadata corresponding to each resource version within the resource combination, performs resource verification on the resource combination and the access links of dependent resources, obtains resource verification results, and generates a resource recovery list corresponding to the root resource version based on the verification results.
[0044] In this embodiment, by using the side vehicle metadata to carry the description information of each resource version, compatibility verification, dependency chain and abnormal resource reference checks are completed before delivery according to preset constraint verification rules. This intercepts problems such as resource incompatibility, dependency timing errors, circular references and resource missing in advance, avoiding defects from being exposed only during the assembly and operation stage. At the same time, only the verified resource versions are included in the resource recovery list to ensure the integrity and interoperability of the resource versions in the list, and to provide a reliable resource catalog basis for the subsequent packaging and generation of resource recovery packages.
[0045] Optionally, generating a resource recovery list corresponding to the root resource version based on the resource verification results includes: identifying the verification results of each target resource version based on the resource verification results; if no failed verification resource version is identified, organizing the successfully verified resource versions according to the order of the dependent resource access links to generate a structured one-dimensional ordered resource recovery list as the resource recovery list corresponding to the root resource version; if a failed verification target resource version is identified, no resource recovery list is generated.
[0046] Specifically, the verification status of each target resource version is identified based on the resource verification results. When there are no resource versions that have failed verification, all successfully verified resource versions are organized in the order of the dependent resource access links to generate a structured one-dimensional ordered resource recovery list, which serves as the resource recovery list corresponding to the root resource version. Once a target resource version that has failed verification is identified, the generation of the resource recovery list is abandoned. Furthermore, abnormal prompt information and / or abnormal records can be generated based on the verification results for resource abnormal prompts.
[0047] In this embodiment, the overall availability of the resource combination can be uniformly controlled. An ordered list is only output when all resources pass the verification. The order of the list is consistent with the resource access sequence, which facilitates the subsequent sequential retrieval and assembly of resources. When the verification fails, the list generation is terminated directly, which can prevent resource packages with compatibility defects from flowing downstream and avoid delivering resources with compatibility issues or incorrect dependency sequences to the receiving end from the source.
[0048] S140. Obtain the resource objects corresponding to each resource version in the resource recovery list, generate a resource recovery package based on the resource recovery list and the resource objects corresponding to each resource version, and send the resource recovery package to the resource receiving end so that the resource receiving end can assemble resources based on the resource recovery package.
[0049] Specifically, resource objects can be understood as entity file data corresponding to each resource version, such as 3D models, scripts, and map files. These are stored in the object storage system when the resource version is uploaded and registered, and are indexed and located using resource version identifiers. Resource recovery packages can be understood as integrated data packages delivered to the resource receiving end. They are formed by reading the resource recovery list, retrieving the corresponding resource objects based on the resource version identifiers in the list, and then encapsulating the resource objects along with the resource recovery list. Resource objects carry the entity content required for simulation operations. The resource recovery package integrates resource entities and structured list information, allowing the receiving end to verify resource integrity and perform assembly based on the list without a central database. This solves the problems of missed resources during manual packaging and the inability to verify dependencies in weak network or offline scenarios.
[0050] Specifically, the resource recovery list is read, the resource objects corresponding to each resource version in the list are obtained in sequence, the resource recovery list and the resource objects are combined to generate a resource recovery package, and the resource recovery package is sent to the resource receiving end so that the resource receiving end can complete the resource assembly according to the resource recovery package.
[0051] In this embodiment, the resource recovery list and the corresponding resource objects are encapsulated together in the resource recovery package. The receiving end can read the list and resource objects offline and complete the resource assembly without continuously accessing the central database. This avoids the omission of dependent resources caused by manual packaging, ensures that the delivered resources are consistent with the complete resource combination corresponding to the root resource version, facilitates resource delivery and fault recovery in weak network environments, and ensures that the simulated resources can run in the expected state after assembly.
[0052] Optionally, obtain the resource objects corresponding to each resource version in the resource recovery list, and generate a resource recovery package based on the resource recovery list and the resource objects corresponding to each resource version, including: traversing each resource version in the resource recovery list, reading the resource objects corresponding to each resource version from a preset resource storage location; calculating the first integrity digest of each resource object and the second integrity digest of the resource recovery list respectively; and encapsulating the resource recovery list, the resource objects corresponding to each resource version, the first integrity digest and the second integrity digest to generate a resource recovery package corresponding to the root resource version.
[0053] The first integrity digest can be understood as a hash digest calculated for a single resource object, used to verify the data integrity of the corresponding resource object. It can be calculated by reading the binary data of the resource object and using a preset hash algorithm. The second integrity digest can be understood as a hash digest calculated for the entire resource recovery list, used to verify whether the contents of the list itself have been tampered with. It can be calculated by reading the structured data of the resource recovery list and using a preset hash algorithm. Both types of digests are delivered along with the resource recovery package. The resource receiving end can recalculate the digests offline and compare them to quickly determine whether each resource object and the resource recovery list has been lost or tampered with during transmission, improving the reliability of the resource package delivery and assembly process.
[0054] Specifically, the process iterates through each resource version in the resource recovery list, reads the corresponding resource object from the preset resource storage location, calculates the first integrity digest of each resource object and the second integrity digest of the resource recovery list, and then encapsulates the resource recovery list, the resource object corresponding to each resource version, the first integrity digest and the second integrity digest together to generate the resource recovery package corresponding to the root resource version.
[0055] In this embodiment, an integrity summary is generated for each resource object and the list itself during the packaging stage. The receiving end can use the summary to independently verify whether the file and list have been tampered with or missing. The resource entity, structured list and integrity verification information are uniformly encapsulated, and integrity verification can be completed offline without relying on a central database. This effectively prevents the loss or tampering of resource files during delivery and ensures that the resources used by the receiving end during assembly are consistent with the resource combination of the source end.
[0056] Optionally, the method further includes: upon detecting a resource governance triggering event, obtaining resource change information corresponding to the resource governance triggering event, and determining the resource version associated with the resource governance triggering event; based on the resource change information, updating the side vehicle metadata corresponding to the resource version associated with the resource governance triggering event; wherein, the resource governance triggering event includes resource dependency update events, major version switching events, version metadata update events, and resource processing success events.
[0057] Resource governance trigger events can be specifically understood as various events that trigger resource version metadata updates, including but not limited to resource dependency update events, major version switching events, version metadata update events, and resource processing success events. These events are used to detect various changes within the resource version lifecycle. Resource change information can be specifically understood as the changes generated by resource governance trigger events. It records data such as the changed resource identifier, change type, and updated attribute parameters. This information is used to determine the target resource version that needs to be modified and the updated content of the side-vehicle metadata. The combination of resource governance trigger events and resource change information can promptly capture various changes in resource versions, drive synchronous updates of side-vehicle metadata, and ensure that the metadata used for subsequent dependency resolution and resource verification remains up-to-date, avoiding verification errors caused by outdated metadata.
[0058] Specifically, when a resource governance trigger event is detected, the resource change information corresponding to the event is obtained and the associated resource version is located. Based on the resource change information, the side vehicle metadata corresponding to the resource version is updated. The resource governance trigger events include, but are not limited to, resource dependency update events, major version switching events, version metadata update events, and resource processing success events.
[0059] In this embodiment, the system can respond to various resource version change scenarios, update the side vehicle metadata in a timely manner, ensure that the side vehicle metadata continuously and accurately reflects the current environmental attributes, dependency configurations and other information of the resource version, avoid misjudgments in subsequent resource verification caused by outdated metadata, maintain the data accuracy of resource dependency resolution and constraint verification processes, and realize dynamic governance of the entire lifecycle of simulation resource versions.
[0060] Optional, such as Figure 2The diagram illustrates a data processing system, which can be composed of the following modules: a dependency maintenance module, a semantic constraint verification module, a dependency topology parsing module, a path loop prevention and missing item detection module, a version governance triggering module, a side-vehicle metadata refresh module, a recovery package generation module, and an external verification module. Specifically, the dependency maintenance module writes, replaces, or queries the dependencies of a specific resource version. Dependency records include the source version identifier, the target resource identifier, and dependency constraints. The semantic constraint verification module checks whether the target resource meets the requirements for combined operation by combining resource type rules, environment constraints, and interface fingerprints. The dependency topology parsing module recursively parses the target resource version from the root version, generating a tree-like dependency result or a flat recovery list. The path loop prevention and missing item detection module records the current recursive path; it returns a circular dependency error when the version to be parsed is already in the path, and provides an exception message when the target resource or version cannot be parsed. The version governance triggering module issues a side-vehicle refresh action after dependency updates, major version switching, version metadata updates, or successful resource processing. The side-vehicle metadata refresh module writes the resource identity, version identity, metadata, dependency summary, synchronization time, and integrity summary to a bypass location in object storage. Recovery Package Generation Module: Collects reachable dependency versions from the root resource version, generates a resource recovery manifest, and streams the resource recovery manifest and resource objects into the recovery package. Field Verification Module: Reads the resource recovery manifest and available vehicle metadata in weak network or isolated environments to verify object integrity, dependency integrity, and semantic compatibility.
[0061] Optional, such as Figure 3The diagram illustrates a data processing method. S1: Registering resource version dependencies: When a resource version is created, uploaded, confirmed, or its dependencies are adjusted, the system writes the target resources that the current version depends on into the dependency table. Dependency information can come from the user interface, SDK (Software Development Kit) upload confirmation requests, external connector synchronization results, or the resource package's built-in list. Target resources can be map services, 3D models, documents, executable model packages, rule scripts, or database resources, and are not required to be of the same type as the root resource. S2: Constructing dependency topology and resolving target versions: When viewing the dependency tree, generating a recovery package, or performing recovery analysis, the system queries dependencies starting from the root version and determines the specific version for each target resource. In one implementation, the latest version of the target resource can be retrieved; the version constraint field simultaneously retains dependency registration and audit information and can be used to subsequently expand version matching rules. S3: Performing loop, missing, and semantic constraint checks: During recursive parsing, the system maintains the current access path. If the version to be parsed has already appeared in this path, it indicates that the dependency chain forms a loop, and the system stops expanding along this branch and returns an exception. When the target resource does not exist, there is no available version, environmental constraints are not met, or the interface fingerprint does not match, the system provides missing or incompatible information; when generating the recovery package, this information can be used to terminate processing or report the anomaly to the administrator. S4. Refresh side-vehicle metadata when a governance event occurs: After dependency updates, version metadata updates, major version switching, or successful resource processing, the system triggers a side-vehicle metadata refresh. The side-vehicle file is written to the location associated with the resource object in object storage, so that the file still carries the resource identity, version identity, and direct dependency summary after leaving the central database. S5. Generate recovery manifest and manifest: The system organizes the root version and its reachable dependent versions into a flat recovery manifest. Each entry records the resource identifier, resource name, resource type, version identifier, business version number, object path, download address, and file size, and then generates a manifest.json describing the resource set within the package. S6. Stream output recovery package: The system reads resource objects from object storage item by item according to the manifest entries and writes them to the compressed package in a streaming manner. The internal paths of the package can be organized by resource type, resource name, and version number to distinguish files with the same name in different resources, and also to facilitate the handling of larger files such as 3D models and scene packages. S7. Field Site Reads Manifest and Available Side Vehicle Metadata for Verification, Unpacking, and Directory Assembly: After receiving the recovery package, the field site, isolated network training environment, or weak network test site first reads the manifest and available side vehicle metadata to verify the root version, dependency entries, object paths, and integrity summary. After successful verification, it is unpacked and assembled into the local directory; if missing, incompatible, or inconsistent summaries are found, a prompt is given, and the receiving end stops the assembly or transfers it to manual processing.
[0062] The technical solution of this embodiment involves receiving a pending business request, determining the root resource version based on the request, obtaining the associated resource dependencies corresponding to the root resource version, traversing the associated resource dependencies starting from the root resource version, parsing the dependent resources, and obtaining the resource combination corresponding to the root resource version and the dependent resource access link corresponding to the resource combination. Each dependency record in the associated resource dependencies includes a source resource version identifier, a target resource identifier, and dependency constraints. The resource combination includes the root resource version and the target resource version associated with the root resource version. The dependent resource access link is an ordered sequence representing the access order of each resource version within the resource combination. Based on preset resource constraint verification rules and combined with the vehicle metadata corresponding to each resource version in the resource combination, resource verification is performed on the resource combination and the dependent resource access link to obtain the resource verification result. Based on the resource verification result, a resource recovery list corresponding to the root resource version is generated. The resource objects corresponding to each resource version in the resource recovery list are obtained, and a resource recovery package is generated based on the resource recovery list and the resource objects corresponding to each resource version. The resource recovery package is sent to the resource receiving end so that the resource receiving end can assemble resources based on the resource recovery package. This solution enables complete resolution of version-level dependencies, constructs an ordered access chain, and detects abnormal resource issues in advance. It also introduces side-vehicle metadata to verify each dependent resource in the resource combination, determining the target resource version for version recovery. Furthermore, it encapsulates the verification list and resource objects into an integrated resource recovery package, allowing the receiving end to complete resource integrity verification and assembly offline, independent of the central database. This solves the problems of traditional simulation resource management easily introducing unexpected downstream resources and manual packaging easily missing dependent resources. It ensures that the running state of the assembled simulation resource combination remains consistent with historical versions, improving the integrity, compatibility, and efficiency of resource recovery.
[0063] Example 2 Figure 4 This is a flowchart of a data processing method provided in Embodiment 2 of the present invention. The method in this embodiment is a further optimization of the method in the above embodiments. Specifically, it provides a further implementation method for performing resource verification on the resource combination and dependent resource access links based on preset resource constraint verification rules and combined with the side-vehicle metadata corresponding to each resource version in the resource combination, to obtain the resource verification result. Optionally, the preset resource constraint verification rules include at least version constraint verification rules, resource compatibility verification rules, circular reference verification rules, and resource missing verification rules. Specific implementation methods can be found in the technical solution of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here. Figure 4 As shown, the method includes: S410: Receive pending business requests and determine the root resource version based on the pending business requests.
[0064] S420. Obtain the associated resource dependencies corresponding to the root resource version. Starting from the root resource version, traverse the associated resource dependencies, parse the dependent resources, and obtain the resource combination corresponding to the root resource version and the dependent resource access chain corresponding to the resource combination. Among them, each dependency record in the associated resource dependency includes the source resource version identifier, the target resource identifier, and the dependency constraint. The resource combination includes the root resource version and the target resource version associated with the root resource version. The dependent resource access chain is an ordered sequence that represents the access order of each resource version in the resource combination.
[0065] S430. For each resource version in the resource combination, obtain the runtime environment constraints, interface fingerprint constraints, and version constraints from the vehicle metadata corresponding to the resource version.
[0066] It's important to note that runtime environment constraints refer to the environmental conditions required for the normal operation of a resource version, such as the operating system, hardware architecture, and runtime environment. These are configured by developers during the resource version release and registration phase and written into the vehicle's metadata according to the resource's operational requirements. Interface fingerprint constraints record the characteristic information of the resource's external interaction interfaces, such as fields, protocols, and calling specifications. This information is automatically extracted or manually configured and stored in the vehicle's metadata during resource release by scanning and parsing the resource interfaces. Version constraints limit the range of compatible upstream and downstream dependent resource versions. These are set and saved to the vehicle's metadata when configuring resource dependencies. These three types of constraints—runtime environment constraints, interface fingerprint constraints, and version constraints—are bound to the corresponding resource versions and resource objects along with the vehicle's metadata. They can be directly read during the resource verification phase for compatibility comparison. This allows for resource combination verification from multiple dimensions, including runtime environment, interface interaction, and version matching, enabling early detection of incompatibility issues between resource versions and ensuring that resources can work collaboratively after assembly.
[0067] Specifically, for each resource version within the resource portfolio, runtime environment constraints, interface fingerprint constraints, and version constraints are extracted from its corresponding vehicle metadata. Various adaptation constraints can be directly read from the vehicle metadata bound to the resource version, obtaining the necessary environment requirements, interface characteristics, and version matching conditions for resource operation in one go without additional external database queries. This provides complete comparison parameters for subsequent preset resource constraint verification rules, accurately determining compatibility between resource versions and proactively identifying anomalies such as environment incompatibility, interface inconsistencies, and version non-compliance, ensuring the collaborative assembly and operation of the resource portfolio.
[0068] S440. Based on the version constraint verification rules, perform resource version verification using the version constraints corresponding to the resource version to obtain the first verification result.
[0069] Version constraint verification rules refer to the judgment rules used to determine whether the versions of upstream and downstream resources meet the version compatibility range. These rules can be pre-configured and persistently stored according to the version compatibility requirements of the simulation resources. The first verification result refers to the judgment information obtained after verifying the version compatibility between resource versions, including version compatibility status and exception prompts. This result is generated by calling the version constraint verification rules to compare the version constraint parameters of the source resource version and the dependent resource version, and then performing logical judgments. The version constraint verification rules and verification results work together to achieve automated version-level verification, enabling early identification of upstream and downstream resource versions exceeding the compatibility range. This prevents incompatible resource combinations from entering the packaging and delivery process, providing a version-level judgment basis for comprehensive resource verification.
[0070] Specifically, based on the version constraint verification rules, the version constraints corresponding to each resource version are invoked to perform resource version verification and obtain the first verification result. This implements a system that uses predefined version constraint verification rules as a judgment benchmark to compare the version compatibility range between upstream and downstream resource versions, determine whether the dependent resource versions meet the version adaptation requirements, identify anomalies such as version mismatch and versions exceeding the compatibility range from the version dimension, and generate the corresponding first verification result. This provides a version-level judgment basis for subsequent comprehensive resource verification, preventing resource assembly failure due to version incompatibility.
[0071] S450. Based on the resource compatibility verification rules, compatibility verification is performed using runtime environment constraints and interface fingerprint constraints to obtain the second verification result.
[0072] The resource compatibility verification rules refer to the criteria used to compare the compatibility of the operating environment and interface characteristics of upstream and downstream resource versions. These rules can be pre-configured and saved based on the simulation resource's operating environment specifications and interface protocol requirements. Operating environment constraints record the operating system, hardware architecture, runtime conditions, etc., required for the normal operation of a resource version. These are configured and written into the vehicle's metadata during the resource version registration and release phase. Interface fingerprint constraints record the fingerprint information of the resource's external interfaces, such as protocols, fields, and call characteristics. These are automatically scanned during resource release or manually configured and stored in the vehicle's metadata. The second verification result refers to the verification information obtained by comparing the operating environment constraints and interface fingerprint constraints using the resource compatibility verification rules. This includes environment matching status and interface anomaly prompts. It can be obtained by reading the operating environment constraints and interface fingerprint constraints from the vehicle's metadata corresponding to the upstream and downstream resource versions within the resource combination and then comparing and calculating using the resource compatibility verification rules. The collaborative elements of resource compatibility verification rules, operating environment constraints, and interface fingerprint constraints can automatically complete resource compatibility verification at the operating environment and interface levels, proactively capturing anomalies such as environment conflicts and interface mismatches. Combined with the first verification result at the version level, this forms a multi-dimensional verification capability, preventing incompatible resources from being delivered downstream.
[0073] Specifically, based on resource compatibility verification rules, resource compatibility verification is performed using the runtime environment constraints and interface fingerprint constraints corresponding to each resource version, resulting in a second verification result. This achieves comparison and verification of resource versions within a resource combination from two dimensions: runtime environment and interface characteristics. It checks whether the runtime environments of upstream and downstream resources match and whether the interface fingerprints are consistent, obtaining a second verification result that includes compatibility status and exception prompts. This can identify in advance problems such as environment conflicts and interface incompatibilities that may cause resource assembly failures. Combined with the aforementioned first verification result, it forms a multi-dimensional verification conclusion, providing a basis for determining the environment and interface levels for the final comprehensive resource verification result.
[0074] S460. Based on the circular reference verification rules, perform circular reference verification on the access links of dependent resources to obtain the third verification result.
[0075] The circular reference verification rule refers to the judgment logic used to detect whether there are mutual references between resource versions in the resource access chain, forming a closed loop dependency. It can be pre-configured and stored according to the directed graph characteristics of the dependency topology. The third verification result refers to the judgment information output after the circular reference detection of the resource access chain is completed, including whether there is a circular dependency and abnormal node prompts. By calling the circular reference verification rule, the resource access chain can be traversed to determine whether there is a situation where resource version nodes are repeatedly accessed in the chain, forming a closed loop dependency, and then the corresponding verification status is generated. This verification item works in conjunction with version verification and environment interface verification to achieve multi-dimensional anomaly screening of resource combinations, prevent the delivery of resource packages with circular dependencies in advance, and avoid failures in resolving dependencies when assembling resources at the receiving end.
[0076] Specifically, based on the circular reference verification rules, circular reference verification is performed on the resource access chain to obtain a third verification result. This implements a dedicated directed dependency check on the resource access chain, identifying whether there are circular anomalies where resource versions depend on each other in the chain, and obtaining a third verification result containing the circular dependency status and anomaly warnings. This allows for independent control of the legality of the dependency chain, early detection of circular reference problems missed during the recursive traversal phase, and, together with the first and second verification results, forms a multi-dimensional comprehensive verification to prevent resource combinations with circular dependency defects from entering the packaging and delivery stage.
[0077] S470. Based on the resource missing verification rules, perform resource missing verification on the resource access links to obtain the fourth verification result.
[0078] The resource missing verification rule refers to the criteria used to determine whether a resource version in the dependent resource access link can find the corresponding resource entity. This criterion can be pre-configured and saved based on the indexing mechanism and resource management requirements of the resource storage system. The fourth verification result is the judgment information obtained after performing resource missing verification on the dependent resource access link. It includes anomaly prompts such as resource missing status and missing resource version identifiers. This can be generated by traversing the resource versions within the dependent resource access link and querying whether each resource version can locate the corresponding resource object in the preset resource storage location according to the resource missing verification rule. This verification step, in conjunction with version, interface environment, and circular reference verification, completes the verification from the perspective of resource entity availability, proactively identifying problems such as missing resource entities and index failures. This avoids the delivery of resource combinations and packages lacking entity files, ensuring the smooth progress of resource assembly work at the receiving end.
[0079] Specifically, based on resource missing verification rules, resource missing verification is performed on the access links of dependent resources to obtain the fourth verification result. This implements the process of performing resource missing verification on the access links of dependent resources according to resource missing verification rules, obtaining the fourth verification result; it checks each resource version along the access links to ensure that the corresponding resource entity can be located normally, identifies anomalies such as invalid resource version indexes and missing entity files, and records them in the fourth verification result. This, combined with the results of version verification, compatibility verification, and circular reference verification, completes a comprehensive verification from the perspective of resource entity availability, proactively intercepting resource combinations with resource missing issues, avoiding the delivery of resource packages lacking entity files to the receiving end, and preventing the receiving end from failing to perform resource assembly due to resource missingness.
[0080] S480. If the first verification result, the second verification result, the third verification result, and the fourth verification result are all successful, then the corresponding resource version verification is determined to be successful; if at least one of the first verification result, the second verification result, the third verification result, and the fourth verification result is unsuccessful, then the corresponding resource version verification is determined to be unsuccessful.
[0081] Specifically, the system comprehensively evaluates the first, second, third, and fourth verification results. Only when all four verification results are successful is the resource version considered verified successfully; if any one of the four verification results fails, the corresponding resource version is considered to have failed. This approach covers risks from multiple dimensions, including version adaptation, environment interface compatibility, circular dependencies, and resource entity availability, ensuring no type of anomaly is overlooked. It guarantees the overall legality and usability of the resource combination and prevents resource packages with hidden anomalies from being sent to the resource receiving end. From a comprehensive verification perspective, it ensures that delivered resources can successfully complete offline resource assembly.
[0082] S490. Generate a resource recovery list corresponding to the root resource version based on the resource verification results.
[0083] S411. Obtain the resource objects corresponding to each resource version in the resource recovery list, generate a resource recovery package based on the resource recovery list and the resource objects corresponding to each resource version, and send the resource recovery package to the resource receiving end so that the resource receiving end can assemble resources based on the resource recovery package.
[0084] The technical solution of this embodiment receives pending business requests and determines the root resource version from them. It then obtains the associated resource dependencies corresponding to the root resource version. Starting from the root resource version, it traverses and parses all dependent resources to obtain the resource combination corresponding to the root resource version and the dependent resource access chain representing the order of resource access. Each record of the associated resource dependency relationship includes a source resource version identifier, a target resource identifier, and dependency constraints. The resource combination includes the root resource version and its associated target resource versions. Next, for each resource version within the resource combination, it reads the runtime environment constraints, interface fingerprint constraints, and version constraints from the corresponding side-vehicle metadata. It then sequentially calls the version constraint verification rules to perform version adaptation verification to obtain the first verification result. The resource compatibility verification rules utilize runtime environment constraints and interface fingerprint constraints to perform compatibility verification and obtain the second verification result. The circular reference verification rules are called to perform circular dependency detection on the access links of dependent resources to obtain the third verification result. The resource missing verification rules are called to check the existence of resource entities to obtain the fourth verification result. If all four verification results are successful, the resource version verification is determined to be successful. If any one verification fails, the resource version verification is determined to be unsuccessful. Then, a resource recovery list corresponding to the root resource version is generated based on the resource verification results. The resource objects corresponding to each resource version in the list are read. The resource recovery list and resource objects are combined to encapsulate and generate a resource recovery package, which is sent to the resource receiving end. The resource receiving end completes resource assembly based on the resource recovery package. This solution uses the root resource version as the entry point to automatically parse the complete dependency topology. It automatically performs multi-dimensional joint verification from multiple dimensions, including version adaptation, environment interface compatibility, circular dependencies, and resource entity availability. It identifies various dependency anomalies and resource mismatch issues in advance, packages the structured list and entity resources for delivery, and allows the receiving end to complete resource integrity verification and assembly offline. This avoids omissions caused by manual dependency sorting, ensures resource management and fault recovery capabilities in weak network or offline scenarios, and guarantees that the delivered simulation resources can be assembled and run as expected.
[0085] Example 3 Figure 5 This is a schematic diagram of the structure of a data processing device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: The root resource version determination module 510 is used to receive pending business requests and determine the root resource version based on the pending business requests. The resource combination and access link determination module 520 is used to obtain the associated resource dependencies corresponding to the root resource version. Starting from the root resource version, it traverses the associated resource dependencies, parses the dependent resources, and obtains the resource combination corresponding to the root resource version and the access link of the dependent resources corresponding to the resource combination. Among them, each dependency record in the associated resource dependency includes the source resource version identifier, the target resource identifier, and the dependency constraint. The resource combination includes the root resource version and the target resource version associated with the root resource version. The access link of the dependent resources is an ordered sequence that represents the access order of each resource version in the resource combination. The resource recovery list determination module 530 is used to perform resource verification on the resource combination and dependent resource access links based on preset resource constraint verification rules and combined with the side vehicle metadata corresponding to each resource version in the resource combination, to obtain resource verification results, and to generate a resource recovery list corresponding to the root resource version based on the resource verification results. The resource recovery package generation and transmission module 540 is used to obtain the resource objects corresponding to each resource version in the resource recovery list, generate a resource recovery package based on the resource recovery list and the resource objects corresponding to each resource version, and send the resource recovery package to the resource receiving end so that the resource receiving end can assemble resources based on the resource recovery package.
[0086] The technical solution of this embodiment involves a root resource version determination module receiving a pending business request and determining the root resource version based on the request. A resource combination and access link determination module obtains the associated resource dependencies corresponding to the root resource version. Starting from the root resource version, it traverses the associated resource dependencies, parses the dependent resources, and obtains the resource combination corresponding to the root resource version and the access link of the dependent resources corresponding to the resource combination. Each dependency record in the associated resource dependency relationship includes a source resource version identifier, a target resource identifier, and dependency constraints. The resource combination includes the root resource version and the target resource version associated with the root resource version. The access link of the dependent resources is represented by a table. The resource recovery list determination module determines the access order of each resource version within the resource combination based on preset resource constraint verification rules and the side vehicle metadata corresponding to each resource version in the resource combination. It performs resource verification on the resource combination and the access link of dependent resources, obtains the resource verification results, and generates the resource recovery list corresponding to the root resource version based on the resource verification results. The resource recovery package generation and transmission module obtains the resource objects corresponding to each resource version in the resource recovery list, generates resource recovery packages based on the resource recovery list and the resource objects corresponding to each resource version, and sends the resource recovery packages to the resource receiving end so that the resource receiving end can assemble resources based on the resource recovery packages. This solution enables complete resolution of version-level dependencies, constructs an ordered access chain, and detects abnormal resource issues in advance. It also introduces side-vehicle metadata to verify each dependent resource in the resource combination, determining the target resource version for version recovery. Furthermore, it encapsulates the verification list and resource objects into an integrated resource recovery package, allowing the receiving end to complete resource integrity verification and assembly offline, independent of the central database. This solves the problems of traditional simulation resource management easily introducing unexpected downstream resources and manual packaging easily missing dependent resources. It ensures that the running state of the assembled simulation resource combination remains consistent with historical versions, improving the integrity, compatibility, and efficiency of resource recovery.
[0087] Based on the above embodiments, optionally, the resource combination and access link determination module 520 is specifically used to search in a preset dependency information database based on the resource version identifier of the root resource version to obtain the associated resource dependency relationship matching the root resource version; starting from the root resource version, construct a dependency topology based on the associated resource dependency relationship; parse the dependent resources based on the dependency topology to obtain the resource combination corresponding to the root resource version, and generate the corresponding dependent resource access link according to the access order of each resource version during the process of parsing the dependent resources.
[0088] Optionally, the resource combination and access link determination module 520 is specifically used to recursively expand the resource dependencies at all levels along the associated resource dependencies, starting from the root resource version, and gradually construct the dependency topology under the control of the recursion termination condition; wherein, the nodes of the dependency topology are resource versions, the directed edges of the dependency topology correspond to the associated resource dependencies, and the recursion termination condition includes: the current resource version does not have a lower-level dependency relationship, or the current resource version already exists in the set of visited nodes of the dependency topology.
[0089] Optionally, the resource combination and access link determination module 520 is specifically used to start from the topology node corresponding to the root resource version, recursively traverse each topology node along the directed edges of the dependent topology, and perform deduplication processing on all resource version nodes traversed to obtain a resource version set, and form a resource combination based on the resource version set, wherein the resource version set includes the root resource version and the target resource version.
[0090] Optionally, the preset resource constraint verification rules include at least version constraint verification rules, resource compatibility verification rules, circular reference verification rules, and resource missing verification rules. The resource recovery list determination module 530 is specifically used to obtain runtime environment constraints, interface fingerprint constraints, and version constraints from the vehicle metadata corresponding to each resource version in the resource combination; perform resource version verification using the version constraints corresponding to the resource version according to the version constraint verification rules to obtain a first verification result; perform compatibility verification using the runtime environment constraints and interface fingerprint constraints according to the resource compatibility verification rules to obtain a second verification result; perform circular reference verification on the access links of dependent resources according to the circular reference verification rules to obtain a third verification result; and perform resource missing verification on the access links of dependent resources according to the resource missing verification rules to obtain a fourth verification result. If the first, second, third, and fourth verification results are all successful, the corresponding resource version verification is determined to be successful; if at least one of the first, second, third, and fourth verification results is a verification failure, the corresponding resource version verification is determined to be unsuccessful.
[0091] Optionally, the resource recovery list determination module 530 is specifically used to identify the verification results of each target resource version based on the resource verification results. If no failed verification resource version is identified, the successfully verified resource versions are organized according to the order of the dependent resource access links to generate a structured one-dimensional ordered resource recovery list, which serves as the resource recovery list corresponding to the root resource version. If a failed verification target resource version is identified, no resource recovery list is generated.
[0092] Optionally, the resource recovery package generation and transmission module 540 is specifically used to traverse each resource version in the resource recovery list, read the resource object corresponding to each resource version from the preset resource storage location; calculate the first integrity summary of each resource object and the second integrity summary of the resource recovery list respectively; and encapsulate the resource recovery list, the resource object corresponding to each resource version, the first integrity summary and the second integrity summary to generate the resource recovery package corresponding to the root resource version.
[0093] Optionally, the device is specifically used to, upon detecting a resource governance triggering event, obtain resource change information corresponding to the resource governance triggering event, determine the resource version associated with the resource governance triggering event, and update the vehicle metadata corresponding to the resource version associated with the resource governance triggering event based on the resource change information; wherein, the resource governance triggering event includes resource dependency update event, major version switching event, version metadata update event, and resource processing success event.
[0094] The data processing apparatus provided in the embodiments of the present invention can execute the data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0095] Example 4 Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0096] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0097] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0098] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as data processing methods.
[0099] In some embodiments, the data processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the data processing method by any other suitable means (e.g., by means of firmware).
[0100] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0101] Computer programs for implementing the data processing methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs can be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0102] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication unit 19, or installed from storage unit 18, or installed from ROM 12. When the computer program is executed by processor 11, it performs the functions defined in the methods of the embodiments of the present invention.
[0103] Example 5 Embodiment 5 of the present invention also provides a computer-readable storage medium storing computer instructions for causing a processor to execute a data processing method, the method comprising: Receive pending business requests and determine the root resource version based on the pending business requests; Obtain the associated resource dependencies corresponding to the root resource version. Starting from the root resource version, traverse the associated resource dependencies, parse the dependent resources, and obtain the resource combination corresponding to the root resource version and the access chain of the dependent resources corresponding to the resource combination. Among them, each dependency record in the associated resource dependency includes the source resource version identifier, the target resource identifier, and the dependency constraint. The resource combination includes the root resource version and the target resource version associated with the root resource version. The access chain of the dependent resources is an ordered sequence that represents the access order of each resource version within the resource combination. Based on the preset resource constraint verification rules, and combined with the side vehicle metadata corresponding to each resource version in the resource combination, resource verification is performed on the resource combination and the access link of dependent resources to obtain the resource verification result. Based on the resource verification result, a resource recovery list corresponding to the root resource version is generated. Obtain the resource objects corresponding to each resource version in the resource recovery list, generate a resource recovery package based on the resource recovery list and the resource objects corresponding to each resource version, and send the resource recovery package to the resource receiving end so that the resource receiving end can assemble resources based on the resource recovery package.
[0104] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0105] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0106] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0107] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0108] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the data processing method provided in any embodiment of this application.
[0109] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider). This program product belongs to the same inventive concept as the data processing methods disclosed in the embodiments of this application, and therefore will not be described further here.
[0110] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0111] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A data processing method, characterized in that, include: Receive pending service requests and determine the root resource version based on the pending service requests; Obtain the associated resource dependencies corresponding to the root resource version. Starting from the root resource version, traverse the associated resource dependencies, parse the dependent resources, and obtain the resource combination corresponding to the root resource version and the dependent resource access chain corresponding to the resource combination. Each dependency record in the associated resource dependencies includes a source resource version identifier, a target resource identifier, and a dependency constraint. The resource combination includes the root resource version and the target resource version associated with the root resource version. The dependent resource access chain is an ordered sequence representing the access order of each resource version within the resource combination. Based on preset resource constraint verification rules, and combined with the side vehicle metadata corresponding to each resource version in the resource combination, resource verification is performed on the resource combination and the access link of the dependent resources to obtain resource verification results. Based on the resource verification results, a resource recovery list corresponding to the root resource version is generated. Obtain the resource objects corresponding to each resource version in the resource recovery list, generate a resource recovery package based on the resource recovery list and the resource objects corresponding to each resource version, and send the resource recovery package to the resource receiving end so that the resource receiving end can perform resource assembly based on the resource recovery package.
2. The method according to claim 1, characterized in that, The step of obtaining the associated resource dependencies corresponding to the root resource version involves traversing the associated resource dependencies starting from the root resource version, parsing the dependent resources, and obtaining the resource combination corresponding to the root resource version and the access chain of the dependent resources corresponding to the resource combination, including: Based on the resource version identifier of the root resource version, a search is performed in a preset dependency information database to obtain the associated resource dependency relationship that matches the root resource version; Starting with the root resource version, a dependency topology is constructed based on the associated resource dependencies; Based on the dependency topology, the dependency resources are parsed to obtain the resource combination corresponding to the root resource version. During the process of parsing the dependency resources, the corresponding dependency resource access links are generated according to the access order of each resource version.
3. The method according to claim 2, characterized in that, The process of constructing a dependency topology based on the associated resource dependencies, starting from the root resource version, includes: Starting from the root resource version, resource dependencies at each level are recursively expanded along the associated resource dependencies, and a dependency topology is gradually constructed under the control of the recursion termination condition; wherein, the nodes of the dependency topology are resource versions, the directed edges of the dependency topology correspond to the associated resource dependencies, and the recursion termination condition includes: the current resource version does not have a lower-level dependency relationship, or the current resource version already exists in the set of visited nodes of the dependency topology.
4. The method according to claim 2, characterized in that, The process of resolving dependency resources based on the dependency topology to obtain the resource combination corresponding to the root resource version includes: Starting from the topology node corresponding to the root resource version, recursively traverse each topology node along the directed edges of the dependent topology, and deduplicate all resource version nodes traversed to obtain a resource version set. The resource combination is formed based on the resource version set, wherein the resource version set includes the root resource version and the target resource version.
5. The method according to claim 1, characterized in that, The preset resource constraint verification rules include at least version constraint verification rules, resource compatibility verification rules, circular reference verification rules, and resource missing verification rules. The method involves performing resource verification on the resource combination and the dependent resource access link based on preset resource constraint verification rules and the side vehicle metadata corresponding to each resource version in the resource combination, to obtain resource verification results, including: For each resource version in the resource combination, obtain the runtime environment constraints, interface fingerprint constraints, and version constraints from the side vehicle metadata corresponding to the resource version; Based on the version constraint verification rules, the resource version is verified using the version constraints corresponding to the resource version to obtain the first verification result; Based on the resource compatibility verification rules, the compatibility verification is performed using the runtime environment constraints and the interface fingerprint constraints to obtain the second verification result; Based on the circular reference verification rules, a circular reference verification is performed on the dependent resource access link to obtain a third verification result; Based on the resource missing verification rules, resource missing verification is performed on the dependent resource access link to obtain the fourth verification result; If the first verification result, the second verification result, the third verification result, and the fourth verification result are all successful, then the corresponding resource version verification is determined to be successful; if at least one of the first verification result, the second verification result, the third verification result, and the fourth verification result is unsuccessful, then the corresponding resource version verification is determined to be unsuccessful.
6. The method according to claim 1, characterized in that, The process of generating the resource recovery list corresponding to the root resource version based on the resource verification result includes: Based on the resource verification results, the verification results of each target resource version are identified. If no failed verification resource version is identified, the successfully verified resource versions are organized according to the order of the dependent resource access links to generate a structured one-dimensional ordered resource recovery list, which serves as the resource recovery list corresponding to the root resource version. If a failed verification target resource version is identified, the resource recovery list is not generated.
7. The method according to claim 1, characterized in that, The step of obtaining the resource objects corresponding to each resource version in the resource recovery list, and generating a resource recovery package based on the resource recovery list and the resource objects corresponding to each resource version, includes: Iterate through each resource version in the resource recovery list and read the resource object corresponding to each resource version from the preset resource storage location; Calculate the first integrity summary for each resource object and the second integrity summary for the resource recovery list; The resource recovery list, the resource objects corresponding to each resource version, the first integrity digest, and the second integrity digest are encapsulated to generate the resource recovery package corresponding to the root resource version.
8. The method according to claim 1, characterized in that, The method further includes: Upon detecting a resource governance trigger event, obtain the resource change information corresponding to the resource governance trigger event and determine the resource version associated with the resource governance trigger event; Based on the resource change information, update the side vehicle metadata corresponding to the resource version associated with the resource governance trigger event; wherein, the resource governance trigger event includes resource dependency update event, major version switch event, version metadata update event, and resource processing success event.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data processing method according to any one of claims 1-8.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the data processing method as described in any one of claims 1-8.
