skip to main content
10.1145/2745754.2745764acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
research-article

Defining Relations on Graphs: How Hard is it in the Presence of Node Partitions?

Published: 20 May 2015 Publication History

Abstract

Designing query languages for graph structured data is an active field of research. Evaluating a query on a graph results in a relation on the set of its nodes. In other words, a query is a mechanism for defining relations on a graph. Some relations may not be definable by any query in a given language. This leads to the following question: given a graph, a query language and a relation on the graph, does there exist a query in the language that defines the relation? This is called the definability problem. When the given query language is standard regular expressions, the definability problem is known to be PSPACE-complete.
The model of graphs can be extended by labeling nodes with values from an infinite domain. These labels induce a partition on the set of nodes: two nodes are equivalent if they are labeled by the same value. Query languages can also be extended to make use of this equivalence. Two such extensions are Regular Expressions with Memory (REM) and Regular Expressions with Equality (REE).
In this paper, we study the complexity of the definability problem in this extended model when the query language is either REM or REE. We show that the definability problem is EXPSPACE-complete when the query language is REM, and it is PSPACE-complete when the query language is REE. In addition, when the query language is a union of conjunctive queries based on REM or REE, we show CoNP-completeness.

References

[1]
B. Alexe, B. T. Cate, P. G. Kolaitis, and W-C Tan. Characterizing schema mappings via data examples. ACM Trans. Database Syst., 36(4):23:1--23:48, 2011.
[2]
B. Alexe, B. T. Cate, P. G. Kolaitis, and W-C Tan. Designing and refining schema mappings via data examples. In SIGMOD, pages 133--144, 2011.
[3]
T. Antonopoulos, F. Neven, and F. Servais. Definability problems for graph query languages. In ICDT, pages 141--152, 2013.
[4]
P. Barceló. Querying graph databases. In PODS, pages 175--188, 2013.
[5]
P. Barceló, J. Pérez, and J. Reutter. Schema mappings and data exchange for graph databases. In ICDT, pages 189--200, 2013.
[6]
P. Barceló, J. Reutter, and L. Libkin. Parameterized regular expressions and their languages. Theor. Comput. Sci., 474:21--45, 2013.
[7]
D. Calvanese, G. De Giacomo, M. Lenzerini, and M. Y. Vardi. Simplifying schema mappings. In ICDT, pages 114--125, 2011.
[8]
B. T. Cate, V. Dalmau, and P. G. Kolaitis. Learning schema mappings. ACM Trans. Database Syst., 38(4):28:1--28:31, 2013.
[9]
B. T. Cate, P. G. Kolaitis, and W-C Tan. Database constraints and homomorphism dualities. In CP, pages 475--490, 2010.
[10]
A. Das Sarma, A. Parameswaran, H. Garcia-Molina, and J. Widom. Synthesizing view definitions from data. In ICDT, pages 89--103, 2010.
[11]
G.H.L. Fletcher, M. Gyssens, J. Paredaens, and D. V. Gucht. On the expressive power of the relational algebra on finite sets of relation pairs. IEEE Trans. Knowledge and Data Engg., 21(6):939--942, 2009.
[12]
A. Gheerbrant, L. Libkin, and C. Sirangelo. When is naive evaluation possible? In PODS, pages 75--86, 2013.
[13]
G. Gottlob, C. Koch, R. Baumgartner, M. Herzog, and S. Flesca. The Lixto data extraction project: Back and forth between theory and practice. In PODS, pages 1--12, 2004.
[14]
G. Gottlob and P. Senellart. Schema mapping discovery from data instances. J. ACM, 57(2):6:1--6:37, 2010.
[15]
C. Gutierrez, C. Hurtado, and A. Mendelzon. Foundations of semantic web databases. JCSS, 77(3):520--541, 2011.
[16]
M. Kaminski and N. Francez. Finite-memory automata. Theor. Comp. Sc., 134(2):329 -- 363, 1994.
[17]
E.V. Kostylev, J.L. Reutter, and D. Vrgo\vc. Containment of data graph queries. In ICDT, pages 131--142, 2014.
[18]
U. Leser. A query language for biological networks. Bioinformatics, 21(suppl 2):ii33--ii39, 2005.
[19]
L. Libkin and D. Vrgo\vc. Regular expressions for data words. In Logic for Programming, Artificial Intelligence, and Reasoning, volume 7180 of LNCS, pages 274--288. 2012.
[20]
L. Libkin and D. Vrgo\vc. Regular path queries on graphs with data. In ICDT, pages 74--85, 2012.
[21]
F. Neven, T. Schwentick, and V. Vianu. Finite state machines for strings over infinite alphabets. ACM TOCL, 5(3):403--435, 2004.
[22]
J. Pérez, M. Arenas, and C. Gutierrez. Semantics and complexity of SPARQL. ACM Trans. Database Syst., 34(3), 2009.
[23]
R. Ronen and O. Shmueli. Soql: A language for querying and creating data in social networks. In ICDE, pages 1595--1602, 2009.
[24]
H. Sakamoto and D. Ikeda. Intractability of decision problems for finite-memory automata. Theor. Comp. Sc., 231(2):297 -- 308, 2000.
[25]
P. van Emde Boas. The convenience of tilings. In Complexity, Logic and Recursion Theory, pages 331--363. Marcel Dekker Inc., 1997.

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
PODS '15: Proceedings of the 34th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems
May 2015
358 pages
ISBN:9781450327572
DOI:10.1145/2745754
  • General Chair:
  • Tova Milo,
  • Program Chair:
  • Diego Calvanese
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 the author(s) 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: 20 May 2015

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. definability
  2. graphs with data
  3. regular data path queries
  4. regular expressions with equality
  5. regular expressions with memory

Qualifiers

  • Research-article

Conference

SIGMOD/PODS'15
Sponsor:
SIGMOD/PODS'15: International Conference on Management of Data
May 31 - June 4, 2015
Victoria, Melbourne, Australia

Acceptance Rates

PODS '15 Paper Acceptance Rate 25 of 80 submissions, 31%;
Overall Acceptance Rate 642 of 2,707 submissions, 24%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 146
    Total Downloads
  • Downloads (Last 12 months)2
  • Downloads (Last 6 weeks)0
Reflects downloads up to 28 Feb 2025

Other Metrics

Citations

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media