{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,3]],"date-time":"2026-11-03T13:23:50Z","timestamp":1793712230820,"version":"4.6.1"},"reference-count":55,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2014,10,7]],"date-time":"2014-10-07T00:00:00Z","timestamp":1412640000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100004211","name":"Oxford Martin School, University of Oxford","doi-asserted-by":"publisher","award":["LC0910-019"],"award-info":[{"award-number":["LC0910-019"]}],"id":[{"id":"10.13039\/501100004211","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100000781","name":"European Research Council","doi-asserted-by":"publisher","award":["246858 \u201cDIADEM\u201d"],"award-info":[{"award-number":["246858 \u201cDIADEM\u201d"]}],"id":[{"id":"10.13039\/501100000781","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100000266","name":"Engineering and Physical Sciences Research Council","doi-asserted-by":"publisher","award":["EP\/J00846\/1 \u201cPrOQAW\u201d"],"award-info":[{"award-number":["EP\/J00846\/1 \u201cPrOQAW\u201d"]}],"id":[{"id":"10.13039\/501100000266","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Database Syst."],"published-print":{"date-parts":[[2014,10,7]]},"abstract":"<jats:p>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\u00b1 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.<\/jats:p>","DOI":"10.1145\/2638546","type":"journal-article","created":{"date-parts":[[2014,10,7]],"date-time":"2014-10-07T12:57:47Z","timestamp":1412686667000},"page":"1-46","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":61,"title":["Query Rewriting and Optimization for Ontological Databases"],"prefix":"10.1145","volume":"39","author":[{"given":"Georg","family":"Gottlob","sequence":"first","affiliation":[{"name":"University of Oxford, Oxford, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Giorgio","family":"Orsi","sequence":"additional","affiliation":[{"name":"University of Oxford, Oxford, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Andreas","family":"Pieris","sequence":"additional","affiliation":[{"name":"University of Oxford, Oxford, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2014,10,7]]},"reference":[{"key":"e_1_2_2_1_1","volume-title":"Foundations of Databases","author":"Abiteboul Serge","unstructured":"Serge Abiteboul , Richard Hull , and Victor Vianu . 1995. Foundations of Databases . Addison-Wesley . Serge Abiteboul, Richard Hull, and Victor Vianu. 1995. Foundations of Databases. Addison-Wesley."},{"key":"e_1_2_2_2_1","volume-title":"Proceedings of the 20th National Conference on Artificial Intelligence and the 17th Innovative Applications of Artificial Intelligence Conference. 1670--1671","author":"Acciarri Andrea","year":"2005","unstructured":"Andrea Acciarri , Diego Calvanese , Giuseppe De Giacomo , Domenico Lembo , Maurizio Lenzerini , Mattia Palmieri , and Riccardo Rosati . 2005 . QuOnto: Querying ontologies . In Proceedings of the 20th National Conference on Artificial Intelligence and the 17th Innovative Applications of Artificial Intelligence Conference. 1670--1671 . Andrea Acciarri, Diego Calvanese, Giuseppe De Giacomo, Domenico Lembo, Maurizio Lenzerini, Mattia Palmieri, and Riccardo Rosati. 2005. QuOnto: Querying ontologies. In Proceedings of the 20th National Conference on Artificial Intelligence and the 17th Innovative Applications of Artificial Intelligence Conference. 1670--1671."},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1109\/SFCS.1989.63469"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.1023\/A:1004275029985"},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.5555\/1630659.1630706"},{"key":"e_1_2_2_6_1","unstructured":"Franz Baader Diego Calvanese Deborah L. McGuinness Daniele Nardi and Peter F. Patel-Schneider Eds. 2003. The Description Logic Handbook: Theory Implementation and Applications. Cambridge University Press.   Franz Baader Diego Calvanese Deborah L. McGuinness Daniele Nardi and Peter F. Patel-Schneider Eds. 2003. The Description Logic Handbook: Theory Implementation and Applications. Cambridge University Press."},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.artint.2011.03.002"},{"key":"e_1_2_2_8_1","volume-title":"Proceedings of the 8th International Colloquium on Automata, Languages and Programming. 73--85","author":"Beeri Catriel","unstructured":"Catriel Beeri and Moshe Y. Vardi . 1981. The implication problem for data dependencies . In Proceedings of the 8th International Colloquium on Automata, Languages and Programming. 73--85 . Catriel Beeri and Moshe Y. Vardi. 1981. The implication problem for data dependencies. In Proceedings of the 8th International Colloquium on Automata, Languages and Programming. 73--85."},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/2594538.2594550"},{"key":"e_1_2_2_10_1","volume-title":"Proceedings of the International Workshop on Advancing Reasoning on the Web: Scalability and Commonsense.","author":"Bishop Barry","year":"2008","unstructured":"Barry Bishop and Florian Fischer . 2008 . IRIS - Integrated rule inference system . In Proceedings of the International Workshop on Advancing Reasoning on the Web: Scalability and Commonsense. Barry Bishop and Florian Fischer. 2008. IRIS - Integrated rule inference system. In Proceedings of the International Workshop on Advancing Reasoning on the Web: Scalability and Commonsense."},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.5555\/1182635.1164155"},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.5555\/1325851.1325882"},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/773153.773179"},{"key":"e_1_2_2_14_1","volume-title":"Proceedings of the 11th International Conference on Principles of Knowledge Representation and Reasoning. 70--80","author":"Cali Andrea","year":"2008","unstructured":"Andrea Cali , Georg Gottlob , and Michael Kifer . 2008 . Taming the infinite chase: Query answering under expressive relational constraints . In Proceedings of the 11th International Conference on Principles of Knowledge Representation and Reasoning. 70--80 . Andrea Cali, Georg Gottlob, and Michael Kifer. 2008. Taming the infinite chase: Query answering under expressive relational constraints. In Proceedings of the 11th International Conference on Principles of Knowledge Representation and Reasoning. 70--80."},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/2070736.2070738"},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.websem.2012.03.001"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.artint.2012.08.002"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.5555\/2591248.2591252"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-007-9078-x"},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.artint.2012.10.003"},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.artint.2012.10.003"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/800105.803397"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.1137\/0214049"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0304-3975(99)00220-0"},{"key":"e_1_2_2_25_1","volume-title":"Proceedings of the 23rd International Conference on Automated Deduction. 192--206","author":"Chortaras Alexandros","unstructured":"Alexandros Chortaras , Despoina Trivela , and Giorgos B. Stamou . 2011. Optimized query rewriting for owl 2 ql . In Proceedings of the 23rd International Conference on Automated Deduction. 192--206 . Alexandros Chortaras, Despoina Trivela, and Giorgos B. Stamou. 2011. Optimized query rewriting for owl 2 ql. In Proceedings of the 23rd International Conference on Automated Deduction. 192--206."},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-012-0302-x"},{"key":"e_1_2_2_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/1376916.1376938"},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.5555\/645925.756643"},{"key":"e_1_2_2_29_1","volume-title":"Proceedings of the 29th International Conference on Very Large Data Bases. 201--212","author":"Deutsch Alin","year":"2003","unstructured":"Alin Deutsch and Val Tannen . 2003 . MARS: A system for publishing xml from mixed and redundant storage . In Proceedings of the 29th International Conference on Very Large Data Bases. 201--212 . Alin Deutsch and Val Tannen. 2003. MARS: A system for publishing xml from mixed and redundant storage. In Proceedings of the 29th International Conference on Very Large Data Bases. 201--212."},{"key":"e_1_2_2_30_1","doi-asserted-by":"publisher","DOI":"10.1O16\/j.tcs.2004.10.033"},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/174130.174142"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.artint.2014.04.004"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.2001.1809"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2011.5767965"},{"key":"e_1_2_2_35_1","volume-title":"Proceedings of the 13th International Conference on Principles of Knowledge Representation and Reasoning.","author":"Gottlob Georg","year":"2012","unstructured":"Georg Gottlob and Thomas Schwentick . 2012 . Rewriting ontological queries into small nonrecursive datalog programs . In Proceedings of the 13th International Conference on Principles of Knowledge Representation and Reasoning. Georg Gottlob and Thomas Schwentick. 2012. Rewriting ontological queries into small nonrecursive datalog programs. In Proceedings of the 13th International Conference on Principles of Knowledge Representation and Reasoning."},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/s007780100054"},{"key":"e_1_2_2_37_1","volume-title":"Proceedings of the 26th AAAI Conference on Artificial Intelligence. 779--785","author":"Imprialou Martha","year":"2012","unstructured":"Martha Imprialou , Giorgos Stoilos , and Bernardo Cuenca Grau . 2012 . Benchmarking ontology-based query rewriting systems . In Proceedings of the 26th AAAI Conference on Artificial Intelligence. 779--785 . Martha Imprialou, Giorgos Stoilos, and Bernardo Cuenca Grau. 2012. Benchmarking ontology-based query rewriting systems. In Proceedings of the 26th AAAI Conference on Artificial Intelligence. 779--785."},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1016\/0022-0000(84)90081-3"},{"key":"e_1_2_2_39_1","volume-title":"Proceedings of the 13th International Conference on Principles of Knowledge Representation and Reasoning.","author":"Kikot Stanislav","year":"2012","unstructured":"Stanislav Kikot , Roman Kontchakov , and Michael Zakharyaschev . 2012 a. Conjunctive query answering with OWL 2 QL . In Proceedings of the 13th International Conference on Principles of Knowledge Representation and Reasoning. Stanislav Kikot, Roman Kontchakov, and Michael Zakharyaschev. 2012a. Conjunctive query answering with OWL 2 QL. In Proceedings of the 13th International Conference on Principles of Knowledge Representation and Reasoning."},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-31585-5_26"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-33203-6_10"},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-39666-3_10"},{"key":"e_1_2_2_43_1","doi-asserted-by":"publisher","DOI":"10.5555\/2283516.2283559"},{"key":"e_1_2_2_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/320107.320115"},{"key":"e_1_2_2_45_1","doi-asserted-by":"crossref","first-page":"1004","DOI":"10.14778\/3402707.3402737","article-title":"Optimizing query answering under ontological constraints","volume":"4","author":"Orsi Giorgio","year":"2011","unstructured":"Giorgio Orsi and Andreas Pieris . 2011 . Optimizing query answering under ontological constraints . Proc. VLDB Endow. 4 , 11, 1004 -- 1015 . Giorgio Orsi and Andreas Pieris. 2011. Optimizing query answering under ontological constraints. Proc. VLDB Endow. 4, 11, 1004--1015.","journal-title":"Proc. VLDB Endow."},{"key":"e_1_2_2_46_1","volume-title":"Computational Complexity","author":"Papadimitriou H.","unstructured":"Christos. H. Papadimitriou . 1994. Computational Complexity . Addison-Wesley . Christos. H. Papadimitriou. 1994. Computational Complexity. Addison-Wesley."},{"key":"e_1_2_2_47_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.jal.2009.09.004"},{"key":"e_1_2_2_48_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-77688-8_5"},{"key":"e_1_2_2_49_1","volume-title":"Proceedings of the OWL: Experiences and Directions Workshop.","author":"Rodriguez-Muro Mariano","year":"2012","unstructured":"Mariano Rodriguez-Muro and Diego Calvanese . 2012 . Quest, an OWL 2 QL reasoner for ontology-based data access . In Proceedings of the OWL: Experiences and Directions Workshop. Mariano Rodriguez-Muro and Diego Calvanese. 2012. Quest, an OWL 2 QL reasoner for ontology-based data access. In Proceedings of the OWL: Experiences and Directions Workshop."},{"key":"e_1_2_2_50_1","volume-title":"Proceedings of the 12th International Conference on Principles of Knowledge Representation and Reasoning.","author":"Rosati Riccardo","year":"2010","unstructured":"Riccardo Rosati and Alessandro Almatelli . 2010 . Improving query answering over dl-lite ontologies . In Proceedings of the 12th International Conference on Principles of Knowledge Representation and Reasoning. Riccardo Rosati and Alessandro Almatelli. 2010. Improving query answering over dl-lite ontologies. In Proceedings of the 12th International Conference on Principles of Knowledge Representation and Reasoning."},{"key":"e_1_2_2_51_1","volume-title":"Proceedings of the 21st International Workshop on Description Logics.","author":"Rudolph Sebastian","year":"2008","unstructured":"Sebastian Rudolph , Markus Krotzsch , and Pascal Hitzler . 2008 . All elephants are bigger than all mice . In Proceedings of the 21st International Workshop on Description Logics. Sebastian Rudolph, Markus Krotzsch, and Pascal Hitzler. 2008. All elephants are bigger than all mice. In Proceedings of the 21st International Workshop on Description Logics."},{"key":"e_1_2_2_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/1514894.1514903"},{"key":"e_1_2_2_53_1","volume-title":"Proceedings of the 23rd International Joint Conference on Artificial Intelligence.","author":"Thomazo Michael","year":"2013","unstructured":"Michael Thomazo . 2013 . Compact rewritings for existential rules . In Proceedings of the 23rd International Joint Conference on Artificial Intelligence. Michael Thomazo. 2013. Compact rewritings for existential rules. In Proceedings of the 23rd International Joint Conference on Artificial Intelligence."},{"key":"e_1_2_2_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/212433.212474"},{"key":"e_1_2_2_55_1","doi-asserted-by":"publisher","DOI":"10.1007\/s13740-012-0017-6"}],"container-title":["ACM Transactions on Database Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2638546","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/2638546","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T08:10:33Z","timestamp":1750234233000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2638546"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2014,10,7]]},"references-count":55,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2014,10,7]]}},"alternative-id":["10.1145\/2638546"],"URL":"https:\/\/doi.org\/10.1145\/2638546","relation":{},"ISSN":["0362-5915","1557-4644"],"issn-type":[{"value":"0362-5915","type":"print"},{"value":"1557-4644","type":"electronic"}],"subject":[],"published":{"date-parts":[[2014,10,7]]},"assertion":[{"value":"2013-10-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2014-06-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2014-10-07","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}