Data visualization construction method and device based on element marking and readable medium

Through the data visualization construction method based on feature marking, the problem that traditional tools are difficult to meet complex customization needs is solved, metadata-driven dynamic visual rendering is realized, and the quality and efficiency of data visualization are improved.

CN119691247APending Publication Date: 2025-03-25XIAMEN MEIYABAIKE INFORMATION SECURITY RES INST CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411456461.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-07-30
Filing Date
2024-10-18
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

Traditional data visualization tools are difficult to meet the complex and changeable customization needs of users, and tools in the new era ignore metadata when relying on machine learning algorithms, and cannot meet the more standardized, unified, dynamic and safe display requirements.

Method used

Using a data visualization construction method based on feature tags, the first and second elements are defined by obtaining and marking metadata elements and describing attributes, and the visualization strategy is matched and rendered based on these elements.

Benefits of technology

It improves the quality, efficiency, standardization and reusability of component development, realizes real-time and dynamic visual rendering of data, reduces understanding costs, and improves the effect and efficiency of data visual rendering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119691247A_ABST
    Figure CN119691247A_ABST
Patent Text Reader

Abstract

The invention discloses a data visualization construction method and device based on element marking and a readable medium. The data visualization construction method comprises the steps that metadata corresponding to a certain service are obtained, and metadata elements and metadata element description attributes in the metadata corresponding to the metadata are determined; defining a first element used for marking the metadata element, a second element used for marking the description attribute of the metadata element and a visualization strategy; respectively marking the metadata element and the metadata element description attribute in the metadata corresponding to a certain business by adopting the first element and the second element to obtain marked metadata; and obtaining to-be-rendered data, analyzing the to-be-rendered data according to the marked metadata to obtain a first element, a second element and a value of the second element corresponding to the to-be-rendered data, matching the first element, the second element and the value of the second element with a visualization strategy to obtain a matching result, and performing visual rendering on the to-be-rendered data according to the matching result. According to the method, the elements are taken as the core, and real-time and dynamic visual rendering of the data is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a field, and in particular to a method, a device and a readable medium for constructing data visualization based on element marking. Background Art

[0002] Data visualization is the process of converting data into visual representations such as charts, graphs, and special processing effects, aiming to convey information and make data more readable. At present, traditional data visualization tools such as Tableau, QlikView, Power BI, and D3.js have been well applied in front-end interactions, meeting users' needs for simple data exploration and analysis. At the same time, with the explosive development of artificial intelligence, new-era visualization tools have also emerged to help users understand data with more intelligent and dynamic capabilities.

[0003] After providing common and basic initial functions, traditional visualization tools cannot provide sufficient customization options, so it is difficult to meet users' complex and changing customization needs, and users' business knowledge cannot be reused. New-era tools based on artificial intelligence focus on data-driven visualization based on machine learning algorithms such as deep learning and natural language processing, ignoring metadata, and thus cannot meet more standardized, unified, dynamic, and secure display requirements based on metadata. Summary of the invention

[0004] The purpose of this application is to propose a data visualization construction method, device and readable medium based on element marking to address the above-mentioned technical problems.

[0005] In a first aspect, the present invention provides a method for constructing data visualization based on element labeling, comprising the following steps:

[0006] Obtain metadata corresponding to a certain business and determine metadata elements and metadata element description attributes in the metadata corresponding to the certain business;

[0007] Define a first element for marking a metadata element and a second element for marking a description attribute of the metadata element, classify the first element and the second element, determine an element expressing an essential meaning and an element expressing an action, traverse each element expressing an essential meaning, determine at least one element expressing an action having a binding relationship with the element expressing the essential meaning, and define a visualization strategy;

[0008] Using the first element and the second element to respectively perform element marking on a metadata element and a metadata element description attribute in metadata corresponding to a certain service, to obtain marked metadata;

[0009] Obtain the data to be rendered, parse the data to be rendered according to the marked metadata, obtain the values ​​of the first element, the second element and the second element corresponding to the data to be rendered, match the values ​​of the first element, the second element and the second element corresponding to the data to be rendered with the visualization strategy, obtain the matching result, and perform visual rendering on the data to be rendered according to the matching result.

