Algernon Tutorial 1.h
Simple Assertions
previous next
These exercises and examples use the newspaper project included
in the examples folder of your Protege installation.
Warning! Algernon can modify your KB. Practice on a test KB or a copy of your
real KB until you are proficient with Algernon.
Simple assertions
Start Protege, go to the Algernon tab, and type these into the Algernon input box:
- ((name instance_00068 ?name)) Returns "Ms Gardiner"
- ((:CLEAR-RELATION instance_00068 name)) Removes Ms Gardiner's name
You can view the instances of Editor in the Protege browser to verify that the name slot in instance_00068 is now blank.
- ((name instance_00068 "Michael Jordan")) Changes the name to "Michael Jordan"
You can view the instances of Editor in the Protege browser to verify that "Michael Jordan" is now an Editor.
- ((name instance_00068 ?name)) Repeat the original query
Related links
previous next
Author: Micheal Hewett
Email: mhewett@users.sf.net
Last Updated: Monday, June 06, 2005