Skip to content

pikalab-unibo/ise-lab-code-knowledge-representation

Repository files navigation

Exercises on Knowledge Representation in 2P-Kt

Useful resources

Order of exercises

  1. Exercise 1 in ./exercise-1 is about terms
    • 101 for terms' creation and usage in 2P-Kt
  2. Exercise 2 in ./exercise-2 is about the Herbrand universe
    • advanced
  3. Exercise 3 in ./exercise-3 is about Horn clauses
    • 101 for clauses' creation and usage in 2P-Kt
  4. Exercise 4 in ./exercise-4 is about the manipulation of both terms and clauses
    • optional
  5. Exercise 5 in ./exercise-5 is about the manipulation of logic theories
    • optional

Workflow

  1. Listen to the teacher's explanation
  2. Look for specific TODOs in the source code of each exercise
  3. Inspect and understand the provided unit tests
    • each single line has a meaning: ask for help if a line/test/suite is unclear
  4. Address the TODO and run the tests
  5. When all tests pass, the exercise is done