[0010] Preferably, defining a first element for marking a metadata element and a second element for marking a description attribute of a metadata element specifically includes:

[0011] Sort and merge metadata data according to business needs, technical needs and / or management needs, and define the first element for marking metadata data;

[0012] According to the requirements of the data storage structure, the description attributes of the metadata elements are sorted out, and a second element for marking the description attributes of the metadata elements is defined.

[0013] Preferably, the prefix of the identifier of the element expressing the essential meaning is ys, and the prefix of the identifier of the element expressing the action is does.

[0014] Preferably, the data structure of the visualization strategy includes a strategy ID, a visualization component associated with the visualization strategy, a basis for visualization rendering, and a visualization rendering description, wherein the basis for visualization rendering includes a first element, a second element, and a value of the second element corresponding to the visualization component associated with the visualization strategy.

[0015] Preferably, matching the first element, the second element, and the value of the second element corresponding to the data to be rendered with the visualization strategy to obtain a matching result, and visually rendering the data to be rendered according to the matching result, specifically includes:

[0016] Matching the first element, the second element, and the value of the second element corresponding to the data to be rendered with the basis of visual rendering to obtain a matching result;

[0017] The visualization component associated with the matching result is determined in the visualization strategy, that is, the visualization component adapted to the data to be rendered, and the final visualization rendering result is obtained.

[0018] Preferably, the data to be rendered is parsed according to the marked metadata to obtain the first element, the second element and the value of the second element corresponding to the data to be rendered, specifically including:

[0019] Parse the data to be rendered to obtain metadata corresponding to the data to be rendered;

[0020] The metadata corresponding to the data to be rendered is parsed according to the marked metadata to obtain the metadata element, the first element, the second element, and the value of the second element corresponding to the data to be rendered.

[0021] In a second aspect, the present invention provides a data visualization construction device based on element marking, comprising:

[0022] A data acquisition module is configured to acquire metadata corresponding to a certain business and determine metadata elements and metadata element description attributes in the metadata corresponding to the certain business;

[0023] A definition module is configured to define a first element for marking a metadata element and a second element for marking a description attribute of the metadata element, classify the first element and the second element, determine an element expressing an essential meaning and an element expressing an action, traverse each element expressing an essential meaning, determine at least one element expressing an action having a binding relationship with the element expressing the essential meaning, and define a visualization strategy;

[0024] A marking module is configured to use the first element and the second element to mark the metadata element and the metadata element description attribute in the metadata corresponding to a certain business, respectively, to obtain the marked metadata;

[0025] The rendering module is configured to obtain the data to be rendered, parse the data to be rendered according to the marked metadata, obtain the values ​​of the first element, the second element and the second element corresponding to the data to be rendered, match the values ​​of the first element, the second element and the second element corresponding to the data to be rendered with the visualization strategy, obtain the matching result, and perform visual rendering on the data to be rendered based on the matching result.

[0026] In a third aspect, the present invention provides an electronic device comprising one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.

[0027] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.

[0028] In a fifth aspect, the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.

[0029] Compared with the prior art, the present invention has the following beneficial effects:

[0030] (1) The data visualization construction method based on element marking proposed in the present invention is centered on metadata drive and elements. It describes and defines functional logic and components in a unified metadata expression method, which can improve the quality, efficiency, standardization and reusability of component development. By introducing elements, labeling elements, identifying elements, matching elements and other processes, real-time and dynamic visualization rendering of data is achieved; the first element and the second element are introduced to mark metadata elements and metadata element description attributes. By marking the first element and the second element, the metadata elements and metadata element description attributes are identified, which reduces the cost of understanding the same thing and reduces the need for additional development code for mapping due to different descriptions and designs.

[0031] (2) The data visualization construction method based on element labeling proposed in the present invention drives the visualization rendering of data by designing a set of visualization rendering strategies based on the first element and the second element, based on various first elements and second elements on the label, combined with pre-defined visualization strategies, and realizes the decoupling of functional logic and technical implementation in the form of strategies, and realizes the dynamic visualization construction of data automatically, accurately and quickly.

[0032] (3) The data visualization construction method based on element labeling proposed in the present invention provides a carrier for the digital storage of experience, rules, and knowledge through the structured expression of visualization strategies, thereby enabling knowledge reuse. Relying on elements and visualization strategies, the relationship between visualization components, the basis of visualization rendering, and metadata is established, and when metadata is modified in one place, all related components, visualization strategies, and data resources respond at the same time, dynamically and globally changing the way data visualization rendering is changed, improving the effect and efficiency of data visualization rendering, and realizing low-code technology, thereby improving the ability of rapid visualization construction. At the same time, the present invention provides a framework for component encapsulation, and flexible extensibility is conducive to further orchestration and secondary development, so as to achieve a smooth upgrade of the front-end functions of the project. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0034] Figure 1 A flowchart of a method for constructing data visualization based on element marking according to an embodiment of the present application;

[0035] Figure 2 A schematic diagram of a data visualization construction device based on element marking according to an embodiment of the present application;

[0036] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] Figure 1 A data visualization construction method based on element marking provided in an embodiment of the present application is shown, comprising the following steps:

[0039] S1, obtaining metadata corresponding to a certain business and determining metadata elements and metadata element description attributes in the metadata corresponding to the certain business.

[0040] Specifically, structured data is usually expressed in the form of "table + field" or "object + attribute". The embodiments of this application quote the terms and definitions in GB / T 21063-2007 "Government Information Resource Directory System Part 3: Core Metadata", and call the basic unit describing physical data "metadata element", which is used to describe the smallest data unit such as "data item", "field" or "attribute" in structured data. For example, name, gender, age, etc. (the smallest unit describing "person") are usually presented as a field, a column or a data item. Multiple metadata elements that describe common characteristics are aggregated into a metadata entity. For example: home address, current address, temporary residence, and mailing address are all describing the "address information" of a person, so home address, current address, temporary residence, and mailing address are four metadata elements, and address information is the metadata entity corresponding to these four metadata elements. Metadata elements themselves are also data and need to be described, so the basic unit describing metadata elements is called "metadata element description attribute".

[0041] The fields that make up the data table and the attributes that describe the objects are described by metadata elements. These metadata elements focus on describing the business aspects of the data, such as describing the name, age, and height of a person, describing the name, memory size, and creation time of an electronic file, describing the order number and order time of an order, etc. These metadata elements are usually abstracted and uniformly defined in a single field, thus ensuring the standardized description, consistent understanding, and unified identification of data business in their respective fields. Compared with metadata elements used to describe physical data, metadata element description attributes downplay the business aspects and focus on the technical and management aspects, such as the data type, minimum / maximum length, index, value range, dictionary code set, and other attributes of metadata elements. This is directly related to the mainstream database or big data technology used in data storage. Although their designs for metadata element description attributes are more abstract and similar, there are still differences and incompatibilities.

[0042] The relationship between physical data, metadata elements, and metadata element description attributes is as follows: physical data, such as "Zhang San", is M0 layer data, then the metadata element "name" is the M1 layer data describing "Zhang San", and the metadata element description attribute "data type" is the M2 layer data describing "name".

[0043] The embodiment of the present application takes the ticket subscription service of the China Railway Ticket Booking System as an example. After investigation, in this service, the relevant metadata elements include: train information (train number, Chinese name of the train, English name of the train, train type, departure station, terminal station, departure time, terminal time, train length, maximum speed, etc.), ticket information (order number, payment method, amount, train seat departure station, arrival station, departure time, arrival time, etc.), passenger information (name, ID type, ID number, contact information, etc.). The relevant metadata element description attributes include: name, data type, data length, value range, unit of measurement, etc. Therefore, the metadata related to the ticket subscription service is shown in Table 1.

[0044] Table 1 Metadata of ticket subscription service

[0045]

[0046]

