Introduction
The script below refers to a swi-prolog package prosqlite that can connect prolog to sqlite. In addition to the SQL connection ability, the package also provides a mechanism allowing Prolog scripts to access sqlite databases with native prolog predicates. Example can be found in the following source code. Please refer to the official site of prosqlite for details.
This post shows the native predicate access between a prolog script and a car company database. The database is a sample file found on GitHub. Please refer to the link below for its setup.
No comments:
Post a Comment