2009-02-16 12:23:29 +00:00
|
|
|
|
|
|
|
This is a version of the school database, based on the PRM School example.
|
|
|
|
|
|
|
|
There are four main files:
|
|
|
|
|
|
|
|
school_128.yap: a school with 128 professors, 256 courses and 4096 students.
|
|
|
|
school_64.yap: medium size school
|
2012-12-12 00:27:32 +00:00
|
|
|
school_32.yap: small school (clp(bn))
|
2012-03-22 19:10:15 +00:00
|
|
|
|
2012-12-12 00:27:32 +00:00
|
|
|
sch32.yap: small school (pfl)
|
2012-03-22 19:10:15 +00:00
|
|
|
|
2012-12-12 00:27:32 +00:00
|
|
|
parschema.yap: the PFL schema
|
2012-03-22 19:10:15 +00:00
|
|
|
|
2012-12-12 00:27:32 +00:00
|
|
|
schema.yap: the CLP(BN) schema
|
2009-02-16 12:23:29 +00:00
|
|
|
|
|
|
|
tables: CPTs
|
|
|
|
|
2012-09-23 13:24:49 +01:00
|
|
|
=============================================================================
|
2009-02-16 12:23:29 +00:00
|
|
|
|
|
|
|
professor_ability(p0,X).
|
|
|
|
|
|
|
|
professor_popularity(p0,X).
|
|
|
|
|
|
|
|
professor_ability(p0,X), professor_popularity(p0,h).
|
|
|
|
|
|
|
|
professor_ability(p0,h), professor_popularity(p0,X).
|
|
|
|
|
|
|
|
registration_grade(r0,X).
|
|
|
|
|
|
|
|
registration_grade(r0,X), registration_course(r0,C), course_difficulty(C,h).
|
|
|
|
|
|
|
|
registration_grade(r0,X), registration_course(r0,C), course_difficulty(C,h), registration_student(r0,S), student_intelligence(S,h).
|
|
|
|
|
|
|
|
registration_grade(r0,X), registration_course(r0,C), course_difficulty(C,l), registration_student(r0,S), student_intelligence(S,h).
|
|
|
|
|
|
|
|
registration_satisfaction(r0,X).
|
|
|
|
|
|
|
|
registration_satisfaction(r0,X), registration_student(r0,S), student_intelligence(S,h).
|
|
|
|
|
|
|
|
registration_satisfaction(r0,X), registration_grade(r0,a).
|
|
|
|
|
|
|
|
registration_satisfaction(r0,X), registration_grade(r0,d).
|
|
|
|
|
|
|
|
registration_satisfaction(r0,h), registration_grade(r0,X).
|
|
|
|
|
|
|
|
course_rating(c0,X).
|
|
|
|
|
|
|
|
course_rating(c0,h), course_difficulty(c0,X).
|
|
|
|
|
|
|
|
course_difficulty(c0,X).
|
|
|
|
|
2012-09-26 00:04:58 +01:00
|
|
|
rank(s0,X).
|
2009-02-16 12:23:29 +00:00
|
|
|
|
2012-09-26 00:04:58 +01:00
|
|
|
rank(s0,X), student_intelligence(s0,h).
|
2009-02-16 12:23:29 +00:00
|
|
|
|