Expressive Languages for Path Queries over Graph-Structured Data

被引:18
作者
Barcelo, Pablo [1 ]
Hurtado, Carlos [1 ]
Libkin, Leonid [1 ]
Wood, Peter [1 ]
机构
[1] Univ Chile, Dept Comp Sci, Santiago, Chile
来源
PODS 2010: PROCEEDINGS OF THE TWENTY-NINTH ACM SIGMOD-SIGACT-SIGART SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS | 2010年
基金
英国工程与自然科学研究理事会;
关键词
Graph databases; conjunctive queries; regular relations; regular path queries;
D O I
10.1145/1807085.1807089
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
For many problems arising in the setting of graph querying (such as finding semantic associations in RDF graphs, exact and approximate pattern matching, sequence alignment, etc.), the power of standard languages such as the widely studied conjunctive regular path queries (CRPQs) is insufficient in at least two ways. First, they cannot output paths and second, more crucially, they cannot express relations among paths. We thus propose a class of extended CRPQs, called ECRPQs, which add regular relations on tuples of paths, and allow path variables in the heads of queries. We provide several examples of their usefulness in querying graph structured data, and study their properties. We analyze query evaluation and representation of tuples of paths in the output by means of automata. We present a detailed, analysis of data and combined complexity of queries, and consider restrictions that lower the complexity of ECRPQs to that of relational conjunctive queries. We study the containment problem, and look at further extensions with first-order features, and with non-regular relations that express arithmetic properties of paths, based on the lengths and numbers of occurrences of labels.
引用
收藏
页码:3 / 14
页数:12
相关论文
共 36 条
[1]  
Abdulla P. A., CONCUR 04, P35
[2]  
Abiteboul S., 1999, DATA WEB RELATIONS S
[3]  
ABITEBOUL S, 1997, INT J DIGITAL LIBRAR, V1, P1
[4]  
Aho Alfred V., 1990, Handbook of Theoretical Computer Science, P255, DOI DOI 10.1016/B978-0-444-88071-0.50010-2
[5]  
[Anonymous], 1997, ACM SIGACT NEWS
[6]  
Anyanwu K., WWW 03, P690
[7]   Formal-language-constrained path problems [J].
Barrett, C ;
Jacob, R ;
Marathe, M .
SIAM JOURNAL ON COMPUTING, 2000, 30 (03) :809-837
[8]   Definable relations and first-order query languages over strings [J].
Benedikt, M ;
Libkin, L ;
Schwentick, T ;
Segoufin, L .
JOURNAL OF THE ACM, 2003, 50 (05) :694-751
[9]   Automatic structures [J].
Blumensath, A ;
Grädel, E .
15TH ANNUAL IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, PROCEEDINGS, 2000, :51-62
[10]  
Bruyere V., 1994, Bull. Belg. Math. Soc., V1, P191