Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

Dichotomies in Ontology-Mediated Querying with the Guarded Fragment

Published: 20 February 2020 Publication History

Abstract

We study ontology-mediated querying in the case where ontologies are formulated in the guarded fragment of first-order logic (GF) or extensions thereof with counting and where the actual queries are (unions of) conjunctive queries. Our aim is to classify the data complexity and Datalog rewritability of query evaluation depending on the ontology O, where query evaluation w.r.t. O is in PTime (resp. Datalog rewritable) if all queries can be evaluated in PTime w.r.t. O (resp. rewritten into Datalog under O), and coNP-hard if at least one query is coNP-hard w.r.t. O. We identify several fragments of GF that enjoy a dichotomy between Datalog-rewritability (which implies PTime) and coNP-hardness as well as several other fragments that enjoy a dichotomy between PTime and coNP-hardness, but for which PTime does not imply Datalog-rewritability. For the latter, we establish and exploit a connection to constraint satisfaction problems. We also identify fragments for which there is no dichotomy between PTime and coNP. To prove this, we establish a non-trivial variation of Ladner’s theorem on the existence of NP-intermediate problems. Finally, we study the decidability of whether a given ontology enjoys PTime query evaluation, presenting both positive and negative results, depending on the fragment.

Supplementary Material

a20-hernich-apndx.pdf (hernich.zip)
Supplemental movie, appendix, image and software files for, Dichotomies in Ontology-Mediated Querying with the Guarded Fragment

References

