CIM metadata acquisition method, computing service equipment and computer program product

By detecting the acquisition instructions in the CIM metadata management system and determining the acquisition rules using a preset rule database, the problem of slow response speed when business requirements change in the existing technology is solved, and fast and automatic metadata collection is achieved.

CN119987862AActive Publication Date: 2025-05-13SHENZHEN SMARTCITY TECH DEV GRP CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510466017.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-15
Publication Date
2025-05-13
Estimated Expiration
2045-04-15

AI Technical Summary

Technical Problem

Existing CIM metadata acquisition methods require programmers to intervene in developing new scripts or maintaining old scripts when business needs change, resulting in slow response speed.

Method used

A CIM metadata acquisition method is provided. By detecting CIM metadata acquisition instructions, the metadata item to be collected and the target CIM data source are extracted, the target acquisition rules are determined based on the preset CIM metadata acquisition rule base, and the metadata is collected from the target data source.

Benefits of technology

It realizes that no programmer intervention can automatically select appropriate collection rules based on changing business needs, quickly respond to new business needs, and improves the efficiency of metadata collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119987862A_ABST
    Figure CN119987862A_ABST
Patent Text Reader

Abstract

The invention discloses a CIM metadata acquisition method, computing service equipment and a computer program product, and relates to the technical field of CIM. The method is applied to a CIM metadata management system and comprises the steps that after a CIM metadata collection instruction is detected, metadata items to be collected and a target CIM data source are extracted from the CIM metadata collection instruction; determining a target collection rule corresponding to the to-be-collected metadata item based on the to-be-collected metadata item, the target CIM data source and a preset CIM metadata collection rule base; and according to the target acquisition rule, acquiring CIM metadata corresponding to the metadata item to be acquired from the target CIM data source. According to the method and the device, when the business requirements of CIM metadata collection are changed, a programmer does not need to wait for development of a new script or maintenance and updating of an old script.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of CIM technology, and in particular to a CIM metadata collection method, a computing service device, and a computer program product. Background Art

[0002] With the development of smart city construction, the importance of City Information Modeling (CIM) as a bridge connecting the physical world and the digital world has become increasingly prominent. CIM not only integrates the city's geographic spatial information, but also includes multi-source heterogeneous data such as buildings, infrastructure, and public services. Among them, CIM metadata accurately and comprehensively describes the source, format, version, and update time of CIM data, so that CIM data can be correctly understood, effectively shared, and maintained for a long time. Therefore, efficient metadata collection is the basis for building a reliable and scalable urban information platform.

[0003] At present, the metadata collection of CIM (City Information Modeling) mainly relies on programmers to customize and develop scripts for the required metadata items according to the business needs of metadata collection, so as to realize the automated collection of CIM metadata.

[0004] However, this approach usually requires programmers to intervene when business requirements change, develop new scripts for new business requirements or maintain and update old scripts, and cannot respond to CIM metadata collection services in a timely manner. Summary of the invention

[0005] The main purpose of this application is to provide a CIM metadata collection method, computing service equipment and computer program product, aiming to solve the technical problem in the related technology that when the business requirements of CIM metadata collection change, it is necessary to wait for the development of new scripts or maintenance and update of old scripts, resulting in slow response speed.

[0006] To achieve the above object, the present application provides a CIM metadata collection method, which is applied to a CIM metadata management system and includes: After detecting the CIM metadata collection instruction, extracting the metadata items to be collected and the target CIM data source from the CIM metadata collection instruction; Determine a target collection rule corresponding to the metadata item to be collected based on the metadata item to be collected, the target CIM data source and a preset CIM metadata collection rule library; According to the target collection rule, CIM metadata corresponding to the metadata item to be collected is collected from the target CIM data source.

