A common form of knowledge representation in AI is the triple: a three-part statement made of a subject, a predicate and an object. Triples are the building block of knowledge graphs. If-then rules are another widely used form. No single form is used everywhere, but these two come up often in textbooks and in real systems.
Facts as triples
A triple records one fact. “(Paris, capital of, France)” says that Paris is the capital of France. “(Canary, is a, bird)” is another. When many triples are linked together, entities become nodes and predicates become the labeled edges between them. That structure is a knowledge graph.
Triples are easy to store in tables or databases, easy to search, and easy to share between systems. Standards such as RDF use this format.
The limitation is that a single triple does not carry a confidence level by default. Systems often need extra structure, such as an ontology, to keep a large graph consistent. Triples are closely related to semantic networks, which also use nodes and labeled links. For small, concrete graphs, see semantic network in artificial intelligence examples.
If-then rules
Rules store knowledge as conditions and conclusions. An example is “if the engine won’t start and the battery light is on, then check the battery connections.” Rule-based systems were widely used in expert systems of the 1970s and 1980s.
A rule system applies rules to known facts, and each rule that fires can add a new fact. Rules are readable, and they suit decisions that a person needs to explain. Large rule sets can conflict with one another, which makes them harder to maintain over time.
Logic-based rules are more formal. For worked examples, see first order predicate logic in artificial intelligence examples.
Why these forms are common
Triples and rules are simple enough to store, check and explain, which is one reason they appear so often. They can express many ordinary facts without a complicated structure. More complex forms, such as full logic or probabilistic models, are used when a problem needs them.
Where uncertainty fits
Triples and simple rules do not capture degrees of belief well. When the knowledge is uncertain, a system may use a probabilistic model instead. Bayesian networks, for example, attach probabilities to relationships between variables. For the mechanics, see explain bayesian network in detail.
Knowledge representation approaches in AI cover this range of options, from simple facts to models that handle uncertainty.