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 条
  • [31] A Query Language for Workflow Logs
    Tang, Yan
    Cui, Weilong
    Su, Jianwen
    ACM TRANSACTIONS ON MANAGEMENT INFORMATION SYSTEMS, 2022, 13 (02)
  • [32] A Model and Query Language for Multi-modal Hybrid Query
    Hu, Chuan
    Mao, Along
    Zhao, Zihao
    Shen, Zhihong
    SCIENTIFIC AND STATISTICAL DATABASE MANAGEMENT 36TH INTERNATIONAL CONFERENCE, SSDBM 2024, 2024,
  • [33] From Datalog Rules to Efficient Programs with Time and Space Guarantees
    Liu, Yanhong A.
    Stoller, Scott D.
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2009, 31 (06):
  • [34] Semi-Inflationary DATALOG:: A declarative database language with procedural features
    Guzzo, A
    Saccà, D
    AI COMMUNICATIONS, 2005, 18 (02) : 79 - 92
  • [35] Efficient Enumeration of Recursive Plans in Transformation-based Query Optimizers
    Fejza, Amela
    Geneves, Pierre
    Layaida, Nabil
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2024, 17 (11): : 3095 - 3108
  • [36] A Query Language for Software Architecture Information
    Ammermann, Joshua
    Jordan, Sven
    Linsbauer, Lukas
    Schaefer, Ina
    SOFTWARE ARCHITECTURE, ECSA 2023, 2023, 14212 : 337 - 345
  • [37] SPATIAL SQL - A QUERY AND PRESENTATION LANGUAGE
    EGENHOFER, MJ
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 1994, 6 (01) : 86 - 95
  • [38] Query language approach based on the deductive object-oriented database paradigm
    Niemi, T
    Christensen, M
    Jarvelin, K
    INFORMATION AND SOFTWARE TECHNOLOGY, 2000, 42 (11) : 777 - 792
  • [39] SIMILARITY-BASED RELATIONS IN DATALOG PROGRAMS
    Hajdinjak, Melita
    Bauer, Andrej
    INTERNATIONAL JOURNAL OF UNCERTAINTY FUZZINESS AND KNOWLEDGE-BASED SYSTEMS, 2012, 20 (05) : 673 - 700
  • [40] A Natural-language-based Visual Query Approach of Uncertain Human Trajectories
    Huang, Zhaosong
    Zhao, Ye
    Chen, Wei
    Gao, Shengjie
    Yu, Kejie
    Xu, Weixia
    Tang, Mingjie
    Zhu, Minfeng
    Xu, Mingliang
    IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2020, 26 (01) : 1256 - 1266