[0007] In one embodiment, the step of determining the target collection rule corresponding to the metadata item to be collected based on the metadata item to be collected, the target CIM data source and a preset CIM metadata collection rule library includes: From a plurality of preset CIM metadata collection rule bases, determining a CIM metadata collection rule base that matches the data source type of the target CIM data source as a target rule base; Based on the target rule library, a target collection rule corresponding to the metadata item to be collected is determined.

[0008] In one embodiment, the step of determining the target collection rule corresponding to the metadata item to be collected based on the target rule library includes: Determining the metadata layer of the metadata item to be collected according to the data source type of the target CIM data source; From the target rule library, determine the CIM metadata collection rule that matches the metadata layer as the first collection rule to be adjusted; According to the metadata item to be collected, the metadata item is adjusted for the first collection rule to be adjusted to obtain a target collection rule.

[0009] In one embodiment, the step of determining the target CIM metadata collection rule based on the metadata item to be collected, the target CIM data source and a preset CIM metadata rule base includes: From a preset CIM metadata collection rule library, determining a CIM metadata collection rule that matches the metadata item to be collected as a second collection rule to be adjusted; According to the data source type of the target CIM data source, the data source type of the second acquisition rule to be adjusted is adjusted to obtain the target acquisition rule.

[0010] In one embodiment, the step of determining the target CIM metadata collection rule based on the metadata item to be collected, the target CIM data source and a preset CIM metadata rule base includes: Determining the metadata layer of the metadata item to be collected according to the data source type of the target CIM data source; From a preset CIM metadata collection rule library, determine a CIM metadata collection rule that matches the metadata layer as a third collection rule to be adjusted; According to the metadata item to be collected, adjusting the metadata item of the third collection rule to be adjusted to obtain a fourth collection rule to be adjusted; According to the data source type of the target CIM data source, the data source type of the fourth acquisition rule to be adjusted is adjusted to obtain a target acquisition rule.

[0011] In one embodiment, the CIM metadata management system includes a CIM metadata extension module, and the method further includes: After detecting a CIM metadata extension instruction for a target metadata set, extracting metadata items to be extended and a target extension method from the CIM metadata extension instruction, wherein the target extension method is manual editing, data mining, or internal system data synchronization; The extended metadata corresponding to the metadata item to be extended is obtained through the target extension method, and the extended metadata is updated to the target metadata set.

[0012] In one embodiment, the CIM metadata management system includes a CIM metadata collection plan page, and the method further includes: Acquire a CIM metadata collection plan developed through the CIM metadata collection plan page, wherein the CIM metadata collection plan includes metadata items to be collected, target CIM data sources, and a collection period; According to the collection cycle, a CIM metadata collection instruction for collecting metadata for the metadata items to be collected in the target CIM data source is generated regularly.

[0013] In one embodiment, the CIM metadata management system includes a CIM metadata visualization module, and the method further includes: After detecting the CIM metadata visualization instruction for the target metadata set, the knowledge graph of the target metadata set is constructed by the CIM metadata visualization module, and the constructed knowledge graph is visualized.

[0014] In addition, to achieve the above-mentioned purpose, the present application also provides a computing service device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the CIM metadata collection method as described above are implemented.

[0015] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the CIM metadata collection method as described above are implemented.

[0016] The present application provides a CIM metadata collection method, a computing service device and a computer program product, and relates to the field of CIM technology. The method is applied to a CIM metadata management system. After detecting a CIM metadata collection instruction, the method extracts the metadata items to be collected and the target CIM data source from the CIM metadata collection instruction, and then determines the target collection rule corresponding to the metadata items to be collected based on the metadata items to be collected, the target CIM data source and the preset CIM metadata collection rule library. Finally, according to the target collection rule, the CIM metadata corresponding to the metadata items to be collected is collected from the target CIM data source, so that the present application can automatically select appropriate CIM metadata collection rules from the preset CIM metadata collection rule library according to the changing CIM metadata collection business needs, which is used to meet the metadata item collection tasks of the new business needs, thereby eliminating the need for programmer intervention, and eliminating the need to wait for the development of new scripts or the maintenance and update of old scripts. It can respond to new business needs in a timely manner and quickly complete the metadata collection work, thereby solving the technical problem in the related technology that when the business needs of CIM metadata collection change, it is necessary to wait for the development of new scripts or the maintenance and update of old scripts, resulting in slow response speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

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

