CN117453957A - Resource processing method, device, computer equipment and storage medium - Google Patents

Resource processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117453957A
CN117453957A CN202311247932.1A CN202311247932A CN117453957A CN 117453957 A CN117453957 A CN 117453957A CN 202311247932 A CN202311247932 A CN 202311247932A CN 117453957 A CN117453957 A CN 117453957A
Authority
CN
China
Prior art keywords
resource
maintenance
relation
node
maintenance resource
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.)
Pending
Application number
CN202311247932.1A
Other languages
Chinese (zh)
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202311247932.1A priority Critical patent/CN117453957A/en
Publication of CN117453957A publication Critical patent/CN117453957A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • 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/25Integrating or interfacing systems involving database management systems
    • 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/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models
    • 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/906Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a resource processing method, a resource processing device, computer equipment, a storage medium and a computer program product, and relates to the technical field of big data. The method comprises the following steps: acquiring an operation and maintenance resource diagram database; the operation and maintenance resource map database comprises at least two types of operation and maintenance resource nodes and resource node relations associated with each operation and maintenance resource node; the resource node relation comprises at least one of a resource change relation, a resource association relation and a resource master-slave relation; acquiring target operation and maintenance resource data, and importing the target operation and maintenance resource data into an operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation; and displaying the graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity. The method can be used for operating and maintaining the resource management efficiency of the system.

Description

