WO2019153554A1 - 数据关系展示方法、装置、计算机设备及存储介质 - Google Patents

数据关系展示方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2019153554A1
WO2019153554A1 PCT/CN2018/085362 CN2018085362W WO2019153554A1 WO 2019153554 A1 WO2019153554 A1 WO 2019153554A1 CN 2018085362 W CN2018085362 W CN 2018085362W WO 2019153554 A1 WO2019153554 A1 WO 2019153554A1
Authority
WO
WIPO (PCT)
Prior art keywords
view layer
node
layer node
data
business
Prior art date
Application number
PCT/CN2018/085362
Other languages
English (en)
French (fr)
Inventor
林水明
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019153554A1 publication Critical patent/WO2019153554A1/zh

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/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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • 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/24Querying
    • G06F16/248Presentation of query results

Definitions

  • the CMDB Configuration Management Database
  • the CMDB software focuses on the management of information (acquisition, integration, recording, maintenance, inspection, update, etc.), while the database focuses on the physical storage of information, and the two are closely related.
  • the function of CMDB requires specialized CMDB management software, which is difficult to complete directly on traditional databases. Because the management of configuration information is the core function of CMDB, and this part of the function is difficult to implement by database software.
  • the CMDB based on the graph database manages various configuration information of the enterprise
  • the SQL statement of the query needs to be written, and the display manner of the query result is in the form of a data list.
  • the relationship between the device and other devices associated with the device cannot be visually seen.
  • the present application provides a data relationship display apparatus, including: a service view layer node retrieval unit, configured to search for a corresponding entity according to a search keyword, and obtain a service view layer node corresponding to the entity; a generating unit, configured to generate a first SQL script according to the service view layer node; the first service data acquiring unit is configured to execute the first SQL script to obtain the service data corresponding to the service view layer node in the relational database; An initial rendering unit, configured to render the business view layer node and the corresponding service data to the topology initial node; the associated node acquiring unit, configured to acquire a directly associated entity of the entity corresponding to the service view layer node, and the directly associated entity Corresponding associated business view layer node.
  • the present application also provides a storage medium, wherein the storage medium stores a computer program, the computer program comprising program instructions, the program instructions, when executed by a processor, causing the processor to execute the application Any of the data relationship presentation methods described.
  • the application provides a data relationship display method, device, computer device and storage medium.
  • the method realizes displaying the queried business data in the form of a topology map, and displaying the query data in a more intuitive and faster real-time manner, which is convenient for the user to view.
  • FIG. 3 is a schematic diagram of another sub-flow of a data relationship display method according to an embodiment of the present application.
  • FIG. 4 is another schematic flowchart of a data relationship display method according to an embodiment of the present application.
  • FIG. 5 is a schematic block diagram of a data relationship display apparatus according to an embodiment of the present application.
  • FIG. 8 is another schematic block diagram of a data relationship display apparatus according to an embodiment of the present application.
  • the top layer is the page layer (ViewGroup), which is an abstraction of the basic information of the page, mainly including the basic information of the page, such as: page name, page encoding and other information.
  • PageGroup is an abstraction of the basic information of the page, mainly including the basic information of the page, such as: page name, page encoding and other information.
  • the middle layer is the business view layer (View), which is an abstraction of business data.
  • View can be understood as a data table in the page, which mainly contains the name, code, View type and View component type of the business view.
  • Each business view View is composed of one or more Entities of the ER layer.
  • the View type mainly includes: a. Topology map type, mainly used to display data association view; b. Business data type, mainly used to display page table data.
  • the component types of View mainly include: a. data table; b. other data display components, such as tree diagrams, histograms and other data display components.
  • the bottom layer is the ER layer, which is mainly a representation of the relational database ER model. It is used to provide the basis for the management of the business data required by the business view layer View.
  • the ER layer mainly contains Entity/Attribute (where Entity represents Entity, Attribute represents the attribute of the entity) and the relationship between Entity and Entity, and the relationship between Entity and its Attribute.
  • Entity mainly contains information such as table name, table alias and other information, whether it is editable or not; Attribute mainly contains information such as attribute name, encoding, whether it is visible, and whether it can be edited.
  • FIG. 1b is a schematic flowchart of a data relationship display method according to an embodiment of the present application.
  • the method is applied to terminals such as desktop computers, laptop computers, and tablet computers.
  • the method includes steps S101 to S105.
  • the search keyword is input on the search box of the page, and the input keyword is completed in the relational database (such as the oracle database) according to the search keyword. Searches for the presence of search data corresponding to the search keyword. If there is corresponding search data, the search data is displayed in a list. When the user selects one of the retrieved data, the entity to which the selected data belongs is acquired, and the business view layer node corresponding to the entity is queried in the graphics database. When the user needs current data and other data related to the current data, it can be realized only by inputting the search keyword, without writing a SQL script, which reduces the operation difficulty.
  • S1012 Obtain search data corresponding to the search keyword in the relational database according to the search keyword;
  • the user inputs the name of the equipment room (such as optm-opcm) as a search keyword into the search box, and after clicking the search, the search result including the plurality of search data is displayed in the form of a list on the page.
  • the search result including the plurality of search data is displayed in the form of a list on the page.
  • the first SQL script is automatically generated according to the business view layer node.
  • the first SQL script including the select statement is generated according to the table name of the business view layer node.
  • each business view layer node of the ER layer in the graph database can be regarded as a data table, and the data table generally has information such as table name, encoding, type, etc., it can be based on a certain attribute of the business view layer node (such as a table).
  • the first SQL script is executed in the Mybatis framework, and the business data corresponding to the business view layer node is retrieved in the relational database.
  • the first SQL script in this application is automatically generated and does not require user editing.
  • MyBatis is an excellent persistence layer framework that supports custom SQL, stored procedures, and advanced mapping. It does two things: encapsulating JDBC operations; using reflection to break through the conversion between Java classes and SQL statements. MyBatis' main design goal is to make it easier for users to manage the input and output data when executing SQL statements.
  • the topology map initial node corresponding to the queried business view layer node is displayed on the topology map, and the topology map is filled with the service data in the initial node.
  • the service data filled in the node is displayed in the form of a pop-up window or the like.
  • the data related to the search keyword is visually displayed through the topology map, and the display by the data list is avoided.
  • the step S104 includes the following sub-steps:
  • S1041 Create and render a topology map initial node named by a name of a service view layer node in the topology map;
  • S1042 Render and fill the service data corresponding to the service view layer node to the initial node of the topology map.
  • a topology initial node is first created on the topology map, and the topology initial node (can be understood as a node on the topology map, which can be understood as a circle node or a box node) to serve
  • the name of the view layer node is named to ensure that the search results correspond to the selected search data, and the query results are simpler and more intuitive.
  • the business data corresponding to the business view layer node is rendered and populated to the topology map initial node.
  • the data detail display trigger switch (which can be understood as a virtual button) can be set in the initial node of the topology map.
  • the service data corresponding to the service view layer node is on the initial node side of the topology map.
  • the data display box is displayed, and the user's own selection is used to control the display of detailed business data.
  • step S105 the method further includes:
  • S1051 Determine whether the associated service view layer node is the same node as the service view layer node;
  • the search data corresponds to The entity is the equipment room, and the service view layer node corresponding to the equipment room is the equipment room information. Then, the following steps are performed: a) querying the entity of the service view layer node as the equipment room and the cabinet according to the information of the equipment room; b) corresponding to the equipment room
  • the directly associated entity of the entity is the cabinet, and the service view layer node corresponding to the cabinet is the information of the equipment room.
  • the service view layer node is the same as the service view layer node corresponding to the equipment room.
  • the associated entity is the U-bit of the equipment room and the device, and the service view layer node corresponding to the U-bit of the device is the equipment room; and the service view layer node corresponding to the equipment room is known, so it is no longer queried; d) the entity is queried according to the U-bit of the device.
  • the directly associated entity is the cabinet and the equipment room.
  • the service view layer nodes corresponding to the equipment room are known, so they are no longer queried.
  • the service personnel want to view the machine room equipment in a certain equipment room in the service view of the "Computer Room Information".
  • the ER layer Entity included in the service view of the service room layer is searched for, and the ER layer Entity included in the service view of the equipment room is displayed.
  • the Entity of the two service views is found in the Entity. If there is a business relationship, if there is no business relationship, the business relationship here is essentially the primary key/foreign key relationship of the ER layer. According to the primary key/foreign key data transmitted from the web end, the corresponding equipment room information can be queried.
  • step S1053 the method further includes:
  • S1056 The associated service view layer node and the corresponding service data are rendered to the topology map association node, where the topology map association node and the initial node of the topology map are connected by a relationship connection line.
  • the second SQL script is automatically generated according to the associated business view layer node.
  • the second SQL script including the select statement is generated according to the table name of the associated business view layer node.
  • the method realizes displaying the queried business data in the form of a topology map, and displaying the query data in a more intuitive and faster real-time manner, which is convenient for the user to view.
  • FIG. 5 is a schematic block diagram of a data relationship display apparatus according to an embodiment of the present application.
  • the data relationship display device 100 can be installed in a desktop computer, a tablet computer, a laptop computer, or the like.
  • the business view layer node retrieval unit 101 is configured to search for a corresponding entity according to the search keyword, and obtain a business view layer node corresponding to the entity.
  • the first script automatic generation unit 102 is configured to generate a first SQL script according to the business view layer node corresponding.
  • the user inputs the name of the equipment room (such as optm-opcm) as a search keyword into the search box, and after clicking the search, the search result including the plurality of search data is displayed in the form of a list on the page.
  • the search result including the plurality of search data is displayed in the form of a list on the page.
  • the first SQL script is automatically generated according to the business view layer node.
  • the first SQL script including the select statement is generated according to the table name of the business view layer node.
  • each business view layer node of the ER layer in the graph database can be regarded as a data table, and the data table generally has information such as table name, encoding, type, etc., it can be based on a certain attribute of the business view layer node (such as a table).
  • the first service data obtaining unit 103 is configured to execute the first SQL script to acquire the service data corresponding to the service view layer node in the relational database.
  • the topology map initial rendering unit 104 is configured to render the service view layer node and the corresponding service data to the topology map initial node.
  • the business view layer node retrieval unit 101 includes the following subunits:
  • the keyword obtaining unit 1011 is configured to acquire the search keyword that is entered; the search data acquiring unit 1012 is configured to obtain the search data corresponding to the search keyword in the relational database according to the search keyword; and the selected detecting unit 1013 is configured to: If it is detected that one piece of the data in the search data is selected, the entity corresponding to the selected data is obtained; the business view layer node obtaining unit 1014 is configured to obtain the business view layer node corresponding to the entity in the graphic database according to the entity.
  • the user inputs the name of the equipment room (such as optm-opcm) as a search keyword into the search box, and after clicking the search, the search result including the plurality of search data is displayed in the form of a list on the page.
  • the search result including the plurality of search data is displayed in the form of a list on the page.
  • An initial node creating unit 1041 configured to create and render a topology map initial node named after the name of the service view layer node in the topology map; an initial data filling unit 1042, configured to render and populate the service data corresponding to the business view layer node To the initial node of the topology map.
  • a topology initial node is first created on the topology map, and the topology initial node (can be understood as a node on the topology map, which can be understood as a circle node or a box node) to serve
  • the name of the view layer node is named to ensure that the search results correspond to the selected search data, and the query results are simpler and more intuitive.
  • the business data corresponding to the business view layer node is rendered and populated to the topology map initial node.
  • the data detail display trigger switch (which can be understood as a virtual button) can be set in the initial node of the topology map.
  • the service data corresponding to the service view layer node is on the initial node side of the topology map.
  • the data display box is displayed, and the user's own selection is used to control the display of detailed business data.
  • the data relationship display apparatus 100 further includes:
  • the same node judging unit 1051 is configured to determine whether the associated service view layer node is the same node as the service view layer node, and the node discarding unit 1052 is configured to associate the service view layer node with the service view layer node as the same node, and associate the service view.
  • the node save unit 1053 is configured to save the associated service view layer node if the associated service view layer node and the service view layer node are not the same node.
  • the search data corresponds to The entity is the equipment room, and the service view layer node corresponding to the equipment room is the equipment room information. Then, the following steps are performed: a) querying the entity of the service view layer node as the equipment room and the cabinet according to the information of the equipment room; b) corresponding to the equipment room
  • the directly associated entity of the entity is the cabinet, and the service view layer node corresponding to the cabinet is the information of the equipment room.
  • the service view layer node is the same as the service view layer node corresponding to the equipment room.
  • the associated entity is the U-bit of the equipment room and the device, and the service view layer node corresponding to the U-bit of the device is the equipment room; and the service view layer node corresponding to the equipment room is known, so it is no longer queried; d) the entity is queried according to the U-bit of the device.
  • the directly associated entity is the cabinet and the equipment room.
  • the service view layer nodes corresponding to the equipment room are known, so they are no longer queried.
  • the service personnel want to view the equipment room equipment in a certain equipment room in the service view of the "computer room information". In other words, you want to view the relationship between the business view of the "computer room information" and the business view of the "computer room equipment”.
  • the ER layer Entity included in the service view of the service room layer is searched for, and the ER layer Entity included in the service view of the equipment room is displayed. The Entity of the two service views is found in the Entity. If there is a business relationship, if there is no business relationship, the business relationship here is essentially the primary key/foreign key relationship of the ER layer. According to the primary key/foreign key data transmitted from the web end, the corresponding equipment room information can be queried.
  • the data relationship display apparatus 100 further includes:
  • the script generating unit 1054 is configured to generate a second SQL script according to the associated service view layer node corresponding to the associated service view layer node.
  • the service data obtaining unit 1055 is configured to execute the second SQL script to obtain the service data corresponding to the associated service view layer node in the relational database.
  • the associated node rendering unit 1056 is configured to render the associated service view layer node and the corresponding service data to the topology map association node; wherein the topology map association node and the topology map initial node are connected by a relationship connection line.
  • the second SQL script is automatically generated according to the associated business view layer node.
  • the second SQL script including the select statement is generated according to the table name of the associated business view layer node.
  • the device realizes displaying the queried business data in the form of a topology map, and displays the query data in a more intuitive and faster real-time manner, which is convenient for the user to view.
  • the data relationship presentation device described above can be implemented in the form of a computer program that can be run on a computer device as shown in FIG.
  • FIG. 9 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the computer device 500 device can be a terminal.
  • the terminal can be an electronic device such as a tablet computer, a notebook computer, a desktop computer, or a personal digital assistant.
  • the computer device 500 includes a processor 502, a memory, and a network interface 505 connected by a system bus 501, wherein the memory can include a non-volatile storage medium 503 and an internal memory 504.
  • the non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032.
  • the computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a data relationship presentation method.
  • the processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
  • the internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When executed by the processor 502, the computer program 5032 can cause the processor 502 to perform a data relationship presentation method.
  • the network interface 505 is used for network communication, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the structure shown in FIG. 9 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device 500 to which the solution of the present application is applied, and a specific computer device. 500 may include more or fewer components than shown, or some components may be combined, or have different component arrangements.
  • the processor 502 is configured to run a computer program 5032 stored in the memory to implement a function of: searching for a corresponding entity according to the search keyword, acquiring a service view layer node corresponding to the entity; and generating a corresponding node according to the service view layer a first SQL script; executing the first SQL script to obtain business data corresponding to the business view layer node in the relational database; rendering the business view layer node and the corresponding business data to the initial node of the topology view; acquiring the node with the business view layer The directly associated entity of the corresponding entity, and the associated business view layer node corresponding to the directly associated entity.
  • the first SQL script generated according to the service view layer node corresponding to the service view layer node generates a first SQL script including a select statement according to the table name of the service view layer node.
  • the processor 502 further performs the following operations: acquiring the entered search keyword; acquiring the search data corresponding to the search keyword in the relational database according to the search keyword; and detecting a piece of data in the retrieved data It is selected to obtain an entity corresponding to the selected data; and the business view layer node corresponding to the entity is obtained according to the entity in the graphic database.
  • the processor 502 further performs the following operations: creating and rendering a topology map initial node named after the name of the service view layer node in the topology map; rendering and populating the service data corresponding to the service view layer node to the topology Figure initial node.
  • the processor 502 further performs the following operations: determining whether the associated service view layer node is the same node as the service view layer node; if the associated service view layer node and the service view layer node are the same node, the service view layer is associated The node is discarded; if the associated business view layer node and the business view layer node are not the same node, the associated business view layer node is saved.
  • the processor 502 further performs: generating a second SQL script according to the associated service view layer node; and executing the second SQL script to obtain the service data corresponding to the associated service view layer node in the relational database;
  • the associated service view layer node and the corresponding service data are rendered to the topology map association node; wherein the topology map association node and the initial node of the topology map are connected by a relationship connection line.
  • the embodiment of the computer device shown in FIG. 9 does not constitute a limitation on the specific configuration of the computer device.
  • the computer device may include more or fewer components than illustrated. Or combine some parts, or different parts.
  • the computer device may include only a memory and a processor. In such an embodiment, the structure and functions of the memory and the processor are the same as those of the embodiment shown in FIG. 9, and details are not described herein.
  • the processor 502 may be a central processing unit (CPU), and the processor 502 may also be another general-purpose processor, a digital signal processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • a storage medium in another embodiment of the present application, is provided.
  • the storage medium can be a non-transitory computer readable storage medium.
  • the storage medium stores a computer program, wherein the computer program includes program instructions. When the program instruction is executed by the processor, the data relationship display method of the embodiment of the present application is implemented.

