kintreex is an early prototype of a pedigree exploration expert system written in prolog.
It contains an R script to translate percental relationship matrizes to prolog facts of the form first_degree(personA, personB), second_degree(personA, personC), ...
and a prolog file rules.pl
with a set of (untested) rules like father_of(personA,personB):- male(personA), first_degree(personA,personB).
that should apply in this system.
To use it you can load your facts file and the kintreex rules file in an interactive prolog session and explore the possible pedigrees by asking the expert system questions. For this you have to install a prolog implementation like e.g. SWI-Prolog.
example_charlesii
contains an example application prepared by Joscha Gretzinger based on the complex pedigree of Charles II of Spain. You can start the prolog interpreter in this directory with
swipl -s pedigree.pl
and then start to ask questions
father_of(X, anne).
father_of(philipiii, anne).
distinct(sister_of(X,philipiv)). % only distinct solutions
findall(X,distinct(sister_of(X,philipiv)),L). % show all solutions
and finally exit the interpreter console with
halt.