Installation:
-
Download Datalog Educational System (DES).
-
Unzip the archive to a folder of your choice.
-
You can run DES in console mode (
des.exeordes).-
Unixes: File
desneeds execute permission:
cd /path/to/des
chmod +x des -
Linux (Ubuntu): Note that DES might need the packages
unixodbc-dev,unixodbc-binandunixodbc. Install with:
sudo apt-get install unixodbc-dev unixodbc-bin unixodbc
-
First steps:
-
Start DES as described in the last steps above.
-
In subfolder
docyou can find a manual:manualDES.pdf -
In subfolder
examplesyou can find many examples. The following examples are particularly interesting:bom.dl,family.dl, andflight.dl
-
-
After starting DES:
/helpgives you an overview of all the available commands. Particularly important are:/r fileloads a (e.g.) datalog program-
/datalog goalsolves 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 /qquits 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.