CN110275923B - Management method and equipment of plug-in graphics - Google Patents

Management method and equipment of plug-in graphics Download PDF

Info

Publication number
CN110275923B
CN110275923B CN201910539924.1A CN201910539924A CN110275923B CN 110275923 B CN110275923 B CN 110275923B CN 201910539924 A CN201910539924 A CN 201910539924A CN 110275923 B CN110275923 B CN 110275923B
Authority
CN
China
Prior art keywords
graphic
plug
items
graph
attributes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910539924.1A
Other languages
Chinese (zh)
Other versions
CN110275923A (en
Inventor
程宏亮
王锟
苏魁
王海亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meritdata Technology Co ltd
Original Assignee
Meritdata Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meritdata Technology Co ltd filed Critical Meritdata Technology Co ltd
Priority to CN201910539924.1A priority Critical patent/CN110275923B/en
Publication of CN110275923A publication Critical patent/CN110275923A/en
Application granted granted Critical
Publication of CN110275923B publication Critical patent/CN110275923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides a management method and equipment of a plug-in graph, relates to the technical field of information, and can improve the efficiency of modifying an existing graph or adding a new graph. The specific technical scheme is as follows: acquiring graph data, wherein the graph data comprises an installation package of a graph plug-in and description information of the graph attribute of the plug-in; determining whether the description information is matched with a preset plugin attribute template or not through plugin registration service, wherein the plugin attribute template comprises K graphic attributes, and K is more than or equal to 1; and if the verification is successful, verifying N items in the K items of graphic attributes through a simulation operation program of the plug-in registration service, wherein N is more than or equal to 1 and less than or equal to K, and completing the registration of the graphic plug-in by using the installation package when the verification is successful. The present disclosure is used to modify existing graphics of a data visualization platform or to add new graphics to a data visualization platform.

Description

Management method and equipment of plug-in graphics
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to a method and an apparatus for managing a plug-in graphics.
Background
With the development of big data technology, the value of data mining is gradually accepted by the market. The data visualization platform can present the relationship between data through a graph or a combination mode of the graph and the data, and the application in the field of data mining is increasingly wide.
In the operation process of the data visualization platform, an existing graph is often required to be modified or a new graph is required to be added, or a graph customized by a user or a third party is required to be added. In the prior art, graphics are added to a platform program main frame in a componentization mode, but the componentization technology needs to compile and link new content into the frame in development, so that the efficiency of modifying the existing graphics or adding new graphics is low, and a third party cannot modify the existing graphics or add new graphics autonomously.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for managing a plug-in graph, which can improve the efficiency of modifying an existing graph or adding a new graph. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for managing a plug-in graphics, the method including:
acquiring graph data, wherein the graph data comprises an installation package of a graph plug-in and description information of the graph attribute of the plug-in;
determining whether the description information is matched with a preset plugin attribute template or not through plugin registration service, wherein the plugin attribute template comprises K graphic attributes, and K is more than or equal to 1;
and if the verification is successful, verifying N items in the K items of graphic attributes through a simulation operation program of the plug-in registration service, wherein N is more than or equal to 1 and less than or equal to K, and completing the registration of the graphic plug-in by using the installation package when the verification is successful.
According to the technical scheme, the existing graph is modified or a new graph is added in a plug-in mode. When an installation package of a graphic plug-in is received, the plug-in registration service judges whether the description information of the installation package is matched with the plug-in attribute module, if so, the plurality of graphic attributes are further verified, and the graphic plug-in registration is completed after the verification is passed. And preliminarily determining that the graphic plug-in to be installed meets the requirements of the data visualization platform on the graphic plug-in through the description information. Further, by verifying the graphic attributes, the usability of the installed graphic plug-in is guaranteed.
The registered graphic plug-ins can be conveniently unloaded by dynamically modifying the existing graphic plug-ins and adding new graphic plug-ins in a plug-in mode. And a third party can be allowed to submit plug-ins to the data visualization platform, so that a more open and friendly technical platform is created, and a good business ecology is formed.
In one embodiment, before the simulation executive program verifies N of the K items of graphic attributes, the simulation executive program further comprises: the simulation running program opens a browser at the background and simulates the loading process of the graphic plug-in;
the simulation executive program verifies N items in the K items of graphic attributes, including: and the simulation running program verifies N items in the K items of graphic attributes when the normal loading is determined.
In one embodiment, the K items of graphics attributes include a graphics structure, a data structure, and a number-to-map mapping rule, and the simulation run program validates N of the K items of graphics attributes, including:
the simulation operation program constructs basic elements for forming the graph according to the graph structure;
according to the data structure and the number-map mapping rule, adopting a preset simulation data set to construct the input of the data attribute items of the graph;
and forming a graphic instance according to the basic elements of the graphic and the input of the data attribute items, rendering the graphic instance in a background browser according to the attribute option values of the graphic, and determining that the graphic structure, the data structure and the number-map mapping rule are verified when no abnormal return occurs.
In one embodiment, the K items of graphics attributes further include graphics attribute options, and the simulation executive verifies N of the K items of graphics attributes, further comprising:
and the simulation operation program adjusts the graphic attribute option value of the graphic instance according to the graphic attribute option in the description information, renders the graphic instance in the browser, and determines that the graphic attribute configuration passes verification when abnormal return occurs.
In one embodiment, the K items of graphical attributes further include visual interaction events, the simulation executive verifying N of the K items of graphical attributes, further comprising:
and the simulation running program generates a visual interaction event example according to the visual interaction event in the description information, calls the visual interaction event example in the browser and triggers a corresponding event, and determines that the visual interaction event passes verification when abnormal returns.
In one embodiment, the K items of graphic attributes further include rendering calculation rules, and the simulation executive verifies N of the K items of graphic attributes, further comprising:
and the simulation operation program renders the visual interaction event instance in the browser according to the rendering calculation rule in the description information, and determines that the rendering calculation rule is verified when no abnormal condition returns.
According to a second aspect of the embodiments of the present disclosure, there is provided a management apparatus for a plug-in graphics, including:
the interface module is used for acquiring graphic data, and the graphic data comprises an installation package of a graphic plug-in and description information of the graphic attribute of the plug-in;
the verification module is used for determining whether the description information is matched with a preset plug-in attribute template through a plug-in registration service, wherein the plug-in attribute template comprises K graphic attributes, and K is more than or equal to 1;
and the registration module is used for verifying N items in the K items of graphic attributes through a simulation operation program of the plug-in registration service when the matching is determined, wherein N is more than or equal to 1 and less than or equal to K, and the registration of the graphic plug-in is completed by utilizing the installation package when the verification is passed.
In one embodiment, the registration module includes a loading unit and a verification unit;
the loading unit is used for opening a browser at the background through the simulation running program and simulating the loading process of the graphic plug-in;
and the verification unit is used for verifying N items in the K items of graphic attributes when the simulation running program determines that the loading is normal.
In one embodiment, the K items of graphic attributes include a graphic structure, a data structure, and a number-to-map mapping rule, and the verification unit is further configured to:
triggering the simulation operation program to construct basic elements forming the graph according to the graph structure;
according to the data structure and the number-map mapping rule, adopting a preset simulation data set to construct the input of the data attribute items of the graph;
and forming a graphic instance according to the basic elements of the graphic and the input of the data attribute items, rendering the graphic instance in a background browser according to the attribute option values of the graphic, and determining that the graphic structure, the data structure and the number-map mapping rule are verified when no abnormal return occurs.
In one embodiment, the K items of graphic attributes further include a graphic attribute option, and the verification unit is further configured to:
and triggering the simulation running program to adjust the graphic attribute option value of the graphic instance according to the graphic attribute option in the description information, rendering the graphic instance in the browser, and determining that the graphic attribute configuration is verified when abnormal return occurs.
In one embodiment, the K items of graphical attributes further include a visual interaction event, and the verification unit is further configured to:
and triggering the simulation running program to generate a visual interaction event example according to the visual interaction event in the description information, calling the visual interaction event example in the browser and triggering a corresponding event, and determining that the visual interaction event passes the verification when abnormal returns.
In one embodiment, the K items of graphic attributes further include a rendering calculation rule, and the verification unit is further configured to:
and the simulation operation program renders the visual interaction event instance in the browser according to the rendering calculation rule in the description information, and determines that the rendering calculation rule is verified when no abnormal condition returns.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to:
acquiring graph data, wherein the graph data comprises an installation package of a graph plug-in and description information of the graph attribute of the plug-in;
determining whether the description information is matched with a preset plugin attribute template or not through plugin registration service, wherein the plugin attribute template comprises K graphic attributes, and K is more than or equal to 1;
and if the verification is successful, verifying N items in the K items of graphic attributes through a simulation operation program of the plug-in registration service, wherein N is more than or equal to 1 and less than or equal to K, and completing the registration of the graphic plug-in by using the installation package when the verification is successful.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which computer instructions are stored, the instructions, when executed by a processor, implementing the steps of the management method of the plug-in graphics provided by the first aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1A is an illustrative schematic diagram of a plug-in framework provided by embodiments of the disclosure;
FIG. 1B is a schematic diagram illustrating a lifecycle layer provided by embodiments of the present disclosure;
FIG. 1C is a schematic diagram of a plug-in service provided by an embodiment of the present disclosure;
FIG. 2 is a flowchart of a method for managing a plug-in graphics according to an embodiment of the present disclosure;
FIG. 3 is a block diagram of a management device for plug-in graphics provided by an embodiment of the present disclosure;
fig. 4 is a structural diagram of a management device for plug-in graphics according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the operation process of the data visualization platform, an existing graph is often required to be modified or a new graph is required to be added, or a graph customized by a user or a third party is required to be added. By adding graph componentization to the platform program main framework, new content needs to be compiled and linked into the framework in development, and therefore, it is inefficient to modify existing graphs or add new graphs.
The embodiment of the disclosure provides a method for managing a plug-in graphic, which allows a visual data platform to accept a graphic plug-in. The graphical plug-in can be a graphical plug-in uploaded by a developer of the visual data platform. Or the visual data platform can open the uploading and installation permission of the graphic plug-in to the third party, and the graphic plug-in can be the graphic plug-in uploaded by the third party developer.
The uploaded graphical plug-in needs to satisfy various graphical attributes predefined by the visualization data platform to be allowed to be installed. Therefore, for the newly uploaded graphic plug-in, whether the included graphic attributes are allowed graphic attributes is determined according to the description information of the graphic attributes of the plug-in carried by the newly uploaded graphic plug-in, and further, the graphic plug-in is simulated and run to verify part or all of the graphic attributes, and the graphic plug-in is installed when the verification is passed.
The new graph is added in a plug-in mode, so that the efficiency of modifying or adding the graph can be greatly improved, the graph is allowed to be unloaded at any time, and the graph can be opened to a third party.
Referring to FIG. 1A, the plug-in framework can be conceptually divided into three layers: a module layer, a lifecycle layer, and a service layer.
A model layer: the module layer is primarily concerned with the plug-in package, containing resource files, program code and metadata.
Life cycle layer: the lifecycle layer is primarily concerned with runtime lifecycle management for plug-ins.
And (3) a service layer: the service layer is primarily concerned with the interaction and communication of the plug-ins with the plug-in framework.
The module layer plug-in is used for defining plug-in meta information by adding metadata to the Jar package. The plug-in is a modular physical unit in the form of a jar package, which contains code, resource files and metadata (metadata), and the physical boundary of the jar package is also the encapsulation boundary of the runtime logic module. Plug-ins are the basic components in a plug-in container, which still represents the traditional Jar package in the Java concept. Mf is further defined by the manifest. file under META-INF directory.
The life cycle layer belongs to a layer above the module layer in the plug-in framework, and the operation of the life cycle layer is established on the function of the module layer. Referring to FIG. 1B, the primary function of the lifecycle layer is to control the dynamic installation, opening, closing, updating, and uninstalling of plug-ins. The lifecycle layer can manage applications externally or build applications that can manage themselves (or a combination of both) and give the applications themselves great dynamics. The use of the plug-in requires the interaction of the API (Application Programming Interface, Chinese full name: Application Programming Interface) of the lifecycle layer with the lifecycle layer of the plug-in framework.
A plug-in service is a Java object that is registered into the plug-in framework. The attributes of the service may be set at the time of registration. And filtering may be performed according to the attributes when obtaining the service. Referring to FIG. 1C, the plug-in may go through a context de-registration service or a de-query service, through which the plug-in framework interacts with the plug-in.
The following describes in detail a management method of a plug-in graphics provided by an embodiment of the present disclosure. As shown in fig. 2, the data transmission method includes the following steps:
201. the graphics data is acquired.
The graphic data can be uploaded by a developer or a third party of the visual data platform, and the graphic data comprises an installation package of the graphic plug-in and description information of graphic attributes of the plug-in.
The installation package of the graphic plug-in can be a Jar package, and a developer of the graphic plug-in needs to add description information of graphic properties of the plug-in to the Jar package. For example, the Jar package contains a descriptive file (e.g., nodeMetaData. xml) of a plug-in graphic property.
The visual data platform completes dynamic update of the graphic plug-in unit without system restart based on OSGI (Open Service Gateway Initiative, Chinese full name) Service.
202. And determining whether the description information is matched with a preset plug-in attribute template through the plug-in registration service.
The visual data platform is preset with a plug-in attribute template, wherein the template is used for explaining K graphic attributes of graphic plug-ins acceptable by the visual data platform, and K is more than or equal to 1. Illustratively, the K items of graphic attributes may include a graphic structure (graph structure), a visual interaction event (visualEvent), a number-to-map mapping rule (datamapresult), a rendering computation rule (renderEvent), a data structure (dataFrame), a graphic attribute option (attributeoperation), and the like.
Illustratively, the graph structure includes, but is not limited to:
rectangular coordinate system type graphic structure: such as bar charts, line graphs, bubble charts, scatter plots, and the like.
Polar coordinate system graph structure: such as pie chart, circle chart, Asahi chart, radar chart, rose chart, and matrix tree chart
Relationship class graph structure: such as a morse base diagram, a relationship diagram, a force directed diagram, a tree diagram, a chord diagram, and the like.
Other graph structures: maps, matrix trees, thermodynamic diagrams, contour diagrams, or the like
The visual data platform carries out atomization decomposition on the graph according to different graph types: such as coordinate systems, legends, labels, visual features (based on data series, which may be expressed by color, position, size, saturation, shape, etc.), hints, conditional rules, pre-warning lines, animated frames, zoom components, operating toolbars, etc. For each graph, these basic atomization components are composed as provided by the visualization data platform. The graphic standard attribute is a set of constituent objects that a graphic component must contain.
The graph of the visual data platform is not statically displayed, but needs to support dynamic representation of the graph, so that richer interaction events need to be supported. These interactivity events are defined by a framework interface, and the plug-in developer needs to define the interactivity events graphically in compliance with such an interface standard. Illustratively, visual interaction events include, but are not limited to:
linkage: that is, one graph is linked with other graphs, and the format and standard of the parameters sent to the outside when the graphs are linked need to be defined.
Drilling: namely, the slice is drilled down to another dimension through the graph, and the dimension hierarchy in the graph linkage needs to be defined and is transmitted through the list.
Linking: that is, another graph can be opened in multiple forms through one graph, the format and standard of parameters when the graph link needs to be defined, the mode parameter of the link (opening a new page or floating pop-up) and the like
And (3) circle selection: namely, multi-condition linkage is sent out through mouse selection operation. Parameters need to be defined, and multiple sets of parameter values need to be transmitted.
Legend: the legend is internally provided with events, and the dynamic display of the graph can be controlled through the legend.
An animation axis, a zoom axis, etc.
The visual data platform needs to define the data requirements of each visual channel element (such as color, size, position and shape) in the graph, and the plug-in developer needs to define the matching rules of the contents, namely the number-map mapping rules when developing. Illustratively, the number-map mapping rules include, but are not limited to:
the graph can be generated under the condition of what data is satisfied.
Different types of data are declared to be processing constraints in the graph (e.g., for a histogram, the X-axis is processed discretely).
The control of different types of data in the graph (such as a column graph, the number of columns does not exceed 3000).
Illustratively, the rendering computation rules include, but are not limited to:
and setting rendering logics of all atomic components of the graph in the graph generation process, setting maximum and minimum upper and lower limits of the graph elements, and dynamically arranging and forming the elements in the graph within an allowable range by the visual data platform according to the rendering limits. Illustratively, the rendering computation rules include, but are not limited to:
setting personalized script events (such as events before loading, events after loading, change events and the like) of the graphs in the generating process can meet the display requirements of some personalized graphs.
The above graphic attributes are exemplary illustrations, and do not represent that the graphic attributes in the embodiments of the present disclosure are limited to the above listed items, and the present disclosure does not limit the specific graphic attributes.
The visual data platform interacts with the graphical plug-in through a plug-in registration service (noderegetserver). And triggering the subsequent steps when the plug-in registration service determines that the description information of the plug-in graphic attribute is matched with the preset plug-in attribute template.
203. N of the K graphical attributes are verified by a simulation run of the plug-in registration service.
Wherein N is more than or equal to 1 and less than or equal to K. In one embodiment, a simulation running program (nodeVerifyApp) of the plug-in registration service opens a browser in the background, simulates the loading process of the graphic plug-in by using a simulation data set built in advance, and globally verifies the contents of each item of the graphic.
When the simulation operation program monitors that the browser is abnormal or has an error, a 'registration failure' explanation is returned.
And when the simulation running program determines that the loading is normal, the simulation running program starts to verify N items in the K items of graphic attributes. Wherein the N items of the graphic attributes can be part or all of the K items.
For example, the simulation run program acquires basic components (such as titles, legends, series types, labels) for assembling the graph according to the description of the graph structure in the nodemetalata xml file, and constructs basic elements for forming the graph.
Xml document, a preset simulation data set is adopted to construct and form a data series as an input of a data attribute item of a graph according to a data structure (such as dimensions, measurement related requirements and the like) described in a nodemeatadata.
And (3) forming a graphic instance according to the basic elements of the graphic and the input of the data attribute items, rendering the graphic instance in a background browser according to the attribute option values of the graphic, and if the graphic instance returns abnormal, determining that the graphic structure, the data structure and the digital-to-graphic mapping rule are verified by the simulation running program.
Optionally, the simulation running program adjusts the graphic attribute option value of the graphic instance according to the configuration of the graphic attribute option in the nodeMetaData.
Optionally, the simulation running program generates a visual interaction event instance according to the visual interaction event attribute in the nodeMetaData.
Optionally, the simulation running program generates an attribute of rendering calculation according to a rendering calculation rule in the nodemeatadata. And rendering the visual interaction event example in the browser, and if the visual interaction event example returns no abnormal condition, simulating the running program to determine that the rendering calculation rule is verified.
204. And completing the registration of the graphic plug-in by using the installation package when the verification is passed.
And when determining that the N items in the K items of graphic attributes pass verification, loading the template configuration information of the graphic plug-in of the visual data platform into the Java virtual machine to complete the registration of the graphic plug-in. The service user can use the graphics provided by the plug-in at the front end.
The management method of the plug-in graphics provided by the embodiment of the disclosure modifies the existing graphics or adds new graphics in a plug-in mode. When an installation package of a graphic plug-in is received, the plug-in registration service judges whether the description information of the installation package is matched with the plug-in attribute module, if so, the plurality of graphic attributes are further verified, and the graphic plug-in registration is completed after the verification is passed. And preliminarily determining that the graphic plug-in to be installed meets the requirements of the data visualization platform on the graphic plug-in through the description information. Further, by verifying the graphic attributes, the usability of the installed graphic plug-in is guaranteed.
The registered graphic plug-ins can be conveniently unloaded by dynamically modifying the existing graphic plug-ins and adding new graphic plug-ins in a plug-in mode. And a third party can be allowed to submit plug-ins to the data visualization platform, so that a more open and friendly technical platform is created, and a good business ecology is formed.
Based on the management method of the plug-in graphics described in the above embodiments, the following is an embodiment of the apparatus of the present disclosure, and may be used to execute the embodiment of the method of the present disclosure.
An embodiment of the present disclosure provides a management device for a plug-in graphics, as shown in fig. 3, the management device for a plug-in graphics includes:
the interface module 31 is configured to obtain graphics data, where the graphics data includes an installation package of a graphics plug-in and description information of a graphics attribute of the plug-in.
And the checking module 32 is used for determining whether the description information is matched with a preset plug-in attribute template through the plug-in registration service, wherein the plug-in attribute template comprises K graphic attributes, and K is more than or equal to 1.
And the registration module 33 is used for verifying N items in the K items of graphic attributes through a simulation operation program of the plug-in registration service when the matching is determined, wherein N is more than or equal to 1 and less than or equal to K, and the registration of the graphic plug-in is completed by utilizing the installation package when the verification is passed.
Referring to FIG. 4, in one embodiment, the registration module 33 includes a loading unit 331 and an authentication unit 332.
The loading unit 331 is configured to open a browser in the background through a simulation running program, and simulate a loading process of the graphics plug-in.
And the verification unit 332 is used for verifying N items in the K items of graphic attributes when the simulation running program determines that the loading is normal.
In one embodiment, the K items of graphic attributes include a graphic structure, a data structure, and a number-to-map mapping rule, and the verification unit 332 is further configured to:
and triggering a simulation running program to construct basic elements forming the graph according to the graph structure.
And according to the data structure and the number-graph mapping rule, adopting a preset simulation data set to construct the input of the data attribute items of the graph.
And forming a graphic instance according to the basic elements of the graphic and the input of the data attribute items, rendering the graphic instance in a background browser according to the attribute option values of the graphic, and determining that the verification of the graphic structure, the data structure and the number-map mapping rule is passed when no abnormal return occurs.
In one embodiment, the K items of graphic attributes further include a graphic attribute option, and the verification unit 332 is further configured to:
and triggering the simulation running program to adjust the graphic attribute option value of the graphic instance according to the graphic attribute option in the description information, rendering the graphic instance in the browser, and determining that the graphic attribute configuration is verified to be passed when abnormal return is not generated.
In one embodiment, the K items of graphical attributes further include visual interaction events, and the verification unit 332 is further configured to:
and the triggering simulation running program generates a visual interaction event example according to the visual interaction event in the description information, calls the visual interaction event example in the browser and triggers a corresponding event, and determines that the visual interaction event passes the verification when no abnormal event returns.
In one embodiment, the K items of graphic attributes further include rendering calculation rules, and the verification unit 332 is further configured to:
and the simulation operation program renders the visual interaction event examples in the browser according to the rendering calculation rules in the description information, and determines that the rendering calculation rules are verified when no abnormal condition returns.
The management device for the plug-in graphics provided by the embodiment of the disclosure modifies the existing graphics or adds new graphics in a plug-in mode. When an installation package of a graphic plug-in is received, the plug-in registration service judges whether the description information of the installation package is matched with the plug-in attribute module, if so, the plurality of graphic attributes are further verified, and the graphic plug-in registration is completed after the verification is passed. And preliminarily determining that the graphic plug-in to be installed meets the requirements of the data visualization platform on the graphic plug-in through the description information. Further, by verifying the graphic attributes, the usability of the installed graphic plug-in is guaranteed.
The registered graphic plug-ins can be conveniently unloaded by dynamically modifying the existing graphic plug-ins and adding new graphic plug-ins in a plug-in mode. And a third party can be allowed to submit plug-ins to the data visualization platform, so that a more open and friendly technical platform is created, and a good business ecology is formed.
Based on the management method of the plug-in graphics described in the foregoing embodiments, an embodiment of the present disclosure further provides a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the management method of the plug-in graphics described in the above embodiments, which are not described herein again.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (6)

1. A method for managing a plug-in graphic, the method comprising:
acquiring graph data, wherein the graph data comprises an installation package of a graph plug-in and description information of the graph attribute of the plug-in;
determining whether the description information is matched with a preset plug-in attribute template or not through a plug-in registration service, wherein the plug-in attribute template comprises K items of graphic attributes, K is more than or equal to 1, and the K items of graphic attributes at least comprise graphic structures, visual interaction events, number-graph mapping rules, rendering calculation rules, data structures and graphic attribute options; if the verification is successful, verifying N items in the K items of graphic attributes through a simulation operation program of the plug-in registration service, wherein N is more than or equal to 1 and less than or equal to K, and completing the registration of the graphic plug-in by using the installation package when the verification is successful;
wherein, when the K items of graphic attributes comprise a graphic structure, a data structure and a number-to-graph mapping rule, the simulation run program verifies N items of the K items of graphic attributes, including:
the simulation operation program constructs basic elements for forming the graph according to the graph structure;
according to the data structure and the number-map mapping rule, adopting a preset simulation data set to construct the input of the data attribute items of the graph;
forming a graphic instance according to the basic elements of the graphic and the input of the data attribute items, rendering the graphic instance in a background browser according to the attribute option values of the graphic, and determining that the graphic structure, the data structure and the number-map mapping rule are verified to be passed when no abnormal return is made;
wherein, when the K items of graphic attributes further include graphic attribute options, the simulation executive verifies N items of the K items of graphic attributes, further including:
and the simulation operation program adjusts the graphic attribute option value of the graphic instance according to the graphic attribute option in the description information, renders the graphic instance in the browser, and determines that the graphic attribute configuration passes verification when abnormal return occurs.
2. The method of claim 1, wherein before the simulation executive verifies N of the K graphical attributes, further comprising: the simulation running program opens a browser at the background and simulates the loading process of the graphic plug-in;
the simulation executive program verifies N items in the K items of graphic attributes, including: and the simulation running program verifies N items in the K items of graphic attributes when the normal loading is determined.
3. The method of claim 1, wherein the K items of graphical attributes further comprise visual interaction events, wherein the simulation executive verifies N of the K items of graphical attributes, further comprising:
and the simulation running program generates a visual interaction event example according to the visual interaction event in the description information, calls the visual interaction event example in the browser and triggers a corresponding event, and determines that the visual interaction event passes verification when abnormal returns.
4. The method of claim 1, wherein the K items of graphical attributes further include rendering computation rules, and wherein the simulation executive validates N of the K items of graphical attributes, further comprising:
and the simulation operation program renders the visual interaction event instance in the browser according to the rendering calculation rule in the description information, and determines that the rendering calculation rule is verified when no abnormal condition returns.
5. A management apparatus of a plug-in graphic, the apparatus comprising:
the interface module is used for acquiring graphic data, and the graphic data comprises an installation package of a graphic plug-in and description information of the graphic attribute of the plug-in;
the verification module is used for determining whether the description information is matched with a preset plug-in attribute template through a plug-in registration service, wherein the plug-in attribute template comprises K graphic attributes, and K is more than or equal to 1;
the registration module is used for verifying N items in the K items of graphic attributes through a simulation operation program of the plug-in registration service when the matching is determined, wherein N is more than or equal to 1 and less than or equal to K, and the registration of the graphic plug-in is completed by utilizing the installation package when the verification is passed;
wherein, when the K items of graphics attributes include a graphics structure, a data structure, and a number-to-map mapping rule, the verification unit is further configured to:
triggering the simulation operation program to construct basic elements forming the graph according to the graph structure;
wherein, when the K items of graphic attributes further include a graphic attribute option, the verification unit is further configured to:
and triggering the simulation running program to adjust the graphic attribute option value of the graphic instance according to the graphic attribute option in the description information, rendering the graphic instance in a browser, and determining that the graphic attribute configuration is verified to be passed when abnormal return is performed.
6. The apparatus of claim 5, wherein the registration module comprises a loading unit and an authentication unit;
the loading unit is used for opening a browser at the background through the simulation running program and simulating the loading process of the graphic plug-in;
and the verification unit is used for verifying N items in the K items of graphic attributes when the simulation running program determines that the loading is normal.
CN201910539924.1A 2019-06-20 2019-06-20 Management method and equipment of plug-in graphics Active CN110275923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910539924.1A CN110275923B (en) 2019-06-20 2019-06-20 Management method and equipment of plug-in graphics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910539924.1A CN110275923B (en) 2019-06-20 2019-06-20 Management method and equipment of plug-in graphics

Publications (2)

Publication Number Publication Date
CN110275923A CN110275923A (en) 2019-09-24
CN110275923B true CN110275923B (en) 2021-10-08

Family

ID=67961341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910539924.1A Active CN110275923B (en) 2019-06-20 2019-06-20 Management method and equipment of plug-in graphics

Country Status (1)

Country Link
CN (1) CN110275923B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552524B (en) * 2020-05-06 2023-10-13 Oppo(重庆)智能科技有限公司 Plug-in loading method and device and computer readable storage medium
CN114253630B (en) * 2021-12-23 2023-07-25 上海新炬网络信息技术股份有限公司 Method for realizing log storage based on Java section modification Form change information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577754A (en) * 2012-08-02 2014-02-12 腾讯科技(深圳)有限公司 Plugin installation detection method and device
CN105094889A (en) * 2012-03-29 2015-11-25 北京奇虎科技有限公司 Method and device for loading application program plugins
CN105468573A (en) * 2015-11-16 2016-04-06 中国电子科技集团公司第十研究所 Configurable diagram application system
CN108427809A (en) * 2017-08-12 2018-08-21 中民筑友科技投资有限公司 A kind of attribute assignment method and device based on assembled architecture
CN108595221A (en) * 2018-04-26 2018-09-28 Oppo广东移动通信有限公司 Plug-in loading method, device, server and the storage medium of PaaS platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094889A (en) * 2012-03-29 2015-11-25 北京奇虎科技有限公司 Method and device for loading application program plugins
CN103577754A (en) * 2012-08-02 2014-02-12 腾讯科技(深圳)有限公司 Plugin installation detection method and device
CN105468573A (en) * 2015-11-16 2016-04-06 中国电子科技集团公司第十研究所 Configurable diagram application system
CN108427809A (en) * 2017-08-12 2018-08-21 中民筑友科技投资有限公司 A kind of attribute assignment method and device based on assembled architecture
CN108595221A (en) * 2018-04-26 2018-09-28 Oppo广东移动通信有限公司 Plug-in loading method, device, server and the storage medium of PaaS platform

Also Published As

Publication number Publication date
CN110275923A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN112631210B (en) System, programming method and computer medium for developing industrial control program
CN112631555B (en) System and method for developing industrial applications
CN110825362A (en) Low-code application software development system and method
US6769095B1 (en) Hierarchically structured control information editor
US9286037B2 (en) Platform for distributed applications
US8448132B2 (en) Systems and methods for modifying code generation templates
CN102105862B (en) Automatic user interface generation for entity interaction
US7665014B2 (en) Method and apparatus for generating forms using form types
Heitkötter et al. Extending a model-driven cross-platform development approach for business apps
Pidd et al. Simulation software: not the same yesterday, today or forever
Moreno et al. An overview of model-driven web engineering and the MDA
Akiki et al. Cedar studio: an IDE supporting adaptive model-driven user interfaces for enterprise applications
CN110275923B (en) Management method and equipment of plug-in graphics
JP2013518321A (en) Pattern-based user interface
CN115840421A (en) System for developing industrial control programming, method and medium for programming industrial system
CN114912897A (en) Workflow execution method, workflow arrangement method and electronic equipment
CN113835691A (en) iOS application development method, system, device, medium and program product
CN112783660B (en) Resource processing method and device in virtual scene and electronic equipment
CN113485708A (en) Sketch-based cross-platform interface development method and system, computer device and medium
Simonsen PetriCode: a tool for template-based code generation from CPN models
CN116431200A (en) Configuration method, device, equipment and storage medium for application data configuration information
Mongiello et al. AC-contract: Run-time verification of context-aware applications
Design et al. MIT Architecture
Åkesson et al. Jatte: A tunable tree editor for integrated DSLs
CN109933355A (en) Application program updating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Management method and equipment of plug-in graphics

Effective date of registration: 20221222

Granted publication date: 20211008

Pledgee: Xi'an innovation financing Company limited by guarantee

Pledgor: MERITDATA TECHNOLOGY CO.,LTD.

Registration number: Y2022610000822