Metadata updating method and device, equipment and medium
Through the server-side metadata update process, the data type and attributes to be verified, and standard metadata is verified and generated, which solves the problems of low efficiency and uncertainty in the current technology, and achieves more efficient and accurate metadata Data management.
Patent Information
- Application Number
- CN202411187239.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-20
AI Technical Summary
The existing update metadata technology is inefficient and has great uncertainty, and cannot be updated in real time, resulting in poor metadata management efficiency.
The server receives the terminal's update metadata request, determines the data type of the metadata, determines the attribute to be verified based on the corresponding relationship between the configured data type and the attribute to be verified, and verifies the attribute value according to the attribute standard rules, generates standard metadata, and goes to the terminal Send standard metadata and update standard metadata according to update instructions to ensure the accuracy and maintainability of the metadata.
Improve the efficiency and accuracy of metadata updates, reduce the need for manual intervention, and enhance the compatibility and maintainability of the system.
Smart Images

Figure CN119166643A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a method, device, equipment and medium for updating metadata. Background Art
[0002] With the continuous development of computer technology, data has become the core element of decision-making, business promotion and management optimization of various enterprises. In order to ensure the accuracy and security of data and improve the efficiency of data collection, integration and utilization, various industries have established corresponding data standardization systems. Metadata is a kind of data used to describe other data or information. Metadata can provide user-based information and support the system's management and maintenance of data. Therefore, metadata is the key content in the data standardization system.
[0003] When the business of an enterprise changes, the metadata corresponding to the business system of the business will often change. For example, metadata may be added or deleted, or the attribute information of metadata may be changed. In the existing metadata update scheme, the corresponding metadata is usually updated manually based on the business information. However, due to the low efficiency and high uncertainty of the manual metadata update scheme, the existing metadata update technology is poor and needs to be improved. Summary of the invention
[0004] Embodiments of the present application provide a method, apparatus, device, and medium for updating metadata, which are used to improve the accuracy of updating metadata.
[0005] In a first aspect, the present application provides a method for updating metadata, the method comprising: a server receiving a request for updating metadata from a terminal, the request for updating metadata including attribute information of the metadata. Determining the data type of the metadata, and determining the attribute to be verified of the metadata according to the correspondence between the configured data type and the attribute to be verified. Verifying the attribute values of the attribute to be verified in sequence according to the attribute standard rule, wherein when there is an attribute value in the attribute to be verified that does not satisfy the attribute standard rule, the attribute value that does not satisfy the attribute standard rule is changed to a default value. Generating standard metadata of the metadata according to the attribute information of the metadata. Sending the standard metadata to the terminal. Updating the standard metadata according to the acquired update indication information.
[0006] By adopting this method, the attributes to be verified of the metadata can be determined according to the data type of the metadata, thereby avoiding the verification of all the attributes of the metadata, improving the efficiency of verifying the attributes of the metadata, and improving the efficiency of updating the metadata. Furthermore, by verifying the attributes according to the attribute standard rules corresponding to the attributes to be verified, the accuracy of verifying whether the attributes meet the requirements can be improved. Generating standard metadata according to the attribute information of the metadata and updating the standard metadata can ensure the maintainability of the metadata in the future.
[0007] In a possible embodiment, the attribute information of the metadata includes: defining the field name, length, whether it is required, data type, description value, constraint conditions, and default value.
[0008] In a possible embodiment, the update indication information is sent to the server according to a preset period. Alternatively, the update indication information is sent to the server according to an instruction of a user.
[0009] With this design, different methods are used to send update indication information to the server, which can improve the flexibility of updating metadata.
[0010] In a possible embodiment, before updating the standard metadata according to the acquired update indication information, the method further includes: determining a database storing the standard metadata, and performing data format conversion on the standard metadata according to a correspondence between a database type and a data format.
[0011] With this design, the data of the standard metadata is converted according to the type of the standard metadata database. The converted standard metadata meets the format of the database, so that the standard metadata can be stored in multiple types of databases, thereby improving the compatibility of the system.
[0012] In a second aspect, the present application provides a device for updating metadata, the device comprising: a communication module, for receiving a request for updating metadata from a terminal, the request for updating metadata including attribute information of the metadata. A processing module, for determining the data type of the metadata, and determining the attribute to be verified of the metadata according to the correspondence between the configured data type and the attribute to be verified. The processing module is also used to verify the attribute values of the attribute to be verified in sequence according to the attribute standard rule, wherein when there is an attribute value in the attribute to be verified that does not satisfy the attribute standard rule, the attribute value that does not satisfy the attribute standard rule is changed to a default value. The processing module is also used to generate standard metadata of the metadata according to the attribute information of the metadata. The communication module is also used to send the standard metadata to the terminal. The processing module is also used to update the standard metadata according to the acquired update indication information.
[0013] In a possible embodiment, the attribute information of the metadata includes: defining the field name, length, whether it is required, data type, description value, constraint conditions, and default value.
[0014] In a possible embodiment, the update indication information is sent to the server according to a preset period. Alternatively, the update indication information is sent to the server according to an instruction of a user.
[0015] In a possible embodiment, before updating the standard metadata according to the acquired update indication information, the processing module is further used to: determine a database storing the standard metadata, and convert the data format of the standard metadata according to the correspondence between the database type and the data format.
[0016] In a third aspect, the present application provides an electronic device, including:
[0017] A memory for storing program instructions;
[0018] The processor is used to call the program instructions stored in the memory, and execute the steps included in any one of the methods in the first aspect according to the obtained program instructions.
[0019] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes any one of the methods described in the first aspect.
[0020] In a fifth aspect, the present application provides a computer program product, comprising: a computer program code, when the computer program code is run on a computer, the computer executes any one of the methods described in the first aspect.
[0021] The technical effects brought about by the second to fifth aspects and any one of their designs can refer to the technical effects brought about by the corresponding designs in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flowchart of a method for updating metadata provided in an embodiment of the present application;
[0023] Figure 2 A schematic diagram of the structure of a device for updating metadata provided in an embodiment of the present application;
[0024] Figure 3 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0026] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
[0027] In the technical solution of this application, the collection, dissemination, and use of data are in compliance with the requirements of relevant national laws and regulations.
[0028] Before introducing the method for updating metadata provided by the embodiment of the present application, in order to facilitate understanding, the technical background of the embodiment of the present application is first introduced in detail below.
[0029] How to update metadata is the key point in building a data standardization system. In the prior art, the scheme for updating metadata is usually determined manually based on the business information to determine the attribute information of the metadata corresponding to the business. For example, a technician can write the metadata corresponding to the business information and the attribute information of the metadata in an Excel file based on the business information, and import the written Excel file into the corresponding business system to maintain the metadata. Alternatively, the technician can directly add, delete or change the metadata and the attribute information of the metadata in the business system to update the metadata. In other words, the existing technical scheme for updating metadata is usually to update the metadata manually.
[0030] However, the manual metadata updating solution has problems such as low efficiency, high uncertainty and inability to update metadata in real time, which needs to be improved.
[0031] In order to solve the above-mentioned defects, the embodiments of the present application provide a method, apparatus, device and medium for updating metadata, which are used to improve the efficiency and accuracy of updating metadata.
[0032] In the present application, the method adopted includes: the server receives a request for updating metadata from a terminal, and the request for updating metadata includes attribute information of the metadata. The data type of the metadata is determined, and the attribute to be verified of the metadata is determined according to the correspondence between the configured data type and the attribute to be verified. The attribute values of the attribute to be verified are verified in sequence according to the attribute standard rule, wherein when there is an attribute value in the attribute to be verified that does not meet the attribute standard rule, the attribute value that does not meet the attribute standard rule is changed to a default value. Standard metadata of the metadata is generated according to the attribute information of the metadata. The standard metadata is sent to the terminal. The standard metadata is updated according to the acquired update indication information.
[0033] By adopting this method, the attributes to be verified of the metadata can be determined according to the data type of the metadata, thereby avoiding the verification of all the attributes of the metadata, improving the efficiency of verifying the attributes of the metadata, and improving the efficiency of updating the metadata. Furthermore, by verifying the attributes according to the attribute standard rules corresponding to the attributes to be verified, the accuracy of verifying whether the attributes meet the requirements can be improved. Generating standard metadata according to the attribute information of the metadata and updating the standard metadata can ensure the maintainability of the metadata in the future.
[0034] In addition, the subject used to execute the method described in this application may be a server, or may be a processing device in a computer system used to execute the method described in this application, such as a processor or a processing module, etc., which is not specifically limited in this application.
[0035] Figure 1 A flowchart of a method for updating metadata provided by an embodiment of the present invention. Taking a server and a terminal as the execution subject as an example, the process may include the following steps:
[0036] S101, a terminal sends a request for updating metadata to a server. Correspondingly, the server receives the request for updating metadata from the terminal. The request for updating metadata includes attribute information of the metadata.
[0037] As an example, a user may trigger the terminal to send a request to update metadata to the server through an input device (such as a keyboard, a touch screen, etc.). Optionally, the metadata attribute information included in the request to update metadata may include at least one of the definition field name of the metadata, the length of the metadata, whether the metadata is a required item, the data type of the metadata, the description value of the metadata, the constraint condition of the metadata, and the default value of the metadata. It is understandable that the attribute information of the metadata may also include other attribute information, which is not specifically limited in this application.
[0038] Exemplarily, the user can input the corresponding attribute information of metadata through the input device of the terminal according to business needs. For example, the user inputs the standard text of metadata to the terminal, and the terminal can analyze the standard text of metadata through a tool with a text analysis function to obtain the attribute information of metadata corresponding to the standard text of metadata. For another example, the user can select or input metadata and / or attribute information of metadata corresponding to business needs in the metadata configuration template. Accordingly, after obtaining the metadata and / or attribute information of metadata, the terminal can generate a request for the metadata according to the metadata and / or attribute information of metadata, and send the request for the metadata to the server.
[0039] Optionally, the request to update metadata may also include an update type. The update type may include adding new metadata, modifying metadata, and deleting metadata. It is understandable that the server can accurately perform corresponding operations according to the update type of the updated metadata. For example, when the update type is to delete metadata, the server can directly delete the metadata from the database. For another example, when the update type is to add new metadata, the server can check for duplicates in the database based on the attribute information of the metadata, and add the metadata to the database if there is no duplicate metadata.
[0040] S102: The server determines the data type of the metadata according to the request for updating the metadata, and determines the attribute to be verified of the metadata according to the corresponding relationship between the configured data type and the attribute to be verified.
[0041] In one or more embodiments, the metadata in the present application may include metadata of multiple different data types. Different data types correspond to different data type identification information, that is, the identification information of a data type is unique.
[0042] After receiving the request to update metadata, the server can determine the data type of the metadata according to the identification information of the data type carried in the request. For example, the information carried in the request to update metadata includes the identification information of the data type of the metadata, and after obtaining the identification information, the server can determine the data type of the metadata according to the correspondence between the pre-stored data type and the identification information. Alternatively, the attribute information included in the request to update metadata includes the data type and / or the data type identification, and the server can obtain the data type and / or the data type identification of the metadata from the attribute information of the metadata.
[0043] Furthermore, the server may determine the attribute to be verified from the attribute information of the metadata according to the correspondence between the data type and the attribute to be verified.
[0044] It is understandable that in the present application, different data types may correspond to different attributes to be verified. Different data types may correspond to the same attributes to be verified. That is, each data type corresponds to an attribute to be verified.
[0045] Exemplarily, the attributes of metadata in this application may have corresponding labels, different labels may correspond to different data types, and the attributes of different labels may be the attributes to be verified of the data type corresponding to the label. For example, the labels corresponding to the attribute information of metadata include a, b, and c, and the data types include A, B, and C. Among them, a corresponds to A, b corresponds to B, and c corresponds to C. The attribute with label a is the attribute to be verified of data type A, the attribute with label b is the attribute to be verified of data type B, and the attribute with label c is the attribute to be verified of data type C.
[0046] Optionally, the attribute to be verified corresponding to the metadata may be set according to business requirements. For example, attribute 1 is set as the attribute to be verified according to business requirements, and when attribute 1 is included in the attributes of the metadata, attribute 1 needs to be verified.
[0047] It is understandable that this method can be used to determine the corresponding attributes to be verified for metadata of different data types without verifying all attributes of the metadata. While ensuring that the attribute values of the metadata attributes meet the set rules, the efficiency of verifying the attributes of the metadata is improved.
[0048] S103, the server verifies the attribute value of the attribute to be verified according to the attribute standard rule.
[0049] In one or more embodiments, the attribute standard rules may be pre-set according to business requirements. For example, the attribute standard rules may be generated according to a pre-set data dictionary. The attribute standard rules may also be determined according to the attribute values of the attribute information of multiple historical metadata. For example, the attribute information of multiple historical metadata may be input into a data model, and the data model outputs the attribute standard rules corresponding to the attribute.
[0050] In one or more embodiments, the attribute standard rules corresponding to the attributes of metadata of different data types may be different. For example, the attribute standard rule corresponding to the data length attribute of metadata of data type A may be 10 bytes, and the attribute standard rule corresponding to the data length attribute of metadata of data type B may be 5 bytes. It is understandable that the attribute standard rules corresponding to the attributes of metadata of different data types may also be the same.
[0051] When the server verifies the attribute value of the attribute to be verified according to the attribute standard rule, if there is an attribute value in the attribute to be verified that does not meet the attribute standard rule, the server can change the attribute value that does not meet the attribute standard rule to the default value. The default value of each attribute can be pre-set. For example, the attribute standard rule of the "Is it required" attribute corresponding to the data type A is "Yes". When the data type of the metadata is A and the attribute value of the "Is it required" attribute is "No", the server can change the attribute value of the "Is it required" attribute of the metadata to "Yes". For another example, the attribute standard rule of the "Length" attribute is that the data length is not greater than 10 bytes, and the default value of the "Length" attribute is 5 bytes. When the attribute value of the "Length" attribute of the metadata is greater than 10 bytes, the server can change the attribute value of the "Length" attribute to 5 bytes.
[0052] Optionally, when there is an attribute value in the attribute to be verified that does not meet the attribute standard rule of the attribute, the server can also send the terminal information that the attribute value of the attribute does not meet the attribute standard rule. For example, when the server is in the process of verifying the attribute to be verified, when the attribute value of a certain attribute to be verified does not meet the attribute standard rule, the server can immediately send the information to the terminal, thereby reminding the user in time. Alternatively, after verifying all attributes, the server can also send all information that does not meet the attribute standard rule to the terminal at the same time, thereby reducing the number of communications between the server and the terminal and reducing the communication volume. Among them, the form of sending the information that does not meet the attribute standard rule can be set according to the importance of the metadata.
[0053] Understandably, when the terminal receives information that the attribute value of a to-be-verified attribute does not satisfy the attribute standard rule, the user can modify the attribute value of the attribute through the terminal, so that the attribute value of the modified attribute satisfies the attribute annotation rule. After the user modifies the attribute value of the attribute, the server can verify the attribute value of the attribute again according to the attribute standard rule to ensure that the attribute value of the attribute satisfies the attribute standard rule.
[0054] In addition, when the attribute to be verified is not included in the attribute standard rules, the server can send a reminder message to the terminal. The user can obtain the prompt information through the terminal and process the attribute according to the prompt information. The processing method is, for example, to determine that the field name and / or identifier of the attribute is wrong, and change the field name and / or identifier of the attribute. The processing method can also be to determine that the attribute is a new attribute, and add the attribute standard rules of the attribute to the attribute standard rules. For example, the attribute standard rules are generated based on the data dictionary. When a new attribute appears, the attribute standard rules of the attribute can be added to the attribute standard rules, and the attribute standard rules of the attribute can be added to the data dictionary at the same time to ensure the consistency and availability of subsequent attribute standard rules.
[0055] S104: The server generates standard metadata of the metadata according to the attribute information of the metadata.
[0056] In one or more embodiments, after the server completes the attribute verification of the metadata, the standard metadata of the metadata can be generated according to the attribute information of the metadata. For example, after the server completes the attribute verification of the metadata, the metadata can be packaged and the metadata can be packaged into standard metadata. Alternatively, the server can process the attribute information of the metadata according to a preset standard metadata template to obtain the standard metadata of the metadata.
[0057] It can be understood that the completion of the attribute verification of the metadata by the server means that the server determines that the attribute values of the attributes of the metadata all meet the attribute standard rules.
[0058] S105: The server sends standard metadata to the terminal.
[0059] In one or more embodiments, after the server generates the standard metadata in step S104, the server may send the standard metadata to the terminal. Accordingly, the terminal receives the standard metadata from the server. The terminal may display the standard metadata generated by the server to the user so that the user can confirm that the standard metadata meets the business requirements and ensure the accuracy of the standard metadata.
[0060] For example, after receiving the standard metadata from the server, the terminal may display the standard metadata to the user in a table form. Alternatively, the terminal may display the standard metadata to the user in a text description form. It is understandable that the terminal may also display the standard metadata to the user in other forms, and this application will not cite examples one by one.
[0061] In one or more embodiments, the server may send metadata to the terminal in the form of a file. When generating standard metadata, the server may generate a standard metadata file that supports the system according to the system type supported by the terminal. The server may also generate metadata files in different formats according to business needs. For example, the format of the metadata file may be "xlsx", "doc", "docx", "pdf", or "txt". It is understandable that the format of the metadata file may also be in other formats, which is not specifically limited in this application.
[0062] Based on this embodiment, the server can generate metadata files that support different systems and different formats according to needs, improve the flexibility of generating metadata files, ensure that business needs are met, and increase the maintainability of metadata.
[0063] S106: The server updates the standard metadata according to the acquired update indication information.
[0064] As an example, the update indication information may be sent to the server according to a preset period. The update indication information may be generated by the terminal and sent to the server according to a preset period. Alternatively, the update indication information may be generated by other devices and sent to the server. For example, the present application may also include a management device, which may periodically send update indication information to the server. Accordingly, the server may receive the update indication information and change the standard metadata according to the update indication information. It is understandable that the update indication information obtained in this manner may be used to indicate the update of multiple standard metadata. That is, the server may update all standard metadata to be updated according to the update indication information.
[0065] As another example, the update indication information may be sent to the server according to the user's instructions. For example, during the execution of step S105, when the user determines that the standard metadata meets the business requirements, the user may send a confirmation indication information to the server through the terminal. The server may generate update indication information for updating the standard metadata according to the confirmation indication information, and change the standard metadata according to the update indication information. It is understandable that the update indication information obtained in this manner may be used to indicate the update of the specified standard metadata. That is, the update indication information corresponds to the standard metadata one-to-one. The server may update the standard metadata according to the correspondence between the update indication information and the standard metadata.
[0066] For another example, a user may send update indication information to a server through a terminal, and the server may receive the update indication information and change the standard metadata according to the update indication information. It is understandable that the update indication information obtained in this way may be used to indicate the update of multiple standard metadata. That is, the server may update all the standard metadata to be updated according to the update indication information.
[0067] The following is an introduction to the server update standard metadata:
[0068] In one or more embodiments, before updating the standard metadata according to the acquired update indication information, the server may also determine a database storing the standard metadata, and perform data format conversion on the standard metadata according to the correspondence between the database type and the data format. The data format conversion may be, for example, encoding conversion, date and time format conversion, etc.
[0069] In one or more embodiments, there may be a correspondence between the data type in the present application and the database used to store metadata. The server may determine the database corresponding to the standard metadata to be updated based on the correspondence between the data type and the database, and store the standard metadata in the corresponding database to facilitate the management of standard metadata of different data types.
[0070] In one or more embodiments, the server may store the standard metadata to be updated in a database with more remaining space according to the usage of multiple databases, thereby avoiding a high storage rate of a certain database.
[0071] In one or more embodiments, the present application may further include a metadata platform. After the server generates standard metadata, the standard metadata may be pre-stored in the metadata platform, or the standard metadata may be sent to the metadata platform. When the server receives the update instruction information, the standard metadata in the metadata platform may be updated to the corresponding database. The specific implementation method of the server updating the standard metadata can be found in the above content, which will not be repeated here.
[0072] In addition, after the server stores the standard metadata in the corresponding database, the user can query the metadata in the database according to the key information, thereby realizing the function of reverse query according to the metadata name or data type and other information. Among them, the metadata query method may include a basic query method and an advanced query method. The basic query method may refer to querying metadata from the database according to pre-set keywords. The advanced query method may refer to the user customizing the query conditions according to the needs. The query conditions are, for example, data type, metadata update time, etc. The user can generate a corresponding query statement according to the customized query conditions to improve the accuracy of the query metadata.
[0073] Based on the above content and the same concept, the present application provides a device for updating metadata. Figure 2 As shown, the device includes a communication module 201 and a processing module 202 .
[0074] The communication module 201 is used to receive a request for updating metadata from a terminal, and the request for updating metadata includes attribute information of the metadata. The processing module 202 is used to determine the data type of the metadata, and determine the attribute to be verified of the metadata according to the correspondence between the configured data type and the attribute to be verified. The processing module 202 is also used to verify the attribute values of the attribute to be verified in sequence according to the attribute standard rule, wherein when there is an attribute value in the attribute to be verified that does not meet the attribute standard rule, the attribute value that does not meet the attribute standard rule is changed to a default value. The processing module 202 is also used to generate standard metadata of the metadata according to the attribute information of the metadata. The communication module 201 is also used to send the standard metadata to the terminal. The processing module 202 is also used to update the standard metadata according to the acquired update indication information.
[0075] In a possible embodiment, the attribute information of the metadata includes: defining the field name, length, whether it is required, data type, description value, constraint conditions, and default value.
[0076] In a possible embodiment, the update indication information is sent to the server according to a preset period. Alternatively, the update indication information is sent to the server according to an instruction of a user.
[0077] In a possible embodiment, before updating the standard metadata according to the acquired update indication information, the processing module 202 is further used to: determine a database storing the standard metadata, and convert the data format of the standard metadata according to the correspondence between the database type and the data format.
[0078] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.
[0079] The electronic device in the embodiment of the present application may include a processor 301. The processor 301 is the control center of the device, and various interfaces and lines can be used to connect various parts of the device, by running or executing instructions stored in the memory 303 and calling data stored in the memory 303. Optionally, the processor 301 may include one or more processing units, and the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 301. In some embodiments, the processor 301 and the memory 303 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.
[0080] The processor 301 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The method steps disclosed in the embodiments of the present application may be directly executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0081] In the embodiment of the present application, the memory 303 stores instructions that can be executed by at least one processor 301. The at least one processor 301 can be used to execute the method steps disclosed in the embodiment of the present application by executing the instructions stored in the memory 303.
[0082] The memory 303 is a non-volatile computer-readable storage medium, which can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 303 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 303 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 303 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0083] In the embodiment of the present application, the device may further include a communication interface 302 , through which the electronic device may transmit data.
[0084] Optional, can be Figure 3 The processor 301 (or the processor 301 and the communication interface 302) implements Figure 2 The processing module 202 and / or the communication module 201 shown, that is, the actions of the processing module 202 and / or the communication module 201 can be executed by the processor 301 (or the processor 301 and the communication interface 302).
[0085] Based on the same inventive concept, the embodiment of the present application also provides a computer-readable storage medium, which may store instructions. When the instructions are executed on a computer, the computer executes the operation steps provided in the above method embodiment. The computer-readable storage medium may be Figure 3 The memory 303 is shown.
[0086] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0087] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0088] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0089] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0090] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for updating metadata, characterized in that: The method comprises: The server receives a request for updating metadata from a terminal, wherein the request for updating metadata includes attribute information of the metadata; Determine the data type of the metadata, and determine the attribute to be verified of the metadata according to the correspondence between the configured data type and the attribute to be verified; The attribute values of the attributes to be verified are verified in sequence according to the attribute standard rules, wherein: When there is an attribute value in the attribute to be verified that does not meet the attribute standard rule, the attribute value that does not meet the attribute standard rule is changed to a default value; generating standard metadata of the metadata according to the attribute information of the metadata; sending the standard metadata to the terminal; The standard metadata is updated according to the acquired update indication information.
2. The method according to claim 1, characterized in that The attribute information of the metadata includes: Define the field name, length, required or not, data type, description value, constraints, and default value.
3. The method according to claim 1, characterized in that The update indication information is sent to the server according to a preset period; Alternatively, the update indication information is sent to the server according to an instruction of a user.
4. The method according to claim 1, characterized in that Before updating the standard metadata according to the acquired update indication information, the method further includes: A database storing the standard metadata is determined, and data format conversion is performed on the standard metadata according to a correspondence between a database type and a data format.
5. A device for updating metadata, characterized in that: The device comprises: A communication module, configured to receive a request for updating metadata from a terminal, wherein the request for updating metadata includes attribute information of the metadata; A processing module, used to determine the data type of the metadata, and determine the attribute to be verified of the metadata according to the correspondence between the configured data type and the attribute to be verified; The processing module is further used to verify the attribute values of the attributes to be verified in sequence according to the attribute standard rules, wherein: When there is an attribute value in the attribute to be verified that does not meet the attribute standard rule, the attribute value that does not meet the attribute standard rule is changed to a default value; The processing module is further used to generate standard metadata of the metadata according to the attribute information of the metadata; The communication module is further used to send the standard metadata to the terminal; The processing module is further used to update the standard metadata according to the acquired update indication information.
6. The device according to claim 5, characterized in that The attribute information of the metadata includes: Define the field name, length, required or not, data type, description value, constraints, and default value.
7. The device according to claim 5, characterized in that The update indication information is sent to the server according to a preset period; Alternatively, the update indication information is sent to the server according to an instruction of a user.
8. The device according to claim 5, characterized in that Before updating the standard metadata according to the acquired update indication information, the processing module is further used to: A database storing the standard metadata is determined, and data format conversion is performed on the standard metadata according to a correspondence between a database type and a data format.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method according to any one of claims 1 to 4.
10. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is run on a computer, the computer is enabled to execute the method according to any one of claims 1 to 4.
