Graph structure generation method of database logic relationship and data query method and device
A logical relationship and data query technology, applied in the field of deep learning, can solve problems such as heavy manual workload, difficult to adapt to massive, complex implementation methods, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] Such as figure 1 , 2 As shown, this embodiment provides a method for generating a graph structure of database logical relationships, and the generating method is a method for organizing logical relationships in massive databases. The graph structure generation method may include but not limited to the following steps.
[0024] First, the fields, partition names and related attributes of each table are obtained by traversing all existing tables in the database. Related attributes include but not limited to type, explanation, connection relationship between tables and fields, and so on. In this embodiment, the above information is saved in the form of (table name, table name. field).
[0025] Second, collect historical query statements that have been executed, and extract external keys, connection relationships between tables, and connection relationships between tables and external keys in historical query statements. The historical query statement in this embodiment ...
Embodiment 2
[0028] Such as image 3 , 4 As shown, this embodiment is a data query method based on the first embodiment, and can implement a complex database natural language query solution based on the first embodiment. The data query method may include but not limited to the following steps.
[0029] Receive natural language text entered by a user through an interactive interface or otherwise. The user can input the natural language text to be retrieved on an interactive interface, and the natural language text can be, for example, keywords, codes, etc.
[0030] The natural language text used for the data query is encoded to form a first encoded result. In some embodiments of the present invention, the natural language text is encoded based on a bidirectional recurrent neural network with an attention mechanism. The natural language text is stored while encoding the natural language text.
[0031] Obtain the part of the subgraph most closely related to the natural language text in t...
Embodiment 3
[0039] Such as figure 1 , 2 As shown, based on the same inventive concept as Embodiment 1, this embodiment can provide a graph structure generating device for database logical relationships, which includes but is not limited to a data traversal module, a data extraction module, and a relationship generation module. The data traversal module is used to obtain the fields of each table by traversing all existing tables in the database, and to obtain the connection relationship between tables and fields; the data extraction module is used to collect historical query statements that have been executed and extract the historical query statements External keys, connection relationships between tables, and connection relationships between tables and external keys; the relationship generation module is used to use tables, fields, and external keys as nodes, and the connection relationship between tables and fields, the connection relationship between tables, and the connection relation...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com