[0019] Figure 1 This is a flow chart of the CIM metadata collection method in an embodiment of the present application; Figure 2 This is a schematic diagram of the first process for determining target acquisition rules in an embodiment of the present application; Figure 3 A schematic diagram of the adjustment process of the collection rules in the embodiment of the present application; Figure 4 A second flow chart of determining target acquisition rules in an embodiment of the present application; Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the CIM metadata collection method in the embodiment of the present application.

[0020] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0021] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0022] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0023] At present, the metadata collection of CIM (City Information Modeling) mainly relies on programmers to customize and develop scripts for the required metadata items according to the business needs of metadata collection, so as to realize the automated collection of CIM metadata.

[0024] However, this approach usually requires programmers to intervene when business requirements change, develop new scripts for new business requirements or maintain and update old scripts, and cannot respond to CIM metadata collection services in a timely manner.

[0025] The main solution of the present application is a CIM metadata collection method, which is applied to a CIM metadata management system, comprising: after detecting a CIM metadata collection instruction, extracting metadata items to be collected and a target CIM data source from the CIM metadata collection instruction; determining a target collection rule corresponding to the metadata items to be collected based on the metadata items to be collected, the target CIM data source and a preset CIM metadata collection rule library; and collecting CIM metadata corresponding to the metadata items to be collected from the target CIM data source according to the target collection rule.

[0026] The present application can automatically select appropriate CIM metadata collection rules from a preset CIM metadata collection rule library according to the changing CIM metadata collection business needs, and can be used to meet the metadata item collection tasks of new business needs, thereby eliminating the need for programmer intervention and waiting for the development of new scripts or maintenance and updates of old scripts. It can respond to new business needs in a timely manner and quickly complete metadata collection work, thereby solving the technical problem in the related technology that when the business needs for CIM metadata collection change, it is necessary to wait for the development of new scripts or maintenance and updates of old scripts, resulting in slow response speed.

[0027] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0028] Please refer to Figure 1 , Figure 1 Schematic diagram of the process of CIM metadata collection method in the embodiment of the present application.

[0029] In this embodiment, the CIM metadata collection method is applied to the CIM metadata management system, and the method includes steps S100 to S300: Step S100, after detecting a CIM metadata collection instruction, extracting metadata items to be collected and a target CIM data source from the CIM metadata collection instruction; It should be noted that the CIM metadata collection instruction is a command for triggering the CIM metadata management system to start executing the CIM metadata collection task. The metadata items to be collected refer to the metadata items to be collected, and the target CIM data source refers to the CIM data source to be collected.

[0030] It is easy to understand that the CIM metadata collection instruction can specify to trigger the CIM metadata management system to collect metadata for a specific metadata item in a CIM data source by limiting the metadata items to be collected and the target CIM data source.

[0031] In this embodiment, the CIM metadata instruction may be an operation from a user interface, or may be generated by other automated processes.

[0032] Exemplarily, in a feasible implementation manner, the CIM metadata management system includes a CIM metadata collection plan page, and the method further includes steps A10 to A20: Step A10, obtaining a CIM metadata collection plan developed through a CIM metadata collection plan page, wherein the CIM metadata collection plan includes metadata items to be collected, target CIM data sources, and a collection cycle; It should be noted that the CIM metadata collection plan page is a user interface or tool in the CIM metadata management system that allows business personnel to develop a detailed CIM metadata collection plan. It provides a graphical or form-based operating environment that allows users to easily specify metadata items to be collected, select target CIM data sources, and set parameters such as the collection cycle. The CIM metadata collection plan refers to a specific task profile created by business personnel through the CIM metadata collection plan page. The CIM metadata collection plan records in detail which metadata items need to be collected from which CIM data source, as well as the collection schedule (such as daily, weekly or monthly).

