Extending the power of datalog recursion

Mirjana Mazuran, Edoardo Serra, Carlo Zaniolo

Research output: Contribution to journalArticlepeer-review

37 Scopus citations

Abstract

Supporting aggregates in recursive logic rules represents a very important problem for Datalog. To solve this problem, we propose a simple extension, called DatalogFS(Datalog extended with frequency support goals), that supports queries and reasoning about the number of distinct variable assignments satisfying given goals, or conjunctions of goals, in rules. This monotonic extension greatly enhances the power of Datalog, while preserving (i) its declarative semantics and (ii) its amenability to efficient implementation via differential fixpoint and other optimization techniques presented in the paper. Thus, DatalogFSenables the efficient formulation of queries that could not be expressed efficiently or could not be expressed at all in Datalog with stratified negation and aggregates. In fact, using a generalized notion of multiplicity called frequency, we show that diffusion models and page rank computations can be easily expressed and efficiently implemented using DatalogFS.

Original languageEnglish
Pages (from-to)471-493
Number of pages23
JournalVLDB Journal
Volume22
Issue number4
DOIs
StatePublished - Aug 2013

Keywords

  • Graph algorithms
  • Logic programming
  • Query languages

Fingerprint

Dive into the research topics of 'Extending the power of datalog recursion'. Together they form a unique fingerprint.

Cite this