Towards a Pattern-Based Query Language for Document Databases

Xuhui Li,Zhengqi Liu,Mengchi Liu,Xiaoying Wu,Shanfeng Zhu
DOI: https://doi.org/10.1007/978-3-319-22324-7_34
2015-01-01
Abstract:Document databases are becoming popular, but how to present complex document query to obtain useful information from the document remains an important topic to study. In this paper, we describe the design issues of a pattern-based document database query language named JPQ, which uses various expressive patterns to extract and construct document fragments following a JSON-like document data model. It adopts tree-like extraction patterns with a coherent pattern composition mechanism to extract data elements from hierarchically structured documents and maintain the logical relationships among the elements. Based on these relationships, JPQ deploys a deductive mechanism to declaratively specify the data transformation requests and considers also data filtering on hierarchical data structure.
What problem does this paper attempt to address?