CN117033420B - Visual display method and device for entity data under same concept of knowledge graph - Google Patents

Visual display method and device for entity data under same concept of knowledge graph Download PDF

Info

Publication number
CN117033420B
CN117033420B CN202311298527.2A CN202311298527A CN117033420B CN 117033420 B CN117033420 B CN 117033420B CN 202311298527 A CN202311298527 A CN 202311298527A CN 117033420 B CN117033420 B CN 117033420B
Authority
CN
China
Prior art keywords
entity
user
target entity
visual
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311298527.2A
Other languages
Chinese (zh)
Other versions
CN117033420A (en
Inventor
魏明雅
王永恒
张涛
傅四维
杨博
洪小娟
金雄男
巫英才
朱世文
徐一诺
田品
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Lab
Original Assignee
Zhejiang Lab
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 Zhejiang Lab filed Critical Zhejiang Lab
Priority to CN202311298527.2A priority Critical patent/CN117033420B/en
Publication of CN117033420A publication Critical patent/CN117033420A/en
Application granted granted Critical
Publication of CN117033420B publication Critical patent/CN117033420B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The specification discloses a method and a device for visualizing and displaying entity data under the same concept of a knowledge graph, which can determine a target entity selected by a user, wherein the target entity is an entity corresponding to a node in the knowledge graph, and respond to a view component added by the user for the target entity and configuration data added by the user and associated with the view component, and save the view component and the configuration data added by the user for the target entity as visualized configuration corresponding to the target entity so as to render and display a visualized panel related to the target entity according to the visualized configuration. In addition, the visual configuration corresponding to the target entity can be applied to other entities with the same concept as the target entity in response to the preset operation of the user, so that the visual panel related to the other entities is rendered and displayed according to the visual configuration.

Description

Visual display method and device for entity data under same concept of knowledge graph
Technical Field
The present disclosure relates to the technical field of knowledge graph and data analysis, and in particular, to a method and an apparatus for visual display of entity data under the same concept of knowledge graph.
Background
Business intelligence (Business Intelligence, BI) is a way to translate data into meaningful information and guidance. The BI needs to integrate a plurality of data sources, and the integrated data is cleaned, converted and processed to ensure the accuracy and consistency. Valuable information and trends can then be extracted from the data by data mining and analysis tools. Finally, the results are presented to the user in the form of charts and reports that are easy to understand and analyze through the data visualization tool.
Knowledge graph is a technology for organizing knowledge by using graph structure, and its core is three elements of entity, attribute and relationship. An entity refers to a particular thing or concept, an attribute is a feature or attribute of an entity, and a relationship represents a connection or association between entities. Knowledge graphs abstract these entities, attributes and relationships into nodes and edges and organize them into a graph so that the connections and associations between these knowledge can be clearly revealed, forming a comprehensive and accurate knowledge network.
In the prior art, the data source of the BI tool is structured data, and no mode for taking the knowledge graph as the data source, performing data mining and analysis on the knowledge graph and finally performing data visualization exists currently.
Therefore, how to provide a data mining analysis way for users with knowledge graphs as data sources, so as to improve the efficiency of data mining analysis of users through knowledge graphs, is a problem to be solved urgently.
Disclosure of Invention
The specification provides a method and a device for visually displaying entity data under the same concept of a knowledge graph, so as to partially solve the problems existing in the prior art.
The technical scheme adopted in the specification is as follows:
the specification provides a visual display method of entity data under the same concept of a knowledge graph, which comprises the following steps:
determining a target entity selected by a user, wherein the target entity is an entity corresponding to a node in a knowledge graph;
responding to the view components added by the user for the target entity and the configuration data added by the user and associated with the view components, and saving the view components added by the user for the target entity and the configuration data as a visual configuration corresponding to the target entity so as to render and show a visual panel related to the target entity according to the visual configuration;
and responding to the preset operation of the user, applying the visual configuration corresponding to the target entity to other entities with the same concept as the target entity, and rendering and displaying the visual panel related to the other entities according to the visual configuration, wherein the concept is used for representing the entity category to which the entity belongs.
Optionally, displaying a visualization panel related to the target entity according to the visualization configuration, which specifically includes:
responding to a request sent by a user for displaying the visual view of the target entity, and determining a formula statement and/or an SQL query statement contained in configuration data in the visual configuration;
executing the formula statement and/or SQL query statement, and rendering the view component corresponding to the visual configuration to show a visual panel related to the target entity.
Optionally, before responding to the view component added by the user for the target entity and the configuration data added by the user and associated with the view component, the method further comprises:
and acquiring the entity name, the entity attribute and the entity front-back relation of the target entity and displaying the entity name, the entity attribute and the entity front-back relation in an entity panel of the target entity.
Optionally, responding to the view component added by the user for the target entity and the configuration data added by the user and associated with the view component specifically comprises:
determining view components added by the user in an entity panel in an editing state of the target entity and configuration data associated with the view components;
and when the user converts the entity panel into a preview state, rendering the entity panel according to the view component and the configuration data and displaying the entity panel to the user.
Optionally, the view component includes a text component and a chart component.
The specification provides a visual display device of entity data under knowledge graph and concept, which comprises:
the determining module is used for determining a target entity selected by a user, wherein the target entity is an entity corresponding to a node in the knowledge graph;
the first response module is used for responding to the view component added by the user for the target entity and the configuration data added by the user and associated with the view component, saving the view component added by the user for the target entity and the configuration data as a visual configuration corresponding to the target entity, and rendering and displaying a visual panel related to the target entity according to the visual configuration;
and the second response module is used for responding to the preset operation of the user, applying the visual configuration corresponding to the target entity to other entities with the same concept as the target entity, and rendering and displaying the visual panel related to the other entities according to the visual configuration, wherein the concept is used for representing the entity category to which the entity belongs.
Optionally, the first response module is configured to determine a formula statement and/or an SQL query statement included in configuration data in the visual configuration in response to a request sent by a user to display a visual view of the target entity; executing the formula statement and/or SQL query statement, and rendering the view component corresponding to the visual configuration to show a visual panel related to the target entity.
Optionally, the first response module is further configured to obtain an entity name, an entity attribute, and an entity pre-post relationship of the target entity, and display the entity name, the entity attribute, and the entity pre-post relationship in an entity panel of the target entity.
The present disclosure provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the method for visualizing and displaying entity data under the same concept as the knowledge graph.
The specification provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the visual display method of entity data under the same concept of the knowledge graph when executing the program.
The above-mentioned at least one technical scheme that this specification adopted can reach following beneficial effect:
according to the method for visualizing and displaying the entity data under the same concept of the knowledge graph, the target entity selected by the user can be determined, the target entity is the entity corresponding to the node in the knowledge graph, the view component added by the user for the target entity and the configuration data added by the user and associated with the view component are responded, the view component and the configuration data added by the user for the target entity are stored as the visualization configuration corresponding to the target entity, and the visualization panel related to the target entity is rendered and displayed according to the visualization configuration. And in response to the preset operation of the user, the visual configuration corresponding to the target entity can be applied to other entities with the same concept as the target entity, so that the visual panel related to the other entities can be rendered and displayed according to the visual configuration of the target entity.
From the above, it can be seen that, the method can use the knowledge graph as a data source, so that the user can render the visual panel of the entity by selecting the entity in the knowledge graph and adding the view component corresponding to the entity and the configuration related to the view component as the visual configuration of the entity, and the user can set to apply the visual configuration of a certain entity to each other entity with the same concept as the entity, thereby omitting the configuration operation on a large number of entities with the same concept.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification, illustrate and explain the exemplary embodiments of the present specification and their description, are not intended to limit the specification unduly. In the drawings:
fig. 1 is a flow chart of a visual display method for entity data under the same concept of a knowledge graph provided in the present specification;
FIG. 2 is a schematic view of a solid panel provided in the present specification;
FIG. 3 is a schematic view of a visualization panel provided herein;
FIG. 4 is a schematic diagram of inputting formula statements and/or SQL query statements for a physical panel provided herein;
FIG. 5 is a schematic illustration of one application provided in this specification to other buttons;
FIG. 6 is a schematic diagram of a selection concept applied to other functions provided in the present specification;
fig. 7 is a schematic diagram of a visual entity data display device under the same concept of a knowledge graph provided in the present specification;
fig. 8 is a schematic view of the electronic device corresponding to fig. 1 provided in the present specification.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present specification more apparent, the technical solutions of the present specification will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
Fig. 1 is a flow chart of a visual display method for entity data under the same concept of a knowledge graph, which is provided in the present specification, specifically includes the following steps:
s100: and determining a target entity selected by the user, wherein the target entity is an entity corresponding to the node in the knowledge graph.
S102: and responding to the view component added by the user for the target entity and the configuration data added by the user and associated with the view component, and saving the view component added by the user for the target entity and the configuration data as a visual configuration corresponding to the target entity so as to display a visual panel related to the target entity according to the visual configuration.
S104: and responding to the preset operation of the user, applying the visual configuration corresponding to the target entity to other entities with the same concept as the target entity, and rendering and displaying the visual panel related to the other entities according to the visual configuration, wherein the concept is used for representing the entity category to which the entity belongs.
In this specification, the service platform may provide the user with a BI analysis function using a knowledge graph as a data source.
The service platform may determine a target entity selected by the user, where the target entity may be an entity corresponding to a certain node in a certain knowledge graph. The service platform can be used for reading the knowledge graph provided by the user or constructing the knowledge graph by the user, so that the service platform can provide a function of selecting an entity in a certain knowledge graph maintained in the service platform for the user.
The entity is exemplified herein, in the knowledge graph, there may be a plurality of entities under one concept, such as a contradictory reconciliation knowledge graph, where there are contradictory event concepts and geographic location concepts, and where there are specific contradictory event entities under the contradictory event concept, such as contradictory event a and contradictory event B. There are specific geographic location entities under the geographic location concept, such as a site, B site, etc. The contradictory reconciliation knowledge graph may represent contradictory reconciliation events for different geographic locations.
In BI analysis, for the entity panel under the item concept, the information emphasis may be the event occurrence place, time, personnel involved in the event occurrence description, while for the entity panel under the geographic location concept, the information emphasis may be the total number of items, item development trend, and item solution overall situation that may occur under the geographic location. And the geographic location entity has only longitude and latitude attributes and does not have any mathematical statistical attributes.
The above-mentioned entity panel may refer to a part of a page for configuring view components and configurations required for view components to be displayed by an entity (i.e., configuration data for filling text in view components, data distribution for configuring view components in chart form, etc.) in a page of a service platform, and after the entity panel is rendered, the page may be displayed to a user as a visualization panel, as shown in fig. 2.
Fig. 2 is a schematic diagram of a solid panel provided in the present specification.
Fig. 3 is a schematic view of a visualization panel provided in the present specification.
It can be seen that an entity panel can refer to a visualization panel for configuring data that reveals the analysis required by an entity, there can be multiple parts in the entity panel, so that each part can be populated with view components (located in a component library), and the configuration populated text and the required formulas, SQL statements, etc. at each view component. After the physical panel configuration is completed, the resulting visual panel after rendering is shown in FIG. 3.
Then, the service platform can respond to the view component added by the user for the target entity and the configuration data added by the user and associated with the view component, and can store the view component and the configuration data added by the user for the target entity as the visual configuration corresponding to the target entity so as to render and display the visual panel related to the target entity according to the visual configuration.
The view components mentioned above may include text components and chart components, that is, a physical panel corresponding to a physical entity or a visual panel may include a plurality of view components, the physical panel may be divided into a plurality of regions, and a user may add a view component to each region. The chart component mentioned above can be used to construct charts such as pie charts, bar charts, and the like.
The data required in the text component and the chart component (such as the data shown in the view component) can be obtained through formula sentences and/or SQL query sentences, and a user can fill in corresponding formula sentences and/or SQL query sentences in the text component or the chart component, so that the service platform can execute corresponding formula sentences and/or SQL query sentences when the rendering entity panel is shown to the user as a visual panel.
The service platform responds to a request sent by a user for displaying the visual view of the target entity, can determine a formula statement and/or an SQL query statement contained in configuration data in the visual configuration, execute the formula statement and/or the SQL query statement, and render a view component corresponding to the visual configuration to display a visual panel related to the target entity, as shown in fig. 4.
Fig. 4 is a schematic diagram of inputting formula statements and/or SQL query statements for a physical panel provided in the present specification.
After determining the target entity, when the user configures the entity panel of the target entity, the service platform may obtain the entity name, entity attribute and entity front-rear relationship of the target entity and display them in the entity panel of the target entity, and then may determine the view component added by the user in the entity panel in the editing state of the target entity and the configuration data associated with the view component, and when the user converts the entity panel into the preview state, render the entity panel and display them to the user according to the view component and the associated configuration data.
Specifically, the method for adding sentences and charts in the entity panel by the user comprises the following steps:
a sentence module is embedded in the text component, and a user can insert formula sentences and SQL sentences in the text component. Displaying the name of the embedded sentence module in the editing state of the entity panel, and displaying the output result after the execution of the embedded sentence in the preview state of the entity panel;
and acquiring the execution result of the SQL sentence in real time through database connection, and mapping the result to the chart component to update the chart display in real time.
The method for supporting the use of the newly built formula module comprises the following steps:
[
{
"formulaName": "_location",
"params": [
"streetattrName",
"scopeconteptname",
"separator"
],
"description" for specific demand scenario, according to entity attribute, the government region hierarchy relationship is reversely pushed "
},
{
"formulaName": "_eval",
"params": [
"attrName"
],
"description" extracts a specified attribute value "from an entity based on an attribute name"
},
{
"formulaName": "_children",
"params": [
"relation name"
],
"description" query entity list "to which entities are connected after a relationship is specified"
},
{
"formulaName": "_concept",
"params": [
Hierarchical request switch (whether or not to request according to hierarchy) "
],
"description" obtaining the concept tree structure of an entity "
},
]
Taking the entity attribute acquisition module as an example, the user can acquire the value configured by the entity corresponding to the attribute name by transmitting the attribute name of the entity as a parameter, _eval ($attribute name). For example, _eval ($ area of) may obtain the value of the "area of" attribute. The module acquires the value corresponding to the attribute by reading the attribute configuration information of the entity and returns the value.
The method for supporting the use of the newly built SQL sentence module comprises the following steps:
[
{
"formulaName": "_self",
"params": [
"Attribute name or label (not used alone, but only for querying entity information in sql)".
],
"description" acquires the attribute value or label inside the index entity in sql "
}
]
The SQL statement module adds a self function which can only be used in the SQL statement and references knowledge-graph entity information. The specific implementation mode is as follows:
the server parses and reconstructs an abstract syntax tree AST of the SQL statement, and replaces the _self ('label') in the query condition with an entity name when the query is executed. For example, select count (x) from o_133_1679991451729 where city = _self ('label'), the SQL statement statistics o_133_1679991451729 table "city" column data is the number of rows of the current entity name.
After the basic data set is selected, entering an SQL writing window, and acquiring data required by chart drawing through an SQL sentence, for example, selecting score, count (x) FROM m_133_1682236410127 WHERE city = _self ('label') and score is not null group by score order by score, wherein the SQL sentence obtains a summary result that 'city' in the m_133_16844610127 data table is listed as the current entity name according to the score group.
After the formulas and the components are stored, the user completes editing and storing of a knowledge map entity panel.
It should be noted that the method may provide the user with a function of extending the configuration of a certain entity to other entities having the same concept as the entity.
Specifically, the service platform responds to a preset operation of a user, and the visual configuration corresponding to the target entity can be applied to other entities with the same concept as the target entity in the knowledge graph, so that the visual panel related to the other entities is rendered and displayed according to the visual configuration, wherein the concept is used for representing the entity category to which the entity belongs.
For example, entities such as city A, city B, city C and the like exist under the concept of the city in the knowledge graph, and a user can apply the visual configuration of the entity panel of the city A to the city B and the city C through preset operation.
Of course, the user can also select the target concept in the knowledge graph, and apply the visual configuration of the target entity under the entity of the target concept through the preset operation, if the service platform cannot apply the visual configuration under the entity of the target concept, the user can be notified of the error. The target concept may be selected by the user from concepts having an inheritance relationship with the concept to which the target entity belongs, or may not be limited. Inheritance between concepts is described herein, e.g., a city concept may inherit a province concept, and a region concept may inherit a city concept.
The above-mentioned preset operation may refer to an operation for a user to send a target request to the service platform through the terminal or the client, and the target request may be used to indicate that the user needs to apply the visualization configuration corresponding to the target entity to other entities having the same concept as the target entity. For example, the preset operation may be the user clicking an "apply to other" button in a page provided by the service platform, as shown in fig. 5.
Fig. 5 is a schematic view of one application to other buttons provided in this specification.
In order to avoid the repeated configuration work of rendering panels for different entities, the invention provides the function of inheritance and extension of panel content applied to other options, which supports the function of popularizing and applying all entities under the same concept after configuring a visual panel on a single entity, and can realize all functions of displaying the attributes of the entities, jumping the concept of the entities and the like. The method comprises the following steps:
when a user configures a visualization panel of a certain entity I in a terminal or a client, an attribute value of a corresponding attribute of the entity I is acquired using a $symbol representation, for example "$name" represents acquiring a "name" attribute value of the entity I. Because the attribute a in the entity I is the homonymic attribute a inherited from a certain concept C, it means that other entities inherited from the concept C will also have the attribute a, which makes it possible to "apply to other" panel content inheritance extension functions.
After the terminal or the client records the arrangement combination of the different attribute name acquisition modes of the entity, the entity ID and the attribute name to be displayed are sent to the server through the interface request, and the server returns the data corresponding to the corresponding attribute name to finish the display of the face value of the panel.
The literal value display functions supported to be used comprise functions of inquiring entity attribute information, executing SQL structured inquiry language in a file mounted on an entity, rendering and displaying a chart and the like.
After completing the configuration work of the panel of a certain entity I under the concept C, the user can click the "apply to other" button in fig. 5 by using the mouse, so that the panel configured on the single entity can be promoted to other entities under the same concept, and when clicking other entities of the same concept or in the preview stage, the same template form can be used to obtain the display effects of different word values of the entities.
Fig. 6 is a schematic diagram of a selection concept applied to other functions provided in the present specification.
After the user clicks the "apply to other" button, multiple concepts may be presented, the user may choose one or more concepts, and the user's configuration of entities may be extended to other entities of those concepts.
That is, the other entities of the concepts do not need to perform configuration of the entity panel any more, and by automatically applying the visual configuration (including the view component and the related configuration data) of the entity panel of the target entity configured by the user on the other entities through the background, the entity panel of the other entities can automatically present a similar picture as the entity panel of the target entity. When the visual configuration is applied to other entities of the same concept (or other entities of other concepts), the view component can be applied to an entity panel of the other entities, and related information (such as entity names and the like) of the target entity in the configuration data can be replaced by related information of the other entities, so that the visual configuration of the target entity is applied to the other entities.
From the above, it can be seen that the present invention mainly relates to entity panel viewing, entity panel custom editing, mathematical statistics visualization configuration based on knowledge graph concept level, and one-key application of the visualization scheme to four parts of other entities in the knowledge graph.
After the knowledge graph system is built and the positioning entity is searched, the display and interaction modes of the multi-mode entity can be set by combining basic attribute and relationship information through components such as texts, charts, graphs and the like in the entity panel editor. Besides the attribute and the relation contained in the entity in the knowledge graph, a plurality of functions are supported at the same time, and a multi-element visual expression scheme is realized.
And displaying the acquired text information in the entity panel by acquiring entity names, entity attributes and entity front-rear relations. Based on the entity content, a custom text component and a chart component are inserted, and a part to be analyzed is obtained from the structured data traced from the entity or the atlas in a mode of writing or calling an objective function by SQL query language, and chart visual display such as a histogram, a line graph, a pie graph and the like is supported.
After the custom entity panel is stored, clicking the application in the setting to other functions, and generating a concept filter, and automatically replacing the display content and the visualization scheme of the batch entity signboards by one key according to the configured template by all entity information under the target concept.
Finally, the custom visual display capability of the entity panel under different concepts in the map is achieved.
For convenience of description, the execution subject for executing the method is described as a service platform, and the execution subject of the method may be a server, a large service platform, or the like, which is not limited herein.
From the above, it can be seen that, the method can use the knowledge graph as a data source, so that the user can render the visual panel of the entity by selecting the entity in the knowledge graph and adding the view component corresponding to the entity and the configuration related to the view component as the visual configuration of the entity, and the user can set to apply the visual configuration of a certain entity to each other entity with the same concept as the entity, thereby omitting the configuration operation on a large number of entities with the same concept.
The above provides a method for visualizing and displaying entity data under the same concept as a knowledge graph for one or more embodiments of the present disclosure, and based on the same idea, the present disclosure further provides a device for visualizing and displaying entity data under the same concept as a knowledge graph, as shown in fig. 7.
Fig. 7 is a schematic diagram of a visual display device for entity data under the same concept of a knowledge graph, provided in the present specification, including:
a determining module 701, configured to determine a target entity selected by a user, where the target entity is an entity corresponding to a node in a knowledge graph;
a first response module 702, configured to, in response to a view component added by the user for the target entity and configuration data added by the user and associated with the view component, save the view component added by the user for the target entity and the configuration data as a visualization configuration corresponding to the target entity, so as to render and display a visualization panel related to the target entity according to the visualization configuration;
the second response module 703 is configured to apply, in response to a preset operation of the user, a visualization configuration corresponding to the target entity to other entities having the same concept as the target entity, so as to render and display a visualization panel related to the other entities according to the visualization configuration, where the concept is used to represent an entity class to which the entity belongs.
Optionally, the first response module 702 is specifically configured to determine, in response to a request sent by a user to display a visual view of the target entity, a formula statement and/or an SQL query statement included in configuration data in the visual configuration; executing the formula statement and/or SQL query statement, and rendering the view component corresponding to the visual configuration to show a visual panel related to the target entity.
Optionally, the first response module 702 is further configured to obtain an entity name, an entity attribute, and an entity context of the target entity, and display the entity name, the entity attribute, and the entity context in an entity panel of the target entity.
Optionally, the first response module 702 is specifically configured to determine a view component added by the user in an entity panel in an edited state of the target entity and configuration data associated with the view component; and when the user converts the entity panel into a preview state, rendering the entity panel according to the view component and the configuration data and displaying the entity panel to the user.
Optionally, the view component includes a text component and a chart component.
The specification also provides a computer readable storage medium storing a computer program, the computer program can be used for executing the entity data visualization display method under the same concept of the knowledge graph.
The present specification also provides a schematic structural diagram of the electronic device shown in fig. 8. At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile storage, as illustrated in fig. 8, although other hardware required by other services may be included. The processor reads the corresponding computer program from the nonvolatile memory to the memory and then operates the computer program to realize the entity data visual display method under the same concept of the knowledge graph.
Of course, other implementations, such as logic devices or combinations of hardware and software, are not excluded from the present description, that is, the execution subject of the following processing flows is not limited to each logic unit, but may be hardware or logic devices.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.

Claims (8)

1. The utility model provides a visual display method of entity data under the same concept of a knowledge graph, which is characterized by comprising the following steps:
determining a target entity selected by a user, wherein the target entity is an entity corresponding to a node in a knowledge graph;
responding to the view components added by the user for the target entity and the configuration data added by the user and associated with the view components, and saving the view components added by the user for the target entity and the configuration data as a visual configuration corresponding to the target entity so as to render and show a visual panel related to the target entity according to the visual configuration;
responding to the preset operation of the user, applying the visual configuration corresponding to the target entity to other entities with the same concept as the target entity, and rendering and displaying visual panels related to the other entities according to the visual configuration, wherein the concept is used for representing the entity category to which the entity belongs;
rendering and displaying the visual panel related to the target entity according to the visual configuration, wherein the visual panel specifically comprises: responding to a request sent by a user for displaying the visual view of the target entity, and determining a formula statement and/or an SQL query statement contained in configuration data in the visual configuration; executing the formula statement and/or SQL query statement, and rendering the view component corresponding to the visual configuration to show a visual panel related to the target entity.
2. The method of claim 1, wherein, in response to the user adding a view component for the target entity and prior to the user adding configuration data associated with the view component, the method further comprises:
and acquiring the entity name, the entity attribute and the entity front-back relation of the target entity and displaying the entity name, the entity attribute and the entity front-back relation in an entity panel of the target entity.
3. The method of claim 2, wherein in response to the user adding a view component for the target entity and the user adding configuration data associated with the view component, the method further comprises:
determining view components added by the user in an entity panel in an editing state of the target entity and configuration data associated with the view components;
and when the user converts the entity panel into a preview state, rendering the entity panel according to the view component and the configuration data and displaying the entity panel to the user.
4. The method of claim 1, wherein the view component comprises a text component and a chart component.
5. The utility model provides a knowledge graph is with visual display device of entity data under concept which characterized in that includes:
the determining module is used for determining a target entity selected by a user, wherein the target entity is an entity corresponding to a node in the knowledge graph;
the first response module is configured to respond to the view component added by the user for the target entity and the configuration data added by the user and associated with the view component, save the view component added by the user for the target entity and the configuration data as a visualization configuration corresponding to the target entity, so as to render and display a visualization panel related to the target entity according to the visualization configuration, where rendering and displaying the visualization panel related to the target entity according to the visualization configuration specifically includes: responding to a request sent by a user for displaying the visual view of the target entity, and determining a formula statement and/or an SQL query statement contained in configuration data in the visual configuration; executing the formula statement and/or SQL query statement, and rendering the view component corresponding to the visual configuration to show a visual panel related to the target entity;
and the second response module is used for responding to the preset operation of the user, applying the visual configuration corresponding to the target entity to other entities with the same concept as the target entity, and rendering and displaying the visual panel related to the other entities according to the visual configuration, wherein the concept is used for representing the entity category to which the entity belongs.
6. The apparatus of claim 5, wherein the first response module is further configured to obtain an entity name, an entity attribute, an entity context of the target entity and display in an entity panel of the target entity.
7. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-4.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1-4 when executing the program.
CN202311298527.2A 2023-10-09 2023-10-09 Visual display method and device for entity data under same concept of knowledge graph Active CN117033420B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311298527.2A CN117033420B (en) 2023-10-09 2023-10-09 Visual display method and device for entity data under same concept of knowledge graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311298527.2A CN117033420B (en) 2023-10-09 2023-10-09 Visual display method and device for entity data under same concept of knowledge graph

Publications (2)

Publication Number Publication Date
CN117033420A CN117033420A (en) 2023-11-10
CN117033420B true CN117033420B (en) 2024-01-09

Family

ID=88645381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311298527.2A Active CN117033420B (en) 2023-10-09 2023-10-09 Visual display method and device for entity data under same concept of knowledge graph

Country Status (1)

Country Link
CN (1) CN117033420B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019057190A1 (en) * 2017-09-25 2019-03-28 腾讯科技(深圳)有限公司 Method and apparatus for displaying knowledge graph, terminal device, and readable storage medium
CN111401068A (en) * 2020-03-23 2020-07-10 西南科技大学 Knowledge graph-based explosive formula aided design visualization method and system
CN114186077A (en) * 2021-12-16 2022-03-15 中电云数智科技有限公司 Knowledge graph display method and system
CN116187448A (en) * 2023-04-25 2023-05-30 之江实验室 Information display method and device, storage medium and electronic equipment
CN116303625A (en) * 2023-05-17 2023-06-23 之江实验室 Data query method and device, storage medium and electronic equipment
CN116415000A (en) * 2023-01-06 2023-07-11 中国建设银行股份有限公司 Visual knowledge graph configuration method, device, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11663500B2 (en) * 2020-05-05 2023-05-30 International Business Machines Corporation Visualizing cybersecurity incidents using knowledge graph data
CN113204649A (en) * 2021-05-11 2021-08-03 西安交通大学 Legal knowledge graph construction method and equipment based on entity relation joint extraction

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019057190A1 (en) * 2017-09-25 2019-03-28 腾讯科技(深圳)有限公司 Method and apparatus for displaying knowledge graph, terminal device, and readable storage medium
CN111401068A (en) * 2020-03-23 2020-07-10 西南科技大学 Knowledge graph-based explosive formula aided design visualization method and system
CN114186077A (en) * 2021-12-16 2022-03-15 中电云数智科技有限公司 Knowledge graph display method and system
CN116415000A (en) * 2023-01-06 2023-07-11 中国建设银行股份有限公司 Visual knowledge graph configuration method, device, equipment and storage medium
CN116187448A (en) * 2023-04-25 2023-05-30 之江实验室 Information display method and device, storage medium and electronic equipment
CN116303625A (en) * 2023-05-17 2023-06-23 之江实验室 Data query method and device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于知识图谱的数据检索与可视化方法;李磊;鲁兴河;康警予;陈忠;朱峰;;计算机与网络(05);全文 *

Also Published As

Publication number Publication date
CN117033420A (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN112036736B (en) Workflow creation method and device
CN110674228B (en) Data warehouse model construction and data query method, device and equipment
CN110096513B (en) Data query and fund check method and device
CN110968601A (en) Data query processing method and device
CN107622080B (en) Data processing method and equipment
CN108848244B (en) Page display method and device
CN110399359B (en) Data backtracking method, device and equipment
CN115756449B (en) Page multiplexing method and device, storage medium and electronic equipment
CN108255471B (en) System configuration item configuration device, method and equipment based on configuration suite
CN111158650B (en) Report template and report generation method and device
CN115840567A (en) Application editing method and related equipment
US20190188297A1 (en) Automatic core data service view generator
CN117033527B (en) Knowledge graph construction method and device, storage medium and electronic equipment
CN117035081B (en) Construction method and device of multi-element multi-mode knowledge graph
Abiteboul et al. Matchup: Autocompletion for mashups
CN117033420B (en) Visual display method and device for entity data under same concept of knowledge graph
CN116341642B (en) Data processing method and device, storage medium and electronic equipment
CN112231531A (en) Data display method, equipment and medium based on openstb
CN116756261A (en) GIS data processing method based on relational database management tool
US20240037325A1 (en) Ability to add non-direct ancestor columns in child spreadsheets
CN116010419A (en) Method and device for creating unique index and optimizing logic deletion
CN108241624B (en) Query script generation method and device
CN106155990A (en) A kind of data process and the method for application continuum
CN115630106A (en) Multi-scene parameter receiving method and device based on universal format analysis
CN114691265A (en) Batch grabbing method for software interface structured elements

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant