CN114297443A - Processing method, device and equipment for graph data query statement and storage medium - Google Patents

Processing method, device and equipment for graph data query statement and storage medium Download PDF

Info

Publication number
CN114297443A
CN114297443A CN202111641712.8A CN202111641712A CN114297443A CN 114297443 A CN114297443 A CN 114297443A CN 202111641712 A CN202111641712 A CN 202111641712A CN 114297443 A CN114297443 A CN 114297443A
Authority
CN
China
Prior art keywords
query statement
target query
semantic
generation result
semantic guide
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.)
Granted
Application number
CN202111641712.8A
Other languages
Chinese (zh)
Other versions
CN114297443B (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.)
Winning Health Technology Group Co Ltd
Original Assignee
Winning Health Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Winning Health Technology Group Co Ltd filed Critical Winning Health Technology Group Co Ltd
Priority to CN202111641712.8A priority Critical patent/CN114297443B/en
Publication of CN114297443A publication Critical patent/CN114297443A/en
Application granted granted Critical
Publication of CN114297443B publication Critical patent/CN114297443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Abstract

The application provides a processing method, a processing device, processing equipment and a storage medium of a graph data query statement, and relates to the technical field of medical treatment. The method comprises the following steps: responding to configuration operation on a query statement generation and analysis interface to obtain a configured first generation result, and displaying the first generation result in a first display mode interface corresponding to the query statement; generating a second generation result corresponding to the first generation result based on a mapping relation between a syntactic structure of a predefined graph data search language and a tree structure of a semantic guide; and displaying the second generated result to a second display mode interface corresponding to the query statement. According to the scheme, a user unfamiliar with the graph data search language can analyze the semantic guide graph of the configured query statement based on the provided visual interface to generate the script code of the query statement, or analyze the script code of the pre-written query statement to construct the semantic guide graph of the query statement, so that the response speed to the change of the service requirement is improved.

Description

