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

Semantic acyclicity on graph databases

Published: 22 June 2013 Publication History

Abstract

It is known that unions of acyclic conjunctive queries (CQs) can be evaluated in linear time, as opposed to arbitrary CQs, for which the evaluation problem is NP-complete. It follows from techniques in the area of constraint-satisfaction problems that "semantically acyclic" unions of CQs -- i.e., unions of CQs that are equivalent to a union of acyclic ones -- can be evaluated in polynomial time, though testing membership in the class of semantically acyclic CQs is NP-complete.
We study here the fundamental notion of semantic acyclicity in the context of graph databases and unions of conjunctive regular path queries with inverse (UC2RPQs). It is known that unions of acyclic C2RPQs can be evaluated efficiently, but it is by no means obvious whether the same holds for the class of UC2RPQs that are semantically acyclic. We prove that checking whether a UC2RPQ is semantically acyclic is decidable in 2EXPSPACE, and that it is EXPSPACE-hard even in the absence of inverses. Furthermore, we show that evaluation of semantically acyclic UC2RPQs is fixed-parameter tractable. In addition, our tools yield a strong theory of approximations for UC2RPQs when no equivalent acyclic UC2RPQ exists.

References

[1]
. Abiteboul, P. Buneman, D. Suciu. Data on the Web: From Relations to Semistructured Data and XML. Morgan Kauffman, 1999.
[2]
R. Angles, C. Gutiérrez. Survey of graph database models. ACM Comput. Surv. 40(1): (2008).
[3]
. Barceló, L. Libkin, A.W. Lin, P. Wood. Expressive languages for path queries over graph-structured data. ACM TODS 38(4), 2012.
[4]
. Barceló, J. Perez, J. Reutter. Relativeexpressiveness of nested regular expressions. In AMW 2012, pages180--195.
[5]
. Barceló, L. Libkin, M. Romero. Efficient approximations of conjunctive queries. In PODS 2012,pages 249--260.
[6]
. Calvanese, G. de Giacomo, M. Lenzerini, M. Y. Vardi. Containment of conjunctive regular path queries with inverse. In KR'00, pages 176--185.
[7]
. Calvanese, G. de Giacomo, M. Lenzerini, M. Y. Vardi. Rewriting of regular expressions and regular path queries. JCSS, 64(3):443--465, 2002.
[8]
A. Chandra and P. Merlin. Optimal implementation of conjunctive queries in relationaldata bases. In STOC 1977, pages77--90.
[9]
. Chen and V. Dalmau. Beyond hypertree width:Decomposition methods without decompositions. In CP 2005, pages 167--181.
[10]
. P. Consens, A. O. Mendelzon. GraphLog: a visual formalismfor real life recursion. In PODS'90, pages 404--416.
[11]
I. Cruz, A. Mendelzon, P. Wood. A graphical query language supportingrecursion. In SIGMOD'87, pages 323--330.
[12]
. Dalmau, P. G. Kolaitis, M. Y. Vardi. Constraintsatisfaction, bounded treewidth, and finite-variable logics. In CP 2002, pages 310--326.
[13]
. Fagin. Degrees of acyclicity for hypergraphs andrelational database schemes. JACM 30(3), pages 514--550, 1983.
[14]
W. Fan, J. Li, S. Ma, N. Tang, Y. Wu. Graph pattern matching: from intractable to polynomialtime. PVLDB 3(1): 264--275 (2010).
[15]
W. Fan, J. Li, S. Ma, N. Tang, Y. Wu. Adding regular expressions to graph reachability and patternqueries. In ICDE 2011, to appear.
[16]
T. Feder, M. Y. Vardi. The computational structure of monotone monadicSNP and constraint satisfaction: A study through datalog and group theory. SIAM J. Comput. 28(1), pages 57--104, 1998.
[17]
. Fletcher, M. Gyssens, D. Leinders, J. Van denBussche, D. Van Gucht, S. Vansummeren, Y. Wu. Relative expressivepower of navigational querying on graphs. In ICDT 2011, pages197--207.
[18]
. Florescu, A. Levy, D. Suciu. Query containment for conjunctive queries with regularexpressions. In PODS'98, pages 139--148.
[19]
. Gottlob, N. Leone, F. Scarcello. The complexity of acyclic conjunctive queries. J. ACM 48(3), 2001, pages 431--498.
[20]
. Gottlob, N. Leone, F. Scarcello. Hypertree decompositions and tractable queries. J. Comput. Syst. Sci. 64(3), pages 579--627, 2002.
[21]
G. Gottlob, N. Leone, and F. Scarcello. Hypertree decompositions and tractable queries. JCSS, 64 (2002), 579--627.
[22]
. Grohe. The structure of tractable constraintsatisfaction problems. In MFCS 2006, pages 58--72.
[23]
. Harel, D. Kozen, J. Tiuryn. Dynamic logic. MITPress, 2000.
[24]
h. Kolaitis, M. Y. Vardi. Conjunctive query-containmentand constraint satisfaction. JCSS 61(2), pages 302--332, 2000.
[25]
h. Kolaitis, M. Y. Vardi. A Logical Approach to Constraint Satisfaction. Complexity of Constraints, pages 125--155, 2008.
[26]
. Libkin, W. Martens, D. Vrgoc. Querying graph databases with XPath. Accepted for publication, ICDT 2013.
[27]
C. H. Papadimitriou and M. Yannakakis. The complexity of facets (and some facets of complexity). JCSS, 28 (1986), 244--259.
[28]
h. Papadimitriou, M. Yannakakis.On the complexity of database queries. In PODS 1997, pages12--19.
[29]
. Sagiv and M. Yannakakis. Equivalences among relationalexpressions with the union and difference operator. JACM 27(4),1980, pages 633--655.
[30]
. Tarjan and M. Yannakakis. Simple linear-timealgorithms to test chordality of graphs, test selectivity ofhypergraphs and selectively reduce acyclic hypergraphs. SiamJ. of Comp., 13, 1984, pages 566--579.
[31]
M. Yannakakis. Algorithms for acyclic database schemes. In VLDB, 1981, pages 82--94.

Cited By

View all

Index Terms

  1. Semantic acyclicity on graph databases

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    PODS '13: Proceedings of the 32nd ACM SIGMOD-SIGACT-SIGAI symposium on Principles of database systems
    June 2013
    334 pages
    ISBN:9781450320665
    DOI:10.1145/2463664
    • General Chair:
    • Richard Hull,
    • Program Chair:
    • Wenfei Fan
    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: 22 June 2013

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. acyclicity
    2. conjunctive regular path queries
    3. graph databases
    4. query approximatio
    5. query evaluation

    Qualifiers

    • Research-article

    Conference

    SIGMOD/PODS'13
    Sponsor:

    Acceptance Rates

    PODS '13 Paper Acceptance Rate 24 of 97 submissions, 25%;
    Overall Acceptance Rate 642 of 2,707 submissions, 24%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)14
    • Downloads (Last 6 weeks)1
    Reflects downloads up to 09 Nov 2024

    Other Metrics

    Citations

    Cited By

    View all

    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