Prolog for Beginners

Offered By
Coursera Community Project Network
In this Guided Project, you will:

L​earn Prolog's basic syntax using web front-end Swish

G​et a brief introduction to logical programing

See relational, graph, and deductive databases in Prolog

Clock2 hours
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

This is a gentle introduction to logical programming language Prolog using web front-end Swish which lets you dive in without needing to install any software. The course starts by comparing Prolog to SQL as a relational database query language. Some knowledge of SQL will help, but only a simple understanding of tables is required. Next we cover things Prolog can do but SQL can't, such as deductive databases. The course concludes by briefly introducing how Prolog can be used as a graph database language. It includes a lot of optional background for those interested in delving deeper. But for those who just want a quick taste of a programing language very different to the mainstream, it can be done in under two hours. This Guided Project was created by a Coursera community member.

Skills you will develop

logicDatalogSQLRelational and graph databasesProlog

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. P​rolog's naming conventions for atoms and variables

  2. A​ brief introduction to logic

  3. Modes, behaviours, and other Prolog documentation conventions

  4. D​eductive databases to solve a Zebra puzzle

  5. F​low control and cut!

  6. I​ntroduction to graph databases

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.