7.1.1 Organizing the knowledge base

In Prolog+CG a knowledge base consists of:

  • an ontology
  • a body of graphs
  • and sometimes a collection of predicates.

We recommend that you place the ontology at the top of the document, and divide it into two sections: a hierarchy of types and a catalogue of individuals.

It is often useful to partition the body of graphs in parts that allow you to search through a selected part of the graphs. In this way it is also possible to compose queries consisting of expressions from different parts of the knowledge base.


PrevLite: 7.1 Nuts and bolts
NextLite: 7.1.2 Organizing the graphs

Prev: 7.1 Nuts and bolts
Up: 7.1 Nuts and bolts
Next: 7.1.2 Organizing the graphs