• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..07-Jan-2012-

READMEH A D18-Oct-20101.3 KiB5425

evidence_128.yapH A D18-Oct-2010390 1813

parlearn.yapH A D18-Oct-2010986 4535

sample32.yapH A D18-Oct-201070.7 KiB2,4342,418

schema.yapH A D18-Oct-20101.7 KiB7251

school_128.yapH A D18-Oct-2010497.8 KiB18,43318,413

school_32.yapH A D18-Oct-201029 KiB1,2391,220

school_64.yapH A D18-Oct-2010118.7 KiB4,7074,687

tables.yapH A D18-Oct-20101.2 KiB4635

README

1
2This is a version of the school database, based on the PRM School example.
3
4There are four main files:
5
6school_128.yap: a school with 128 professors, 256 courses and 4096 students.
7school_64.yap: medium size school
8school_32.yap: small school
9
10schema.yap: the schema
11tables: CPTs
12
13
14
15
16
17professor_ability(p0,X).
18
19professor_popularity(p0,X).
20
21professor_ability(p0,X), professor_popularity(p0,h).
22
23professor_ability(p0,h), professor_popularity(p0,X).
24
25registration_grade(r0,X).
26
27registration_grade(r0,X), registration_course(r0,C), course_difficulty(C,h).
28
29registration_grade(r0,X), registration_course(r0,C), course_difficulty(C,h), registration_student(r0,S), student_intelligence(S,h).
30
31registration_grade(r0,X), registration_course(r0,C), course_difficulty(C,l), registration_student(r0,S), student_intelligence(S,h).
32
33registration_satisfaction(r0,X).
34
35registration_satisfaction(r0,X), registration_student(r0,S), student_intelligence(S,h).
36
37registration_satisfaction(r0,X), registration_grade(r0,a).
38
39registration_satisfaction(r0,X), registration_grade(r0,d).
40
41registration_satisfaction(r0,h), registration_grade(r0,X).
42
43course_rating(c0,X).
44
45course_rating(c0,h), course_difficulty(c0,X).
46
47course_difficulty(c0,X).
48
49student_ranking(s0,X).
50
51student_ranking(s0,X), student_intelligence(s0,h).
52
53
54