-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHarry-Potter-Lexicon-Database.pl
88 lines (68 loc) · 1.43 KB
/
Harry-Potter-Lexicon-Database.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
%% Load it into prolog via prolog -s /path/to/file
%% Harry Potter Lexicon Database
%% Factora Prologium
wizard(harry).
wizard(ron).
wizard(arthur).
wizard(bill).
wizard(james).
wizard(severus).
wizard(albus).
wizard(sirius).
wizard(remus).
wizard(neville).
wizard(voldemort).
wizard(draco).
wizard(rubeus).
wizard(gellert).
witch(hermione).
witch(ginny).
witch(molly).
witch(fleur).
witch(lily).
witch(luna).
witch(bellatrix).
witch(minerva).
witch(cho).
witch(hanna).
witch(nymphadora).
elf(dobby).
elf(kreacher).
owl(hedwig).
married(harry, ginny).
married(ron, hermione).
married(arthur, molly).
married(james, lily).
married(remus, nymphadora).
married(bill, fleur).
married(neville, luna).
%% No offense for assumed love relations.
loves(severus, lily).
loves(james, lily).
loves(harry, ginny).
loves(ron, hermione).
loves(arthur, molly).
loves(remus, nymphadora).
loves(bill, fleur).
loves(neville, luna).
loves(harry, cho).
loves(voldemort, bellatrix).
loves(draco, hanna).
loves(rubeus, harry).
loves(rubeus, ron).
loves(rubeus, hermione).
loves(minerva, albus).
loves(albus, gellert).
parent(arthur, ron).
parent(arthur, ginny).
parent(arthur, bill).
parent(molly, ron).
parent(molly, ginny).
parent(molly, bill).
parent(james, harry).
parent(lily, harry).
%% Rulesora Prologium
father(F,C) :- wizard(F), parent(F,C).
mother(M,C) :- witch(M), parent(M,C).
son(S,P) :- wizard(S), parent(P,S).
daughter(D,P) :- witch(D), parent(P,D).