[0033] This implementation introduces the CIM metadata collection plan page, so that business personnel can easily create and manage complex collection plans without programming knowledge. This intuitive interface design greatly reduces the usage threshold and improves the ease of use and accessibility of the system.

[0034] In this embodiment, business personnel can flexibly adjust various parameters of the collection plan according to specific needs, including the selection of metadata items to be collected, the designation of the target CIM data source, and the setting of the collection cycle, to ensure that each collection can meet the current business needs while avoiding unnecessary waste of resources.

[0035] Step A20: periodically generate CIM metadata collection instructions for collecting metadata for metadata items to be collected in the target CIM data source according to the collection cycle.

[0036] In this embodiment, the CIM metadata management system can automatically trigger the generation of CIM metadata collection instructions according to the preset collection cycle without manual intervention. This method not only ensures the timely update of data, but also reduces the potential error risks caused by manual operations, and improves the reliability and stability of the overall work.

[0037] In this embodiment, by regularly executing collection tasks, the CIM metadata management system can continuously track and update the metadata in the city information model to ensure that the data used is up-to-date and accurate. This is essential to support the long-term development of smart city projects.

[0038] In addition, reasonable collection cycle settings can help optimize the efficiency of system resource usage and avoid occupying too many computing resources in unnecessary time periods. At the same time, business personnel can also dynamically adjust the collection cycle of each metadata item to be collected in each CIM data source according to actual needs to adapt to different business scenarios and load conditions.

[0039] Step S200, determining a target collection rule corresponding to the metadata item to be collected based on the metadata item to be collected, the target CIM data source and a preset CIM metadata collection rule library; It should be noted that the CIM metadata collection rule base is a set of rules that guide the CIM metadata management system to collect metadata in various scenarios. These rules involve how to parse data in a specific format, which fields should be given priority, error handling mechanisms, etc.

[0040] Through the rules stored in the CIM metadata collection rule library, the CIM metadata management system can clearly determine how to collect metadata corresponding to the metadata items to be collected from the target CIM data source, thereby automatically executing the metadata collection task for the metadata items to be collected in the target CIM data source, without the need for programmers to intervene to redevelop new scripts or maintain and update old scripts when business needs change.

[0041] It should also be noted that the target collection rule is a rule for guiding the CIM metadata management system on how to collect metadata corresponding to the metadata item to be collected from the target CIM data source.

[0042] In this embodiment, after external data is connected to the CIM platform, it will be stored in different data sources inside the CIM platform according to its data source. For example, after external data from an external MySQL database is connected to the CIM platform, it will be stored in the MySQL database inside the CIM platform, ensuring the efficiency and consistency of CIM data access and maintaining the consistency of data structure and semantics. Therefore, in this embodiment, the CIM platform stores multiple types of data sources inside, storing data of different formats.

[0043] This embodiment predefines metadata items that can be directly collected from each data source, and layers the metadata items to determine the metadata layer to which each metadata item belongs in each data source.

[0044] Exemplarily, for data sources of relational database type, such as MySQL and PostgreSQL, metadata items can be divided into database layer, data table layer, field layer and record layer. For data sources of spatiotemporal database type, such as Hive, metadata items can be divided into database layer, data table layer, field layer, record layer, spatiotemporal data items, and for data sources of file system type, such as HDFS (Hadoop Distributed File System), metadata items can be divided into folder layer, file layer and spatiotemporal data item layer. For data sources of external third-party system type, such as OGC (Open Geospatial Consortium), metadata items can be divided into API (Application Programming Interface) grouping, API layer and spatiotemporal data item layer.