[1]
Serge Abiteboul, Richard Hull, and Victor Vianu. 1995. Foundations of Databases. Addison-Wesley.
[2]
Hajnal Andréka, István Németi, and Johan van Benthem. 1998. Modal languages and bounded fragments of predicate logic. J. Philos. Logic 27, 3 (1998), 217--274.
[3]
Sanjeev Arora and Boaz Barak. 2009. Computational Complexity—A Modern Approach. Cambridge University Press.
[4]
Alessandro Artale, Diego Calvanese, Roman Kontchakov, and Michael Zakharyaschev. 2009. The DL-Lite family and relations. J. Artif. Intell. Res. 36 (2009), 1--69.
[5]
Albert Atserias. 2008. On digraph coloring problems and treewidth duality. Eur. J. Comb. 29, 4 (2008), 796--820.
[6]
Franz Baader, Sebastian Brandt, and Carsten Lutz. 2005. Pushing the EL envelope. In Proc. of IJCAI. 364--369.
[7]
Franz Baader, Deborah, Diego Calvanese, Deborah L. McGuiness, Daniele Nardi, and Peter F. Patel-Schneider (Eds.). 2003. The Description Logic Handbook. Cambridge University Press.
[8]
Franz Baader, Ian Horrocks, Carsten Lutz, and Ulrike Sattler. 2017. An Introduction to Description Logic. Cambridge University Press.
[9]
Vince Bárány, Georg Gottlob, and Martin Otto. 2014. Querying the guarded fragment. Logical Methods in Computer Science 10, 2 (2014), 1--35.
[10]
Andrew Bate, Boris Motik, Bernardo Cuenca Grau, Frantisek Simancik, and Ian Horrocks. 2016. Extending consequence-based reasoning to SRIQ. In Proc. of KR. 187--196.
[11]
Catriel Beeri and Philip A. Bernstein. 1979. Computational problems related to the design of normal form relational schemas. ACM Trans. Database Syst. 4, 1 (1979), 30--59.
[12]
Catriel Beeri and Moshe Y. Vardi. 1984. A proof procedure for data dependencies. J. ACM 31, 4 (1984), 718--741.
[13]
Meghyn Bienvenu, Peter Hansen, Carsten Lutz, and Frank Wolter. 2016. First order-rewritability and containment of conjunctive queries in horn description logics. In Proceedings of IJCAI. 965--971.
[14]
Meghyn Bienvenu and Magdalena Ortiz. 2015. Ontology-mediated query answering with data-tractable description logics. In Proc. of Reasoning Web. 218--307.
[15]
Meghyn Bienvenu, Balder ten Cate, Carsten Lutz, and Frank Wolter. 2014. Ontology-based data access: A study through disjunctive datalog, CSP, and MMSNP. ACM Trans. Database Syst. 39, 4 (2014), 33:1--33:44.
[16]
Manuel Bodirsky, Hubie Chen, and Tomás Feder. 2012. On the complexity of MMSNP. SIAM J. Discrete Math. 26, 1 (2012), 404--414.
[17]
Pierre Bourhis, Marco Manna, Michael Morak, and Andreas Pieris. 2016. Guarded-based disjunctive tuple-generating dependencies. ACM Trans. Database Syst. 41, 4 (2016), 27:1--27:45.
[18]
Andrei A. Bulatov. 2017. A dichotomy theorem for nonuniform CSPs. In Proc. of FOCS. 319--330.
[19]
Andrea Calì, Georg Gottlob, and Michael Kifer. 2013. Taming the infinite chase: Query answering under expressive relational constraints. J. Artif. Intell. Res. (JAIR) 48 (2013), 115--174.
[20]
Andrea Calì, Georg Gottlob, and Andreas Pieris. 2012. Towards more expressive ontology languages: The query answering problem. Artif. Intell. 193 (2012), 87--128.
[21]
Diego Calvanese, Giuseppe De Giacomo, Domenico Lembo, Maurizio Lenzerini, and Riccardo Rosati. 2013. Data complexity of query answering in description logics. Artif. Intell. 195 (2013), 335--360.
[22]
Diego Calvanese, Giuseppe De Giacomo, Domenico Lembo, Maurizio Lenzerini, and Riccardo Rosati. 2007. Tractable reasoning and efficient query answering in description logics: The DL-Lite family. J. Autom. Reasoning 39, 3 (2007), 385--429.
[23]
Diego Calvanese, Giuseppe De Giacomo, Maurizio Lenzerini, and Moshe Y. Vardi. 2000. View-based query processing and constraint satisfaction. In Proc. of LICS. 361--371.
[24]
Diego Calvanese, Giuseppe De Giacomo, Maurizio Lenzerini, and Moshe Y. Vardi. 2003. View-based query containment. In Proc. of PODS. 56--67.
[25]
Stefano Ceri, Georg Gottlob, and Letizia Tanca. 1989. What you always wanted to know about datalog (and never dared to ask). IEEE Trans. Knowl. Data Eng. 1, 1 (1989), 146--166.
[26]
C. C. Chang and H. Jerome Keisler. 1990. Model Theory. Studies in Logic and the Foundations of Mathematics, Vol. 73. Elsevier.
[27]
Hubie Chen and Benoit Larose. 2016. Asking the metaquestions in constraint tractability. CoRR abs/1604.00932 (2016).
[28]
David Cohen and Peter Jeavons. 2006. The complexity of constraint languages. In Handbook of Constraint Programming. Elsevier, Chapter 8.
[29]
Alin Deutsch, Alan Nash, and Jeffrey B. Remmel. 2008. The chase revisited. In Proc. of PODS. ACM, 149--158.
[30]
Thomas Eiter, Georg Gottlob, and Heikki Mannila. 1997. Disjunctive datalog. ACM Trans. Database Syst. 22, 3 (1997), 364--418.
[31]
Thomas Eiter, Magdalena Ortiz, Mantas Simkus, Trung-Kien Tran, and Guohui Xiao. 2012. Query rewriting for horn-SHIQ plus rules. In Proc. of AAAI. 726--733.
[32]
Ronald Fagin, Phokion G. Kolaitis, Renée J. Miller, and Lucian Popa. 2005. Data exchange: Semantics and query answering. Theor. Comput. Sci. 336, 1 (2005), 89--124.
[33]
Tomás Feder and Moshe Y. Vardi. 1998. The computational structure of monotone monadic SNP and constraint satisfaction: A study through datalog and group theory. SIAM J. Comput. 28, 1 (1998), 57--104.
[34]
Tomás Feder and Moshe Y. Vardi. 2003. Homomorphism closed vs. existential positive. In Proc. of LICS. 311--320.
[35]
Cristina Feier, Antti Kuusisto, and Carsten Lutz. 2019. Rewritability in monadic disjunctive datalog, MMSNP, and expressive description logics. Logical Methods in Computer Science 15, 2 (2019), 15:1--15:46.
[36]
Jörg Flum and Martin Grohe. 2006. Parameterized Complexity Theory. Springer.
[37]
Birte Glimm, Carsten Lutz, Ian Horrocks, and Ulrike Sattler. 2008. Conjunctive query answering for the description logic . J. Artif. Intell. Res. (JAIR) 31 (2008), 157--204.
[38]
Georg Gottlob, Stanislav Kikot, Roman Kontchakov, Vladimir V. Podolskii, Thomas Schwentick, and Michael Zakharyaschev. 2014. The price of query rewriting in ontology-based data access. Artif. Intell. 213 (2014), 42--59.
[39]
Georg Gottlob, Marco Manna, and Andreas Pieris. 2015. Polynomial rewritings for linear existential rules. In Proc. of IJCAI. 2992--2998.
[40]
Georg Gottlob, Giorgio Orsi, and Andreas Pieris. 2014. Query rewriting and optimization for ontological databases. ACM Trans. Database Syst. 39, 3 (2014), 25:1--25:46.
[41]
Erich Grädel. 1999. On the restraining power of guards. J. Symb. Log. 64, 4 (1999), 1719--1742.
[42]
Erich Grädel and Martin Otto. 2014. The freedoms of (guarded) bisimulation. In Johan van Benthem on Logic and Information Dynamics. 3--31.
[43]
André Hernich, Carsten Lutz, Fabio Papacchini, and Frank Wolter. 2017. Dichotomies in ontology-mediated querying with the guarded fragment. In Proc. of PODS. 185--199.
[44]
Ullrich Hustadt, Boris Motik, and Ulrike Sattler. 2005. Data complexity of reasoning in very expressive description logics. In Proc. of IJCAI. 466--471.
[45]
Mark Kaminski, Yavor Nenov, and Bernardo Cuenca Grau. 2016. Datalog rewritability of disjunctive datalog programs and non-Horn ontologies. Artif. Intell. 236 (2016), 90--118.
[46]
Yevgeny Kazakov. 2004. A polynomial translation from the two-variable guarded fragment with number restrictions to the guarded fragment. In Proc. of JELIA. 372--384.
[47]
Roman Kontchakov and Michael Zakharyaschev. 2014. An introduction to description logics and query rewriting. In Proc. of Reasoning Web. 195--244.
[48]
Adila Krisnadhi and Carsten Lutz. 2007. Data complexity in the EL family of DLs. In Proc. of DL.
[49]
Andrei A. Krokhin and Stanislav Zivny (Eds.). 2017. The Constraint Satisfaction Problem: Complexity and Approximability. Dagstuhl Follow-Ups, Vol. 7. Schloss Dagstuh—Leibniz-Zentrum fuer Informatik.
[50]
Markus Krötzsch, Sebastian Rudolph, and Pascal Hitzler. 2013. Complexities of horn description logics. ACM Trans. Comput. Log. 14, 1 (2013), 2:1--2:36.
[51]
Gábor Kun. 2007. Constraints, MMSNP, and Expander Structures. Available at http://arxiv.org/abs/0706.1701v1.
[52]
Richard E. Ladner. 1975. On the structure of polynomial time reducibility. J. ACM 22, 1 (1975), 155--171.
[53]
Benoit Larose and Pascal Tesson. 2009. Universal algebra and hardness results for constraint satisfaction problems. Theor. Comput. Sci. 410, 18 (2009), 1629--1647.
[54]
Hector J. Levesque and Gerhard Lakemeyer. 2000. The Logic of Knowledge Bases. MIT Press. https://mitpress.mit.edu/books/logic-knowledge-bases
[55]
Carsten Lutz. 2008. The complexity of conjunctive query answering in expressive description logics. In Proc. of IJCAR. 179--193.
[56]
Carsten Lutz, Robert Piro, and Frank Wolter. 2011. Description logic TBoxes: Model-theoretic characterizations and rewritability. In Prof. of IJCAI. IJCAI/AAAI, 983--988.
[57]
Carsten Lutz and Frank Wolter. 2012. Non-uniform data complexity of query answering in description logics. In Proc. of KR. 297--307.
[58]
Carsten Lutz and Frank Wolter. 2015. On the relationship between consistent query answering and constraint satisfaction problems. In Proc. of ICDT. 363--379.
[59]
Carsten Lutz and Frank Wolter. 2017. The data complexity of description logic ontologies. Logical Methods in Computer Science 13, 4 (Nov. 2017), 1--46.
[60]
Florent R. Madelaine. 2009. Universal structures and the logic of forbidden patterns. Logical Methods in Computer Science 5, 2 (2009). http://arxiv.org/abs/0904.2521
[61]
Florent R. Madelaine and Iain A. Stewart. 2007. Constraint satisfaction, logic and forbidden patterns. SIAM J. Comput. 37, 1 (2007), 132--163.
[62]
Jack Minker (Ed.). 1988. Foundations of Deductive Databases and Logic Programming. Elsevier.
[63]
Marie-Laure Mugnier and Michaël Thomazo. 2014. An introduction to ontology-based query answering with existential rules. In Proc. of Reasoning Web. 245--278.
[64]
Magdalena Ortiz, Diego Calvanese, and Thomas Eiter. 2008. Data complexity of query answering in expressive description logics via tableaux. Journal of Automated Reasoning 41, 1 (2008), 61--98.
[65]
Martin Otto. 2012. Highly acyclic groups, hypergraph covers, and the guarded fragment. J. ACM 59, 1 (2012), 5:1--5:40.
[66]
Antonella Poggi, Domenico Lembo, Diego Calvanese, Giuseppe De Giacomo, Maurizio Lenzerini, and Riccardo Rosati. 2008. Linking data to ontologies. J. Data Semantics 10 (2008), 133--173.
[67]
Ian Pratt-Hartmann. 2007. Complexity of the guarded two-variable fragment with counting quantifiers. J. Log. Comput. 17, 1 (2007), 133--155.
[68]
Ian Pratt-Hartmann. 2009. Data-complexity of the two-variable fragment with counting quantifiers. Inf. Comput. 207, 8 (2009), 867--888.
[69]
Andrea Schaerf. 1993. On the complexity of the instance checking problem in concept languages with existential quantification. J. of Intel. Inf. Systems 2 (1993), 265--278.
[70]
Frantisek Simancik, Yevgeny Kazakov, and Ian Horrocks. 2011. Consequence-based reasoning beyond horn ontologies. In Proc. of IJCAI. 1093--1098.
[71]
P. van Emde Boas. 1997. The convenience of tilings. In Complexity, Logic, and Recursion Theory. 331--363.
[72]
Patricia L. Whetzel, Natalya F. Noy, Nigam H. Shah, Paul R. Alexander, Csongor Nyulas, Tania Tudorache, and Mark A. Musen. 2011. BioPortal: Enhanced functionality via new web services from the national center for biomedical ontology to access and use ontologies in software applications. Nucleic Acids Research 39, suppl 2 (2011), W541--W545.
[73]
Dmitriy Zhuk. 2017. A proof of CSP dichotomy conjecture. In Proc. of FOCS. 331--342.

