US2017024434A1PendingUtilityA1

Generating sql queries from declarative queries for semi-structured data

Assignee: IBMPriority: Jul 24, 2015Filed: Feb 11, 2016Published: Jan 26, 2017
Est. expiryJul 24, 2035(~9 yrs left)· nominal 20-yr term from priority
Inventors:Marion Behnen
G06F 16/2452G06F 16/284G06F 16/24534G06F 17/30448G06F 17/30442G06F 17/30595
52
PatentIndex Score
0
Cited by
0
References
0
Claims

Abstract

A method for generating database queries from declarative queries having a known syntax. The method includes a query preparation software receiving a declarative query for a relational database management system, in a known system form. The query preparation software then analyzes the declarative query to build a set of generic query tasks with identified data types. The query preparation software then optimizes the set of generic query tasks and builds a target database query from the optimized generic query tasks reflecting features of a target database. The method further includes submitting the target database query to the targeted database and receiving results from the target database query.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
         1 . A method for generating database queries from declarative queries having a known syntax comprising:
 receiving, by one or more processors, a set of JavaScript Object Notation (JSON) query statements and an identification of a target database that supports Structured Query Language (SQL) queries;   analyzing, by one or more processors, the set of JSON query statements to build a first set of generic language-independent query tasks with identified data types, wherein fields in the set of JSON query statements map to attributes in the first set of generic language-independent query tasks;   optimizing, by one or more processors, the first set of generic language-independent query tasks by performing one or more of: adding tasks, re-arranging tasks, and combining subsets of tasks;   building, by one or more processors, a first target database query from the optimized first set of generic language-independent query tasks reflecting features of the target database;   submitting, by one or more processors, the first target database query to the target database;   receiving, by one or more processors, a declarative query that does not include a set of JSON query statements;   analyzing, by one or more processors, the declarative query to build a second set of language-independent generic query tasks with identified data types, wherein fields in the declarative query map to attributes in the second set of language-independent generic query tasks;   optimizing, by one or more processors, the second set of generic query tasks by performing one or more of: adding tasks, re-arranging tasks, and combining subsets of tasks;   building, by one or more processors, a second target database query from the optimized second set of language-independent generic query tasks reflecting features of the target database;   submitting, by one or more processors, the second target database query to the target database; and   providing, by one or more processors, a user with an interface for adjusting specific features and/or properties in order to customize generation of subsequent target database queries.

Join the waitlist — get patent alerts

Track US2017024434A1 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.