Query Rewriting and Optimization for Ontological Databases

被引:51
作者
Gottlob, Georg [1 ]
Orsi, Giorgio [1 ]
Pieris, Andreas [1 ]
机构
[1] Univ Oxford, Dept Comp Sci, Oxford OX1 2JD, England
来源
ACM TRANSACTIONS ON DATABASE SYSTEMS | 2014年 / 39卷 / 03期
基金
英国工程与自然科学研究理事会;
关键词
Algorithms; Theory; Languages; Performance; Ontological query answering; tuple-generating dependencies; query rewriting; query optimization; CONTAINMENT; LANGUAGES;
D O I
10.1145/2638546
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Ontological queries are evaluated against a knowledge base consisting of an extensional database and an ontology (i.e., a set of logical assertions and constraints that derive new intensional knowledge from the extensional database), rather than directly on the extensional database. The evaluation and optimization of such queries is an intriguing new problem for database research. In this article, we discuss two important aspects of this problem: query rewriting and query optimization. Query rewriting consists of the compilation of an ontological query into an equivalent first-order query against the underlying extensional database. We present a novel query rewriting algorithm for rather general types of ontological constraints that is well suited for practical implementations. In particular, we show how a conjunctive query against a knowledge base, expressed using linear and sticky existential rules, that is, members of the recently introduced Datalog(+) family of ontology languages, can be compiled into a union of conjunctive queries (UCQ) against the underlying database. Ontological query optimization, in this context, attempts to improve this rewriting process soas to produce possibly small and cost-effective UCQ rewritings for an input query.
引用
收藏
页数:46
相关论文
共 53 条
[1]  
Abiteboul S., 1995, Foundations of databases, V8
[2]  
Acciarri A., 2005, PROC NATL CONF ARTIF, V20, P1670
[3]   DATALOG VS 1ST-ORDER LOGIC [J].
AJTAI, M ;
GUREVICH, Y .
30TH ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, 1989, :142-147
[4]   Modal languages and bounded fragments of predicate logic [J].
Andreka, H ;
Nemeti, I ;
van Benthem, J .
JOURNAL OF PHILOSOPHICAL LOGIC, 1998, 27 (03) :217-274
[5]  
[Anonymous], 1977, STOC
[6]  
Baader F., 2003, FROC IJCAI 03, P319
[7]   On rules with existential variables: Walking the decidability line [J].
Baget, Jean-Francois ;
Leclere, Michel ;
Mugnier, Marie-Laure ;
Salvat, Eric .
ARTIFICIAL INTELLIGENCE, 2011, 175 (9-10) :1620-1654
[8]  
Beeri C., 1981, Automata, Languages and Programming. Eighth Colloquium, P73
[9]   Generating Low-cost Plans From Proofs [J].
Benedikt, Michael ;
ten Cate, Balder ;
Tsamoura, Efthymia .
PODS'14: PROCEEDINGS OF THE 33RD ACM SIGMOD-SIGACT-SIGART SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS, 2014, :200-211
[10]  
BISHOP B., 2008, P INT WORKSH ADV REA