Landscapes

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

Abstract

一种数据关系展示方法、装置、计算机设备及存储介质。该方法包括:根据检索关键词搜索得到对应实体,获取与实体对应的业务视图层节点(S101);根据业务视图层节点对应生成第一SQL脚本(S102);执行第一SQL脚本以在关系型数据库中获取与业务视图层节点对应的业务数据(S103);将业务视图层节点及对应的业务数据渲染至拓扑图初始节点(S104);获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点(S105)。该方法实现了将所查询的业务数据以拓扑图的形式展现,更直观且更快速的实时显示查询数据,便于用户查看。

Description

数据关系展示方法、装置、计算机设备及存储介质
本申请要求于2018年2月12日提交中国专利局、申请号为201810144155.0、申请名称为“数据关系展示方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据库配置管理技术领域,尤其涉及一种数据关系展示方法、装置、计算机设备及存储介质。
背景技术
CMDB(Configuration Management Database,即配置管理数据库)存储与管理企业IT架构中设备的各种配置信息,它与所有服务支持和服务交付流程都紧密相联,支持这些流程的运转、发挥配置信息的价值,同时依赖于相关流程保证数据的准确性。CMDB软件侧重于信息的管理(采集、整合、记录、维护、检验、更新等),而数据库侧重于信息的物理存储,两者是密切联系的。CMDB的功能需要专门的CMDB管理软件,很难在传统数据库上直接完成。因为对配置信息的管理是CMDB的核心功能,而这一部分功能很难由数据库软件实现。
目前基于图形数据库的CMDB在对企业的各种配置信息进行管理时,当用户需要查询设备及与设备存在关联的其他设备时,需要编写查询的SQL语句,而且查询结果显示方式为数据列表形式,不能直观的看出设备及与设备存在关联的其他设备的关联关系。
发明内容
本申请提供了一种数据关系展示方法、装置、计算机设备及存储介质,旨在解决现有技术中基于图形数据库的CMDB在对企业的各种配置信息进行管理时,需要编写查询的SQL语句查询设备及与设备存在关联的其他设备,且查询结果以数据列表显示,无法直观的看出数据关系的问题。
第一方面,本申请提供了一种数据关系展示方法,其包括:根据检索关键 词搜索得到对应实体,获取与实体对应的业务视图层节点;根据业务视图层节点对应生成第一SQL脚本;执行第一SQL脚本以在关系型数据库中获取与业务视图层节点对应的业务数据;将业务视图层节点及对应的业务数据渲染至拓扑图初始节点;
获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点。
第二方面,本申请提供了一种数据关系展示装置,其包括:业务视图层节点检索单元,用于根据检索关键词搜索得到对应实体,获取与实体对应的业务视图层节点;第一脚本自动生成单元,用于根据业务视图层节点对应生成第一SQL脚本;第一业务数据获取单元,用于执行第一SQL脚本以在关系型数据库中获取与业务视图层节点对应的业务数据;拓扑图初始渲染单元,用于将业务视图层节点及对应的业务数据渲染至拓扑图初始节点;关联节点获取单元,用于获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点。
第三方面,本申请又提供了一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请提供的任一项所述的数据关系展示方法。
第四方面,本申请还提供了一种存储介质,其中所述存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行本申请提供的任一项所述的数据关系展示方法。
本申请提供一种数据关系展示方法、装置、计算机设备及存储介质。该方法实现了将所查询的业务数据以拓扑图的形式展现,更直观且更快速的实时显示查询数据,便于用户查看。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1a为本申请实施例中一具体图形数据库的三层结构示意图;
图1b为本申请实施例提供的一种数据关系展示方法的示意流程图;
图2是本申请实施例提供的一种数据关系展示方法的子流程示意图;
图3是本申请实施例提供的一种数据关系展示方法的另一子流程示意图;
图4为本申请实施例提供的一种数据关系展示方法的另一示意流程图;
图5为本申请实施例提供的一种数据关系展示装置的示意性框图;
图6为本申请实施例提供的一种数据关系展示装置的子单元示意性框图;
图7为本申请实施例提供的一种数据关系展示装置的另一子单元示意性框图;
图8为本申请实施例提供的一种数据关系展示装置的另一示意性框图;
图9为本申请实施例提供的一种计算机设备的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
为了方便理解,下面对本申请实施例中涉及的图形数据库,及CMDB应用系统及关系型数据库进行介绍。
在图形数据库中,存储有多个内核配置(内核配置也可称为配置模型)。配置模型是一种标准的图形结构,具体图形结构参考图1a。如图1a所示,所述配置模型被划分为三层,具体如下:
最上面一层是页面层(ViewGroup),该层是对页面基础信息的抽象,主要包含页面的基础信息,例如:页面名称,页面编码等信息。
中间一层是业务视图层(View),该层是对业务数据的抽象,每个View在页面当中可以理解成一个数据表格,主要包含业务视图的名称、编码、View类型以及View组件类型等信息,每个业务视图View都是由ER层的一个或多个Entity(实体)组成。其中,View类型主要包含:a.拓扑图类型,主要用于展示数据关联视图;b.业务数据类型,主要用于展示页面表格数据。View的组件类型主要包含:a.数据表格;b.其他数据展示组件,例如树状图、柱状图等其他数据展示组件。
最下面一层是ER层,主要是对关系型数据库E-R模型的表示,用于在对业务视图层View所需业务数据的管理提供基础,在ER层中主要包含Entity/Attribute(其中,Entity表示实体,Attribute表示实体的属性)以及Entity(实体)与Entity(实体)的关系,以及Entity与其Attribute(属性)的关系。
其中,Entity主要包含表名、表别名等信息是否可见、是否可编辑等信息;Attribute主要包含属性名称、编码、是否可见、是否可编辑等信息。
在了解图形数据库的基本知识后,下面对CMDB应用系统进行简要介绍。CMDB应用系统分为三层,其中面向用户且能被用户直接看到的是页面,页面的下一层是CMDB应用系统层,再下一层是后台的图形数据库及关系型数据库(图形数据库、及关系型数据库均与CMDB应用系统层通讯连接,也就是CMDB应用系统层能从图形数据库、及关系型数据库获取数据)。其中,图形数据库包括多个配置模型,每一配置模型均由上述三层结构组成(即页面层、业务视图层、和ER层),每个配置模型中的业务视图层均包括至少一个业务视图层节点,并在业务视图层进行显示。
请参阅图1b,图1b是本申请实施例提供的一种数据关系展示方法的示意流程图。该方法应用于台式电脑、手提电脑、平板电脑等终端中。如图1b所示,该方法包括步骤S101~S105。
S101、根据检索关键词搜索得到对应实体,获取与实体对应的业务视图层节点。
在本实施例中,用户需根据检索关键词查找是否存在对应的检索数据时,是在页面的搜索框上输入检索关键词,输入完成后再根据检索关键词在关系型数据库(如oracle数据库)中检索是否存在与检索关键词对应的检索数据。若存在对应的检索数据,则以列表的方式展示所述检索数据。当用户选中检索数据中的一条时,则获取被选中的数据所归属的实体,并在图形数据库中查询与实体相对应的业务视图层节点。当用户需当前数据、及与当前数据有关联的其他数据时,仅通过录入检索关键词就可实现,无需编写SQL脚本,降低了操作难度。
如图2所示,该步骤S101包括以下子步骤:
S1011、获取所录入的检索关键词;
S1012、根据检索关键词在关系型数据库中获取与检索关键词对应的检索数 据;
S1013、若检测到检索数据中的一条数据被选中,获取与所选中数据对应的实体;
S1014、根据实体在图形数据库中获取与实体对应的业务视图层节点。
例如,有以下使用场景:当机房中一台主机宕机的时候,需快速查询其影响的应用。当一台网络设备出故障时,也需快速查询其影响的应用。此时,用户将该机房的名称(如optm-opcm)作为检索关键词输入检索框,点击检索后,会在页面上以列表的形式显示包含多条检索数据的检索结果。当用户选中列表中的其中一条检索数据时,则根据该检索数据对应的Entity名称(即实体名称)来加载图形数据库中对应的Entity(即实体)以及该Entity对应的业务视图层节点View。
S102、根据业务视图层节点对应生成第一SQL脚本。
在本实施例中,是根据业务视图层节点自动生成第一SQL脚本。其中,是根据业务视图层节点的表名对应生成包括select语句的第一SQL脚本。因为图形数据库中ER层的每一业务视图层节点都可以视为一个数据表格,而数据表格一般具有表格名称、编码、类型等信息,故此处可以根据业务视图层节点的某一属性(如表格名称)自动生成第一SQL脚本;例如,该自动生成的第一SQL脚本为select count(*)from sys.objects where name=′表名1′,其中表名1就是该业务视图层节点对应的表格名称。
S103、执行第一SQL脚本以在关系型数据库中获取与业务视图层节点对应的业务数据。
在本实施例中,在Mybatis框架中执行第一SQL脚本,在关系型数据库中检索得到与业务视图层节点对应的业务数据。本申请中的第一SQL脚本是自动生成,无需用户编辑。MyBatis是支持定制化SQL、存储过程以及高级映射的优秀的持久层框架,其主要就完成2件事情:封装JDBC操作;利用反射打通Java类与SQL语句之间的相互转换。MyBatis的主要设计目的就是让用户对执行SQL语句时对输入输出的数据管理更加方便。
S104、将业务视图层节点及对应的业务数据渲染至拓扑图初始节点。
在本实施例中,在拓扑图上显示有与所查询的业务视图层节点对应的拓扑图初始节点,而且该拓扑图初始节点内渲染填充有业务数据。一旦检测到用户 点击该拓补图初始节点,则通过弹窗等形式将节点内所渲染填充的业务数据进行显示。本申请中,通过拓扑图直观的展示了与检索关键词相关的数据,避免了通过数据列表的方式来展示。
如图3所示,该步骤S104包括以下子步骤:
S1041、在拓扑图中创建并渲染以业务视图层节点的名称命名的拓扑图初始节点;
S1042、将与业务视图层节点对应的业务数据渲染并填充至拓扑图初始节点。
在本实施例中,先是在拓扑图上创建一拓扑图初始节点,该拓扑图初始节点(可以理解为拓扑图上的一个节点,更形象的可以理解为一个圆圈节点或方框节点)以业务视图层节点的名称命名,确保了与所选中的检索数据相对应,查询结果更简单直观的展示。然后,将与业务视图层节点对应的业务数据渲染并填充至拓扑图初始节点。其中拓扑图初始节点中可设置数据详情展示触发开关(可以理解为一虚拟按键),当用户点击该数据详情展示触发开关时,则将业务视图层节点对应的业务数据在拓扑图初始节点一侧的数据展示框中进行显示,通过用户自行选择来控制详细业务数据的展示与否。
S105、获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点。
在本实施例中,在判断另一实体是否为该实体的直接关联实体,是判断两个实体之间是否存在联系(例如属于的关系,在内核配置中判断两个实体之间是有存在联系,就是判断两个实体是否通过关系连接线连接起来,如图1a中机柜实体属于机房实体,两者之间的关系为属于)。本申请中,除了可以查询并展示与检索关键词直接相对应的业务数据,还能深度挖掘与检索关键词存在间接关系的其他业务数据,实现了对用户待查询数据的所有相关数据的全局查询,查询结果更加全面。
其他申请实施例中,如图4所示,步骤S105之后还包括:
S1051、判断关联业务视图层节点是否与业务视图层节点为相同节点;
S1052、若关联业务视图层节点与业务视图层节点为相同节点,将关联业务视图层节点舍弃;
S1053、若关联业务视图层节点与业务视图层节点不为相同节点,将关联业 务视图层节点保存。
在本实施例中,例如,以图1a的配置模型来说明,当用户在输入的搜索关键词为机房,并在界面上以列表的形式所显示检索数据中选取了其中一个,该检索数据对应实体为机房,机房对应的业务视图层节点为机房信息,此时再执行以下步骤:a)根据机房信息对应向下查询该业务视图层节点所包括的实体为机房和机柜;b)根据机房对应查询该实体的直接关联实体为机柜,机柜对应的业务视图层节点为机房信息;因该业务视图层节点与机房对应的业务视图层节点相同,故舍弃;c)根据机柜对应查询该实体的直接关联实体为机房和设备U位,设备U位对应的业务视图层节点为机房设备;而机房对应的业务视图层节点为已知,故不再查询;d)根据设备U位对应查询该实体的直接关联实体为机柜和机房设备,机房设备对应的业务视图层节点为已知,故不再查询;
也即,当通过模型配置,配置出页面后。业务人员想查看《机房信息》的业务视图中的某个机房中有哪些机房设备,换言之,就是想查看《机房信息》的业务视图与《机房设备》业务视图的关联关系。这里首先会向下查找业务视图层《机房信息》所包含的ER层Entity,并查看《机房设备》的业务视图中包含的ER层Entity,查找两个业务视图包含的Entity中有没有Realtion关系,如果有则存在业务关系,若没有则不存在业务关系,这里的业务关系,实质就是ER层的主键/外键关系。根据Web端传来的主键/外键数据,就可以查询到对应的机房设备信息。
其他申请实施例中,如图4所示,步骤S1053之后还包括:
S1054、根据关联业务视图层节点对应生成第二SQL脚本;
S1055、执行第二SQL脚本以在关系型数据库中获取与关联业务视图层节点对应的业务数据;
S1056、将关联业务视图层节点及对应的业务数据渲染至拓扑图关联节点;其中,所述拓扑图关联节点与拓扑图初始节点之间通过关系连接线连接。
在本实施例中,是根据关联业务视图层节点自动生成第二SQL脚本。其中,是根据关联业务视图层节点的表名对应生成包括select语句的第二SQL脚本。例如,该自动生成的第二SQL脚本为select count(*)from sys.objects where name=′表名2′,其中表名2就是该关联业务视图层节点对应的表格名称。
可见,该方法实现了将所查询的业务数据以拓扑图的形式展现,更直观且 更快速的实时显示查询数据,便于用户查看。
本申请实施例还提供一种数据关系展示装置,该数据关系展示装置用于执行前述任一项数据关系展示方法。具体地,请参阅图5,图5是本申请实施例提供的一种数据关系展示装置的示意性框图。数据关系展示装置100可以安装于台式电脑、平板电脑、手提电脑、等终端中。
如图5所示,数据关系展示装置100包括业务视图层节点检索单元101、第一脚本自动生成单元102、第一业务数据获取单元103、拓扑图初始渲染单元104、关联节点获取单元105。
业务视图层节点检索单元101,用于根据检索关键词搜索得到对应实体,获取与实体对应的业务视图层节点。
在本实施例中,用户需根据检索关键词查找是否存在对应的检索数据时,是在页面的搜索框上输入检索关键词,输入完成后再根据检索关键词在关系型数据库(如oracle数据库)中检索是否存在与检索关键词对应的检索数据。若存在对应的检索数据,则以列表的方式展示所述检索数据。当用户选中检索数据中的一条时,则获取被选中的数据所归属的实体,并在图形数据库中查询与实体相对应的业务视图层节点。当用户需当前数据、及与当前数据有关联的其他数据时,仅通过录入检索关键词就可实现,无需编写SQL脚本,降低了操作难度。
第一脚本自动生成单元102,用于根据业务视图层节点对应生成第一SQL脚本。
例如,有以下使用场景:当机房中一台主机宕机的时候,需快速查询其影响的应用。当一台网络设备出故障时,也需快速查询其影响的应用。此时,用户将该机房的名称(如optm-opcm)作为检索关键词输入检索框,点击检索后,会在页面上以列表的形式显示包含多条检索数据的检索结果。当用户选中列表中的其中一条检索数据时,则根据该检索数据对应的Entity名称(即实体名称)来加载图形数据库中对应的Entity(即实体)以及该Entity对应的业务视图层节点View。在本实施例中,是根据业务视图层节点自动生成第一SQL脚本。其中,是根据业务视图层节点的表名对应生成包括select语句的第一SQL脚本。因为图形数据库中ER层的每一业务视图层节点都可以视为一个数据表格,而数据表格一般具有表格名称、编码、类型等信息,故此处可以根据业务视图层节点的 某一属性(如表格名称)自动生成第一SQL脚本;例如,该自动生成的第一SQL脚本为select count(*)from sys.objects where name=′表名1′,其中表名1就是该业务视图层节点对应的表格名称。
第一业务数据获取单元103,用于执行第一SQL脚本以在关系型数据库中获取与业务视图层节点对应的业务数据。
在本实施例中,在Mybatis框架中执行第一SQL脚本,在关系型数据库中检索得到与业务视图层节点对应的业务数据。本申请中的第一SQL脚本是自动生成,无需用户编辑。
拓扑图初始渲染单元104,用于将业务视图层节点及对应的业务数据渲染至拓扑图初始节点。
在本实施例中,在拓扑图上显示有与所查询的业务视图层节点对应的拓扑图初始节点,而且该拓扑图初始节点内渲染填充有业务数据。一旦检测到用户点击该拓补图初始节点,则通过弹窗等形式将节点内所渲染填充的业务数据进行显示。本申请中,通过拓扑图直观的展示了与检索关键词相关的数据,避免了通过数据列表的方式来展示。
关联节点获取单元105,用于获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点。
如图6所示,所述业务视图层节点检索单元101包括以下子单元:
关键词获取单元1011,用于获取所录入的检索关键词;检索数据获取单元1012,用于根据检索关键词在关系型数据库中获取与检索关键词对应的检索数据;选中检测单元1013,用于若检测到检索数据中的一条数据被选中,获取与所选中数据对应的实体;业务视图层节点获取单元1014,用于根据实体在图形数据库中获取与实体对应的业务视图层节点。
例如,有以下使用场景:当机房中一台主机宕机的时候,需快速查询其影响的应用。当一台网络设备出故障时,也需快速查询其影响的应用。此时,用户将该机房的名称(如optm-opcm)作为检索关键词输入检索框,点击检索后,会在页面上以列表的形式显示包含多条检索数据的检索结果。当用户选中列表中的其中一条检索数据时,则根据该检索数据对应的Entity名称(即实体名称)来加载图形数据库中对应的Entity(即实体)以及该Entity对应的业务视图层节点View。
如图7所示,所述拓扑图初始渲染单元104包括以下子单元:
初始节点创建单元1041,用于在拓扑图中创建并渲染以业务视图层节点的名称命名的拓扑图初始节点;初始数据填充单元1042,用于将与业务视图层节点对应的业务数据渲染并填充至拓扑图初始节点。
在本实施例中,先是在拓扑图上创建一拓扑图初始节点,该拓扑图初始节点(可以理解为拓扑图上的一个节点,更形象的可以理解为一个圆圈节点或方框节点)以业务视图层节点的名称命名,确保了与所选中的检索数据相对应,查询结果更简单直观的展示。然后,将与业务视图层节点对应的业务数据渲染并填充至拓扑图初始节点。其中拓扑图初始节点中可设置数据详情展示触发开关(可以理解为一虚拟按键),当用户点击该数据详情展示触发开关时,则将业务视图层节点对应的业务数据在拓扑图初始节点一侧的数据展示框中进行显示,通过用户自行选择来控制详细业务数据的展示与否。
其他申请实施例中,如图8所示,所述数据关系展示装置100还包括:
相同节点判断单元1051,用于判断关联业务视图层节点是否与业务视图层节点为相同节点;节点舍弃单元1052,用于若关联业务视图层节点与业务视图层节点为相同节点,将关联业务视图层节点舍弃;节点保存单元1053,用于若关联业务视图层节点与业务视图层节点不为相同节点,将关联业务视图层节点保存。
在本实施例中,例如,以图1a的配置模型来说明,当用户在输入的搜索关键词为机房,并在界面上以列表的形式所显示检索数据中选取了其中一个,该检索数据对应实体为机房,机房对应的业务视图层节点为机房信息,此时再执行以下步骤:a)根据机房信息对应向下查询该业务视图层节点所包括的实体为机房和机柜;b)根据机房对应查询该实体的直接关联实体为机柜,机柜对应的业务视图层节点为机房信息;因该业务视图层节点与机房对应的业务视图层节点相同,故舍弃;c)根据机柜对应查询该实体的直接关联实体为机房和设备U位,设备U位对应的业务视图层节点为机房设备;而机房对应的业务视图层节点为已知,故不再查询;d)根据设备U位对应查询该实体的直接关联实体为机柜和机房设备,机房设备对应的业务视图层节点为已知,故不再查询;
也即,当通过模型配置,配置出页面后。业务人员想查看《机房信息》的业务视图中的某个机房中有哪些机房设备,换言之,就是想查看《机房信息》 的业务视图与《机房设备》业务视图的关联关系。这里首先会向下查找业务视图层《机房信息》所包含的ER层Entity,并查看《机房设备》的业务视图中包含的ER层Entity,查找两个业务视图包含的Entity中有没有Realtion关系,如果有则存在业务关系,若没有则不存在业务关系,这里的业务关系,实质就是ER层的主键/外键关系。根据Web端传来的主键/外键数据,就可以查询到对应的机房设备信息。
其他申请实施例中,如图8所示,所述数据关系展示装置100还包括:
脚本生成单元1054,用于根据关联业务视图层节点对应生成第二SQL脚本;业务数据获取单元1055,用于执行第二SQL脚本以在关系型数据库中获取与关联业务视图层节点对应的业务数据;关联节点渲染单元1056,用于将关联业务视图层节点及对应的业务数据渲染至拓扑图关联节点;其中,所述拓扑图关联节点与拓扑图初始节点之间通过关系连接线连接。
在本实施例中,是根据关联业务视图层节点自动生成第二SQL脚本。其中,是根据关联业务视图层节点的表名对应生成包括select语句的第二SQL脚本。例如,该自动生成的第二SQL脚本为select count(*)from sys.objects where name=′表名2′,其中表名2就是该关联业务视图层节点对应的表格名称。
可见,该装置实现了将所查询的业务数据以拓扑图的形式展现,更直观且更快速的实时显示查询数据,便于用户查看。
上述数据关系展示装置可以实现为一种计算机程序的形式,该计算机程序可以在如图9所示的计算机设备上运行。
请参阅图9,图9是本申请实施例提供的一种计算机设备的示意性框图。该计算机设备500设备可以是终端。该终端可以是平板电脑、笔记本电脑、台式电脑、个人数字助理等电子设备。
参阅图9,该计算机设备500包括通过系统总线501连接的处理器502、存储器和网络接口505,其中,存储器可以包括非易失性存储介质503和内存储器504。该非易失性存储介质503可存储操作系统5031和计算机程序5032。该计算机程序5032包括程序指令,该程序指令被执行时,可使得处理器502执行一种数据关系展示方法。该处理器502用于提供计算和控制能力,支撑整个计算机设备500的运行。该内存储器504为非易失性存储介质503中的计算机程序5032的运行提供环境,该计算机程序5032被处理器502执行时,可使得处理器 502执行一种数据关系展示方法。该网络接口505用于进行网络通信,如发送分配的任务等。本领域技术人员可以理解,图9中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备500的限定,具体的计算机设备500可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
其中,所述处理器502用于运行存储在存储器中的计算机程序5032,以实现如下功能:根据检索关键词搜索得到对应实体,获取与实体对应的业务视图层节点;根据业务视图层节点对应生成第一SQL脚本;执行第一SQL脚本以在关系型数据库中获取与业务视图层节点对应的业务数据;将业务视图层节点及对应的业务数据渲染至拓扑图初始节点;获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点。
其中,所述根据业务视图层节点对应生成第一SQL脚本中,根据业务视图层节点的表名对应生成包括select语句的第一SQL脚本。
在一实施例中,处理器502还执行如下操作:获取所录入的检索关键词;根据检索关键词在关系型数据库中获取与检索关键词对应的检索数据;若检测到检索数据中的一条数据被选中,获取与所选中数据对应的实体;根据实体在图形数据库中获取与实体对应的业务视图层节点。
在一实施例中,处理器502还执行如下操作:在拓扑图中创建并渲染以业务视图层节点的名称命名的拓扑图初始节点;将与业务视图层节点对应的业务数据渲染并填充至拓扑图初始节点。
在一实施例中,处理器502还执行如下操作:判断关联业务视图层节点是否与业务视图层节点为相同节点;若关联业务视图层节点与业务视图层节点为相同节点,将关联业务视图层节点舍弃;若关联业务视图层节点与业务视图层节点不为相同节点,将关联业务视图层节点保存。
在一实施例中,处理器502还执行如下操作:根据关联业务视图层节点对应生成第二SQL脚本;执行第二SQL脚本以在关系型数据库中获取与关联业务视图层节点对应的业务数据;将关联业务视图层节点及对应的业务数据渲染至拓扑图关联节点;其中,所述拓扑图关联节点与拓扑图初始节点之间通过关系连接线连接。
本领域技术人员可以理解,图9中示出的计算机设备的实施例并不构成对 计算机设备具体构成的限定,在其他实施例中,计算机设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,计算机设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图9所示实施例一致,在此不再赘述。
应当理解,在本申请实施例中,处理器502可以是中央处理单元(Central Processing Unit,CPU),该处理器502还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
在本申请的另一实施例中提供一种存储介质。该存储介质可以为非易失性的计算机可读存储介质。该存储介质存储有计算机程序,其中计算机程序包括程序指令。该程序指令被处理器执行时实现本申请实施例的数据关系展示方法。
所述存储介质可以是前述设备的内部存储单元,例如设备的硬盘或内存。所述存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的设备、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种数据关系展示方法,其特征在于,包括:
    根据检索关键词搜索得到对应实体,获取与实体对应的业务视图层节点;
    根据业务视图层节点对应生成第一SQL脚本;
    执行第一SQL脚本以在关系型数据库中获取与业务视图层节点对应的业务数据;
    将业务视图层节点及对应的业务数据渲染至拓扑图初始节点;
    获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点。
  2. 根据权利要求1所述的数据关系展示方法,其特征在于,所述根据检索关键词搜索得到对应实体,获取与实体对应的业务视图层节点,包括:
    获取所录入的检索关键词;
    根据检索关键词在关系型数据库中获取与检索关键词对应的检索数据;
    若检测到检索数据中的一条数据被选中,获取与所选中数据对应的实体;
    根据实体在图形数据库中获取与实体对应的业务视图层节点。
  3. 根据权利要求1所述的数据关系展示方法,其特征在于,所述根据业务视图层节点对应生成第一SQL脚本中,根据业务视图层节点的表名对应生成包括select语句的第一SQL脚本。
  4. 根据权利要求1所述的数据关系展示方法,其特征在于,所述将业务视图层节点及对应的业务数据渲染至拓扑图初始节点,包括:
    在拓扑图中创建并渲染以业务视图层节点的名称命名的拓扑图初始节点;
    将与业务视图层节点对应的业务数据渲染并填充至拓扑图初始节点。
  5. 根据权利要求1所述的数据关系展示方法,其特征在于,所述获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点之后,包括:
    判断关联业务视图层节点是否与业务视图层节点为相同节点;
    若关联业务视图层节点与业务视图层节点为相同节点,将关联业务视图层节点舍弃;
    若关联业务视图层节点与业务视图层节点不为相同节点,将关联业务视图 层节点保存。
  6. 根据权利要求5所述的数据关系展示方法,其特征在于,所述若关联业务视图层节点与业务视图层节点不为相同节点,将关联业务视图层节点保存之后,包括:
    根据关联业务视图层节点对应生成第二SQL脚本;
    执行第二SQL脚本以在关系型数据库中获取与关联业务视图层节点对应的业务数据;
    将关联业务视图层节点及对应的业务数据渲染至拓扑图关联节点;其中,所述拓扑图关联节点与拓扑图初始节点之间通过关系连接线连接。
  7. 一种数据关系展示装置,其特征在于,包括:
    业务视图层节点检索单元,用于根据检索关键词搜索得到对应实体,获取与实体对应的业务视图层节点;
    第一脚本自动生成单元,用于根据业务视图层节点对应生成第一SQL脚本;
    第一业务数据获取单元,用于执行第一SQL脚本以在关系型数据库中获取与业务视图层节点对应的业务数据;
    拓扑图初始渲染单元,用于将业务视图层节点及对应的业务数据渲染至拓扑图初始节点;
    关联节点获取单元,用于获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点。
  8. 根据权利要求7所述的数据关系展示装置,其特征在于,所述拓扑图初始渲染单元,包括:
    初始节点创建单元,用于在拓扑图中创建并渲染以业务视图层节点的名称命名的拓扑图初始节点;
    初始数据填充单元,用于将与业务视图层节点对应的业务数据渲染并填充至拓扑图初始节点。
  9. 根据权利要求7所述的数据关系展示装置,其特征在于,所述业务视图层节点检索单元包括:
    关键词获取单元,用于获取所录入的检索关键词;
    检索数据获取单元,用于根据检索关键词在关系型数据库中获取与检索关键词对应的检索数据;
    选中检测单元,用于若检测到检索数据中的一条数据被选中,获取与所选中数据对应的实体;
    业务视图层节点获取单元,用于根据实体在图形数据库中获取与实体对应的业务视图层节点。
  10. 根据权利要求7所述的数据关系展示装置,其特征在于,所述数据关系展示装置还包括:
    相同节点判断单元,用于判断关联业务视图层节点是否与业务视图层节点为相同节点;
    节点舍弃单元,用于若关联业务视图层节点与业务视图层节点为相同节点,将关联业务视图层节点舍弃;
    节点保存单元,用于若关联业务视图层节点与业务视图层节点不为相同节点,将关联业务视图层节点保存。
  11. 根据权利要求10所述的数据关系展示装置,其特征在于,所述数据关系展示装置还包括:
    脚本生成单元,用于根据关联业务视图层节点对应生成第二SQL脚本;
    业务数据获取单元,用于执行第二SQL脚本以在关系型数据库中获取与关联业务视图层节点对应的业务数据;
    关联节点渲染单元,用于将关联业务视图层节点及对应的业务数据渲染至拓扑图关联节点;其中,所述拓扑图关联节点与拓扑图初始节点之间通过关系连接线连接。
  12. 一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现以下步骤:
    根据检索关键词搜索得到对应实体,获取与实体对应的业务视图层节点;
    根据业务视图层节点对应生成第一SQL脚本;
    执行第一SQL脚本以在关系型数据库中获取与业务视图层节点对应的业务数据;
    将业务视图层节点及对应的业务数据渲染至拓扑图初始节点;
    获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点。
  13. 根据权利要求12所述的计算机设备,其特征在于,所述根据检索关键词搜索得到对应实体,获取与实体对应的业务视图层节点,包括:
    获取所录入的检索关键词;
    根据检索关键词在关系型数据库中获取与检索关键词对应的检索数据;
    若检测到检索数据中的一条数据被选中,获取与所选中数据对应的实体;
    根据实体在图形数据库中获取与实体对应的业务视图层节点。
  14. 根据权利要求12所述的计算机设备,其特征在于,所述将业务视图层节点及对应的业务数据渲染至拓扑图初始节点,包括:
    在拓扑图中创建并渲染以业务视图层节点的名称命名的拓扑图初始节点;
    将与业务视图层节点对应的业务数据渲染并填充至拓扑图初始节点。
  15. 根据权利要求12所述的计算机设备,其特征在于,所述获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点之后,包括:
    判断关联业务视图层节点是否与业务视图层节点为相同节点;
    若关联业务视图层节点与业务视图层节点为相同节点,将关联业务视图层节点舍弃;
    若关联业务视图层节点与业务视图层节点不为相同节点,将关联业务视图层节点保存。
  16. 根据权利要求15所述的计算机设备,其特征在于,所述若关联业务视图层节点与业务视图层节点不为相同节点,将关联业务视图层节点保存之后,包括:
    根据关联业务视图层节点对应生成第二SQL脚本;
    执行第二SQL脚本以在关系型数据库中获取与关联业务视图层节点对应的业务数据;
    将关联业务视图层节点及对应的业务数据渲染至拓扑图关联节点;其中,所述拓扑图关联节点与拓扑图初始节点之间通过关系连接线连接。
  17. 一种存储介质,其特征在于,所述存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行以下操作:
    根据检索关键词搜索得到对应实体,获取与实体对应的业务视图层节点;
    根据业务视图层节点对应生成第一SQL脚本;
    执行第一SQL脚本以在关系型数据库中获取与业务视图层节点对应的业务数据;
    将业务视图层节点及对应的业务数据渲染至拓扑图初始节点;
    获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点。
  18. 根据权利要求17所述的存储介质,其特征在于,所述根据检索关键词搜索得到对应实体,获取与实体对应的业务视图层节点,包括:
    获取所录入的检索关键词;
    根据检索关键词在关系型数据库中获取与检索关键词对应的检索数据;
    若检测到检索数据中的一条数据被选中,获取与所选中数据对应的实体;
    根据实体在图形数据库中获取与实体对应的业务视图层节点。
  19. 根据权利要求17所述的存储介质,其特征在于,所述将业务视图层节点及对应的业务数据渲染至拓扑图初始节点,包括:
    在拓扑图中创建并渲染以业务视图层节点的名称命名的拓扑图初始节点;
    将与业务视图层节点对应的业务数据渲染并填充至拓扑图初始节点。
  20. 根据权利要求17所述的存储介质,其特征在于,所述获取与业务视图层节点所对应实体的直接关联实体,及与直接关联实体相对应的关联业务视图层节点之后,包括:
    判断关联业务视图层节点是否与业务视图层节点为相同节点;
    若关联业务视图层节点与业务视图层节点为相同节点,将关联业务视图层节点舍弃;
    若关联业务视图层节点与业务视图层节点不为相同节点,将关联业务视图层节点保存。
