Building complex hierarchical queries
AssigneeInternational Business Machines Corporation
InventorsDaniel Lereya, Nadav Parag, Vladimir Shalikashvili, Moshe Zemah
Life of this patent
Estimating the term…
Abstract
Provided are a computer program product, system, and method for building complex hierarchical queries. A User Interface (UI) representation of a logical query is received, wherein the UI representation describes object types, relationships between the object types, and attributes of the object types. The UI representation is translated to a logical query. The logical query is converted to data layer calls to retrieve objects having the object types, the relationships between the object types, and the attributes of the object types. The objects are received. Then, a directed graph is generated using the identified objects.
Claims18
A computer program product for, the computer program product comprising a computer readable storage medium having computer readable program code embodied therein that executes to perform operations, the operations comprising:
- retrieving object types of stored objects, attributes of the object types, and relationships between the object types;
- building a query builder User Interface (UI) using one or more templates to allow selection of the object types of the stored objects, the attributes of the object types, and the relationships between the object types;
- in response to receiving, using the query builder UI, selection of one or more object types, one or more relationships between the object types, and one or more attributes of the object types, building a UI representation;
- translating the UI representation to a logical query that filters for objects of the stored objects having the selected one or more object types, the selected one or more relationships between the object types, and the selected one or more attributes of the object types;
- converting the logical query to data layer calls to retrieve objects having the object types, the relationships between the object types, and the attributes of the object types;
- generating a directed graph using the objects retrieved by the data layer calls;
- and
- translating the directed graph to the UI representation, wherein the UI representation is modified to generate a modified directed graph.
A computer system, comprising:
- a processor;
- a computer readable storage medium coupled to the processor and storing program code, wherein the program code, when executed, performs operations, the operations comprising:
- retrieving object types of stored objects, attributes of the object types, and relationships between the object types;
- building a query builder User Interface (UI) using one or more templates to allow selection of the object types of the stored objects, the attributes of the object types, and the relationships between the object types;
- in response to receiving, using the query builder UI, selection of one or more object types, one or more relationships between the object types, and one or more attributes of the object types, building a UI representation;
- translating the UI representation to a logical query that filters for objects of the stored objects having the selected one or more object types, the selected one or more relationships between the object types, and the selected one or more attributes of the object types;
- converting the logical query to data layer calls to retrieve the objects having the object types, the relationships between the object types, and the attributes of the object types;
- generating a directed graph using the objects retrieved by the data layer calls;
- and
- translating the directed graph to the UI representation, wherein the UI representation is modified to generate a modified directed graph.
A method, comprising:
- retrieving object types of stored objects, attributes of the object types, and relationships between the object types;
- building a query builder User Interface (UI) using one or more templates to allow selection of the object types of the stored objects, the attributes of the object types, and the relationships between the object types;
- in response to receiving, using the query builder UI, selection of one or more object types, one or more relationships between the object types, and one or more attributes of the object types, building a UI representation;
- translating the UI representation to a logical query that filters for objects of the stored objects having the selected one or more object types, the selected one or more relationships between the object types, and the selected one or more attributes of the object types;
- converting the logical query to data layer calls to retrieve objects having the object types, the relationships between the object types, and the attributes of the object types;
- generating a directed graph using the objects retrieved by the data layer calls;
- and
- translating the directed graph to the UI representation, wherein the UI representation is modified to generate a modified directed graph.
Dependencies are inferred from the claim text.