The easiest way to get started using Datalog for PLT Scheme is with the main module:
|(require (planet jaymccarthy/datalog:1:0))|
This module provides everything in the entire package. Subsequent sections of this manual describe the functionality of the individual libraries included, which can also be required individually.
|> (require (planet dherman/pprint))|
Installing this PLaneT package also automatically registers a DrScheme language called Datalog, filed under Experimental Languages. Selecting the Datalog language from DrScheme’s Language menu allows you to create and load Datalog programs and interact with Datalog at the REPL.
Datalog is also available as a module language. This can be used by beginning a Datalog source file with the line:
#lang planet jaymccarthy/datalog:1:0
You can omit the PLaneT version numbers if you prefer. Programs without the version number do not need to be updated when this PLaneT package is upgraded. However, it is then the responsibility of the programmer to address any backwards-incompatible changes to the Datalog semantics.