Skip to content

obin1000/prolog-expert-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authors

Robin Vonk -- [email protected]
Michel Rummens -- [email protected]

Expert Systems Example

Example of how to query some rules.

More rules exist in our project, which are all called in the same manner.
To execute more queries, please see our sourcecode.

Find all cousins of Robin Vonk.
Returns: Nieces = [sanna_vonk, kimberly_vonk, miranda_vonk, cynthia_dekker].

nieces_of(robin_vonk, Nieces).

Find all aunts of Robin Vonk.
Returns: List = [marjanne_dekker].

aunts_of(robin_vonk, Aunts).

Find first occurrence of an uncle of Robin Vonk.
Returns: X = alfred_vonk

uncle_of(robin_vonk, Uncle).

Check if Lara Vonk is a brother of Robin Vonk.
Returns: False

brother_of(robin_vonk, lara_vonk).

Check if Lara Vonk is a sister of Robin Vonk.
Returns: True

sister_of(robin_vonk, lara_vonk).

Find all grandchildren of Henk Vonk.
Returns: Grandchildren = [robin_vonk, lara_vonk, sanna_vonk, kimberly_vonk, patrick_vonk, dennis_vonk, miranda_vonk].

grandchildren_of(henk_vonk, Grandchildren).

Family tree

About

A simple example for an expert system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published