Processing method, device and equipment for graph data query statement and storage medium
Technical Field
The present application relates to the field of medical technology, and in particular, to a method, an apparatus, a device, and a storage medium for processing a graph data query statement.
Background
In the medical technology field, the large-scale electronic medical record texts need to be searched and applied in different dimensions. The electronic medical record text can be firstly subjected to post-structuring processing and stored as graph data through a natural language algorithm; then, query is performed through a query statement of Graph Search language (GS for short), and a query result is obtained and applied. Wherein, the query statement can be preset. When the query statement is set, the name, the input and the output requirements of the query statement can be determined by defining the name, the output content and the retrieval condition of the query statement. And the output content and retrieval condition of the query statement are based on the grammatical and semantic structure requirements of the graph data search language, and a query statement code written by a user is also called a query script.
Currently, in actual business, a large number of query scripts based on the GS language are required to be written to define different query statements. The GS Language is a Domain Specific Language (DSL for short), and can retrieve graph data and return a result, and can flexibly write complex query conditions, define output conditions, and normalize the output result. In the traditional method, developers in a professional GS language are required to manually compile GS scripts according to business requirements, and the compiled GS scripts are stored so as to be conveniently applied during query.
However, if the service requirement changes, the developer needs to spend more time to re-analyze and adjust the GS script of the original query statement, so that the service requirement change cannot be quickly responded.
Disclosure of Invention
The present invention aims to provide a method, an apparatus, a device and a medium for processing a graph data query statement, so as to improve the response speed to a change in business demand when the business demand changes.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a method for processing a graph data query statement, including:
responding to the configuration operation of a target query statement on a query statement generation and analysis interface to obtain a configured first generation result, and displaying the first generation result in a first display mode interface corresponding to the target query statement; wherein the first generation result is a semantic guide map of the target query statement or script codes of the target query statement;
generating a second generation result corresponding to the first generation result based on a mapping relation between a syntax structure of a predefined graph data search language and a tree structure of a semantic guide, wherein if the first generation result is a script code of the target query statement, the second generation result is the semantic guide of the target query statement, and if the first generation result is the semantic guide of the target query statement, the second generation result is the script code of the target query statement;
and displaying the second generated result to a second display mode interface corresponding to the target query statement.
Optionally, the responding to the configuration operation of the target query statement on the query statement generation and analysis interface to obtain a configured first generation result includes:
determining attribute information of a semantic guide map of the target query statement according to the identifier of the target query statement; wherein the attribute information includes: a start node, an end node and an output result;
and responding to configuration operation executed based on the attribute information of the semantic guide of the target query statement, obtaining the semantic guide of the target query statement, and taking the semantic guide of the target query statement as the first generation result.
Optionally, the obtaining the semantic guide of the target query statement in response to the configuration operation performed based on the attribute information of the semantic guide of the target query statement includes:
displaying the mark of the target query statement;
responding to the configuration operation aiming at the target query statement, and generating the semantic guide map of the target query statement layer by layer based on the attribute information of the semantic guide map of the target query statement.
Optionally, the generating a second generation result corresponding to the first generation result based on a mapping relationship between a syntax structure of a predefined graph data search language and a tree structure of a semantic guide includes:
using a script engine component to perform traversal analysis on the semantic guide of the target query statement to obtain attribute information of the semantic guide of the target query statement;
generating a script code of the target query statement according to the attribute information of the semantic guide of the target query statement and the mapping relation between the syntactic structure of the graph data search language and the tree structure of the semantic guide, and taking the script code of the target query statement as the second generation result.
Optionally, the responding to the configuration operation of the target query statement on the query statement generation and analysis interface to obtain a configured first generation result further includes:
responding to the trigger operation of the control corresponding to the first display mode interface, acquiring a pre-written script code aiming at the target query statement, and taking the script code of the target query statement as the first generation result.
Optionally, the generating a second generation result corresponding to the first generation result based on a mapping relationship between a syntax structure of a predefined graph data search language and a tree structure of a semantic guide includes:
analyzing the script codes of the target query statement by using a graphic engine component to obtain the information of each attribute in the script codes;
and constructing the semantic guide map of the target query statement according to the information of each attribute in the script code and the mapping relation between the syntactic structure of the graph data search language and the tree structure of the semantic guide map, and taking the semantic guide map as the second generation result.
Optionally, before the responding to the configuration operation of the query statement generation and analysis interface on the target query statement and obtaining the configured first generation result, the method further includes:
responding to touch operation of a query statement configuration control in a task management interface, and acquiring a configuration interface of the target query statement; the configuration interface of the target query statement comprises an identification control of each query statement and at least one display mode interface corresponding to each query statement.
In a second aspect, an embodiment of the present application further provides an apparatus for processing a graph data query statement, where the apparatus includes:
the response module is used for responding the configuration operation of the target query statement on a query statement generation and analysis interface, obtaining a configured first generation result and displaying the first generation result in a first display mode interface corresponding to the target query statement; wherein the first generation result is a semantic guide map of the target query statement or script codes of the target query statement;
a generating module, configured to generate a second generated result corresponding to the first generated result based on a mapping relationship between a syntax structure of a predefined graph data search language and a tree structure of a semantic guide, where the second generated result is a semantic guide of the target query statement if the first generated result is the target query statement code, and the second generated result is a script code of the target query statement if the first generated result is the semantic guide of the target query statement;
and the display module is used for displaying the second generated result to a second display mode interface corresponding to the target query statement.
Optionally, the response module is further configured to:
determining attribute information of a semantic guide map of the target query statement according to the identifier of the target query statement; wherein the attribute information includes: a start node, an end node and an output result;
and responding to configuration operation executed based on the attribute information of the semantic guide of the target query statement, obtaining the semantic guide of the target query statement, and taking the semantic guide of the target query statement as the first generation result.
Optionally, the response module is further configured to:
displaying the mark of the target query statement;
responding to the configuration operation aiming at the target query statement, and generating the semantic guide map of the target query statement layer by layer based on the attribute information of the semantic guide map of the target query statement.
Optionally, the generating module is further configured to:
using a script engine component to perform traversal analysis on the semantic guide of the target query statement to obtain attribute information of the semantic guide of the target query statement;
generating a script code of the target query statement according to the attribute information of the semantic guide of the target query statement and the mapping relation between the syntactic structure of the graph data search language and the tree structure of the semantic guide, and taking the target query statement code as the second generation result.
Optionally, the response module is further configured to:
responding to the trigger operation of the control corresponding to the first display mode interface, acquiring a pre-written script code aiming at the target query statement, and taking the script code of the target query statement as the first generation result.
Optionally, the generating module is further configured to:
analyzing the script codes of the target query statement by using a graphic engine component to obtain the information of each attribute in the script codes;
and constructing the semantic guide map of the target query statement according to the information of each attribute in the script code and the mapping relation between the syntactic structure of the graph data search language and the tree structure of the semantic guide map, and taking the semantic guide map as the second generation result.
Optionally, the response module is further configured to:
responding to touch operation of a query statement configuration control in a task management interface, and acquiring a configuration interface of the target query statement; the configuration interface of the query statement comprises an identification control of each query statement and at least one display mode interface corresponding to each query statement.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the method as provided by the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method as provided in the first aspect.
The beneficial effect of this application is:
the application provides a processing method, a device, equipment and a storage medium for graph data query sentences, wherein the method comprises the following steps: responding to the configuration operation of the target query statement on the query statement generation and analysis interface to obtain a configured first generation result, and displaying the first generation result in a first display mode interface corresponding to the target query statement; the first generation result is a semantic guide picture of the target query statement or a script code of the target query statement; generating a second generation result corresponding to the first generation result based on a mapping relation between a syntax structure of a predefined graph data search language and a tree structure of a semantic guide, wherein the second generation result is the semantic guide of the target query statement if the first generation result is the script code of the target query statement, and the second generation result is the script code of the target query statement if the first generation result is the semantic guide of the target query statement; and displaying the second generated result to a second display mode interface corresponding to the target query statement. In the scheme, mainly for users unfamiliar with the GS language, traversal analysis can be performed on the semantic guide map of the configured target query statement based on the provided visual interface to generate the GS script code of the target query statement, or the pre-written GS script code of the target query statement is analyzed to construct the semantic guide map of the target query statement. Therefore, a user who is not familiar with the GS language can generate the GS script codes of the query statement through a visual interface after configuring the semantic guide map of the query statement without compiling the GS script codes of the query statement, so that the compiling difficulty of the GS script codes is reduced, the compiling efficiency of the query statement is improved, and the quick response to the change of the service requirement is improved; meanwhile, the complex GS script codes of the query statement can be analyzed into a visual semantic guide map through a visual interface, so that the user can intuitively understand the meaning represented by the GS script codes, the problem that the user needs to spend more time for analyzing and adjusting the GS script of the original query statement again is solved, and the response speed to the change of the service requirement is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a processing method of a graph data query statement according to an embodiment of the present application;
fig. 3 is a first schematic view of a query statement configuration interface in a processing method of a graph data query statement according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another processing method for a graph data query statement according to an embodiment of the present application;
fig. 5 is a schematic diagram of a query statement configuration interface in the processing method of a graph data query statement according to the embodiment of the present application;
fig. 6 is a flowchart illustrating a further processing method of a graph data query statement according to an embodiment of the present application;
fig. 7 is a schematic diagram of a query statement configuration interface in the processing method of a graph data query statement according to the embodiment of the present application;
fig. 8 is a schematic view of a query statement configuration interface in the processing method of a graph data query statement according to the embodiment of the present application;
fig. 9 is a schematic diagram of a query statement configuration interface in the processing method of a graph data query statement according to the embodiment of the present application;
fig. 10 is a sixth schematic view of a query statement configuration interface in the processing method of a graph data query statement according to the embodiment of the present application;
fig. 11 is a seventh schematic view of a query statement configuration interface in the processing method of a graph data query statement according to the embodiment of the present application;
fig. 12 is a schematic view eight of a query statement configuration interface in the processing method of graph data query statements provided in the embodiment of the present application;
fig. 13 is a ninth schematic view of a query statement configuration interface in the processing method of a graph data query statement according to the embodiment of the present application;
FIG. 14 is a flowchart illustrating another method for processing a graph data query statement according to an embodiment of the present application;
fig. 15 is a schematic view ten of a query statement configuration interface in a processing method of a graph data query statement according to an embodiment of the present application;
FIG. 16 is a flowchart illustrating a method for processing a graph data query statement according to an embodiment of the present application;
fig. 17 is an eleventh schematic view of a query statement configuration interface in a processing method of a graph data query statement according to the embodiment of the present application;
fig. 18 is a schematic structural diagram of a query statement processing apparatus in a graph data search language according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Furthermore, the terms "first," "second," and the like in the description and in the claims, as well as in the drawings, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
First, before the technical solutions provided in the present application are explained in detail, the related background related to the present application will be briefly explained.
In the medical technology field, the large-scale electronic medical record texts need to be searched and applied in different dimensions. The electronic medical record text can be firstly subjected to post-structuring processing and stored as graph data through a natural language algorithm; and then, inquiring through the inquiry statement of the graph data search language to obtain an inquiry result and apply the inquiry result.
Wherein, the "query statement" may be set in advance. When the "query statement" is set, the "query statement" means that the name of the query statement, the input and output requirements are determined by defining the name of the query statement, the output content and the search condition. The output content and retrieval condition defining the query statement are all query statement codes written by a user based on the grammatical and semantic structure requirements of the graph data search language, and are also called query scripts.
At present, in actual business, a query script can be written by using the GS language (wherein the GS language is a domain-specific language, and can return a result after retrieving a graph and data, and can flexibly write a complex query condition, define an output condition, and normalize the output result. Specifically, a large number of GS language scripts need to be written to realize the definition of different query statements, and in the conventional method, developers in a professional GS language need to manually write GS script definition query statements according to business requirements, and then store the GS scripts of the query statements so as to be conveniently applied during query.
However, if the business requirement changes, the developer needs to spend more time analyzing and adjusting the GS script of the original query statement again, in short, the developer who is unfamiliar with the GS language has no trouble, and even the developer who is familiar with the GS language writes and reads the GS script, the developer is time-consuming, labor-consuming and not intuitive enough, and further the change of the business requirement cannot be responded quickly.
In order to solve the technical problems in the prior art, the application provides a method for processing graph data query statements, which is mainly used for traversing and analyzing a semantic guide graph of a configured query statement to generate a GS script code of the query statement based on a provided visual interface for a user unfamiliar with a GS language, or analyzing a GS script code of a pre-written query statement to construct the semantic guide graph of the query statement. Therefore, a user who is not familiar with the GS language can generate the GS script codes of the query statement through a visual interface after configuring the semantic guide map of the query statement without compiling the GS script codes of the query statement, the difficulty in compiling the GS script is reduced, the efficiency of compiling the query statement is improved, and the quick response to the change of the service requirement is improved; meanwhile, the complex GS script codes of the query statement can be analyzed into a visual semantic guide map through a visual interface, so that the user can intuitively understand the meaning represented by the GS script codes, the problem that the user needs to spend more time for analyzing and adjusting the GS script of the original query statement again is solved, and the response speed to the change of the service requirement is improved.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure; the electronic device may be a processing device such as a computer or a server, and is used for implementing the processing method of the graph data query statement provided by the present application. As shown in fig. 1, the electronic apparatus includes: a processor 101 and a memory 102.
The processor 101 and the memory 102 are electrically connected directly or indirectly to realize data transmission or interaction. For example, electrical connections may be made through one or more communication buses or signal lines.
The processor 101 may be an integrated circuit chip having signal processing capability. The Processor 101 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 102 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
It will be appreciated that the configuration depicted in FIG. 1 is merely illustrative and that electronic device 100 may include more or fewer components than shown in FIG. 1 or may have a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The memory 102 is used for storing a program, and the processor 101 calls the program stored in the memory 102 to execute the processing method of the graph data query statement provided in the following embodiments.
The processing method and the corresponding beneficial effects of the graph data query statement provided by the present application will be described in the following through a plurality of embodiments.
Fig. 2 is a schematic flowchart of a processing method of a graph data query statement according to an embodiment of the present application; fig. 3 is a first schematic view of a query statement configuration interface in a processing method of a graph data query statement according to an embodiment of the present application; fig. 4 is a schematic diagram of a query statement configuration interface in the processing method of a graph data query statement according to the embodiment of the present application; alternatively, the execution subject of the method may be an electronic device such as a server or a computer, and has a data processing function. It should be understood that in other embodiments, the order of some steps in the processing method of the graph data query statement may be interchanged according to actual needs, or some steps may be omitted or deleted. As shown in fig. 2, the method includes:
s201, responding to the configuration operation of the target query statement on the query statement generation and analysis interface, obtaining a configured first generation result, and displaying the first generation result in a first display mode interface corresponding to the target query statement.
The first generation result is a semantic guide map of the target query statement or script codes of the target query statement. Correspondingly, the first display mode interface is a graphical mode interface or a code mode interface.
Referring to fig. 3, the present application provides a visual query statement configuration interface, where configured query statement names are displayed in a left query statement list and are displayed in a page. Clicking any one of the left query statement lists can display the semantic guide map of the query statement in the right area interface, and clicking the graphic mode and the code mode can switch the display mode of the current query statement.
For example, as shown in fig. 3, a target query statement name of "abnormal iconography expression _ b & iv" in the left query statement list may be clicked and selected, and in response to a configuration operation performed by a user on the target query statement of "abnormal iconography expression _ b & iv" in the query statement configuration interface, a configured first generation result is obtained, and the first generation result is displayed in a first display mode interface corresponding to the query statement.
In the first case, in the query statement configuration interface, the response user performs configuration operation according to the configuration logic of the tree structure of the semantic guide of the target query statement to obtain the visual semantic guide of the target query statement, the obtained semantic guide of the target query statement is used as the first generation result, and the "semantic guide of the target query statement" is displayed in the graphical mode interface corresponding to the target query statement.
In the second case, in the query statement configuration interface, in response to a trigger operation of the user for acquiring the script code of the target query statement, the script code of the target query statement is obtained, the obtained script code of the target query statement is used as the first generation result, and "script code of the target query statement" is displayed in the code mode interface corresponding to the target query statement.
S202, generating a second generation result corresponding to the first generation result based on the mapping relation between the grammar structure of the predefined graph data search language and the tree structure of the semantic guide.
If the first generation result is the script code of the target query statement, the second generation result is the semantic guide map of the target query statement, and if the first generation result is the semantic guide map of the target query statement, the second generation result is the script code of the target query statement.
It should be understood that the "mapping relationship between the syntax structure of the GS language and the tree structure of the semantic guide" represents the corresponding relationship between each object in the syntax structure of the GS language and each node in the tree structure of the semantic guide.
In this embodiment, the "semantic guide of the target query statement" corresponding to the "script code of the target query statement" or the "script code of the target query statement" corresponding to the "semantic guide of the target query statement" may be generated based on a mapping relationship between a predefined syntax structure of the GS language and a tree structure of the semantic guide.
Therefore, a user who is not familiar with the GS language can generate the GS script codes of the query statement based on the mapping relation between the predefined syntactic structure of the GS language and the tree structure of the semantic guide map through a visual interface after configuring the semantic guide map of the query statement without compiling the GS script codes of the query statement, thereby reducing the difficulty of compiling the GS script, improving the compiling efficiency of the query statement and improving the quick response to the change of the service requirement; meanwhile, the complex GS script codes related to the query statement are analyzed into a visual semantic guide map based on the mapping relation between the pre-defined syntactic structure of the GS language and the tree structure of the semantic guide map through a visual interface, so that the user can be helped to intuitively understand the meaning represented by the GS script codes, the problem that the user needs to spend more time to analyze and adjust the GS script of the original query statement again is solved, and the response speed to the change of the service requirement is improved.
And S203, displaying the second generated result to a second display mode interface corresponding to the target query statement.
As shown in fig. 3, the second display mode interface corresponding to the target query statement is a graphical mode interface or a code mode interface.
On the basis of the embodiment, the second generated result of the generated target query statement is displayed to the second display mode interface corresponding to the target query statement, so that the visual and intuitive display of the second generated result of the target query statement is realized, and a user can quickly perform interpretation analysis on the second generated result from the second display mode interface.
In the first case, if the second generation result is the script code of the target query statement, the script code of the target query statement is displayed on the "code mode interface".
In the second case, if the second generation result is the semantic guide of the target query statement, the semantic guide of the target query statement is displayed to the "graphical mode interface".
To sum up, an embodiment of the present application provides a method for processing a graph data query statement, where the method includes: responding to the configuration operation of the target query statement on the query statement generation and analysis interface to obtain a configured first generation result, and displaying the first generation result in a first display mode interface corresponding to the target query statement; the first generation result is a semantic guide picture of the target query statement or a script code of the target query statement; generating a second generation result corresponding to the first generation result based on a mapping relation between a predefined GS language syntactic structure and a semantic guide tree structure, wherein if the first generation result is a script code of a target query statement, the second generation result is the semantic guide tree of the target query statement, and if the first generation result is the semantic guide tree of the target query statement, the second generation result is the script code of the target query statement; and displaying the second generated result to a second display mode interface corresponding to the target query statement. According to the scheme, a user unfamiliar with the GS language can traverse and analyze the semantic guide map of the configured query statement based on the provided visual interface to generate the GS script code of the query statement, or analyze the GS script code of the pre-written query statement to construct the semantic guide map of the query statement. Therefore, a user who is not familiar with the GS language can generate the GS script codes of the target query statement through a visual interface after configuring the semantic guide map of the query statement without compiling the GS script codes of the query statement, thereby reducing the difficulty in compiling the GS script, improving the efficiency of compiling the query statement and improving the quick response to the change of the service requirement; meanwhile, the complex GS script codes of the query statement can be analyzed into a visual semantic guide map through a visual interface, so that the user can intuitively understand the meaning represented by the GS script codes, the problem that the user needs to spend more time for analyzing and adjusting the GS script of the original query statement again is solved, and the response speed to the change of the service requirement is improved.
How to respond to the configuration operation of the target query statement on the query statement generation and analysis interface is specifically explained through the following embodiments, and a configured first generation result is obtained.
Alternatively, in the first case, when the first generation result is the semantic guide of the target query statement, as shown in fig. 4, the above step S201: responding to the configuration operation of the target query statement in the query statement generation and analysis interface to obtain a configured first generation result, wherein the configuration operation comprises the following steps:
s401, determining attribute information of a semantic guide map of the target query statement according to the identification of the target query statement.
Wherein the attribute information includes: a start node, an end node, and an output result.
For example, the following describes the configuration process of the query statement by taking an objective query statement "blood conventional white blood cells" as an example, and finally obtains a semantic guide map that the configured first generation result is "blood conventional white blood cells". As shown particularly in the right hand area interface of fig. 5.
First, attribute information of a semantic guide of a query statement "hemogram leukocyte" can be determined based on the identifier of the query statement. Specifically, "conventional blood leukocytes" are leukocytes obtained by searching patients who develop fever symptoms for their blood values after performing a blood routine procedure. Blood routine, white blood cells, can be represented by triplets, the remaining elements being for example: patient, symptom and white blood cell values are represented by nodes. This is an example of a query statement with complex conditions that limit the patient from having symptoms of fever and from having a blood routine that limits the white blood cells that are derived from the blood routine.
Thus, it is possible to use "blood routine" as the start node of the semantic guide of the query statement, "white blood cells" as the end node of the semantic guide of the query statement, and "white blood cell value" as the output result of the semantic guide of the query statement.
S402, responding to the configuration operation executed based on the attribute information of the semantic guide of the target query statement, obtaining the semantic guide of the target query statement, and taking the semantic guide of the target query statement as a first generation result.
On the basis of the above embodiment, after determining the attribute information of the semantic guide of the target query statement, in response to a configuration operation performed by a user based on the attribute information of the semantic guide of the target query statement, the semantic guide of the target query statement is obtained, and the semantic guide of the target query statement is used as the first generation result.
How to implement the configuration operation executed in step S402 in response to the attribute information based on the semantic guide of the target query statement to obtain the semantic guide of the target query statement will be specifically explained by the following embodiments.
Alternatively, as shown in fig. 6, the step S402: responding to a configuration operation executed based on attribute information of a semantic guide of a target query statement, obtaining the semantic guide of the target query statement, and taking the semantic guide of the target query statement as the first generation result, wherein the configuration operation comprises:
s601, displaying the mark of the target query statement.
S602, responding to the configuration operation aiming at the target query statement, and generating the semantic guide map of the target query statement layer by layer based on the attribute information of the semantic guide map of the target query statement.
The following first introduces the definition process of the semantic guidance of the target query statement in the present application, which is specifically as follows:
the semantic guide map of the query statement is a spread tree-shaped map, and the whole semantic guide map can be dragged, positioned and exported for application. The different elements are represented by shapes and colors, their appearance style and associated operational events are controlled by a common component written, the design of each element is described below.
And (3) inquiring the statement name: the query statement name is represented by a gray rectangular box.
And (3) node: the nodes are represented by blue long oval.
Triplet: the triples are represented by light blue braces and are connected with 2 nodes, and dark blue directional arrows are arranged between the nodes and jointly represent the triples.
Normalization of attributes: configuration when adding nodes, not shown in the pilot.
Relationship type of attribute: when an object is added, the selection is configured, and the type of the selection is shown by a yellow rectangular box in the object in the figure.
Constraint conditions of the attributes: and respectively displaying in a green font mode, a black font mode and a green font mode through a condition name plus operational character plus value mode.
Node relationship of attributes: the direct relationship is indicated by a blue solid line, the indirect relationship is indicated by a blue broken line, the indirect relationship is indicated by a blue solid line plus "X", and the indirect relationship is indicated by a blue broken line plus "X".
Rule set: the rule set is represented by an orange diamond, including the "and" or "categories, clickable switches.
Event: the element related operation events in the figure comprise addition, modification and deletion.
The semantic guide map is a part of a graphical interface configured by the query statement, and further comprises configuration operations such as normalization configuration and content output.
The specific process of generating a semantic guide for a target query statement is described below in conjunction with specific embodiments.
First, responding to the name configuration operation of a user for a target query statement, according to the identifier of the target query statement displayed in a query statement configuration interface, clicking a control of adding an icon plus on the left side of a page where the identifier ID of the query statement is located as shown in the sequence number 1 of fig. 7, popping up a name configuration interface of the query statement as shown in the sequence number 2 of fig. 7, setting the name of a conventional leukocyte, responding to the click operation of the user on a storage control, and after the storage is successful, displaying the interface as shown in the sequence number 3 of fig. 7.
And secondly, responding to the configuration operation of the user for the target query statement, sequentially configuring 'patient' node information, 'check' triple information, 'value' node information and 'symptom' node information, and describing the configuration process of each node in detail.
1. "patient" node configuration: including node information, rule sets, constraints.
(1) Adding nodes: as shown in fig. 8, a right button is clicked on the name of the "blood conventional leukocyte" query statement, a control of "newly added node" is clicked, an interface as shown in a sequence number "2" in fig. 8 is popped up after clicking, the name of the node is set as "patient", the node type selects a "root node", the control of "save" is clicked, the node is added, the interface is successfully popped up and closed, and the result is shown in a sequence number "3" in fig. 8;
(2) configuring a rule set: the right button is pressed on the "patient" node as shown in fig. 9, the "add rule" control is clicked, and the "rule" is added directly after the "patient" node after clicking, and the result is shown as the sequence number "2" in fig. 9.
(3) And (3) configuring constraint conditions: as shown in fig. 10, the "rule" is right-clicked, the "new condition" control is clicked, a condition configuration interface pops up after clicking, condition configuration is performed as shown by a sequence number "2" in fig. 10, the "save" control is clicked as shown by a sequence number "3" in fig. 10, and condition setting is successful.
2. "check" triple configuration: the method comprises the steps of adding a triple, starting node configuration and ending node configuration.
(1) And newly adding triples: as shown in fig. 11, the right button is pressed on the "rule" of the "patient" node, the "new triple" control is clicked, after clicking, a triple configuration interface pops up, as shown in fig. 11 with the sequence number "2", the name of the triple is set to be "check", the external relationship selects the "indirect relationship", and the "save" control is clicked, as shown in fig. 11 with the sequence number "3", to obtain the result.
(2) Starting node configuration: modifying the name of the starting node, double-clicking the starting node to pop up an interface shown as a sequence number figure 4 in figure 11, changing the name of the node into a blood routine, and clicking a storage control; then, add rule set and set constraint conditions, and the above configuration mode may refer to the configuration of "patient" node, which is not described herein again.
(3) And (3) ending node configuration: the node name is modified to 'white blood cell', and a rule group and constraint conditions are set, the same as the configuration mode of the initial node, and the effect after configuration is shown as the sequence number '5' in fig. 11.
3. Configuration of the "value" node: clicking a 'newly added node' control on a 'rule' of a 'leukocyte' node, popping up a result shown as a sequence number '1' in a figure 12, setting a node name as a 'value', selecting a node relationship as a 'direct relationship', and clicking a 'save' control as a sequence number '2'.
4. "symptom" node configuration: and (3) clicking a control of the 'new node' on a right key of a 'rule' of the 'patient' node, popping up a graph with the sequence number '1' in the graph 13, setting the name of the node as 'symptom', selecting the node relation as 'direct relation', and clicking a 'storage' control.
5. And (3) output content configuration: clicking a node of an inquiry statement name 'blood conventional leucocyte' in the semantic guide picture, selecting a node needing to be returned, selecting a 'value', and clicking a 'storage' control. The result is obtained as shown by the number "2" in fig. 13.
And generating a semantic guide map of the target query statement based on the configuration steps aiming at the target query statement.
The following embodiment will specifically explain how to generate the second generation result corresponding to the first generation result based on the mapping relationship between the predefined syntax structure of the GS language and the tree structure of the semantic guide.
Alternatively, in the first case, when the first generation result is the semantic guide of the target query statement, as shown in fig. 14, the above step S202: generating a second generation result corresponding to the first generation result based on the mapping relation between the syntax structure of the predefined GS language and the tree structure of the semantic guide, wherein the second generation result comprises:
s1401, traversing and analyzing the semantic guide map of the target query statement by using the script engine component to obtain attribute information of the semantic guide map of the target query statement.
In this embodiment, the script engine component is designed and implemented by an object-oriented method, and is adapted to the syntax structure of the GS language by the query statement name, the output content, the object, the attribute, the rule set, the event constraint, and the GS script code, which converts the tree structure of the semantic graph of the query statement into the query statement.
The elements of the script engine component provided herein are described in detail below.
(1) And (3) inquiring the statement name: the query statement defined for the current configuration is named.
(2) Outputting the content: a query statement configuration may involve 1 or more objects, and a user may filter some of the objects of interest for output when outputting, allowing the user to filter and sort the output structure of the query statement, for example: the structure of the output content can be (symptom, severity, duration) or adjusted to (severity, symptom, duration).
(3) And the object: the triple structure comprises a node and a triple, wherein the triple structure comprises a starting node, a relation and an ending node, the starting node and the ending node are two nodes in a graph, and the relation is an edge in the graph. The edges have directionality and the arrows point from the start node to the end node.
(4) And attribute: including normalization, relationship types, constraints, and node relationships.
(5) Normalization is to perform normalization configuration on the condition that the content of the nodes in the graph data may not be normalized. For example, 2 words of 'fever' and 'heat generation' have the same semantic meaning, and need to be normalized when being retrieved and output;
(6) the relation type is used for restricting the type of the side, for example, the relation type between 'pleura' and 'sunken' can have 'positive' and 'negative' relations, the relation is configured according to an actual task frame, and defaults to all relation types;
(7) the constraint conditions are used for screening the constraint conditions which meet the requirements, such as node types, names, positions, contents and the like, and the combination condition screening can be carried out through AND, OR and logic operators;
(8) the node relationship refers to the relationship between the objects, and includes: direct relationships, indirect relationships, and indirect relationships.
(9) And a rule group: including "union rule set" and "or rule set," indicates the relationship between the conditions within the rule set.
(10) And event: the method comprises two types of events including right-click menu and double-click elements, namely newly-increased query statements, newly-increased root nodes, newly-increased rule groups, newly-increased nodes, editing and deleting events.
(11) Event constraint: the events of different objects and rule groups are different, and the events of the same class of objects in different processes are also different, for example, when the name of an inquiry statement does not have a child node in a graph, a right-click menu new root adding node and a double-click editing event are provided, and when the child node exists, a right-click node deleting event and a double-click editing event are provided; the node right-click menu only has a newly added rule group and a node deleting event, the rule group is not only the rule group, but also has a newly added node, a newly added triple and a newly added condition event.
Through the constraint of each element in the 'script engine component', the grammar structure requirement of the GS script code for subsequently generating the query statement can be ensured.
Therefore, in this embodiment, the GS script engine may be invoked to perform traversal analysis on the semantic guide of the target query statement, so as to obtain attribute information of the semantic guide of the target query statement through analysis.
S1402, generating script codes of the target query statement according to the attribute information of the semantic guide of the target query statement and the mapping relation between the grammar structure of the programming language and the tree structure of the semantic guide, and taking the script codes as a second generation result.
On the basis of the above embodiment, after the attribute information of the semantic guide of the target query statement is obtained through analysis, each element in the "script engine component" defined above may be adapted to the syntax structure of the GS language, so as to generate the GS script code of the target query statement. In addition, the GS script codes of the generated query statement can be viewed by switching to an editor by clicking a code mode interface in the query statement configuration interface.
Optionally, in the second case, when the first generation result is the script code of the target query statement, the following embodiment will be continued to specifically explain how to obtain the configured first generation result in response to the configuration operation on the target query statement in the query statement generation and analysis interface.
Optionally, in the step S201, responding to the configuration operation on the target query statement in the query statement generation and analysis interface to obtain the configured first generation result, further including:
responding to the trigger operation of the control corresponding to the first display mode interface, acquiring a pre-written script code aiming at the target query statement, and taking the script code of the target query statement as a first generation result.
In this embodiment, the first display mode interface is a code mode interface.
For example, as shown in fig. 3, by clicking a left "add icon +" button in the query statement configuration interface, pop up as shown by a sequence number "1" in fig. 15, configure the name of the query statement, and then, in response to a click operation of the "save" control by the user, after the saving is successful, as shown by a sequence number "2" in fig. 15. Responding to the trigger operation of the control corresponding to the code mode interface, switching to the editor interface, manually writing the GS script code, and acquiring the pre-written GS script code, as shown by a sequence number 3 in fig. 15, responding to the click operation of the user on the control of the 'save icon', and taking the script code of the target query statement as a first generation result.
Optionally, in the second case, when the first generation result is the script code of the target query statement, the following embodiment will be continued to specifically explain how to generate the second generation result corresponding to the first generation result based on the mapping relationship between the syntax structure of the predefined GS language and the tree structure of the semantic guide.
Alternatively, as shown in fig. 16, the step S202: generating a second generation result corresponding to the first generation result based on the mapping relation between the syntax structure of the predefined GS language and the tree structure of the semantic guide, wherein the second generation result comprises:
s1601, analyzing the script code of the target query statement by using the graphic engine component to obtain information of each attribute in the script code.
S1602, according to the information of each attribute in the script code and the mapping relation between the syntax structure of the GS language and the tree structure of the semantic guide, constructing the semantic guide of the target query statement, and taking the semantic guide as a second generation result.
Wherein the graphics engine component: and analyzing the GS script codes to generate tree-shaped structure data which accords with the semantic guide diagram, and adding event constraints according to the syntactic structure of the GS language to ensure the accuracy of the query statement when the semantic guide diagram and the events interact.
The following introduces the mapping relationship between each attribute of the GS script code and each node in the tree structure of the semantic guide, specifically as follows:
object: the query condition comprises a triple and a Node, and is distinguished by a type attribute in the query condition, wherein the triple is a triple, and the Node is a Node. The GS syntax structure corresponding to the triplet is Tuple (conditional, targetnode), that is, the content of the triplet (start node, relation, end node) in the GS script code can be obtained through the above attributes.
Rule set: AND obtaining the conditions attribute of each node in the retrieval condition, wherein the attribute value of the 'logic' is 'AND' corresponding to the semantic guidance chart 'AND a rule group, AND the value of the' logic 'is' OR 'corresponding to the semantic guidance chart' OR the rule group.
Normalization of attributes: the value obtained by retrieving the "normal" attribute of each node in the condition is a regular expression, and this information is displayed when the node in the semantic leader is double-clicked.
Relationship type of attribute: the value of the triplet is obtained by retrieving its "conditions" attribute, in this example the value "associated with …," of the triplet in the condition, shown in the semantic leader in a yellow rectangle following the triplet name.
Constraint conditions of the attributes: the value of each node in the condition is obtained by searching the attribute of "conditions" of each node, the value is an array, each item in the array is a constraint condition, the array is composed of "fieldschema", "operator" and "value" to respectively represent condition name, operator and value, and the condition name, operator and value are displayed behind the rule group of the node in the semantic guide diagram, such as "entity type is anatomical part" in the example.
Therefore, the script code of the target query statement is analyzed by using the graphic engine component, and the attribute information of each object in the script code is obtained.
For example, the script code of the target query statement is:
Figure BDA0003443952630000201
Figure BDA0003443952630000211
Figure BDA0003443952630000221
Figure BDA0003443952630000231
therefore, the GS graphic engine component is used for analyzing the script codes of the target query statement to obtain the attribute information of each object in the script codes. For example, first, it is analyzed that the "query" attribute value is a search condition and the "return" attribute value is output content.
Secondly, the GS graphic engine component further analyzes and acquires the object, the rule group and the attribute according to the retrieval condition, the GS graphic engine component further analyzes and acquires the return field and the key word according to the output content, then, based on the mapping relation between the syntactic structure of the graph data search language and the tree structure of the semantic guide, the content information of the object, the rule group, the attribute, the return field, the key word and the like acquired by analysis is converted into the format requirement of the tree structure data of the semantic guide, the semantic guide of the target query statement is constructed, the semantic guide of the target query statement as displayed in the graph mode interface in the figure 17 is acquired, and corresponding events and constraints can be given to each node in the semantic guide of the target query statement.
Optionally, in step S201: responding to the configuration operation of the query statement generation and analysis interface on the target query statement, and before obtaining a configured first generation result, the method further comprises the following steps:
responding to touch operation of a query statement configuration control in a task management interface, and acquiring a configuration interface of a target query statement; the configuration interface of the target query statement comprises an identification control of each query statement and at least one display mode interface corresponding to each query statement.
The following describes a device, a storage medium, and the like corresponding to a processing method for executing a graph data query statement provided in the present application, and specific implementation processes and technical effects thereof are referred to above, and are not described again below.
Alternatively, as shown in fig. 18, the apparatus includes:
a response module 1801, configured to respond to a configuration operation on the target query statement on the query statement generation and analysis interface, obtain a configured first generation result, and display the first generation result in a first display mode interface corresponding to the target query statement; the first generation result is a semantic guide picture of the target query statement or a script code of the target query statement;
a generating module 1802, configured to generate a second generated result corresponding to the first generated result based on a predefined mapping relationship between a syntax structure of the GS language and a tree structure of the semantic guide, where the second generated result is the semantic guide of the target query statement if the first generated result is the script code of the target query statement, and the second generated result is the script code of the target query statement if the first generated result is the semantic guide of the target query statement;
a display module 1803, configured to display the second generated result to a second display mode interface corresponding to the target query statement.
Optionally, the response module 1801 is further configured to:
determining attribute information of a semantic guide map of the target query statement according to the identifier of the target query statement; wherein the attribute information includes: a start node, an end node and an output result;
and responding to the configuration operation executed based on the attribute information of the semantic guide of the target query statement, obtaining the semantic guide of the target query statement, and taking the semantic guide of the target query statement as a first generation result.
Optionally, the response module 1801 is further configured to:
displaying the mark of the target query statement;
and responding to the configuration operation aiming at the target query statement, and generating the semantic guide map of the target query statement layer by layer based on the attribute information of the semantic guide map of the target query statement.
Optionally, the generating module 1802 is further configured to:
traversing and analyzing the semantic guide map of the target query statement by using a script engine component to obtain attribute information of the semantic guide map of the target query statement;
and generating a script code of the target query statement according to the attribute information of the semantic guide of the target query statement and the mapping relation between the syntactic structure of the GS language and the tree structure of the semantic guide, and taking the script code as a second generation result.
Optionally, the response module 1801 is further configured to:
and responding to the triggering operation of the control corresponding to the first display mode interface, acquiring a pre-written script code aiming at the target query statement, and taking the script code as a first generation result.
Optionally, the generating module 1802 is further configured to:
analyzing the script codes of the target query statement by using a graphic engine component to obtain information of each attribute in the script codes;
and constructing the semantic guide map of the target query statement according to the information of each attribute in the script code and the mapping relation between the syntactic structure of the GS language and the tree structure of the semantic guide map, and taking the semantic guide map as a second generation result.
Optionally, the response module 1801 is further configured to:
responding to touch operation of a query statement configuration control in a task management interface, and acquiring a configuration interface of a target query statement; the configuration interface of the target query statement comprises an identification control of each query statement and at least one display mode interface corresponding to each query statement.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Optionally, the invention also provides a program product, for example a computer-readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (10)

1. A processing method of a graph data query statement is characterized by comprising the following steps:
responding to the configuration operation of a target query statement on a query statement generation and analysis interface to obtain a configured first generation result, and displaying the first generation result in a first display mode interface corresponding to the target query statement; wherein the first generation result is a semantic guide map of the target query statement or script codes of the target query statement;
generating a second generation result corresponding to the first generation result based on a mapping relation between a syntax structure of a predefined graph data search language and a tree structure of a semantic guide, wherein if the first generation result is a script code of the target query statement, the second generation result is the semantic guide of the target query statement, and if the first generation result is the semantic guide of the target query statement, the second generation result is the script code of the target query statement;
and displaying the second generated result to a second display mode interface corresponding to the target query statement.
2. The method of claim 1, wherein obtaining the configured first generation result in response to the configuring operation on the target query statement at the query statement generation and analysis interface comprises:
determining attribute information of a semantic guide map of the target query statement according to the identifier of the target query statement; wherein the attribute information includes: a start node, an end node and an output result;
and responding to configuration operation executed based on the attribute information of the semantic guide of the target query statement, obtaining the semantic guide of the target query statement, and taking the semantic guide of the target query statement as the first generation result.
3. The method of claim 2, wherein obtaining the semantic guide of the target query statement based on the configuration operation performed on the attribute information of the semantic guide of the target query statement comprises:
displaying the mark of the target query statement;
responding to the configuration operation aiming at the target query statement, and generating the semantic guide map of the target query statement layer by layer based on the attribute information of the semantic guide map of the target query statement.
4. The method according to claim 2 or 3, wherein the generating a second generation result corresponding to the first generation result based on the mapping relationship between the syntax structure of the predefined graph data search language and the tree structure of the semantic guide comprises:
using a script engine component to perform traversal analysis on the semantic guide of the target query statement to obtain attribute information of the semantic guide of the target query statement;
generating a script code of the target query statement according to the attribute information of the semantic guide of the target query statement and the mapping relation between the syntactic structure of the graph data search language and the tree structure of the semantic guide, and taking the script code of the target query statement as the second generation result.
5. The method of claim 1, wherein the obtaining the configured first generation result in response to the configuring operation on the target query statement at the query statement generation and parsing interface further comprises:
responding to the trigger operation of the control corresponding to the first display mode interface, acquiring a pre-written script code aiming at the target query statement, and taking the script code of the target query statement as the first generation result.
6. The method according to claim 5, wherein the generating a second generation result corresponding to the first generation result based on the mapping relationship between the syntax structure of the predefined graph data search language and the tree structure of the semantic guide comprises:
analyzing the script codes of the target query statement by using a graphic engine component to obtain the information of each attribute in the script codes;
and constructing the semantic guide map of the target query statement according to the information of each attribute in the script code and the mapping relation between the syntactic structure of the graph data search language and the tree structure of the semantic guide map, and taking the semantic guide map as the second generation result.
7. The method of claim 1, wherein the responding before the configuring operation of the query statement generation and analysis interface on the target query statement obtains the configured first generation result further comprises:
responding to touch operation of a query statement configuration control in a task management interface, and acquiring a configuration interface of the target query statement; the configuration interface of the query statement comprises an identification control of each query statement and at least one display mode interface corresponding to each query statement.
8. An apparatus for processing a graph data query statement, the apparatus comprising:
the response module is used for responding the configuration operation of the target query statement on a query statement generation and analysis interface, obtaining a configured first generation result and displaying the first generation result in a first display mode interface corresponding to the target query statement; wherein the first generation result is a semantic guide map of the target query statement or script codes of the target query statement;
a generating module, configured to generate a second generated result corresponding to the first generated result based on a mapping relationship between a syntax structure of a predefined graph data search language and a tree structure of a semantic guide, where the second generated result is the semantic guide of the target query statement if the first generated result is a script code of the target query statement, and the second generated result is the script code of the target query statement if the first generated result is the semantic guide of the target query statement;
and the display module is used for displaying the second generated result to a second display mode interface corresponding to the target query statement.
9. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202111641712.8A 2021-12-29 2021-12-29 Processing method, device, equipment and storage medium of graph data query statement Active CN114297443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111641712.8A CN114297443B (en) 2021-12-29 2021-12-29 Processing method, device, equipment and storage medium of graph data query statement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111641712.8A CN114297443B (en) 2021-12-29 2021-12-29 Processing method, device, equipment and storage medium of graph data query statement

Publications (2)

Publication Number Publication Date
CN114297443A true CN114297443A (en) 2022-04-08
CN114297443B CN114297443B (en) 2023-11-24

Family

ID=80970650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111641712.8A Active CN114297443B (en) 2021-12-29 2021-12-29 Processing method, device, equipment and storage medium of graph data query statement

Country Status (1)

Country Link
CN (1) CN114297443B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116108245A (en) * 2023-03-31 2023-05-12 支付宝(杭州)信息技术有限公司 Graph data query method and query engine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170124140A1 (en) * 2015-03-09 2017-05-04 Vinyl Development LLC Source Independent Query Language
CN111339316A (en) * 2020-02-27 2020-06-26 河海大学 Method and system architecture for realizing visual editing and persistence of knowledge graph
CN112711677A (en) * 2021-01-08 2021-04-27 北京仿真中心 Visual management device and method for Neo4j graph database
CN112749194A (en) * 2020-06-03 2021-05-04 腾讯科技(深圳)有限公司 Visualized data processing method and device, electronic equipment and readable storage medium
CN113094037A (en) * 2021-04-20 2021-07-09 上海携宁计算机科技股份有限公司 Interaction method, development platform, equipment and storage medium for forms and workflows
CN113535749A (en) * 2020-04-17 2021-10-22 阿里巴巴集团控股有限公司 Query statement generation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170124140A1 (en) * 2015-03-09 2017-05-04 Vinyl Development LLC Source Independent Query Language
CN111339316A (en) * 2020-02-27 2020-06-26 河海大学 Method and system architecture for realizing visual editing and persistence of knowledge graph
CN113535749A (en) * 2020-04-17 2021-10-22 阿里巴巴集团控股有限公司 Query statement generation method and device
CN112749194A (en) * 2020-06-03 2021-05-04 腾讯科技(深圳)有限公司 Visualized data processing method and device, electronic equipment and readable storage medium
CN112711677A (en) * 2021-01-08 2021-04-27 北京仿真中心 Visual management device and method for Neo4j graph database
CN113094037A (en) * 2021-04-20 2021-07-09 上海携宁计算机科技股份有限公司 Interaction method, development platform, equipment and storage medium for forms and workflows

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116108245A (en) * 2023-03-31 2023-05-12 支付宝(杭州)信息技术有限公司 Graph data query method and query engine

Also Published As

Publication number Publication date
CN114297443B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
US11429600B2 (en) Loading queries using search points
US11544257B2 (en) Interactive table-based query construction using contextual forms
US11615073B2 (en) Supplementing events displayed in a table format
US11068452B2 (en) Column-based table manipulation of event data to add commands to a search query
US11544248B2 (en) Selective query loading across query interfaces
US11698900B2 (en) Leveraging search query history in a search interface
US10853383B2 (en) Interactive parallel coordinates visualizations
US10459938B1 (en) Punchcard chart visualization for machine data search and analysis system
US20190155804A1 (en) Selective filtered summary graph
US11037342B1 (en) Visualization modules for use within a framework for displaying interactive visualizations of event data
CN115576974B (en) Data processing method, device, equipment and medium
CN114297443B (en) Processing method, device, equipment and storage medium of graph data query statement
CN115794869A (en) Implementation method and device for visual construction and generation of semantic query
CN108228161B (en) System and method for extending structured command line
EP3982224A1 (en) Data extraction in industrial automation systems
JP7287486B2 (en) Attachment and restoration of sticky notes to visualized data
WO2022107228A1 (en) Operation assistance device, operation assistance method, and operation assistance program
Costabile et al. Iconit: an environment for design and prototyping of iconic interfaces
JP2022122798A (en) Information management device and file management method
CN112256573A (en) SIMSCRIPT-language-oriented simulation program visualization method
JPH0492922A (en) Constitution definition system for synthesis system

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