[0045] In this embodiment, the target CIM data source can be a data source of a relational database type, a data source of a spatiotemporal database type, or a data source of an external third-party system type. In this embodiment, for each type of data source, the metadata layer to which each predefined metadata item belongs is determined. For metadata items in the same metadata layer, the collection rules are generally consistent. A general collection rule can be designed as a template, and then the template can be adaptively modified (also called metadata item adjustment) according to the actual metadata items to obtain the collection rule that can collect the metadata item from the type of data source. Then, according to the specific data source, a suitable collection method (also called data source type adjustment) is selected to implement the collection rule, such as SQL statement, SDK, API request, etc.

[0046] It is understandable that, taking MySQL and PostgreSQL as examples, when selecting the appropriate collection method, although queries are performed through SQL statements, since the specific SQL implemented by these two databases is different, when adjusting the data source type in this embodiment, the final SQL statement determined for the same metadata item may be different.

[0047] In this embodiment, the programmer predefines the metadata items that can be collected from each data source, divides the metadata into layers, and then designs a general collection rule for each metadata layer in each type of data source.

[0048] After obtaining the general collection rules corresponding to each metadata layer in each type of data source, in a first feasible implementation, the general collection rules can be directly stored as CIM metadata collection rules in a preset CIM metadata collection rule library, and then according to the metadata layer of the metadata item to be collected and the data source type of the target CIM data source, the general collection rules applicable to this metadata collection are determined from the CIM metadata collection rule library, and then the general collection rules are adaptively adjusted so that they can effectively guide the CIM metadata management system on how to collect the CIM metadata corresponding to the metadata item to be collected from the target CIM data source.

[0049] Through this implementation, programmers only need to design general collection rules for each metadata layer in each type of data source, and provide the logic of how to adaptively adjust the general rules according to the metadata layer of the metadata item to be collected and the data source type of the target CIM data source. The CIM metadata management system can automatically realize the dynamic generation of target collection rules, which greatly reduces the engineering workload of programming development. When there are new undefined metadata items that need to be included in the system, it is only necessary to set the metadata layer to which it belongs in each type of data source, and the system can realize the collection task of the metadata item under the original box selection.

[0050] In a second feasible implementation, it is also possible to directly specify the collection rules for each metadata item from each CIM data source and store them in a preset CIM metadata collection rule library, and then directly match the corresponding target collection rules from the CIM metadata collection rules based on the identifier of the metadata item to be collected and the identifier of the target CIM data source.

[0051] Through this implementation, the CIM metadata management system does not need to adaptively adjust the collection rules, but directly matches the target collection rules, and then applies the target collection rules to perform the corresponding CIM metadata collection operation, which makes the overall response speed faster.

[0052] In one example, if Figure 2 As shown, step S200 may include steps S210 to S220: Step S210, determining a CIM metadata collection rule base that matches the data source type of the target CIM data source as a target rule base from among a plurality of preset CIM metadata collection rule bases; Step S220: determining the target collection rule corresponding to the metadata item to be collected based on the target rule library.

[0053] In this embodiment, a CIM metadata collection rule base is preset for each of the four types of data sources, namely, relational database, spatiotemporal database, file system and external third-party system, and the corresponding CIM metadata collection rules are stored respectively. Then, in actual application, the target CIM data source is first determined to be one of the above four types of data sources according to its data source type. For example, if the data source type of the target CIM data source is MySQL, it is determined that it belongs to a relational database, and the CIM metadata collection rule base corresponding to the relational database is selected as the target rule base, and the CIM metadata collection rule matching the metadata item to be collected is obtained from the target rule base.

[0054] It is not difficult to understand that when the target rule base stores general collection rules, it is necessary to change the general collection rules into templates and make adaptive adjustments to obtain target collection rules that can truly guide the CIM metadata management system on how to collect the CIM metadata corresponding to the metadata item to be collected from the target CIM data source. When the target rule base stores collection rules that can clearly guide the CIM metadata management system on how to collect CIM metadata corresponding to a metadata item from a certain data source, it is necessary to lock the target collection rules from the target rule base based on both the identifier of the metadata item to be collected and the data source type (or identifier) ​​of the target CIM data source.

