How to construct an ontological knowledge base

To maintain this knowledge, one operation is to add a new piece of knowledge, i.e., (add, agegroup, precondition, threshold). Another operation is to retrieve a piece of knowledge: (retrieve, agegroup, precondition, threshold). The two operations correspond to the messages to/from this knowledge base.