How to construct an ontological knowledge base

To simplify programming, you can even use a table to implement this light weight ontology.

subject age group precondition blood pressure threshold
person old person with diabetes 160
person old person without diabetes 150
person young person with diabetes 140
person young person without diabetes 130