Cited By

View all
  • (2022)Logical separability of labeled data examples under ontologiesArtificial Intelligence10.1016/j.artint.2022.103785313(103785)Online publication date: Dec-2022
  • (2022)A tetrachotomy of ontology-mediated queries with a covering axiomArtificial Intelligence10.1016/j.artint.2022.103738309(103738)Online publication date: Aug-2022
  • (2021)Living without beth and craigProceedings of the 36th Annual ACM/IEEE Symposium on Logic in Computer Science10.1109/LICS52264.2021.9470585(1-14)Online publication date: 29-Jun-2021

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Transactions on Computational Logic
ACM Transactions on Computational Logic  Volume 21, Issue 3
July 2020
407 pages
ISSN:1529-3785
EISSN:1557-945X
DOI:10.1145/3384674
  • Editor:
  • Orna Kupferman
Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 20 February 2020
Accepted: 01 December 2019
Received: 01 April 2019
Published in TOCL Volume 21, Issue 3

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Ontology-based data access
  2. dichotomies
  3. query evaluation

Qualifiers

  • Research-article
  • Research
  • Refereed

Funding Sources

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)5
  • Downloads (Last 6 weeks)1
Reflects downloads up to 12 Sep 2024

Other Metrics

Citations

Cited By

View all
  • (2022)Logical separability of labeled data examples under ontologiesArtificial Intelligence10.1016/j.artint.2022.103785313(103785)Online publication date: Dec-2022
  • (2022)A tetrachotomy of ontology-mediated queries with a covering axiomArtificial Intelligence10.1016/j.artint.2022.103738309(103738)Online publication date: Aug-2022
  • (2021)Living without beth and craigProceedings of the 36th Annual ACM/IEEE Symposium on Logic in Computer Science10.1109/LICS52264.2021.9470585(1-14)Online publication date: 29-Jun-2021

View Options

Get Access

Login options

Full Access

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format.

HTML Format

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media