Declarative datalog debugging for mere mortals

  • Authors:
  • Sven Köhler;Bertram Ludäscher;Yannis Smaragdakis

  • Affiliations:
  • Department of Computer Science, University of California, Davis;Department of Computer Science, University of California, Davis;LogicBlox, Inc., Atlanta, GA, USA,Univ. of Athens, Greece

  • Venue:
  • Datalog 2.0'12 Proceedings of the Second international conference on Datalog in Academia and Industry
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Tracing why a "faulty" fact A is in the model M=P(I) of program P on input I quickly gets tedious, even for small examples. We propose a simple method for debugging and "logically profiling" P by generating a provenance-enriched rewriting P̂, which records rule firings according to the logical semantics. The resulting provenance graph can be easily queried and analyzed using a set of predefined and ad-hoc queries. We have prototypically implemented our approach for two different Datalog engines (DLV and LogicBlox), demonstrating the simplicity, effectiveness, and system-independent nature of our method.