[0047] S2, define a first element for marking a metadata element and a second element for marking a description attribute of the metadata element, classify the first element and the second element, determine the element expressing the essential meaning and the element expressing the action, traverse each element expressing the essential meaning, determine at least one element expressing the action that has a binding relationship with the element expressing the essential meaning, and define a visualization strategy.

[0048] In a specific embodiment, defining a first element for marking a metadata element and a second element for marking a description attribute of a metadata element specifically includes:

[0049] Sort and merge metadata data according to business needs, technical needs and / or management needs, and define the first element for marking metadata data;

[0050] According to the requirements of the data storage structure, the description attributes of the metadata elements are sorted out, and a second element for marking the description attributes of the metadata elements is defined.

[0051] In a specific embodiment, the prefix of the identifier of the element expressing the essential meaning is ys, and the prefix of the identifier of the element expressing the action is does.

[0052] In a specific embodiment, the data structure of the visualization policy includes a policy ID, a visualization component associated with the visualization policy, a basis for visualization rendering, and a visualization rendering description, wherein the basis for visualization rendering includes a first element, a second element, and a value of the second element corresponding to the visualization component associated with the visualization policy.

[0053] Specifically, define the first element. According to business needs, technical needs, and management needs, metadata elements are sorted and merged, and a series of first elements for marking metadata elements are defined. The first elements include citizen ID number, date of birth, gender, age, mobile phone number, amount, quantity, IP address, etc., which are used to describe columns, fields, or data items in structured data. By defining a series of first elements for identifying "metadata elements", a mapping relationship between cross-domain metadata elements can be established.

[0054] Furthermore, the second elements are defined. According to the requirements of the data storage structure, the description attributes of the metadata elements are sorted out, and a series of second elements for marking the description attributes of the metadata elements are defined. The second elements include data type, minimum / maximum length, index, value range, dictionary code set, etc., which are used to describe the description attributes of columns, fields, and data items. By defining a series of second elements for marking "metadata element description attributes", a mapping relationship between metadata element description attributes can be established.

[0055] Furthermore, define the binding relationship of elements. Integrate all the first and second elements of the definition, record the element expressing "essential meaning" as "ys", and the element expressing "action" as "does". Then, traverse all ys elements and establish the does element bound to each ys element. The first and second elements not only have ys elements for describing "what", but also do elements for describing "what to do". The does element can describe the information of data preprocessing, organization distribution, display and other operations, and the ys element and does element of a metadata element are usually closely related (1 to many), such as "ID card number" needs to be regularized and desensitized, and "latitude and longitude" needs to be value range checked and displayed on the map. By defining the binding relationship of elements, multiple elements can be used simultaneously. It is worth noting that although the binding relationship of the defined elements is defined, the binding relationship is only a recommendation. In specific application scenarios, it is necessary to choose to accept or reject the binding relationship of the element to determine at least one element expressing an action that has a binding relationship with the element expressing the essential meaning.

[0056] According to the above steps, the first element, the second element and the binding relationship between the elements under the ticket subscription business are defined respectively, as shown in Table 2.

[0057] Table 2 List of elements

[0058]

[0059]

[0060] In addition, it is necessary to define a visualization strategy. First, define the metadata of the visualization strategy. Specifically, the data structure of the visualization strategy can be designed by sorting out the general rules of data visualization rendering, as shown in Table 3.

[0061] Table 3 Data structure of visualization strategy

[0062]

[0063] Data visualization driven by metadata requires that after obtaining metadata, the "natural structured nature of metadata" is used to match the pre-defined strategy and perform visualization based on the hit strategy. The metadata of the visualization strategy mentioned in this step provides a structured carrier for the accumulation of knowledge, experience, and rules.

[0064] According to the data structure of the above visualization strategy, the first element and the second element are used to complete the addition, deletion, modification and query of the visualization strategy, and the association relationship between the "metadata of the data to be rendered" and the "visualization component" is established through the "visualization strategy".