[0055] Specifically, Figure 3As shown, step S220 may include steps S221 to S223: Step S221, determining the metadata layer of the metadata item to be collected according to the data source type of the target CIM data source; Step S222, from the target rule library, determining the CIM metadata collection rule that matches the metadata layer as the first collection rule to be adjusted; Step S223: According to the metadata item to be collected, the metadata item is adjusted for the first collection rule to be adjusted to obtain the target collection rule.

[0056] In this example, the target rule library stores general collection rules. Therefore, it is necessary to first determine which of the four types of data sources the target CIM data source belongs to based on the data source type, so as to determine the metadata layer to which the metadata item to be collected belongs in this type of data source. Then, the CIM metadata collection rule that matches the metadata layer in the target rule library is determined as the first collection rule to be adjusted. Then, the metadata item is adjusted, that is, the metadata item name, identifier and other information in the collection rule are replaced to obtain the final target collection rule.

[0057] In another example, if Figure 4 As shown, step S200 may further include steps S230 to S240: Step S230, determining a CIM metadata collection rule that matches the metadata item to be collected from a preset CIM metadata collection rule library as a second collection rule to be adjusted; Step S240: According to the data source type of the target CIM data source, the data source type of the second collection rule to be adjusted is adjusted to obtain the target collection rule.

[0058] In this example, the CIM metadata collection rules stored in the CIM metadata collection rule library can specify how the CIM metadata management system collects metadata corresponding to specific metadata items from a certain type of data source. Therefore, it is only necessary to adjust the data source type to make it consistent with the target CIM data source, that is, to clarify the specific SQL query statements, API requests, etc., and clarify how to convert the returned metadata format.

[0059] In another example, step S200 may further include steps S250 to S280: Step S250, determining the metadata layer of the metadata item to be collected according to the data source type of the target CIM data source; Step S260, determining a CIM metadata collection rule that matches the metadata layer from a preset CIM metadata collection rule library as a third collection rule to be adjusted; Step S270, adjusting the metadata item of the third collection rule to be adjusted according to the metadata item to be collected, to obtain a fourth collection rule to be adjusted; Step S280: According to the data source type of the target CIM data source, the data source type of the fourth collection rule to be adjusted is adjusted to obtain the target collection rule.

[0060] In this example, the CIM metadata collection rules stored in the CIM metadata collection rule library are general collection rules. Therefore, it is necessary to first determine the metadata layer of the metadata item to be collected, and then obtain the general collection rules corresponding to the metadata layer from the CIM metadata collection rule library, and then adjust the metadata items and data source types in turn to obtain the final target collection rules.

[0061] Step S300 collects CIM metadata corresponding to the metadata item to be collected from the target CIM data source according to the target collection rule.

[0062] In this embodiment, after determining the target collection rule, the CIM metadata management system can automatically collect CIM metadata items corresponding to the metadata items to be collected from the target CIM data source based on the target collection rule, and complete the corresponding CIM metadata collection task.

[0063] After detecting the CIM metadata collection instruction, this embodiment extracts the metadata items to be collected and the target CIM data source from the CIM metadata collection instruction, then determines the target collection rule corresponding to the metadata items to be collected based on the metadata items to be collected, the target CIM data source and the preset CIM metadata collection rule library, and finally collects the CIM metadata corresponding to the metadata items to be collected from the target CIM data source according to the target collection rule, so that this application can automatically select appropriate CIM metadata collection rules from the preset CIM metadata collection rule library according to the changing CIM metadata collection business needs, for the metadata item collection task that meets the new business needs, thereby eliminating the need for programmer intervention and waiting for the development of new scripts or maintenance and update of old scripts, and can respond to new business needs in a timely manner and quickly complete the metadata collection work, thereby solving the technical problem in the related art that when the business needs of CIM metadata collection change, it is necessary to wait for the development of new scripts or maintenance and update of old scripts, resulting in slow response speed.