Resource processing method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of big data technology, and in particular, to a resource processing method, an apparatus, a computer device, a storage medium, and a computer program product.
Background
The resource information system is a system for collecting natural resource data (or data), processing, analyzing and interpreting the data by information technology and finally outputting applicable natural resource information.
In the related art, different resource information systems may be designed for different application scenarios, for example, corresponding resource information systems may be designed for the operation and maintenance scenarios. However, in the related art, the operation and maintenance system is difficult to uniformly manage the resources, the use, distribution and change conditions of the environment resources are difficult to grasp in real time by operation and maintenance personnel, and the resource information is often required to be searched through the cooperation of a plurality of platforms and multiparty personnel, so that the efficiency is extremely low.
Accordingly, the related art has a problem that the resource management efficiency of the operation and maintenance system is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a resource processing method, apparatus, computer device, computer readable storage medium, and computer program product that can improve the resource management efficiency of an operation and maintenance system.
In a first aspect, the present application provides a resource processing method. The method comprises the following steps:
acquiring an operation and maintenance resource diagram database; the operation and maintenance resource map database comprises at least two types of operation and maintenance resource nodes and resource node relations associated with the operation and maintenance resource nodes; the resource node relation comprises at least one of a resource change relation, a resource association relation and a resource master-slave relation;
Acquiring target operation and maintenance resource data, and importing the target operation and maintenance resource data into the operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation;
and displaying the graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity.
In one embodiment, the acquiring the operation and maintenance resource map database includes:
acquiring a resource type and an instance type matched with the operation and maintenance resource data;
establishing the operation and maintenance resource nodes of at least two types according to the resource type and the instance type;
and establishing the operation and maintenance resource diagram database according to the at least two types of operation and maintenance resource nodes.
In one embodiment, the building the operation and maintenance resource graph database according to the at least two types of operation and maintenance resource nodes includes:
acquiring a node relation type matched with the operation and maintenance resource node;
establishing a resource node relation associated with each operation and maintenance resource node according to the node relation type;
and establishing the operation and maintenance resource graph database according to the at least two types of operation and maintenance resource nodes and the resource node relation associated with each operation and maintenance resource node.
In one embodiment, the target operation and maintenance resource data includes a parameter mapping relationship between operation and maintenance resource description parameters and operation and maintenance resource description parameter values;
the importing the target operation and maintenance resource data into the operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation, including:
acquiring a first data mapping relation and a second data mapping relation; the first data mapping relation comprises a mapping relation between the operation and maintenance resource description parameters and the operation and maintenance resource nodes; the second data mapping relation comprises a mapping relation between the operation and maintenance resource description parameters and the resource node relation;
and importing the target operation and maintenance resource data into the operation and maintenance resource map database according to the parameter mapping relation, the first data mapping relation and the second data mapping relation to obtain the operation and maintenance resource node entity matched with the operation and maintenance resource description parameter value and the resource node relation entity matched with the operation and maintenance resource description parameter value.
In one embodiment, the obtaining the first data mapping relationship and the second data mapping relationship includes:
Acquiring node attributes corresponding to the operation and maintenance resource nodes and relationship attributes corresponding to the resource node relationships;
establishing a mapping relation between the operation and maintenance resource description parameters and the node attributes to obtain the first data mapping relation;
and establishing a mapping relation between the operation and maintenance resource description parameters and the relation attribute to obtain the second data mapping relation.
In one embodiment, the target operation and maintenance resource data includes target operation and maintenance resource data of different resource types; the displaying the graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity comprises the following steps:
determining operation and maintenance resource node entities corresponding to the resource types and corresponding resource node relation entities;
and according to the operation and maintenance resource node entity corresponding to each resource type and the corresponding resource node relation entity, paging and displaying the graph data corresponding to the target operation and maintenance resource data of each resource type.
In a second aspect, the present application further provides a resource processing device. The device comprises:
the acquisition module is used for acquiring an operation and maintenance resource diagram database; the operation and maintenance resource map database comprises at least two types of operation and maintenance resource nodes and resource node relations associated with the operation and maintenance resource nodes; the resource node relation comprises at least one of a resource change relation, a resource association relation and a resource master-slave relation;
The importing module is used for acquiring target operation and maintenance resource data, importing the target operation and maintenance resource data into the operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation;
and the display module is used for displaying the graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring an operation and maintenance resource diagram database; the operation and maintenance resource map database comprises at least two types of operation and maintenance resource nodes and resource node relations associated with the operation and maintenance resource nodes; the resource node relation comprises at least one of a resource change relation, a resource association relation and a resource master-slave relation;
acquiring target operation and maintenance resource data, and importing the target operation and maintenance resource data into the operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation;
And displaying the graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring an operation and maintenance resource diagram database; the operation and maintenance resource map database comprises at least two types of operation and maintenance resource nodes and resource node relations associated with the operation and maintenance resource nodes; the resource node relation comprises at least one of a resource change relation, a resource association relation and a resource master-slave relation;
acquiring target operation and maintenance resource data, and importing the target operation and maintenance resource data into the operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation;
and displaying the graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
Acquiring an operation and maintenance resource diagram database; the operation and maintenance resource map database comprises at least two types of operation and maintenance resource nodes and resource node relations associated with the operation and maintenance resource nodes; the resource node relation comprises at least one of a resource change relation, a resource association relation and a resource master-slave relation;
acquiring target operation and maintenance resource data, and importing the target operation and maintenance resource data into the operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation;
and displaying the graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity.
The resource processing method, the device, the computer equipment, the storage medium and the computer program product are used for acquiring an operation and maintenance resource diagram database; the operation and maintenance resource map database comprises at least two types of operation and maintenance resource nodes and resource node relations associated with each operation and maintenance resource node; the resource node relation comprises at least one of a resource change relation, a resource association relation and a resource master-slave relation; acquiring target operation and maintenance resource data, and importing the target operation and maintenance resource data into an operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation; and displaying the graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity.
Thus, the operation and maintenance resource nodes of different types and the resource node relation comprising at least one of the resource change relation, the resource association relation and the resource master-slave relation are established, the establishment of the operation and maintenance resource diagram database is completed, the operation and maintenance resource node entities of different types corresponding to the operation and maintenance resource nodes and the resource node relation entities of different types corresponding to the resource node relation are obtained by importing the target operation and maintenance resource data into the established operation and maintenance resource diagram database, the use condition, the change condition and the association relation of the target operation and maintenance resource data can be recorded, the use condition of the current target operation and maintenance resource data can be tracked in real time, the diagram data corresponding to the target operation and maintenance resource data can be displayed according to the operation and maintenance resource node entity and the resource node relation entity, the data support can be provided for the visualization of the front-end page resource information, the real-time update of the front-end page data is ensured, the change information is synchronous in time, the operation and maintenance personnel can be facilitated, the use condition of the operation and maintenance personnel can be more rapidly and accurately carried out, and the resource management efficiency of an operation and maintenance system is effectively improved.
Drawings
FIG. 1 is a flow chart of a method of processing resources according to one embodiment;
FIG. 2 is a flowchart illustrating a step of obtaining an operation and maintenance resource map database in one embodiment;
FIG. 3 is a flowchart illustrating steps for creating an operation and maintenance resource map database in one embodiment;
FIG. 4 is a flowchart of a resource processing method according to another embodiment;
FIG. 5 is a block diagram of a resource processing device in one embodiment;
fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
In one embodiment, as shown in fig. 1, a resource processing method is provided, where this embodiment is applied to a terminal to illustrate the method, and it is understood that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the steps of:
step S110, an operation and maintenance resource diagram database is obtained.
The operation and maintenance resource graph database comprises at least two types of operation and maintenance resource nodes and resource node relations associated with the operation and maintenance resource nodes.
The resource node relation comprises at least one of a resource change relation, a resource association relation and a resource master-slave relation.
In a specific implementation, the terminal may obtain an operation and maintenance resource map database established for operation and maintenance data of the database.
Step S120, obtaining target operation and maintenance resource data, and importing the target operation and maintenance resource data into an operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation.
The target operation and maintenance resource data is operation and maintenance resource data corresponding to the target database, namely the target operation and maintenance resource data is resource data obtained by using the target database and performing operation and maintenance management on the target database.
The target database may be a database adopted in the field of financial science and technology, and the target database may be a distributed database.
In a specific implementation, the terminal can acquire the operation and maintenance resource data corresponding to the target database as the target operation and maintenance resource data, and map the target operation and maintenance resource data to the operation and maintenance resource nodes in the operation and maintenance resource map database and the resource node relation in the operation and maintenance resource map database by importing the target operation and maintenance resource data into the operation and maintenance resource map database, so that an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation can be obtained.
Step S130, according to the operation and maintenance resource node entity and the resource node relation entity, the graph data corresponding to the target operation and maintenance resource data is displayed.
In a specific implementation, according to the operation and maintenance resource node entity and the resource node relation entity, the graph data corresponding to the target operation and maintenance resource data can be obtained, so that the graph data corresponding to the target operation and maintenance resource data can be displayed through a front-end page.
In the resource processing method, nodes and resource node relations associated with each operation and maintenance resource node; the resource node relation comprises at least one of a resource change relation, a resource association relation and a resource master-slave relation; acquiring target operation and maintenance resource data, and importing the target operation and maintenance resource data into an operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation; and displaying the graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity.
Thus, the operation and maintenance resource nodes of different types and the resource node relation comprising at least one of the resource change relation, the resource association relation and the resource master-slave relation are established, the establishment of the operation and maintenance resource diagram database is completed, the operation and maintenance resource node entities of different types corresponding to the operation and maintenance resource nodes and the resource node relation entities of different types corresponding to the resource node relation are obtained by importing the target operation and maintenance resource data into the established operation and maintenance resource diagram database, the use condition, the change condition and the association relation of the target operation and maintenance resource data can be recorded, the use condition of the current target operation and maintenance resource data can be tracked in real time, the diagram data corresponding to the target operation and maintenance resource data can be displayed according to the operation and maintenance resource node entity and the resource node relation entity, the data support can be provided for the visualization of the front-end page resource information, the real-time update of the front-end page data is ensured, the change information is synchronous in time, the operation and maintenance personnel can be facilitated, the use condition of the operation and maintenance personnel can be more rapidly and accurately carried out, and the resource management efficiency of an operation and maintenance system is effectively improved.
In one embodiment, as shown in fig. 2, step S110, obtaining an operation and maintenance resource map database includes the following steps:
Step S210, obtaining the resource type and the instance type matched with the operation and maintenance resource data.
In a specific implementation, the terminal may obtain a resource type and an instance type that match the operation and maintenance resource data.
Step S220, according to the resource type and the instance type, at least two types of operation and maintenance resource nodes are established.
In a specific implementation, the terminal may establish at least two types of operation and maintenance resource nodes according to the resource type and the instance type matched with the operation and maintenance resource data. Wherein, the at least two types of operation and maintenance resource nodes can comprise a management node, a monitoring node, an instance node, a system node and the like.
The management node can be a management and control node on a management system platform for assisting a user in building, managing and operating a target database cluster; the monitoring node can be a monitoring instance under each cluster; the instance node can be a resource instance normally issued to the project group; the system node may be a resource instance for use with other management system platforms.
The node types can be increased or decreased according to actual application conditions.
And step S230, an operation and maintenance resource diagram database is built according to at least two types of operation and maintenance resource nodes.
In a specific implementation, the terminal may establish an operation and maintenance resource map database according to at least two types of operation and maintenance resource nodes.
According to the technical scheme, the resource type and the instance type matched with the operation and maintenance resource data are obtained; according to the resource type and the instance type, at least two types of operation and maintenance resource nodes matched with the operation and maintenance resource data can be more accurately established; according to at least two types of operation and maintenance resource nodes, an operation and maintenance resource map database matched with operation and maintenance resource data can be established more accurately.
In one embodiment, as shown in fig. 3, step S230, building an operation and maintenance resource map database according to at least two types of operation and maintenance resource nodes, includes the following steps:
step S310, obtaining the node relation type matched with the operation and maintenance resource node.
In a specific implementation, the terminal can obtain the node relation type matched with the operation and maintenance resource node. The node relation type comprises at least one of a change relation, a change relation and a master-slave relation.
Wherein the change relation may characterize a change in resource usage of the instance node.
Wherein, the association relation can represent that certain association exists between the resource nodes of different types or different instances. Such as the use of the same item group, etc.
The master-slave relationship may represent the belonging relationship under one cluster, or the belonging relationship among the item groups, etc.
The relationship type can be increased or decreased according to the actual application situation.
Step S320, establishing the resource node relation associated with each operation and maintenance resource node according to the node relation type.
In a specific implementation, the terminal can establish a resource node relation associated with each operation and maintenance resource node according to a node relation type matched with the operation and maintenance resource node, so that the resource node relation can comprise at least one of a resource change relation, a resource association relation and a resource master-slave relation.
Step S330, an operation and maintenance resource graph database is built according to at least two types of operation and maintenance resource nodes and the resource node relation associated with each operation and maintenance resource node.
In a specific implementation, the terminal may establish an operation and maintenance resource map database according to the at least two types of operation and maintenance resource nodes and the resource node relation associated with each operation and maintenance resource node.
According to the technical scheme, the node relation type matched with the operation and maintenance resource node is obtained; according to the node relation type, the resource node relation associated with each operation and maintenance resource node can be more accurately established; according to at least two types of operation and maintenance resource nodes and the resource node relation associated with each operation and maintenance resource node, an operation and maintenance resource diagram database matched with operation and maintenance resource data can be established more accurately, so that the resource use condition, the change condition and the association relation can be recorded through the operation and maintenance resource diagram database, and the resource management efficiency of an operation and maintenance system is improved.
In one embodiment, the target operation and maintenance resource data comprises a parameter mapping relationship between operation and maintenance resource description parameters and operation and maintenance resource description parameter values;
importing the target operation and maintenance resource data into an operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation, wherein the operation and maintenance resource node entity comprises: acquiring a first data mapping relation and a second data mapping relation; the first data mapping relation comprises a mapping relation between the operation and maintenance resource description parameters and operation and maintenance resource nodes; the second data mapping relation comprises a mapping relation between the operation and maintenance resource description parameters and the resource node relation; and importing the target operation and maintenance resource data into an operation and maintenance resource map database according to the parameter mapping relation, the first data mapping relation and the second data mapping relation to obtain an operation and maintenance resource node entity matched with the operation and maintenance resource description parameter value and a resource node relation entity matched with the operation and maintenance resource description parameter value.
The operation and maintenance resource description parameters may include parameters such as database state, gateway state, each node state, data disk usage, log disk usage, link number usage, SQL (Structured Query Language ) request amount, slow query amount, latency time, abnormal condition, operation condition, and the like.
In the specific implementation, in the process that the terminal imports the target operation and maintenance resource data into an operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation, the terminal can obtain a first data mapping relation and a second data mapping relation; the first data mapping relation comprises a mapping relation between operation and maintenance resource description parameters and operation and maintenance resource nodes; the second data mapping relation comprises a mapping relation between the operation and maintenance resource description parameters and the resource node relation.
In this way, the terminal can import the target operation and maintenance resource data into the operation and maintenance resource map database according to the parameter mapping relation between the operation and maintenance resource description parameter and the operation and maintenance resource description parameter value, the first data mapping relation and the second data mapping relation, so as to realize the mapping of the operation and maintenance resource description parameter value to the operation and maintenance resource node and the mapping to the resource node relation, thereby obtaining the operation and maintenance resource node entity matched with the operation and maintenance resource description parameter value and the resource node relation entity matched with the operation and maintenance resource description parameter value.
The target operation and maintenance resource data can be imported in batches, and if the target operation and maintenance resource data is stock data, the target operation and maintenance resource data can be imported by one key so as to adaptively establish an operation and maintenance resource node entity and a resource node relation entity.
According to the technical scheme of the embodiment, the target operation and maintenance resource data comprises a parameter mapping relation between operation and maintenance resource description parameters and operation and maintenance resource description parameter values; acquiring a first data mapping relation and a second data mapping relation; the first data mapping relation comprises a mapping relation between operation and maintenance resource description parameters and operation and maintenance resource nodes; the second data mapping relation comprises a mapping relation between the operation and maintenance resource description parameters and the resource node relation; according to the parameter mapping relation, the first data mapping relation and the second data mapping relation, the target operation and maintenance resource data is imported into an operation and maintenance resource map database, and the operation and maintenance resource description parameter values can be mapped to operation and maintenance resource nodes and mapped to resource node relations, so that an operation and maintenance resource node entity matched with the operation and maintenance resource description parameter values and a resource node relation entity matched with the operation and maintenance resource description parameter values can be obtained more accurately, and further, based on the operation and maintenance resource node entity and the resource node relation entity, a user can query resource information and sent instance information, the data storage structure characteristics of the map database are utilized, the resource use condition, the change condition and the association relation are recorded, and the resource management efficiency of an operation and maintenance system is effectively improved.
In one embodiment, obtaining the first data mapping relationship and the second data mapping relationship includes: acquiring node attributes corresponding to the operation and maintenance resource nodes and relationship attributes corresponding to the resource node relationships; establishing a mapping relation between the operation and maintenance resource description parameters and the node attributes to obtain a first data mapping relation; and establishing a mapping relation between the operation and maintenance resource description parameters and the relation attributes to obtain a second data mapping relation.
In a specific implementation, in the process of acquiring the first data mapping relationship and the second data mapping relationship, the terminal can acquire attribute parameters corresponding to the operation and maintenance resource nodes to obtain node attributes, and acquire attribute parameters corresponding to the resource node relationships to obtain relationship attributes.
The attribute parameters may include parameters such as attribute name, attribute type, remark, default value, operation, etc. The attribute name can be attribute names of various attributes, such as an identifier, a name and the like corresponding to the node, the attribute names can be specific attribute values, the attribute type can determine the data type of the attribute value corresponding to the attribute name, and notes are other remark information corresponding to the attribute name and can be set according to requirements.
The operation and maintenance resource nodes of different types can correspond to different attribute parameters, the resource node relations of different types can correspond to different attribute parameters, and the resource node relations can be correspondingly set according to the characteristics of the node types and the relation types.
Then, the terminal can establish a mapping relation between the operation and maintenance resource description parameter and the node attribute, and the mapping relation is used as a first data mapping relation. And the terminal can also establish a mapping relation between the operation and maintenance resource description parameters and the relation attributes, and the mapping relation is used as a second data mapping relation.
According to the technical scheme, node attributes corresponding to the operation and maintenance resource nodes and relationship attributes corresponding to the resource node relationships are obtained; establishing a mapping relation between the operation and maintenance resource description parameters and the node attributes to obtain a first data mapping relation; and establishing a mapping relation between the operation and maintenance resource description parameters and the relation attributes to obtain a second data mapping relation. Therefore, by establishing the mapping relation between the operation and maintenance resource description parameters and the node attributes and the mapping relation between the operation and maintenance resource description parameters and the relation attributes, the operation and maintenance resource description parameter values corresponding to the operation and maintenance resource description parameters can be mapped to operation and maintenance resource nodes and mapped to the resource node relations, so that an operation and maintenance resource node entity matched with the operation and maintenance resource description parameter values and a resource node relation entity matched with the operation and maintenance resource description parameter values can be obtained more accurately, and further, the user can inquire resource information and sent instance information based on the operation and maintenance resource node entity and the resource node relation entity, the data storage structure characteristics of a graph database are utilized, the resource use condition, the change condition and the association relation are recorded, and the resource management efficiency of an operation and maintenance system is effectively improved.
In one embodiment, the target operation resource data includes target operation resource data of different resource types; displaying graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity, wherein the graph data comprises: determining operation and maintenance resource node entities corresponding to each resource type and corresponding resource node relation entities; and according to the operation and maintenance resource node entity corresponding to each resource type and the corresponding resource node relation entity, paging and displaying the graph data corresponding to the target operation and maintenance resource data of each resource type.
In a specific implementation, in a process of displaying graph data corresponding to target operation and maintenance resource data according to an operation and maintenance resource node entity and a resource node relation entity, the terminal can determine the operation and maintenance resource node entity corresponding to each resource type and the corresponding resource node relation entity, and according to the operation and maintenance resource node entity corresponding to each resource type and the corresponding resource node relation entity, the graph data corresponding to the target operation and maintenance resource data belonging to different resource types can be obtained, so that the graph data corresponding to the target operation and maintenance resource data of each resource type can be displayed through front-end page paging, and the use condition, the resource distribution condition and the like of resource information of different resource types can be displayed in real time. In addition, the front-end page can also provide searching functions, such as searching resource application information of a certain item group, changing conditions of a certain resource instance and the like, and support searching and visual display functions.
According to the technical scheme, the target operation and maintenance resource data comprise target operation and maintenance resource data of different resource types; determining operation and maintenance resource node entities corresponding to each resource type and corresponding resource node relation entities; and according to the operation and maintenance resource node entity corresponding to each resource type and the corresponding resource node relation entity, paging and displaying the graph data corresponding to the target operation and maintenance resource data of each resource type. Therefore, through data visualization, the graph data corresponding to the target operation and maintenance resource data of different resource types is displayed in a paging mode, so that a user can conveniently check the use condition, the change condition and the association relation of the target operation and maintenance resource data of different resource types, operation and maintenance can be performed more quickly and accurately, and the resource management efficiency of an operation and maintenance system is effectively improved.
In another embodiment, as shown in fig. 4, a resource processing method is provided, and the method is applied to a terminal for illustration, and includes the following steps:
step S402, obtaining the resource type and the instance type matched with the operation and maintenance resource data.
Step S404, according to the resource type and the instance type, at least two types of operation and maintenance resource nodes are established.
Step S406, obtaining the node relation type matched with the operation and maintenance resource node.
Step S408, establishing a resource node relation associated with each operation and maintenance resource node according to the node relation type.
Step S410, an operation and maintenance resource graph database is built according to at least two types of operation and maintenance resource nodes and the resource node relation associated with each operation and maintenance resource node.
In step S412, the first data mapping relationship and the second data mapping relationship are obtained.
Step S414, importing the target operation and maintenance resource data into an operation and maintenance resource map database according to the parameter mapping relation, the first data mapping relation and the second data mapping relation to obtain an operation and maintenance resource node entity matched with the operation and maintenance resource description parameter value and a resource node relation entity matched with the operation and maintenance resource description parameter value.
Step S416, determining operation and maintenance resource node entities corresponding to each resource type and corresponding resource node relation entities.
Step S418, according to the operation and maintenance resource node entity corresponding to each resource type and the corresponding resource node relation entity, the graph data corresponding to the target operation and maintenance resource data of each resource type is displayed in a paging mode.
It should be noted that, the specific limitation of the above steps may be referred to as specific limitation of a resource processing method.
In addition, the method can be further expanded to other application scenes, such as social networks, social situations are determined through association relations, and the method is not limited to operation and maintenance scenes.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a resource processing device for realizing the above-mentioned resource processing method. The implementation of the solution provided by the apparatus is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the resource processing apparatus provided below may refer to the limitation of one resource processing method hereinabove, and will not be described herein.
In one embodiment, as shown in fig. 5, there is provided a resource processing apparatus including: an acquisition module 510, an import module 520, and a display module 530, wherein:
an obtaining module 510, configured to obtain an operation and maintenance resource map database; the operation and maintenance resource map database comprises at least two types of operation and maintenance resource nodes and resource node relations associated with the operation and maintenance resource nodes; the resource node relationship comprises at least one of a resource change relationship, a resource association relationship and a resource master-slave relationship.
And the importing module 520 is configured to obtain target operation and maintenance resource data, import the target operation and maintenance resource data into the operation and maintenance resource map database, and obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node, and a resource node relationship entity corresponding to the resource node relationship.
And a display module 530, configured to display, according to the operation and maintenance resource node entity and the resource node relationship entity, graph data corresponding to the target operation and maintenance resource data.
In one embodiment, the obtaining module 510 is specifically configured to obtain a resource type and an instance type that are matched with the operation and maintenance resource data; establishing the operation and maintenance resource nodes of at least two types according to the resource type and the instance type; and establishing the operation and maintenance resource diagram database according to the at least two types of operation and maintenance resource nodes.
In one embodiment, the obtaining module 510 is specifically configured to obtain a node relationship type that matches the operation and maintenance resource node; establishing a resource node relation associated with each operation and maintenance resource node according to the node relation type; and establishing the operation and maintenance resource graph database according to the at least two types of operation and maintenance resource nodes and the resource node relation associated with each operation and maintenance resource node.
In one embodiment, the target operation and maintenance resource data includes a parameter mapping relationship between operation and maintenance resource description parameters and operation and maintenance resource description parameter values; the importing module 520 is specifically configured to obtain a first data mapping relationship and a second data mapping relationship; the first data mapping relation comprises a mapping relation between the operation and maintenance resource description parameters and the operation and maintenance resource nodes; the second data mapping relation comprises a mapping relation between the operation and maintenance resource description parameters and the resource node relation; and importing the target operation and maintenance resource data into the operation and maintenance resource map database according to the parameter mapping relation, the first data mapping relation and the second data mapping relation to obtain the operation and maintenance resource node entity matched with the operation and maintenance resource description parameter value and the resource node relation entity matched with the operation and maintenance resource description parameter value.
In one embodiment, the import module 520 is specifically configured to obtain a node attribute corresponding to the operation and maintenance resource node and a relationship attribute corresponding to the resource node relationship; establishing a mapping relation between the operation and maintenance resource description parameters and the node attributes to obtain the first data mapping relation; and establishing a mapping relation between the operation and maintenance resource description parameters and the relation attribute to obtain the second data mapping relation.
In one embodiment, the target operation and maintenance resource data includes target operation and maintenance resource data of different resource types; the display module 530 is specifically configured to determine an operation and maintenance resource node entity corresponding to each of the resource types and a corresponding resource node relationship entity; and according to the operation and maintenance resource node entity corresponding to each resource type and the corresponding resource node relation entity, paging and displaying the graph data corresponding to the target operation and maintenance resource data of each resource type.
The respective modules in the above-described resource processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a resource processing method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to comply with the related laws and regulations and standards of the related countries and regions.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method of resource processing, the method comprising:
acquiring an operation and maintenance resource diagram database; the operation and maintenance resource map database comprises at least two types of operation and maintenance resource nodes and resource node relations associated with the operation and maintenance resource nodes; the resource node relation comprises at least one of a resource change relation, a resource association relation and a resource master-slave relation;
Acquiring target operation and maintenance resource data, and importing the target operation and maintenance resource data into the operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation;
and displaying the graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity.
2. The method of claim 1, wherein the obtaining an operation and maintenance resource map database comprises:
acquiring a resource type and an instance type matched with the operation and maintenance resource data;
establishing the operation and maintenance resource nodes of at least two types according to the resource type and the instance type;
and establishing the operation and maintenance resource diagram database according to the at least two types of operation and maintenance resource nodes.
3. The method according to claim 2, wherein said building said operation and maintenance resource map database from said at least two types of operation and maintenance resource nodes comprises:
acquiring a node relation type matched with the operation and maintenance resource node;
establishing a resource node relation associated with each operation and maintenance resource node according to the node relation type;
And establishing the operation and maintenance resource graph database according to the at least two types of operation and maintenance resource nodes and the resource node relation associated with each operation and maintenance resource node.
4. The method of claim 1, wherein the target operation and maintenance resource data includes a parameter mapping relationship between operation and maintenance resource description parameters and operation and maintenance resource description parameter values;
the importing the target operation and maintenance resource data into the operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation, including:
acquiring a first data mapping relation and a second data mapping relation; the first data mapping relation comprises a mapping relation between the operation and maintenance resource description parameters and the operation and maintenance resource nodes; the second data mapping relation comprises a mapping relation between the operation and maintenance resource description parameters and the resource node relation;
and importing the target operation and maintenance resource data into the operation and maintenance resource map database according to the parameter mapping relation, the first data mapping relation and the second data mapping relation to obtain the operation and maintenance resource node entity matched with the operation and maintenance resource description parameter value and the resource node relation entity matched with the operation and maintenance resource description parameter value.
5. The method of claim 4, wherein the obtaining the first data mapping and the second data mapping comprises:
acquiring node attributes corresponding to the operation and maintenance resource nodes and relationship attributes corresponding to the resource node relationships;
establishing a mapping relation between the operation and maintenance resource description parameters and the node attributes to obtain the first data mapping relation;
and establishing a mapping relation between the operation and maintenance resource description parameters and the relation attribute to obtain the second data mapping relation.
6. The method of claim 1, wherein the target operation and maintenance resource data comprises target operation and maintenance resource data of different resource types; the displaying the graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity comprises the following steps:
determining operation and maintenance resource node entities corresponding to the resource types and corresponding resource node relation entities;
and according to the operation and maintenance resource node entity corresponding to each resource type and the corresponding resource node relation entity, paging and displaying the graph data corresponding to the target operation and maintenance resource data of each resource type.
7. A resource processing apparatus, the apparatus comprising:
the acquisition module is used for acquiring an operation and maintenance resource diagram database; the operation and maintenance resource map database comprises at least two types of operation and maintenance resource nodes and resource node relations associated with the operation and maintenance resource nodes; the resource node relation comprises at least one of a resource change relation, a resource association relation and a resource master-slave relation;
the importing module is used for acquiring target operation and maintenance resource data, importing the target operation and maintenance resource data into the operation and maintenance resource map database to obtain an operation and maintenance resource node entity corresponding to the operation and maintenance resource node and a resource node relation entity corresponding to the resource node relation;
and the display module is used for displaying the graph data corresponding to the target operation and maintenance resource data according to the operation and maintenance resource node entity and the resource node relation entity.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311247932.1A 2023-09-26 2023-09-26 Resource processing method, device, computer equipment and storage medium Pending CN117453957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311247932.1A CN117453957A (en) 2023-09-26 2023-09-26 Resource processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311247932.1A CN117453957A (en) 2023-09-26 2023-09-26 Resource processing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117453957A true CN117453957A (en) 2024-01-26