[0065] By analyzing the metadata of the data to be rendered, we can find many attributes that affect the visualization method, including the meaning of metadata elements and the description attributes of metadata elements (data type, representation format, unit of measurement, dictionary code set, value range, label, etc.). These attributes will be marked by the first element and the second element. Based on these elements, we can identify the different values ​​of these attributes, analyze the appropriate display method, design corresponding visualization strategies, and further associate the corresponding visualization components.

[0066] According to the above steps, the metadata of the data visualization strategy is designed, and visualization strategies are added or modified, as shown in Table 4 (strategy ID is omitted).

[0067] Table 4 Visualization strategies

[0068]

[0069] S3, using the first element and the second element to respectively mark the metadata element and the metadata element description attribute in the metadata corresponding to a certain business, to obtain marked metadata.

[0070] Specifically, the following steps are used to mark the elements:

[0071] S31, mark the first element:

[0072] Based on business knowledge, the first factor is selected to mark the metadata element through manual method or intelligent recommendation method.

[0073] S32, marking the second element:

[0074] Based on business knowledge, a second factor is selected to mark the metadata element description attribute through manual means or intelligent recommendation.

[0075] S33, automatically annotate other elements based on element binding relationships:

[0076] Based on the marked first and second elements and the element binding relationship, other related elements are automatically marked.

[0077] According to the above method, the first element and the second element are selected to mark the metadata elements and metadata element description attributes corresponding to the ticket subscription service in Table 1. The marking result is shown in Table 5.

[0078] Table 5 Element annotation of ticket subscription metadata

[0079]

[0080]

[0081] S4, obtaining the data to be rendered, parsing the data to be rendered according to the marked metadata, obtaining the values ​​of the first element, the second element and the second element corresponding to the data to be rendered, matching the values ​​of the first element, the second element and the second element corresponding to the data to be rendered with the visualization strategy, obtaining a matching result, and visually rendering the data to be rendered according to the matching result.

[0082] In a specific embodiment, the data to be rendered is parsed according to the marked metadata to obtain the first element, the second element and the value of the second element corresponding to the data to be rendered, specifically including:

[0083] Parse the data to be rendered to obtain metadata corresponding to the data to be rendered;

[0084] The metadata corresponding to the data to be rendered is parsed according to the marked metadata to obtain the metadata element, the first element, the second element, and the value of the second element corresponding to the data to be rendered.

[0085] In a specific embodiment, matching the first element, the second element, and the value of the second element corresponding to the data to be rendered with the visualization strategy to obtain a matching result, and visually rendering the data to be rendered according to the matching result specifically includes:

[0086] Matching the first element, the second element, and the value of the second element corresponding to the data to be rendered with the basis of visual rendering to obtain a matching result;

[0087] The visualization component associated with the matching result is determined in the visualization strategy, that is, the visualization component adapted to the data to be rendered, and the final visualization rendering result is obtained.

[0088] Specifically, visualization is completed according to the first element, the second element, and the value of the second element corresponding to the data to be rendered and the visualization strategy. The specific steps are as follows:

[0089] S41, parsing the first element, the second element and the value of the second element corresponding to the data to be rendered:

[0090] When displaying data, metadata of the data to be rendered is obtained in real time, and all first elements and second elements marked in step S3 are parsed.

[0091] S42, matching visualization strategy to complete visualization:

[0092] The first element and the second element in step S41 are matched with all predefined visualization strategies, and the visualization component is called according to the matching result to complete the visualization.

[0093] According to the above steps, based on vue, elementUI, opentiny, node.js and other technologies, the description of the front-end page components is reconstructed. According to Table 4 and Table 5, the adapted visualization components are recommended, and the final visualization rendering results are shown in Table 6. The specific matching steps are:

[0094] a) parsing the data to be rendered (physical data) in the first column to obtain metadata corresponding to the data to be rendered in the second column;

[0095] b) According to Table 5, further parse the metadata corresponding to the data to be rendered in the second column to obtain:

[0096] i. Metadata elements describing the data to be rendered;

[0097] ii. The first element of the metadata element to be marked;

[0098] iii. The metadata element describes the second element whose attribute is marked and the value of the second element, wherein the second element and the value of the second element are connected by an equal sign.