[0064] Furthermore, in a feasible implementation manner, the CIM metadata management system includes a CIM metadata extension module, and the method further includes steps B10 to B20: Step B10, after detecting the CIM metadata extension instruction for the target metadata set, extracting the metadata items to be extended and the target extension method from the CIM metadata extension instruction, wherein the target extension method is manual editing, data mining or internal system data synchronization; Step B20: acquiring extended metadata corresponding to the metadata item to be extended by means of a target extension method, and updating the extended metadata into the target metadata set.

[0065] In this embodiment, for a metadata set in the CIM metadata management system, when business personnel need to expand it with new metadata items, after specifying the newly expanded metadata items and expansion methods, the metadata corresponding to the newly expanded metadata items can be updated to the metadata set through the CIM metadata expansion module.

[0066] That is, business personnel can designate a certain metadata set as the target metadata set, and set the metadata items that need to be newly extended as the metadata items to be extended. At the same time, they can designate one of the three extension methods, namely manual editing, data mining, or internal system data synchronization, as the target extension method. Based on the CIM metadata extension module, through the target extension method, the metadata corresponding to the metadata item to be extended (extended metadata) is updated to the target metadata set.

[0067] Furthermore, in a feasible implementation manner, the CIM metadata management system includes a CIM metadata visualization module, and the method further includes step C10: Step C10, after detecting the CIM metadata visualization instruction for the target metadata set, constructing a knowledge graph for the target metadata set through the CIM metadata visualization module, and visualizing the constructed knowledge graph.

[0068] In this embodiment, the CIM metadata management system also includes a CIM metadata visualization module, which is used to construct a knowledge graph for the metadata set pointed to by the CIM metadata visualization instruction after receiving the CIM metadata visualization instruction, and visualize the constructed knowledge graph to the user.

[0069] In addition, please refer to Figure 5 , Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the CIM metadata collection method in the embodiment of the present application.

[0070] The present application also provides a computing service device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the steps of the CIM metadata collection method in the above-mentioned embodiment.

[0071] Reference below Figure 5 , which shows a schematic diagram of the structure of a computing service device suitable for implementing the embodiment of the present application. The computing service device in the embodiment of the present application may include but is not limited to a physical server, a virtual machine, a cloud server, or any computing service device capable of implementing the above functions. Figure 5 The computing service device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0072] like Figure 5 As shown, the computing service device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 to a random access memory 1004. Various programs and data required for the operation of the computing service device are also stored in the random access memory 1004. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. An input / output interface 1006 is also connected to the bus. Generally, the following systems can be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD, Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the computing service device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a computing service device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided alternatively.

[0073] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0074] The computing service device provided by the present application adopts the CIM metadata collection method in the above embodiment, which can solve the technical problem in the related technology that when the business demand for CIM metadata collection changes, it is necessary to wait for the development of new scripts or the maintenance and update of old scripts, resulting in slow response speed. Compared with the prior art, the beneficial effects of the computing service device provided by the present application are the same as the beneficial effects of the CIM metadata collection method in the above embodiment, and other technical features in the computing service device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0075] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0076] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the above claims.

[0077] In addition, an embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the CIM metadata collection method in the above embodiment are implemented.

[0078] The computer program product provided by the present application can solve the technical problem in the related art that when the business requirements of CIM metadata collection change, it is necessary to wait for the development of new scripts or the maintenance and update of old scripts, resulting in slow response speed. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the CIM metadata collection method in the above embodiment, which will not be repeated here.

[0079] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A CIM metadata collection method, characterized in that: The method is applied to a CIM metadata management system, and the method comprises: After detecting the CIM metadata collection instruction, extracting the metadata items to be collected and the target CIM data source from the CIM metadata collection instruction; Determine a target collection rule corresponding to the metadata item to be collected based on the metadata item to be collected, the target CIM data source and a preset CIM metadata collection rule library; According to the target collection rule, CIM metadata corresponding to the metadata item to be collected is collected from the target CIM data source.

