Translating gql queries into sql queries
AssigneeHewlett Packard Enterprise Development LP
InventorsLuis Miguel Vaquero Gonzalez, Marco Aurelio Barbosa Fagnani Gomes Lotz
Life of this patent
Estimating the term…
Abstract
Example embodiments relate to translate a GQL query into a SQL query. The example disclosed herein receives a graph query language (GQL) query, transforms the GQL query into a representation of an abstract syntactic structure of the GQL query, translates the representation of the abstract syntactic structure of the GQL query into a structured query language (SQL) query, and sends the SQL query to a relational database management system.
Claims20
A non-transitory machine-readable medium storing machine-readable instructions executable by a processor to cause the processor to:
- receive a graph query language (GQL) query, wherein the GQL query is a declarative GQL query;
- transform the GQL query into a representation of an abstract syntactic structure of the GQL query;
- translate the representation of the abstract syntactic structure of the GQL query into a structured query language (SQL) query;
- and
- send the SQL query to a relational database management system.
A system comprising:
- a processor;
- a non-transitory machine readable medium storing machine readable instructions to cause the processor to:
- receive a graph query language (GQL) query, wherein the GQL query is a declarative GQL query;
- transform the GQL query into a representation of the abstract syntactic structure of the GQL query;
- select a first available unanalyzed element from the representation of the abstract syntactic structure of the GQL query;
- determine whether the first available unanalyzed element from the representation of the abstract syntactic structure of the GQL query is either a node, a relationship, or an operation;
- translate the representation of the abstract syntactic structure of the GQL query into a structured query language (SQL) query;
- and
- send the SQL query to a relational database management system.
A method implemented by a computer system that includes a physical processor implementing machine readable instructions, the method comprising:
- receiving a graph query language (GQL) query, wherein the GQL query is a declarative GQL query;
- transforming the GQL query into a representation of the abstract syntactic structure of the GQL query;
- selecting a first available unanalyzed element from the representation of the abstract syntactic structure of the GQL query;
- determining whether the first available unanalyzed element from the representation of the abstract syntactic structure of the GQL query is either a node, a relationship, or an operation;
- translating the representation of the abstract syntactic structure of the GQL query into a structured query language, SQL, query;
- checking whether the representation of the abstract syntactic structure of the GQL query has a second unanalyzed element to be translated into SQL or not;
- and
- sending the SQL query to a relational database management system.
Dependencies are inferred from the claim text.