[0099] c) matching the values ​​of the first element, the second element, and the second element in the metadata corresponding to the data to be rendered in the second column with the “basis of visual rendering” in Table 4 to obtain a matching result in the third column;

[0100] d) According to the matching result in the third column, the corresponding “associated visualization component” in Table 4 is the visualization component adapted to the data to be rendered, and the final visualization rendering effect is determined by the visualization component.

[0101] Table 6 Data visualization rendering results based on feature labeling

[0102]

[0103]

[0104] Note: The "binding relationship of elements" mentioned in step S2 is only a recommended means for the annotation process in step S3, and can be accepted or rejected according to the actual scenario. Table 6 shows the labeling results of accepting all elements with binding relationships.

[0105] Further references Figure 2 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a data visualization construction device based on element marking, and the device embodiment is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0106] The present application embodiment provides a data visualization construction device based on element marking, including:

[0107] The data acquisition module 1 is configured to acquire metadata corresponding to a certain business and determine metadata elements and metadata element description attributes in the metadata corresponding to the certain business;

[0108] A definition module 2 is configured to define a first element for marking a metadata element and a second element for marking a description attribute of the metadata element, classify the first element and the second element, determine an element expressing an essential meaning and an element expressing an action, traverse each element expressing an essential meaning, determine at least one element expressing an action having a binding relationship with the element expressing the essential meaning, and define a visualization strategy;

[0109] The marking module 3 is configured to use the first element and the second element to mark the metadata element and the metadata element description attribute in the metadata corresponding to a certain business, respectively, to obtain the marked metadata;

[0110] The rendering module 4 is configured to obtain the data to be rendered, parse the data to be rendered according to the marked metadata, obtain the values ​​of the first element, the second element and the second element corresponding to the data to be rendered, match the values ​​of the first element, the second element and the second element corresponding to the data to be rendered with the visualization strategy, obtain the matching result, and perform visual rendering on the data to be rendered based on the matching result.

[0111] Figure 3 Schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present invention. Figure 3 As shown, the electronic device of this embodiment includes: a processor 301 and a memory 302; wherein the memory 302 is used to store computer-executable instructions; the processor 301 is used to execute the computer-executable instructions stored in the memory to implement the various steps performed by the electronic device in the above embodiment. For details, please refer to the relevant description in the above method embodiment.

[0112] Optionally, the memory 302 may be independent or integrated with the processor 301 .

[0113] When the memory 302 is independently provided, the electronic device further includes a bus 303 for connecting the memory 302 and the processor 301 .

[0114] The embodiment of the present invention further provides a computer storage medium, in which computer execution instructions are stored. When the processor 301 executes the computer execution instructions, the above method is implemented.

[0115] The embodiment of the present invention further provides a computer program product, including a computer program. When the computer program is executed by the processor 301, the above method is implemented.

[0116] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0117] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.

[0118] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit. The above-mentioned module-composed unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0119] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor 301 to perform some steps of the methods of various embodiments of the present application.

[0120] It should be understood that the processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or the processor 301 may be any conventional processor 301, etc. The steps of the method disclosed in the invention may be directly embodied in the execution of the hardware processor 301, or may be executed by a combination of hardware and software modules in the processor 301.

[0121] The memory 302 may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk, or an optical disk.

[0122] The bus 303 may be an Industry Standard Architecture (ISA), a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus 303 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus 303 in the drawings of the present application is not limited to only one bus 303 or one type of bus 303.

[0123] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0124] An exemplary storage medium is coupled to the processor 301, so that the processor 301 can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor 301. The processor 301 and the storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as ASIC). Of course, the processor 301 and the storage medium can also exist as discrete components in an electronic device or a main control device.

