Installation:
-
Download Datalog Educational System (DES).
-
Unzip the archive to a folder of your choice.
-
You can run DES in console mode (
des.exe
ordes
).-
Unixes: File
des
needs execute permission:
cd /path/to/des
chmod +x des
-
Linux (Ubuntu): Note that DES might need the packages
unixodbc-dev
,unixodbc-bin
andunixodbc
. Install with:
sudo apt-get install unixodbc-dev unixodbc-bin unixodbc
-
First steps:
-
Start DES as described in the last steps above.
-
In subfolder
doc
you can find a manual:manualDES.pdf
-
In subfolder
examples
you can find many examples. The following examples are particularly interesting:bom.dl
,family.dl
, andflight.dl
-
-
After starting DES:
/help
gives you an overview of all the available commands. Particularly important are:/r file
loads a (e.g.) datalog program-
/datalog goal
solves a goal based on the loaded program -
example:
/r examples/family.dl
/datalog ancestor(X,Y).
(or just:ancestor(X,Y).
) -
In contrast,
/prolog ancestor(X,Y).
executes the goal as a Prolog program on a tuple by tuple basis /q
quits DES
Build own executable with SWI-Prolog:
We recommend using the pre-built packages as described above. However, you can also build your own executable for DES with SWI-Prolog. This requires an installation of SWI-Prolog.
-
Download the source code of Datalog Educational System (DES).
-
Follow the instructions in the Building Guide.