Query Translation for Non-XML Objects

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing systems face challenges in efficiently extracting information from non-XML objects using the XQuery language, particularly when queries contain non-standard expressions or path definitions that are not formulated according to the XQuery language standards.

Innovation Solution

A method is implemented to receive queries configured to extract information from non-XML objects, identify non-standard portions, create an XML document from these objects, and perform a revised query using the XQuery language, allowing for the extraction and recording of results, while also providing a graphical user interface for users to select and formulate queries.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If non-standard query expressions are used to extract information from non-XML objects, then query flexibility and customization are improved, but compatibility with XQuery processors and standard compliance deteriorate

Engineering Contradiction:
Improvequery flexibilityVSAvoidstandard compliance
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent introduces an intermediary translation layer that converts non-standard query expressions into standard XQuery. The system includes a query translator component that acts as a mediator between the flexible non-standard query interface and the standardized XQuery processor, enabling both query flexibility and standard compliance to coexist.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system dynamically changes the parameter representation of queries by transforming non-standard syntax elements into standardized XQuery parameters. The translation process modifies query parameters, path definitions, and expression structures to conform to XQuery standards while preserving the original query's intent and flexibility.

Inventive Principle:
Principle #35Parameter changes

2Ease of operation

If non-XML objects are queried directly with non-standard expressions, then ease of operation is improved, but device complexity increases due to need for custom processing

Engineering Contradiction:
Improvequery simplicityVSAvoidprocessing complexity
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The patent extracts the complexity of non-standard expression processing from the main query execution path by implementing a separate translation module. This modular approach isolates the complex translation logic from the core XQuery processing, maintaining ease of operation for users while managing device complexity through structured separation of concerns.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The system performs preliminary translation of non-standard queries into standard XQuery before execution. By preprocessing the query expressions in advance and converting them to a standardized form, the system simplifies the main execution path and reduces processing complexity during actual query runtime.

Inventive Principle:
Principle #10Preliminary action

3Adaptability or versatility

If XML documents are created from non-XML objects for every query, then query processing capability is improved, but processing time and resource consumption increase

Engineering Contradiction:
Improvequery processing capabilityVSAvoidprocessing time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent implements preliminary conversion of non-XML objects into XML document format and stores these converted representations in advance. By performing the object-to-XML conversion beforehand and caching the results, the system enables efficient query processing without repeatedly converting objects during each query execution, thus reducing processing time while maintaining versatility.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system converts only the portions of non-XML objects that are likely to be queried into XML format in advance, rather than converting entire object structures. This selective conversion approach reduces the overhead of XML document creation while still providing the necessary data in queryable format, balancing processing capability with time efficiency.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS8176098B2Obtaining information from an object
Publication Date: 2012.05.08 SAP SE
  • US8176098B2 patent drawing
  • US8176098B2 patent drawing
  • US8176098B2 patent drawing

AI summary

Among other disclosure, a computer-implemented method for obtaining information from an object includes receiving a query configured to extract information from a non-XML object. The non-XML object is created using an object model that provides for: (1) organizing attributes under nodes in a hierarchy; and (2) creating, within the non-XML object, associations between the nodes, also to nodes in another non-XML object. The method includes identifying in the received query any portion thereof that is non-standard with regard to XQuery language. The method includes creating an XML document from the non-XML object using at least the non-standard portion identified in the query. The method includes performing a revised query on the created XML document, the revised query corresponding to the query and being formulated using the XQuery language. The method includes recording, as a response to the query, a result of the revised query.