-
Notifications
You must be signed in to change notification settings - Fork 0
/
Data.CLP
294 lines (260 loc) · 7.77 KB
/
Data.CLP
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
(deffacts education
(education computer_science)
(education IT)
)
(deffacts interest_computer_science
(computer_science interest DBMS)
(computer_science interest SD)
(computer_science interest Management)
(computer_science interest Networking)
)
(deffacts interest_IT
(IT interest Technician)
(IT interest Management)
(IT interest Sales)
)
(deffacts courses_computer_science
(interest DBMS algorithms )
(interest DBMS programming-and-problem-solving )
(interest DBMS web-programming )
(interest DBMS Database-mgt-systems )
(interest DBMS MIS )
(interest DBMS DS )
(interest DBMS OS )
(interest DBMS Design-thinking )
(interest DBMS Software-dev )
(SD MIS )
(SD algorithms-and-data-structure )
(SD programming-and-problem-solving )
(SD web-programming )
(SD ICT-project-management )
(SD DS )
(SD OS )
(SD Design-thinking )
(SD Software-dev )
(Networking MIS )
(Networking algorithms-and-data-structure )
(Networking programming-and-problem-solving )
(Networking ICT-project-management )
(Networking computer-networks )
(Networking computer-security )
(Networking OS )
(Networking Digital-electronics )
(Networking Software-dev )
(Networking Design-thinking)
(Networking Computer-architecture)
(Sales MIS )
(Sales organization-management )
(Sales programming-and-problem-solving )
(Sales Principles-of-business-and-entrepreneurship )
(Sales OS )
(Sales SAD )
(Sales Computer-GRAPHICS)
(Management MIS )
(Management ICT-project-management )
(Management Principles-of-business-and-entrepreneurship )
(Management OS )
(Management SAD )
(Technician Computer-network )
(Technician network-security )
(Technician operating-systems )
(Technician web-programming )
(Technician digital-electronics )
(Technician computer-architecture )
(Technician computer-graphics )
)
(deffacts career-path-management
(management project-manager)
(management ICT project-manager)
(management consultant)
)
(deffacts career-path-SD
(SD mobile-developer)
(SD web-developer)
(SD web-designer)
(SD programmer)
(SD UI-designer)
)
(deffacts web-developer-roles
(front-end-programming web-developer)
(programming-frameworks web-developer)
(back-end-programming web-developer)
(web technologies web-developer)
)
(deffacts web-designer-roles
(UI design web-designer)
(front-end-programming web-designer)
)
(deffacts programmer-roles
(programming-methodologies programmer)
(problem-solving programmer)
(algorithms programmer)
)
(deffacts UI-designer-roles
(UI-design UI-designer)
(front-end-programming UI-designer)
(design-thinking UI-designer)
)
(deffacts network-admin-roles
(administer-network-security network-admin)
(installation-of-network-systems network-admin)
(perform-network-upgrades network-admin)
)
(deffacts cyber-security-roles
(administer-network-security cyber-security)
)
(deffacts information-security-roles
(administer-information-security information-security)
(implement-information-security information-security)
)
(deffacts IS-security-roles
(recommend-suitable-IS IS-security)
(provide-consultancy-on-IS IS-security)
)
(deffacts project-manager-roles
(manage-teams project-manager)
(manage-resources project-manager)
(manage-budges project-manager)
(ability-to-select-effective-ICT-tools project-manager)
)
(deffacts certification
(Networking CCNA)
(Networking CCNP)
(Networking CISA)
(Networking CIMP)
(Networking DMP)
(SD MCSE)
(Networking ITL)
(DBMS OCA)
(DBMS OCP)
(DBMS OCM)
(DBMS OCC)
(DBMS OCS)
)
(deffacts career-path-sales
(sales sale-representative)
(sales sales-executive)
)
(deffacts career-path-technician
(Technician cyber-assistance)
(Technician computer-lab-technician)
(Technician computer-technician)
(Technician training-specialist)
)
(deffacts career-path-database
(DBMS system-admin)
(DBMS system-analyst)
)
(deffacts system-admin-role
(administer-server-networks system-admin)
(monitor-access-and-secuirty system-admin)
(control-access-permissions-and-priviledges system-admin)
)
(deffacts system-admin-role
(mapping-designs system-analyst)
(writing-db-documentations system-analyst)
(maintaining-data-standards system-analyst)
)
(deffacts career-path-network
(Networking network-admin)
(Networking cyber-security)
(Networking information-security)
(networking information-systems-auditor)
)
(deffacts cyber-assistance-role
(manage-play-stations cyber-assistance)
(print-posters-and-brochures cyber-assistance)
(conduct-basic-it-training cyber-assistance)
)
(deffacts lab-techician-role
(networking-skills lab-techician)
(system-debugging lab-techician)
(offer-support-and-maintenance lab-techician)
)
(deffacts training-specialist-role
(conduct-it-training training-specialist)
(making-presentation training-specialist)
(effecient-communication-skills training-specialist)
)
(deffacts sales-reps-role
(understand-computer-architecure sale-representative)
(marketing-skills sale-representative)
(knowledge-on-IT-equipment sale-representative)
)
(deffacts sales-executive-role
(manage-IT-equipments sales-executive)
(manage-IT-staffs sales-executive)
(assign-sales-duty sales-executive)
)
(deffacts consultant-role
(give-advice-on-various-ICT-subects consultant)
(knowledge-on-appropriate-IT-equipments consultant)
(recommendations-on-ict-issues consultant)
)
;;****************
;;* DEFFUNCTIONS *
;;****************
(deffunction ask-question (?question $?allowed-values)
(printout t ?question)
(bind ?answer (read))
(if (lexemep ?answer)
then (bind ?answer (lowcase ?answer)))
(while (not (member ?answer ?allowed-values)) do
(printout t ?question)
(bind ?answer (read))
(if (lexemep ?answer)
then (bind ?answer (lowcase ?answer))))
?answer)
(deffunction yes-or-no-p (?question)
(bind ?response (ask-question ?question yes no y n))
(if (or (eq ?response yes) (eq ?response y))
then yes
else no))
;;;***************
;;;* QUERY RULES *
;;;***************
(defrule determine-field-status ""
(not (career-status ?))
(not (career-advice ?))
=>
(assert (career-status (yes-or-no-p "Are you doing computer science or IT (yes/no)? "))))
(defrule determine-undertake-computer-it ""
(career-status no)
(not (career-advice ?))
=>
(assert (career-advice "Sorry this advisory system only deals withh IT/Computer Science")))
(defrule determine-interest-area ""
(career-status yes)
(not (career-advice ?))
=>
(assert (interest-status
(ask-question "What computer science or IT area are you interested in (DBMS/Networking/Programming/IT-Support/Artificial-Intelligence)? " dbms networking software-development it-support artificial-intelligence))))
(defrule interest-status-dbms
(interest-status dbms)
(not (career-advice ?))
=>
(assert (dbms-domain-knowledge (yes-or-no-p "Do you have database programming skills (yes/no)?")))
)
(defrule db-knowledge
(dbms-domain-knowledge yes)
(not(career-advice ?))
=>
(assert (dbms2-domain-knowledge (yes-or-no-p "Do you have skills in database design and implementation(yes/no)")))
)
;;;********************************
;;;* STARTUP AND CONCLUSION RULES *
;;;********************************
(defrule system-banner ""
(declare (salience 10))
=>
(printout t crlf crlf)
(printout t "The Career Advisory System")
(printout t crlf crlf))
(defrule print-advice ""
(declare (salience 10))
(career-advice ?item)
=>
(printout t crlf crlf)
(printout t "Career Advice:")
(printout t crlf crlf)
(format t " %s%n%n%n" ?item))