What is a knowledge graph?
A knowledge graph is a representation of knowledge about a domain in a form that machines can use.
Representing knowledge as a graph is a key element for effective, contextual search of rich information and knowledge, for decision-making, artificial intelligence applications, voice assistants…
A knowledge graph is made up of three components: an ontology (data model), reference data or controlled vocabularies, and the resources covered by the graph.
The strengths of knowledge graphs
- data that are easy to access and understand because they are organised according to business views,
- durable, stable data serving applications that process and disseminate information,
- resources that artificial intelligence and logical reasoning tools can use directly,
- quality data thanks to a range of automated, intelligent tools dedicated to checking the quality and completeness of the graph,
- a knowledge graph that is easy to enrich, with minor impact on the applications that already use it,
- implementation and maintenance costs significantly lower than with relational databases,
- native multilingual support,
- data interoperability fostered by stable identifiers, alignment with external resources and shared reference data,
- an environment and standards built natively on web standards.
Coverage of a knowledge graph
In a project, it is not always easy to define the coverage of a knowledge graph: should it describe every possible detail? Should it be as simple as possible?
An effective and reliable method is to collect from future users all the questions the graph will have to answer, then build the ontology and populate the graph so that it can answer those types of questions, no more, no less.
Knowledge graphs are easy to enrich. The ontology, the controlled vocabularies and the knowledge can always be enriched later, according to users’ actual needs.
Ontology
How knowledge is modelled in the graph is defined by its ontology (data model). The ontology defines the classes of resources (people, works, places, events…), their properties (name, date of birth, date of creation, textual description…) and the relations between them (created by, includes, performed by…). The ontologist can draw on a series of core ontologies that describe frequently used models: an event, a document, a work, an organisation, a person, reference data, time, geographic positions…
To build the graph’s ontology, these core ontologies can be combined and the missing elements added. An ontology can also be designed taking inspiration from them.
As the graph needs to be enriched, new classes of resources, new relations and new properties are added.
Controlled vocabularies
A knowledge graph relies on a collection of controlled vocabularies (reference data) that identify the concepts used to describe resources (for example: musical genres, types of machines, types of legal texts, people’s roles in an organisation, a list of countries, a list of languages…). Creating these controlled vocabularies is one of the steps in setting up a knowledge graph.
Populating the knowledge graph
The information that populates a knowledge graph can come from very diverse sources: relational databases, XML documents, knowledge extracted from texts or images, manual input, other knowledge graphs…
One of the strengths of a knowledge graph is its ability to integrate and link heterogeneous data from multiple sources.
To set up an automated population process, the description of the resources to be integrated is aligned with the ontology of the knowledge graph, then the extraction, conversion and loading processes are put in place.
Reasoning
A knowledge graph is designed for reasoning. Reasoning can rely on the rules defined in the ontology or on a set of business rules managed separately.
Reasoning is used to infer new knowledge from the knowledge in the graph, to complete external data with the knowledge in the graph, and to check the consistency and completeness of the knowledge graph automatically and continuously.
Knowledge graphs and LLMs
Large language models (LLMs) write well but do not know the organisation’s data. Connected to a knowledge graph, they rely on identified, verifiable facts: this is the principle of Graph RAG. In return, LLMs make it easier to populate the graph from texts.
The knowledge graph serving applications: a data-centric approach
Setting up a knowledge graph is part of a “data-centric” organisational strategy in which aggregated, machine-usable knowledge becomes the foundation of many applications and services, for example:
- publishing websites to search and browse knowledge and related content,
- enriching a search and navigation tool by providing it with context and knowledge,
- deploying voice assistants and chatbots able to converse with users,
- semantic annotation of new content based on the knowledge in the graph,
- enriching existing applications with data from a specialised knowledge base,
- supplying AI applications with training data,
- …
Each knowledge graph becomes the centre of an ecosystem of applications.