PCT/CN2018/085362 2018-02-12 2018-05-02 数据关系展示方法、装置、计算机设备及存储介质 WO2019153554A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810144155.0 2018-02-12
CN201810144155.0A CN108363785A (zh) 2018-02-12 2018-02-12 数据关系展示方法、装置、计算机设备及存储介质

Publications (1)

Publication Number Publication Date
WO2019153554A1 true WO2019153554A1 (zh) 2019-08-15

Family

ID=63005964

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/085362 WO2019153554A1 (zh) 2018-02-12 2018-05-02 数据关系展示方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN108363785A (zh)
WO (1) WO2019153554A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177400A (zh) * 2019-12-05 2020-05-19 国网能源研究院有限公司 基于知识图谱的设备、业务及数据的关联显示方法和装置
CN111880989A (zh) * 2020-07-14 2020-11-03 中国银联股份有限公司 一种配置项管理方法及装置
CN112860713A (zh) * 2021-04-23 2021-05-28 脉策(上海)智能科技有限公司 用于获取图层数据的方法、电子设备和存储介质
CN115905291A (zh) * 2022-12-12 2023-04-04 广州南方智能技术有限公司 基于图的数据处理方法、装置及存储介质

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558360A (zh) * 2018-11-30 2019-04-02 北京润科通用技术有限公司 电子系统结构的展示方法及装置
CN109753573B (zh) * 2018-12-26 2020-12-04 北京中亦安图科技股份有限公司 一种基于图数据库构建预设模型的处理方法及装置
CN109739856A (zh) * 2018-12-28 2019-05-10 第四范式(北京)技术有限公司 用于建立数据表之间的关系的方法及系统
CN110780852A (zh) * 2019-09-25 2020-02-11 华青融天(北京)软件股份有限公司 一种确定数据源的方法、装置、设备和介质
CN112579558A (zh) * 2019-09-30 2021-03-30 北京国双科技有限公司 展示拓扑图的方法、装置、存储介质及设备
CN110955662A (zh) * 2019-11-29 2020-04-03 车智互联(北京)科技有限公司 一种维护数据表关联关系的方法、计算设备及存储介质
CN111160863A (zh) * 2019-12-30 2020-05-15 广东三扬网络科技有限公司 基于思维导图的异类业务展示方法、电子设备和存储介质
CN111581222A (zh) * 2020-03-30 2020-08-25 深圳壹账通智能科技有限公司 业务数据的关联分析方法、装置、计算机设备及计算机存储介质
CN112256250A (zh) * 2020-10-22 2021-01-22 重庆中源绿蓝环境科技有限公司 Java SpringCloud+MyBatis架构基础层源码生成工具
CN112651760A (zh) * 2021-01-07 2021-04-13 量子数聚(北京)科技有限公司 企业关系展示方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508852A (zh) * 2010-09-23 2012-06-20 微软公司 数据模型对偶化
CN103631847A (zh) * 2012-08-23 2014-03-12 国际商业机器公司 基于上下文的搜索与图形节点相关的数据存储的方法和系统
CN104123369A (zh) * 2014-07-24 2014-10-29 中国移动通信集团广东有限公司 一种基于图形数据库的配置管理数据库系统及实现方法
CN104794247A (zh) * 2015-05-14 2015-07-22 东南大学 一种多结构数据库集成查询方法
CN105809314A (zh) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 一种资产管理方法及系统
CN107665228A (zh) * 2017-05-10 2018-02-06 平安科技(深圳)有限公司 一种关联信息查询方法、终端及设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183370A (zh) * 2007-12-13 2008-05-21 浪潮通信信息系统有限公司 基于类定义和关系定义的拓扑建模方法
CN104683164A (zh) * 2013-11-27 2015-06-03 贵州电网公司信息通信分公司 简化的配置项关联模型生成监控拓扑图的方法
CN104468193B (zh) * 2014-11-11 2018-03-30 上海天玑科技股份有限公司 一种基于组件发现对业务系统进行监控的方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508852A (zh) * 2010-09-23 2012-06-20 微软公司 数据模型对偶化
CN103631847A (zh) * 2012-08-23 2014-03-12 国际商业机器公司 基于上下文的搜索与图形节点相关的数据存储的方法和系统
CN104123369A (zh) * 2014-07-24 2014-10-29 中国移动通信集团广东有限公司 一种基于图形数据库的配置管理数据库系统及实现方法
CN105809314A (zh) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 一种资产管理方法及系统
CN104794247A (zh) * 2015-05-14 2015-07-22 东南大学 一种多结构数据库集成查询方法
CN107665228A (zh) * 2017-05-10 2018-02-06 平安科技(深圳)有限公司 一种关联信息查询方法、终端及设备

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177400A (zh) * 2019-12-05 2020-05-19 国网能源研究院有限公司 基于知识图谱的设备、业务及数据的关联显示方法和装置
CN111177400B (zh) * 2019-12-05 2023-07-25 国网能源研究院有限公司 基于知识图谱的设备、业务及数据的关联显示方法和装置
CN111880989A (zh) * 2020-07-14 2020-11-03 中国银联股份有限公司 一种配置项管理方法及装置
CN111880989B (zh) * 2020-07-14 2024-05-17 中国银联股份有限公司 一种配置项管理方法及装置
CN112860713A (zh) * 2021-04-23 2021-05-28 脉策(上海)智能科技有限公司 用于获取图层数据的方法、电子设备和存储介质
CN112860713B (zh) * 2021-04-23 2021-08-03 脉策(上海)智能科技有限公司 用于获取图层数据的方法、电子设备和存储介质
CN115905291A (zh) * 2022-12-12 2023-04-04 广州南方智能技术有限公司 基于图的数据处理方法、装置及存储介质
CN115905291B (zh) * 2022-12-12 2024-02-23 广州南方智能技术有限公司 基于图的数据处理方法、装置及存储介质

