SociaLite: An Efficient Graph Query Language Based on Datalog

被引:19
|
作者
Seo, Jiwon [1 ]
Guo, Stephen [1 ]
Lam, Monica S. [1 ]
机构
[1] Stanford Univ, Dept Comp Sci, Stanford, CA 94305 USA
基金
美国国家科学基金会;
关键词
Datalog; query languages; graph algorithms; social network analysis; AGGREGATION;
D O I
10.1109/TKDE.2015.2405562
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
With the rise of social networks, large-scale graph analysis becomes increasingly important. Because SQL lacks the expressiveness and performance needed for graph algorithms, lower-level, general-purpose languages are often used instead. For greater ease of use and efficiency, we propose SociaLite, a high-level graph query language based on Datalog. As a logic programming language, Datalog allows many graph algorithms to be expressed succinctly. However, its performance has not been competitive when compared to low-level languages. With SociaLite, users can provide high-level hints on the data layout and evaluation order; they can also define recursive aggregate functions which, as long as they are meet operations, can be evaluated incrementally and efficiently. Moreover, recursive aggregate functions make it possible to implement more graph algorithms that cannot be implemented in Datalog. We evaluated SociaLite by running nine graph algorithms in total; eight for social network analysis (shortest paths, PageRank, hubs and authorities, mutual neighbors, connected components, triangles, clustering coefficients, and betweenness centrality) and one for biological network analysis (Eulerian cycles). We use two real-life social graphs, LiveJournal and Last. fm, for the evaluation as well as one synthetic graph. The optimizations proposed in this paper speed up almost all the algorithms by 3 to 22 times. SociaLite even outperforms typical Java implementations by an average of 50 percent for the graph algorithms tested. When compared to highly optimized Java implementations, SociaLite programs are an order of magnitude more succinct and easier to write. Its performance is competitive, with only 16 percent overhead for the largest benchmark, and 25 percent overhead for the worst case benchmark. Most importantly, being a query language, SociaLite enables many more users who are not proficient in software engineering to perform network analysis easily and efficiently.
引用
收藏
页码:1824 / 1837
页数:14
相关论文
共 50 条
  • [21] Model-Based Query Language for Analyzing Clinical Processes
    Barzdins, Janis
    Barzdins, Juris
    Rencis, Edgars
    Sostaks, Agris
    MEDINFO 2013: PROCEEDINGS OF THE 14TH WORLD CONGRESS ON MEDICAL AND HEALTH INFORMATICS, PTS 1 AND 2, 2013, 192 : 1072 - 1072
  • [22] Flan: An Expressive and Efficient Datalog Compiler for Program Analysis
    Abeysinghe, Supun
    Xhebraj, Anxhelo
    Rompf, Tiark
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (POPL): : 2577 - 2609
  • [23] From Datalog to FLIX: A Declarative Language for Fixed Points on Lattices
    Madsen, Magnus
    Yee, Ming-Ho
    Lhotak, Ondrej
    ACM SIGPLAN NOTICES, 2016, 51 (06) : 194 - 208
  • [24] Default logic as a query language
    Cadoli, M
    Eiter, T
    Gottlob, G
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 1997, 9 (03) : 448 - 463
  • [25] Applications of a Web query language
    Arocena, GO
    Mendelzon, AO
    Mihaila, GA
    COMPUTER NETWORKS AND ISDN SYSTEMS, 1997, 29 (8-13): : 1305 - 1316
  • [26] A coherent query language for XML
    Thirunarayan, Krishnaprasad
    Immaneni, Trivikram
    JOURNAL OF INTELLIGENT INFORMATION SYSTEMS, 2009, 32 (02) : 139 - 162
  • [27] DATALOG_SOLVE: A Datalog-Based Demand-Driven Program Analyzer
    Alpuente, M.
    Feliu, M. A.
    Joubert, C.
    Villanueva, A.
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2009, 248 : 57 - 66
  • [28] PQL: Protein Query Language
    Elfayoumy, Sherif
    Bathen, Paul
    2012 11TH INTERNATIONAL CONFERENCE ON MACHINE LEARNING AND APPLICATIONS (ICMLA 2012), VOL 2, 2012, : 127 - 132
  • [29] A coherent query language for XML
    Krishnaprasad Thirunarayan
    Trivikram Immaneni
    Journal of Intelligent Information Systems, 2009, 32 : 139 - 162
  • [30] A Graph-Based Visual Query Method for Massive Human Trajectory Data
    Wang, Zhongshuai
    Yuan, Yuan
    Chang, Liang
    Sun, Xiyan
    Luo, Xiaonan
    IEEE ACCESS, 2019, 7 : 160879 - 160888