Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

Datalog

< >

Datalog is a programming language created in 1977.

#365on PLDB 47Years Old

Datalog is a declarative logic programming language that syntactically is a subset of Prolog. It is often used as a query language for deductive databases. In recent years, Datalog has found new application in data integration, information extraction, networking, program analysis, security, and cloud computing. Read more on Wikipedia...


Example from the web:
parent(john, douglas). % store some data parent(john, douglas)? % run a query
Example from Wikipedia:
ancestor(X,Y) :- parent(X,Y). ancestor(X,Y) :- parent(X,Z),ancestor(Z,Y).

Language features

Feature Supported Token Example
Comments ✓
% A comment
Line Comments ✓ %
% A comment
Semantic Indentation X

View source

- Build the next great programming language · About · Acknowledgements · Extensions · Day 630 · Donate · feedback@pldb.io