[0125] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data visualization construction method based on element labeling, characterized in that: The following steps are involved: Obtaining metadata corresponding to a certain service and determining metadata elements and metadata element description attributes in the metadata corresponding to the certain service; Define a first element for marking a metadata element and a second element for marking a description attribute of the metadata element, classify the first element and the second element, determine an element expressing an essential meaning and an element expressing an action, traverse each element expressing an essential meaning, determine at least one element expressing an action having a binding relationship with the element expressing the essential meaning, and define a visualization strategy; Using the first element and the second element to respectively perform element marking on metadata elements and metadata element description attributes in the metadata corresponding to the certain service, to obtain marked metadata; Obtain data to be rendered, parse the data to be rendered according to the marked metadata, obtain values ​​of the first element, the second element, and the second element corresponding to the data to be rendered, match the values ​​of the first element, the second element, and the second element corresponding to the data to be rendered with the visualization strategy to obtain a matching result, and perform visual rendering on the data to be rendered based on the matching result.

2. The data visualization construction method based on element marking according to claim 1 is characterized in that: The definition is used to mark the first element of the metadata element and the second element used to mark the description attribute of the metadata element, specifically including: Sorting and merging the metadata data according to business requirements, technical requirements and / or management requirements, and defining a first element for marking the metadata data; According to the requirements of the data storage structure, the description attributes of the metadata elements are sorted out, and a second element for marking the description attributes of the metadata elements is defined.

3. The data visualization construction method based on element marking according to claim 1 is characterized in that: The prefix of the identifier of the element expressing the essential meaning is ys, and the prefix of the identifier of the element expressing the action is does.

4. The data visualization construction method based on element marking according to claim 1 is characterized in that: The data structure of the visualization strategy includes a strategy ID, a visualization component associated with the visualization strategy, a basis for visualization rendering, and a visualization rendering description, wherein the basis for visualization rendering includes a first element, a second element, and a value of the second element corresponding to the visualization component associated with the visualization strategy.

5. The method for constructing data visualization based on element marking according to claim 4, characterized in that: The matching of the first element, the second element, and the value of the second element corresponding to the data to be rendered with the visualization strategy to obtain a matching result, and visually rendering the data to be rendered according to the matching result specifically includes: Matching the first element, the second element, and the value of the second element corresponding to the data to be rendered with the basis of the visual rendering to obtain a matching result; The visualization component associated with the matching result is determined in the visualization strategy, that is, the visualization component adapted to the data to be rendered, and a final visualization rendering result is obtained.

6. The data visualization construction method based on element marking according to claim 1 is characterized in that: The parsing the data to be rendered according to the marked metadata to obtain the first element, the second element and the value of the second element corresponding to the data to be rendered specifically includes: Parsing the data to be rendered to obtain metadata corresponding to the data to be rendered; The metadata corresponding to the to-be-rendered data is parsed according to the marked metadata to obtain the metadata element, the first element, the second element, and the value of the second element corresponding to the to-be-rendered data.

7. A data visualization construction device based on element labeling, characterized in that: include: A data acquisition module is configured to acquire metadata corresponding to a certain business and determine metadata elements and metadata element description attributes in the metadata corresponding to the certain business; A definition module is configured to define a first element for marking a metadata element and a second element for marking a description attribute of the metadata element, classify the first element and the second element, determine an element expressing an essential meaning and an element expressing an action, traverse each element expressing an essential meaning, determine at least one element expressing an action having a binding relationship with the element expressing the essential meaning, and define a visualization strategy; a marking module configured to use the first element and the second element to mark the metadata element and the metadata element description attribute in the metadata corresponding to the certain service, respectively, to obtain marked metadata; The rendering module is configured to obtain the data to be rendered, parse the data to be rendered according to the marked metadata, obtain the values ​​of the first element, the second element and the second element corresponding to the data to be rendered, match the values ​​of the first element, the second element and the second element corresponding to the data to be rendered with the visualization strategy to obtain a matching result, and perform visual rendering on the data to be rendered based on the matching result.

8. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Business data processing method and device

    CN110941657A

  • Building information model processing method and related device

    CN114417452A

  • Geographic information metadata processing method and device

    CN115774767A

  • Secondary fuzzy search method based on semantic metadata

    CN117493641A

  • Form processing method and device, electronic equipment and storage medium

    CN117555632A