2. The CIM metadata collection method according to claim 1, characterized in that: The step of determining the target collection rule corresponding to the metadata item to be collected based on the metadata item to be collected, the target CIM data source and a preset CIM metadata collection rule library includes: From a plurality of preset CIM metadata collection rule bases, determining a CIM metadata collection rule base that matches the data source type of the target CIM data source as a target rule base; Based on the target rule library, a target collection rule corresponding to the metadata item to be collected is determined.

3. The CIM metadata collection method according to claim 2, characterized in that: The step of determining the target collection rule corresponding to the metadata item to be collected based on the target rule library includes: Determining the metadata layer of the metadata item to be collected according to the data source type of the target CIM data source; From the target rule library, determine the CIM metadata collection rule that matches the metadata layer as the first collection rule to be adjusted; According to the metadata item to be collected, the metadata item is adjusted for the first collection rule to be adjusted to obtain a target collection rule.

4. The CIM metadata collection method according to claim 1, characterized in that: The step of determining the target CIM metadata collection rule based on the metadata item to be collected, the target CIM data source and a preset CIM metadata rule base includes: From a preset CIM metadata collection rule library, determining a CIM metadata collection rule that matches the metadata item to be collected as a second collection rule to be adjusted; According to the data source type of the target CIM data source, the data source type of the second acquisition rule to be adjusted is adjusted to obtain the target acquisition rule.

5. The CIM metadata collection method according to claim 1, characterized in that: The step of determining the target CIM metadata collection rule based on the metadata item to be collected, the target CIM data source and a preset CIM metadata rule base includes: Determining the metadata layer of the metadata item to be collected according to the data source type of the target CIM data source; From a preset CIM metadata collection rule library, determine a CIM metadata collection rule that matches the metadata layer as a third collection rule to be adjusted; According to the metadata item to be collected, adjusting the metadata item of the third collection rule to be adjusted to obtain a fourth collection rule to be adjusted; According to the data source type of the target CIM data source, the data source type of the fourth acquisition rule to be adjusted is adjusted to obtain a target acquisition rule.

6. The CIM metadata collection method according to any one of claims 1 to 5, characterized in that: The CIM metadata management system includes a CIM metadata extension module, and the method further includes: After detecting a CIM metadata extension instruction for a target metadata set, extracting metadata items to be extended and a target extension method from the CIM metadata extension instruction, wherein the target extension method is manual editing, data mining, or internal system data synchronization; The extended metadata corresponding to the metadata item to be extended is acquired through the target extension method, and the extended metadata is updated into the target metadata set.

7. The CIM metadata collection method according to any one of claims 1 to 5, characterized in that: The CIM metadata management system includes a CIM metadata collection plan page, and the method further includes: Acquire a CIM metadata collection plan developed through the CIM metadata collection plan page, wherein the CIM metadata collection plan includes metadata items to be collected, target CIM data sources, and a collection period; According to the collection cycle, a CIM metadata collection instruction for collecting metadata for the metadata items to be collected in the target CIM data source is generated regularly.

8. The CIM metadata collection method according to any one of claims 1 to 5, characterized in that: The CIM metadata management system includes a CIM metadata visualization module, and the method further includes: After detecting the CIM metadata visualization instruction for the target metadata set, the knowledge graph of the target metadata set is constructed by the CIM metadata visualization module, and the constructed knowledge graph is visualized.

9. A computing service device, characterized in that: The computing service device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the CIM metadata collection method according to any one of claims 1 to 8 when executed by the processor.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the CIM metadata collection method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Data acquisition system and method, electronic equipment and storage medium

    CN115952227A

  • Metadata acquisition method and device, equipment and medium

    CN117667454A

  • Data message generation method and device, equipment, medium and program product

    CN118296028A

  • Data query method and system

    US11250012B1