liveBook · Manning

Knowledge graph construction

As explained in Knowledge Graphs and LLMs in Action

Knowledge graph construction is the process of creating a knowledge graph by defining its scope, understanding its domain, and integrating information from multiple sources.

Knowledge graph construction creates a unified, grounded representation from heterogeneous information. It begins with a problem definition and domain understanding, then scouts, explores, and integrates data into reusable concepts and relationships. section 3.6 section 5.0

A practical construction pipeline includes:

  • Define the problem and reference domain before selecting data or technologies. section 3.6
  • Ingest and process structured or unstructured sources using NLP, data enrichment, machine learning, and data modeling. section 5.0
  • Choose RDF for knowledge representation and ontology construction, or LPG for efficient query-based traversal and path analysis. section 3.6
  • Extract entities and relationships with prompts, then fine-tune a model when prompt-only output is insufficient; iterate with additional training data. section 5.3.1

Extracting knowledge from archives

Emails, chats, laws, research papers, news, and social media can be transformed into connected knowledge. An archive project illustrates the need to resolve varying references to the same person before generating the graph. section 5.0 section 5.3.1

Figure 5.4 The two roles of LLMs in KG generation from textual data: the prompt-based approach (upper branch) and the fine-tuning approach (lower branch)
figure

Compare prompt-based extraction with the fine-tuning path for generating a knowledge graph from textual data. section 5.3.1

How Knowledge Graphs and LLMs in Action covers it

How deep it goes
Traces scoping, data exploration, modeling, extraction, prompting, and fine-tuning, but leaves broader operational deployment unspecified.
Examples
Uses archives, emails, laws, research papers, prompts, training datasets, and entity-resolution cases as construction artifacts.
What it assumes
Assumes a defined problem and domain understanding while introducing knowledge representation, graph models, extraction, and prompt engineering.
What you can do after
Build it from scratch by selecting a representation, processing sources, extracting relationships, and iterating model quality for a domain.
How it connects
Connects knowledge representation with ontologies, RDF, labeled property graphs, NLP, machine learning, and large language models.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Knowledge Graphs and LLMs in Action. The section links point to the parts of the book it draws on.