Prolog knowledge base

In Prolog there are three basic constructs: facts, rules, and queries. A collection of facts and rules is called a knowledge base (or a database).
The main advantage of Prolog is simple questions asking about the information stored in the knowledge base.

Prolog knowledge base example – facts

Prolog query example

Prolog answers

Prolog knowledge base example – rules

Tea is Jans mother if she is female and his parent.

Leave a Reply

Your email address will not be published. Required fields are marked *

Please prove me that you are not spamer :) * Time limit is exhausted. Please reload CAPTCHA.