A method and a system for searching a relationship network based on a graph database

A query method and relational network technology, which is applied in the field of graph database-based relational network query method and system, can solve the problems that data does not use edge segmentation, relational data storage and analysis cannot be realized, complex graph query performance does not have obvious advantages, etc.

Inactive Publication Date: 2019-01-25
LINEWELL SOFTWARE
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] (1) In the prior art, the data is not stored in the way of edge segmentation, and has no obvious advantages in the qu

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and a system for searching a relationship network based on a graph database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] The specific steps of the relational network query method based on the graph database provided by the embodiment of the present invention are as follows:

[0062] Step 1: Use direct index search to obtain the primary key of the center point of the graph or the list of primary keys of the center point of the class diagram.

[0063] Get the center point of the graph and provide it for use in subsequent steps.

[0064] The execution statement is as follows:

[0065] graph.indexQuery([query index],'v.[query field]:[query field value]').offset(0).limit(10).vertexStream().iterator().next().getElement()

[0066] Step 2: Use the primary key of the center point obtained in Step 1 to expand the line by one or more degrees and obtain the relationship information of the characters.

[0067] Get the data of vertices and edges after multi-degree expansion of the center point.

[0068] The execution statement is as follows:

[0069] g.V(【Primary key of central point】).aggregate('x...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention belongs to the technical field of data processing and discloses a method and a system for searching a relationship network based on a graph database. The method includes: utilizing a direct index search to obtain a primary key list of a graph center point or a class graph center point, selecting the center point of the graph to expand the line one degree or more and acquiring the relationship information of the characters; filtering out the vertex type or relationship type of interest in the process of line expansion to obtain simpler and clearer character relationship information; using the dedup () method to exclude duplicate relational data; using the without () method to exclude elements that are already in the collection; configuring vertex types to automatically filterpublic vertices in the network. As the data of the invention is stored in an edge division mode, the query performance of the complex graph is more advantageous than that of the traditional relationaldatabase; Request gremlin-Server in gremlin statement is used to obtain query data, to achieve the storage and analysis of relational data.

Description

technical field [0001] The invention belongs to the technical field of data processing, and in particular relates to a relational network query method and system based on a graph database. Background technique [0002] At present, the existing technologies commonly used in the industry are as follows: [0003] Among the many different data models, the relational data model has been in a dominant position since the 1980s, and there have been many giants, such as Oracle and MySQL, which are also called: relational database management system (RDBMS). For decades, developers have been accustomed to using relational databases for relational, semi-structured datasets. Relational databases, originally designed to handle paper forms and tabular structures, attempt to model this particular relationship in practice. However, with the continuous expansion of the use of relational databases, it has also exposed some problems that it has never been able to solve, the most important of ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F16/28G06F16/2458G06F16/22
Inventor 陈晓伟黄山德
Owner LINEWELL SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products