Function test_kb

Source
pub fn test_kb() -> KnowledgeBase
Expand description

Creates a knowledge base with a few facts and rules for testing.

father(Alfred, Edward).
father(Edward, Aethelstan).
grandfather($X, $Y) :- father($X, $Z), father($Z, $Y).
grandfather($X, $Y) :- father($X, $Z), mother($Z, $Y).
loves(Penny, Leonard).
loves(Leonard, Penny).

ยงUsage

use suiron::*;

let kb = test_kb();