Ontology

In computing and AI, an ontology is a formal, shared definition of the concepts in a subject area and the relationships between them, written so that software can reason with it.

The word comes from philosophy, where ontology is the study of what exists. In computing it means something more practical: a written-down model of a domain. An ontology lists the classes of things that matter (patients, drugs, diseases), the individual things that belong to them, their attributes, and the relationships that connect them, such as treats or is part of. Tom Gruber's widely cited 1993 definition called it a specification of a conceptualisation.

What separates an ontology from a simple category list is rules. A taxonomy says a mitochondrion is a kind of cell part. An ontology can also state constraints, such as which relationships are allowed between which classes, so a program can check data for consistency and infer facts nobody wrote down. The W3C's Web Ontology Language, OWL, is the main standard for this on the web; OWL 2 became a W3C Recommendation in October 2009, with a second edition in December 2012.

A widely used example is the Gene Ontology, which describes what genes and their products do across species. It has three branches, molecular function, cellular component and biological process, and every term has a seven-digit identifier, such as GO:0005739 for mitochondrion. Because researchers describe their findings with the same terms, results from different groups can be combined and searched together. Other widely used examples include SNOMED CT in medicine and Schema.org, which describes web content for search engines.

AI researchers took up the word in the 1980s, in the era of knowledge-based systems whose knowledge was written out by hand. Ontologies remain useful wherever meaning must be precise and shared, as in medicine and biology. Knowledge graphs may use an ontology as a schema layer. For businesses, the attraction is a single agreed definition of terms like customer or product across systems; the cost is the expert effort needed to build and maintain it.

Common questions

What is the difference between an ontology and a taxonomy?

A taxonomy is a hierarchy of categories, such as a kind of b. An ontology includes such hierarchies but adds other relationships, attributes and logical rules, so software can check consistency and infer new facts from the ones stated.

What is an ontology in AI?

It is a formal model of the concepts in a domain and how they relate, written in a machine-readable language such as OWL. AI systems use it to organise knowledge, link data from different sources and draw logical conclusions.

How do ontologies relate to knowledge graphs?

A knowledge graph stores facts as connected entities, and it may use an ontology as a schema layer that defines the types and relationships the graph contains. Put simply, the ontology is the schema and the knowledge graph is the data that follows it.

What is an example of an ontology?

The Gene Ontology is a widely used example. It defines terms for molecular functions, cellular components and biological processes, links them with relations such as is a and part of, and gives each a unique identifier used by researchers worldwide.

Finding more

Search for "ontology information science", "OWL Web Ontology Language" or "ontology vs taxonomy vs knowledge graph". Reliable sources include W3C specifications, the documentation of established ontologies such as the Gene Ontology, and university courses on knowledge representation. Product pages that use the word for a company's data model may mean something looser than the formal sense.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.