Aggregation in Datalog Under Set Semantics

نویسندگان

  • Abhijeet Mohapatra
  • Michael Genesereth
چکیده

We propose an extension of Datalog that supports aggregates under set semantics and is as expressive as the previous extensions of Datalog which use bag semantics to represent aggregate programs. We show that under set semantics, our extension has greater expressive power than the previous extensions of Datalog which support aggregates. By expressing aggregate Datalog queries under set semantics, we can study the equivalence of the aggregate queries without defining notions of equivalence under set, bag-set and bag semantics separately. Under set semantics, Datalog programs with aggregation can be evaluated efficiently since the different derivations of goal tuples are not tracked. In our proposed extension, complex aggregation predicates can be built modularly using simple predicates. This modularity can be potentially leveraged to rewrite aggregate queries using aggregate views where the aggregation functions used in the query and the views are different.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Datalog: Bag Semantics via Set Semantics

Duplicates in data management are common and problematic. In this work, we present a translation of Datalog under bag semantics into a well-behaved extension of Datalog (the so-called warded Datalog) under set semantics. From a theoretical point of view, this allows us to reason on bag semantics by making use of the well-established theoretical foundations of set semantics. From a practical poi...

متن کامل

Aggregation in Disjunctive Deductive Databases

Practical applications of deductive databases often require the use of extended features like disjunctive information, aggregation operators or default negation. But it has been unclear how one could deal with aggregation in the presense of recursion and disjunction. Usually , there is the requirement that deductive databases must be stratiied w.r.t. aggregation, i.e. a predicate q that is deen...

متن کامل

Guarded Open Answer Set Programming with Generalized Literals

We extend the open answer set semantics for programs with generalized literals. Such extended programs (EPs) have interesting properties, e.g. the ability to express infinity axioms EPs that have but infinite answer sets. However, reasoning under the open answer set semantics, in particular satisfiability checking of a predicate w.r.t. a program, is already undecidable for programs without gene...

متن کامل

Answer-set programming encodings for argumentation frameworks

We present reductions from Dung’s argumentation framework (AF) and generalizations thereof to logic programs under the answer-set semantics. The reduction is based on a fixed disjunctive datalog program (the interpreter) and its input which is the only part depending on the AF to process. We discuss the reductions, which are the basis for the system ASPARTIX in detail and show their adequacy in...

متن کامل

How (Well) Do Datalog, SPARQL and RIF Interplay?

In this tutorial we will give an overview of the W3C standard query language for RDF – SPARQL – and its relation to Datalog as well as on the interplay with another W3C standard closely related to Datalog, the Rule Interchange Format (RIF). As we will learn – while these three interplay nicely on the surface and in academic research papers – some details within the W3C specs impose challenges o...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2012