Also Published As

Publication number Publication date
CN108363785A (zh) 2018-08-03

Similar Documents

Publication Publication Date Title
WO2019153554A1 (zh) 数据关系展示方法、装置、计算机设备及存储介质
US11650910B2 (en) Automated testing method and apparatus, storage medium and electronic device
US11561887B2 (en) Test script debugging using an automated testing framework and UI rendering tree
JP7413306B2 (ja) データ処理方法、装置、機器及び記憶媒体
US10528589B2 (en) Cross visualization interaction between data visualizations
TWI650659B (zh) 一種關聯信息查詢方法、終端及設備
WO2019153514A1 (zh) 业务系统动态生成方法、装置、计算机设备及存储介质
WO2019153549A1 (zh) Api接口动态生成方法、装置、计算机设备及存储介质
WO2019153555A1 (zh) Er关系生成方法、装置、计算机设备及存储介质
WO2019019769A1 (zh) 业务功能实现的方法、装置、计算机设备及存储介质
US20090228776A1 (en) Dynamic formulas for spreadsheet cells
US10235685B2 (en) Method and system for two-dimensional charting using live queries
US8805777B2 (en) Data record collapse and split functionality
US10489266B2 (en) Generating a visualization of a metric at one or multiple levels of execution of a database workload
WO2022062610A1 (zh) 信息展示方法、装置、电子设备以及存储介质
US9740713B1 (en) Dynamic modeling of data in relational databases
US9262185B2 (en) Scripted dynamic document generation using dynamic document template scripts
CN110737682A (zh) 一种缓存操作方法、装置、存储介质和电子设备
CN108563694B (zh) 对逻辑删除的sql执行方法、装置、计算机设备和存储介质
JP2018520452A (ja) コントロールを使用して汎用プログラムを構成する技法
WO2023231665A1 (zh) 分布式事务处理方法、系统、设备及可读存储介质
CN108255963A (zh) 一种基于互联网的新闻信息检索的控制方法及装置
US8612451B1 (en) Searching for data structures
US8650534B2 (en) Metaobject enhancement objects
US9280361B2 (en) Methods and systems for a real time transformation of declarative model and layout into interactive, digital, multi device forms

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16.11.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18905455

Country of ref document: EP

Kind code of ref document: A1