Open In App

Deductive Database Semantics and Query Evaluation

Pre-requisites: What is a Database?

We classify the relation in Datalog Program or deductive database as either output relation or input relation. output relations are defined by rules and input relations have a set of tuples explicitly listed (e.g. assembly) given the instance of the input relation we must compute instances for the output relations.



The major advantage of a deductive database is the ability to write queries. we can understand deductive databases more easily using the following diagram.

deductive database

The meaning Datalog programming usually defines deductive database in two different ways both of which essentially describe the relation instance for output relation. technically a query is a section over one of the output relations. however, the meaning of the query is clear once we understand how relation instances are associated with output relation in Datalog Program
 



Safe Datalog Programmer

There are many approaches to defining the semantics of the Datalog Program:

Least model semantics

Least fix point semantics

 

Altogether, the main objective of this thesis is to improve existing transformation-based methods and to develop new ones for evaluating ratifiable as well as unsatisfiable recursion. The results ought to provide a realistic framework of
efficient evaluation techniques for extending existing relational database systems.
 

Query Evaluation for Deductive Database

The query evaluation for the deductive database is as follows:

phase 1: storage and access

phase2: interpretation of rules

Deductive Database Prototype

There are many deductive prototypes are available many such systems are memory based. it assumes all required permanent relations are stored in the main memory and during the computation process, temporary relations generated can be stored in memory.

for example RDL/c and megalog

Article Tags :