When we ask a virtual assistant about tomorrow’s weather forecast or use Google to search for the latest news on climate change, knowledge graphs serve as the foundation for today’s cutting-edge information systems. In addition, knowledge graphs have the potential to elucidate, evaluate, and substantiate information produced by deep learning models such as Chat-GPT and other large language models. Knowledge graphs have a wide range of applications, including improving search results, answering questions, providing recommendations, and developing explainable AI systems.
A knowledge graph is a structured representation of facts about the world, describing entities and their interrelations, organized in a graph format. Here are some key aspects of a knowledge graph:
| Aspect | Definition |
|---|---|
| Entities | In a knowledge graph, nodes represent entities (like people, places, things, concepts), and edges represent relationships or connections between these entities. |
| Relationships | Define the connections between entities. For example, in a knowledge graph about movies, a relationship might be "acted_in" between an actor and a movie. |
| Attributes | Describe the characteristics of entities and relationships. For example, an entity "movie" might have attributes like "director," "release_date," and "genre." |
| RDF | The Resource Description Framework (RDF) is a standard model for data interchange on the web. It extends the linking structure of the web to use URIs to name the relationship between things as well as the two ends of the link (this is usually referred to as a "triple"). This linking structure forms a directed, labeled graph, where the edges represent the named link between two resources, represented by the graph nodes . |
| Triples | The basic unit of data in a knowledge graph is a triple, which consists of a subject, a predicate, and an object. For example, "Paris (subject) - is the capital of (predicate) - France (object)".
|
| Semantic Meaning | Knowledge graphs often use standardized vocabularies or ontologies to define the types of entities and relationships, giving them semantic meaning. This makes knowledge graphs highly suitable for AI applications, such as question answering and recommendation systems. |
| Sources of Data | Data in a knowledge graph can come from various sources, including structured data (like databases), semi-structured data (like XML or JSON), and even unstructured data (like text, using techniques like Named Entity Recognition and Relation Extraction). |
| Examples | Some prominent examples of knowledge graphs include DBpedia, Wikidata, Freebase (now part of the Google Knowledge Graph), and proprietary graphs developed by companies like SAP, Amazon, Facebook, and Microsoft. |
| Applications | Knowledge graphs are used in various applications, such as search engines, chatbots, digital assistants, recommendation systems, and data integration tasks. |
| Ontologies | Provide a formal structure for the knowledge graph, defining the types of entities, relationships, and attributes. Ontologies are needed to ensure the consistency and interoperability of your model.![]() In essence, a knowledge graph provides a way to represent, store, and query structured knowledge, enabling machines to understand and process human-readable information more effectively. |

