Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/2902251.2902302acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
research-article

Semantic Acyclicity Under Constraints

Published: 15 June 2016 Publication History
  • Get Citation Alerts
  • Abstract

    A conjunctive query (CQ) is semantically acyclic if it is equivalent to an acyclic one. Semantic acyclicity has been studied in the constraint-free case, and deciding whether a query enjoys this property is NP-complete. However, in case the database is subject to constraints such as tuple-generating dependencies (tgds) that can express, e.g., inclusion dependencies, or equality-generating dependencies (egds) that capture, e.g., functional dependencies, a CQ may turn out to be semantically acyclic under the constraints while not semantically acyclic in general. This opens avenues to new query optimization techniques. In this paper we initiate and develop the theory of semantic acyclicity under constraints. More precisely, we study the following natural problem: Given a CQ and a set of constraints, is the query semantically acyclic under the constraints, or, in other words, is the query equivalent to an acyclic one over all those databases that satisfy the set of constraints?
    We show that, contrary to what one might expect, decidability of CQ containment is a necessary but not sufficient condition for the decidability of semantic acyclicity. In particular, we show that semantic acyclicity is undecidable in the presence of full tgds (i.e., Datalog rules). In view of this fact, we focus on the main classes of tgds for which CQ containment is decidable, and do not capture the class of full tgds, namely guarded, non-recursive and sticky tgds. For these classes we show that semantic acyclicity is decidable, and its complexity coincides with the complexity of CQ containment. In the case of egds, we show that if we focus on keys over unary and binary predicates, then semantic acyclicity is decidable (NP-complete). We finally consider the problem of evaluating a semantically acyclic query over a database that satisfies a set of constraints. For guarded tgds and functional dependencies the evaluation problem is tractable.

    References

    [1]
    S. Abiteboul, R. Hull, and V. Vianu. Foundations of Databases. Addison-Wesley, 1995.
    [2]
    J.-F. Baget, M.-L. Mugnier, S. Rudolph, and M. Thomazo. Walking the complexity lines for generalized guarded existential rules. In IJCAI, pages 712--717, 2011.
    [3]
    V. Bárány, G. Gottlob, and M. Otto. Querying the guarded fragment. Logical Methods in Computer Science, 10(2), 2014.
    [4]
    P. Barceló, L. Libkin, and M. Romero. Efficient approximations of conjunctive queries. SIAM J. Comput., 43(3):1085--1130, 2014.
    [5]
    P. Barceló, R. Pichler, and S. Skritek. Efficient evaluation and approximation of well-designed pattern trees. In PODS, pages 131--144, 2015.
    [6]
    P. Barceló, M. Romero, and M. Y. Vardi. Semantic acyclicity on graph databases. In PODS, pages 237--248, 2013.
    [7]
    C. Beeri and M. Y. Vardi. The implication problem for data dependencies. In ICALP, pages 73--85, 1981.
    [8]
    A. Calı, G. Gottlob, and M. Kifer. Taming the infinite chase: Query answering under expressive relational constraints. J. Artif. Intell. Res., 48:115--174, 2013.
    [9]
    A. Calı, G. Gottlob, and T. Lukasiewicz. A general Datalog-based framework for tractable query answering over ontologies. J. Web Sem., 14:57--83, 2012.
    [10]
    A. Calı, G. Gottlob, and A. Pieris. Towards more expressive ontology languages: The query answering problem. Artif. Intell., 193:87--128, 2012.
    [11]
    D. Calvanese, G. De Giacomo, and M. Lenzerini. Conjunctive query containment and answering under description logic constraints. ACM Trans. Comput. Log., 9(3), 2008.
    [12]
    A. K. Chandra and P. M. Merlin. Optimal implementation of conjunctive queries in relational data bases. In STOC, pages 77--90, 1977.
    [13]
    H. Chen and V. Dalmau. Beyond hypertree width: Decomposition methods without decompositions. In CP, pages 167--181, 2005.
    [14]
    V. Dalmau, P. G. Kolaitis, and M. Y. Vardi. Constraint satisfaction, bounded treewidth, and finite-variable logics. In CP, pages 310--326, 2002.
    [15]
    R. Fagin. A normal form for relational databases that is based on domians and keys. ACM Trans. Database Syst., 6(3):387--415, 1981.
    [16]
    R. Fagin, P. G. Kolaitis, R. J. Miller, and L. Popa. Data exchange: Semantics and query answering. Theor. Comput. Sci., 336(1):89--124, 2005.
    [17]
    D. Figueira. Semantically acyclic conjunctive queries under functional dependencies. In LICS, 2016. To appear.
    [18]
    T. Gogacz and J. Marcinkowski. Converging to the chase - A tool for finite controllability. In LICS, pages 540--549, 2013.
    [19]
    G. Gottlob, G. Greco, and B. Marnette. Hyperconsistency width for constraint satisfaction: Algorithms and complexity results. In Graph Theory, Computational Intelligence and Thought, pages 87--99, 2009.
    [20]
    G. Gottlob, G. Orsi, and A. Pieris. Query rewriting and optimization for ontological databases. ACM Trans. Database Syst., 2014.
    [21]
    P. Hell and J. Nesetril. Graphs and Homomorphisms. Oxford University Press, 2004.
    [22]
    D. S. Johnson and A. C. Klug. Testing containment of conjunctive queries under functional and inclusion dependencies. J. Comput. Syst. Sci., 28(1):167--189, 1984.
    [23]
    M. Krötzsch and S. Rudolph. Extending decidable existential rules by joining acyclicity and guardedness. In IJCAI, pages 963--968, 2011.
    [24]
    T. Lukasiewicz, M. V. Martinez, A. Pieris, and G. I. Simari. From classical to consistent query answering under existential rules. In AAAI, pages 1546--1552, 2015.
    [25]
    D. Maier, A. O. Mendelzon, and Y. Sagiv. Testing implications of data dependencies. ACM Trans. Database Syst., 4(4):455--469, 1979.
    [26]
    C. H. Papadimitriou and M. Yannakakis. On the complexity of database queries. J. Comput. Syst. Sci., 58(3):407--427, 1999.
    [27]
    M. Yannakakis. Algorithms for acyclic database schemes. In VLDB, pages 82--94, 1981.

    Cited By

    View all
    • (2020)Semantic Optimization of Conjunctive QueriesJournal of the ACM10.1145/342490867:6(1-60)Online publication date: 29-Oct-2020
    • (2020)The Limits of Efficiency for Open- and Closed-World Query Evaluation Under Guarded TGDsProceedings of the 39th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3375395.3387653(259-270)Online publication date: 14-Jun-2020
    • (2020)All-Instances Restricted Chase TerminationProceedings of the 39th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3375395.3387644(245-258)Online publication date: 14-Jun-2020
    • Show More Cited By

    Index Terms

    1. Semantic Acyclicity Under Constraints

      Recommendations

      Comments

      Information & Contributors

      Information

      Published In

      cover image ACM Conferences
      PODS '16: Proceedings of the 35th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems
      June 2016
      504 pages
      ISBN:9781450341912
      DOI:10.1145/2902251
      • General Chair:
      • Tova Milo,
      • Program Chair:
      • Wang-Chiew Tan
      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]

      Sponsors

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      Published: 15 June 2016

      Permissions

      Request permissions for this article.

      Check for updates

      Author Tags

      1. acyclicity
      2. conjunctive queries
      3. equality-generating dependencies
      4. query approximation
      5. query evaluation
      6. tuple-generating dependencies

      Qualifiers

      • Research-article

      Funding Sources

      • FWF
      • Millenium Nucleus Center for Semantic Web Research
      • EPSRC
      • WWTF

      Conference

      SIGMOD/PODS'16
      Sponsor:
      SIGMOD/PODS'16: International Conference on Management of Data
      June 26 - July 1, 2016
      California, San Francisco, USA

      Acceptance Rates

      PODS '16 Paper Acceptance Rate 31 of 94 submissions, 33%;
      Overall Acceptance Rate 642 of 2,707 submissions, 24%

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)8
      • Downloads (Last 6 weeks)0
      Reflects downloads up to 09 Aug 2024

      Other Metrics

      Citations

      Cited By

      View all
      • (2020)Semantic Optimization of Conjunctive QueriesJournal of the ACM10.1145/342490867:6(1-60)Online publication date: 29-Oct-2020
      • (2020)The Limits of Efficiency for Open- and Closed-World Query Evaluation Under Guarded TGDsProceedings of the 39th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3375395.3387653(259-270)Online publication date: 14-Jun-2020
      • (2020)All-Instances Restricted Chase TerminationProceedings of the 39th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3375395.3387644(245-258)Online publication date: 14-Jun-2020
      • (2019)When is ontology-mediated querying efficient?Proceedings of the 34th Annual ACM/IEEE Symposium on Logic in Computer Science10.5555/3470152.3470205(1-13)Online publication date: 24-Jun-2019
      • (2019)When is Ontology-Mediated Querying Efficient?2019 34th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)10.1109/LICS.2019.8785823(1-13)Online publication date: Jun-2019
      • (2019)A More General Theory of Static Approximations for Conjunctive QueriesTheory of Computing Systems10.1007/s00224-019-09924-064:5(916-964)Online publication date: 10-May-2019
      • (2019)How Many Variables are Needed to Express an Existential Positive Query?Theory of Computing Systems10.1007/s00224-018-9884-z63:7(1573-1594)Online publication date: 1-Oct-2019
      • (2018)How Can Reasoners Simplify Database Querying (And Why Haven't They Done It Yet)?Proceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3196959.3196989(1-15)Online publication date: 27-May-2018
      • (2017)Semantic Optimization in Tractable Classes of Conjunctive QueriesACM SIGMOD Record10.1145/3137586.313758846:2(5-17)Online publication date: 1-Sep-2017
      • (2016)Semantically Acyclic Conjunctive Queries under Functional DependenciesProceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science10.1145/2933575.2933580(847-856)Online publication date: 5-Jul-2016
      • Show More Cited By

      View Options

      Get Access

      Login options

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Media

      Figures

      Other

      Tables

      Share

      Share

      Share this Publication link

      Share on social media