Family

ID=89591874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311247932.1A Pending CN117453957A (en) 2023-09-26 2023-09-26 Resource processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117453957A (en)

Similar Documents

Publication Publication Date Title
US9305176B2 (en) Database generation from a spreadsheet
CN117390011A (en) Report data processing method, device, computer equipment and storage medium
CN116303657A (en) Group image generation method, group image generation device, computer device, and storage medium
CN117453957A (en) Resource processing method, device, computer equipment and storage medium
CN115495452A (en) Data processing method, data processing device, computer equipment and storage medium
CN114118469A (en) Internet of things equipment diagnosis method and device, computer equipment and storage medium
CN115766447B (en) Equipment function updating method and device
CN118132656A (en) Knowledge graph construction method, knowledge graph construction device, computer equipment and storage medium
CN114676675A (en) Data processing method, data processing device, computer equipment and storage medium
CN117648336A (en) Data query method, device, computer equipment and storage medium
CN118152464A (en) Regional resource index data processing method and device and computer equipment
CN117539917A (en) Information query method, device, computer equipment and storage medium
CN117909550A (en) Query method, query device, computer equipment and storage medium
CN116629049A (en) Cross-section attribute giving method, device, equipment and storage medium for finite element model
CN116775955A (en) Data tag solidifying method, device, computer equipment and storage medium
CN114647630A (en) File synchronization method, information generation method, file synchronization device, information generation device, computer equipment and storage medium
CN116881594A (en) View updating method, device, computer equipment and storage medium
CN117667999A (en) Data pushing method, device, computer equipment and computer readable storage medium
CN117435589A (en) Data transfer method, device, computer equipment and storage medium
CN114385630A (en) Blood relationship combing method, apparatus, device, storage medium, and program product
CN117130606A (en) Front-end page configuration method, front-end page configuration device, computer equipment and storage medium
CN116633774A (en) Platform address configuration method, device, computer equipment and storage medium
CN117349320A (en) Data processing method, device, computer equipment and storage medium
CN118301161A (en) Data service processing method, device, computer equipment and storage medium
CN117370281A (en) Data maintenance method, device, computer equipment and storage medium

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