Skip to content

anotherik/Prolog

Repository files navigation

Prolog project

Logic Programming Assignment

Part #1: Natural language processing and conversion to Prolog queries/programs
Part #2: Main engine - sets of rules used to solve your chosen problem
Part #3: All integrated through a graphical interface

Challenge

Query Plan: Given a database of geographical sites (countries, rivers, forests etc), your program should be able to parse a question in natural language and translate it to a database query (a la Prolog), execute the query and use a graphical interface to represent the input and output.

How to use

[load]. (to load all the files)
intro. (for program instructions, optional)
query_db. (start querying the program)

GUI Mode

How to deploy prolog server

./start.sh
Then go to: localhost:3000/server/index.html and have fun.

Preview

alt tag

Test with BOT

./dependencies.sh
python mrBOT.py
Sit back and enjoy!

Work done by

Gonçalo Gonçalves - 200804562
Ricardo Gonçalves - 200802530

(Tested with SWI-Prolog version 6.6.4 for amd64 and python2.7)

About

Prolog work for the course Logic Programming

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages