1. Home
  2. Explore
  3. Computer Science
  4. Preserving Human Knowledge

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Preserving Human Knowledge

From Information to Knowledge with Knowledge Graphs

Why information needs structure

Human knowledge is rich, connected, and shaped by experience. Sharing it directly between people is difficult: communication depends on language and other media, and each medium can lose nuance, context, and connections. Making knowledge useful at scale therefore requires more than collecting documents. Information must be organized so people and systems can find relationships, interpret meaning, and act on it.

Raw business data often has limited value on its own because it may be:

  • Distributed across separate data sources and silos.

  • Sparse or incomplete, making it difficult to draw conclusions.

  • Heterogeneous, with different sources using different structures and conventions.

  • Unstructured, or difficult to process consistently. This can include text, but also data whose structure varies between sources.

Collecting and organizing raw data turns it into information. A further step is needed to connect related pieces of information and give them meaning. That connected, meaningful information forms knowledge, which can then support insight, decisions, and action.

Data becomes more useful as it is organized, connected, interpreted, and applied.

The progression from data to action

The transformation can be understood as a progression:

  1. Data: Individual records or observations, often scattered across sources and lacking context.

  2. Information: Data that has been collected and organized.

  3. Knowledge: Information connected to other information so that relationships and meaning become apparent.

  4. Insight and wisdom: Understanding derived from knowledge, including what patterns matter and how they can guide decisions.

  5. Action: Applying that understanding to business processes, products, or services.

The transition from information to knowledge is especially important. It is a qualitative change: information becomes knowledge when relevant pieces are connected and can be interpreted together. Knowledge can then support practical outcomes, such as improving products, enhancing service, or reducing costs.


A knowledge-processing pipeline

A knowledge-processing system transforms data from its original sources into structures that can support analysis and decisions. The pipeline is iterative: each stage may add information or relationships that enable further processing.

1. Ingest and organize data

The first stage extracts data from its sources, preprocesses it, and organizes it into a usable form. Sources may include text, structured records, and different types of documents.

The aim is to create organized information rather than leave data isolated in its original locations and formats.

2. Extract structure from text

Text is not structureless. It contains patterns arising from grammar, vocabulary, word relationships, and other linguistic constructions. Natural language processing (NLP) identifies some of this hidden structure so that a machine can process it.

A processed document can be represented through components such as:

  • The document itself, represented as an annotated text or processed-document node.

  • Sentences within the document.

  • Words and tokens.

  • Recognized entities, such as people, organizations, or locations.

  • Relationships among these elements.

The processed view can be kept separate from the original document so that the original domain representation is not overwritten.

3. Enrich the information

Available data may not be sufficient for a particular task. Enrichment adds useful context from external sources or derives additional information by processing the data already available.

Examples include:

  • Adding facts from external knowledge bases.

  • Identifying similarities between documents.

  • Linking entities to broader concepts or geographic regions.

  • Adding labels inferred from images.

  • Creating new relationships that connect previously separate documents.

Enrichment can therefore use both external knowledge and new patterns discovered within the existing data.

4. Represent and manage knowledge

The resulting knowledge must be stored in a form that supports useful queries and analysis. How knowledge is represented affects the quality of what a system can do with it.

5. Apply analysis and machine learning

Once knowledge is represented, machine-learning methods can be applied to extract patterns, make classifications, assess sentiment, cluster documents, or identify related items.

6. Index and deliver results

The processed knowledge must be accessible to users and applications. Indexing and graph-based access can support tools such as enterprise search, semantic search, recommendations, reports, and visualizations.

The final output depends on the organization’s information need. It may be a report for managers, a recommendation engine, or another service built on the knowledge extracted from the original data.


Knowledge graphs as a representation of knowledge

A knowledge graph represents information as interconnected entities and their properties. In this broad sense, a knowledge graph is not limited to a particular data standard or graph format. It is a way to connect items and express meaningful relationships among them.

For example, a graph can represent:

  • A document mentioning a person, company, place, or piece of equipment.

  • A company being part of an industry.

  • A city being located in a region.

  • One piece of equipment being part of another.

  • Two documents being similar or related.

These connections make the graph a navigable representation of knowledge rather than merely a collection of isolated records.

Why the graph matters

A knowledge graph can serve as the central structure on which further analysis is built. Each entity and relationship can become a starting point for queries, investigations, or visual exploration.

A user might:

  • Start with a topic and find the general sentiment associated with it in a news feed.

  • Start with a piece of equipment and retrieve documents related to it.

  • Navigate from a city to its region and find documents discussing other places in that region.

  • Follow relationships between organizations, people, and documents to explore how they are connected.

The graph can also be used to produce different representations of the same knowledge, such as vectors for machine-learning tools, indexed documents for search, or visual displays for users.

Iterative graph construction

The knowledge graph can grow through repeated cycles of processing:

  1. Information is extracted from structured or unstructured sources.

  2. Entities and relationships are added to the graph.

  3. Enrichment or machine-learning techniques derive additional connections.

  4. The new results are stored or exported for further analysis.

  5. Those results may feed another round of processing.

The graph is therefore not simply a final output. It can be a continually updated structure that supports multiple forms of analysis.


Natural language processing and entity recognition

Entities and their importance

An entity is a recognized reference to a real-world concept, such as a person, organization, location, date, time, amount of money, or number. General-purpose NLP systems can identify common entity categories, but the appropriate categories and vocabulary often depend on the domain.

Entity recognition quality is crucial because later analysis depends on the entities and relationships that earlier stages identify. If the system mistakes one type of entity for another, downstream queries and applications may return misleading results.

For example, “Amazon” may refer to a company or a forest. The correct interpretation depends on context. A mistaken entity classification can affect graph analysis, search results, recommendations, and other applications that use the graph.

General and domain-specific models

General-purpose entity recognition models aim to work across many domains. They may recognize categories such as people, places, organizations, money, numbers, dates, and times.

A specialized domain may require custom models. Examples include:

  • Insurance: recognizing causes of accidents.

  • Finance: recognizing start-up or company names with greater precision.

  • Healthcare: recognizing domain-specific terms whose significance can vary across medical contexts.

Custom models can be trained with examples from the relevant domain. Their effectiveness depends on the quality and diversity of those examples, not only on the length of the surrounding text.

Context and training examples

Entity recognition systems need examples that show how concepts appear in different situations. A short sentence can be sufficient if the training material includes varied examples of the relevant concept. Conversely, a large volume of data may not be useful if it fails to represent the range of contexts the system must handle.

The described approach used a Stanford NLP-based system and reported that training with examples of roughly 400 musical instruments enabled recognition of more than 1,000 instruments. The intended lesson is that a model may learn a broader category—such as “musical instrument”—rather than merely memorize the exact examples shown during training.

Reducing entity noise with contextual models

Entity recognition is probabilistic, so errors and ambiguous results are inevitable. The described system used vector-based methods, including Word2Vec, to help filter entities that do not fit their context.

Word2Vec represents a word or entity as a vector. Vector representations can be compared mathematically. One common comparison is cosine similarity:

cosine similarity⁡(A,B)=A⋅B∥A∥∥B∥\operatorname{cosine\ similarity}(A,B) = \frac{A \cdot B}{\lVert A\rVert \lVert B\rVert}cosine similarity(A,B)=∥A∥∥B∥A⋅B​

Here, AAA and BBB are vector representations. A similarity score can help determine whether a recognized word or entity is contextually relevant. The approach was described as combining deep-learning-based representations with entity-recognition results to reduce noise and improve precision.

The reported accuracy for complex domain models was approximately 99%99\%99%. That figure was presented as a result of the described system and its filtering approach, not as a guarantee for every domain or dataset.


Enriching graphs with external knowledge

External knowledge bases can add facts and relationships that are absent from a document collection.

Wikidata

Wikidata can provide information about entities and their attributes. For example, enrichment may identify that:

  • Elon Musk is a founder of Tesla.

  • Tesla belongs to the car industry.

  • The Pentagon has a formal name and is located in Washington.

Such facts connect document mentions to broader information about the entities involved.

ConceptNet

ConceptNet can add general semantic relationships. Examples include identifying that:

  • A secret is a device.

  • San Francisco is located in California.

This can connect documents that mention related places or concepts even if the documents do not share the same terms directly.

Connecting documents through shared knowledge

Suppose one document mentions San Francisco and another mentions Los Angeles. Entity recognition alone may identify both as cities without creating a direct relationship between them. An external knowledge base can connect each city to California, creating a path between the documents through shared geographic knowledge.

This kind of enrichment makes the graph more connected and supports navigation, search, and discovery across documents.

Validating external results

External sources and recognition services can return irrelevant or ambiguous results. For example, a system may interpret “north” as a location and retrieve several possible matches, including one that is clearly inappropriate in context.

Results can be filtered using techniques such as:

  • String-similarity matching, which compares the text forms of candidate terms.

  • Contextual vector comparison, which evaluates whether a candidate fits the surrounding text.

  • Other validation methods suited to the source and task.

The broader principle is that importing an external result does not automatically make it correct. Enrichment results need to be checked for relevance and context.


Enriching graphs with image recognition

Documents may contain images as well as text. Image-recognition services can provide additional metadata, such as an image’s apparent objects, colors, or components. Labels such as “electrical device,” “black,” “mechanism,” or “machine” can be added to the graph.

These labels may create new access paths between images, concepts, and documents. They can support related-document searches, similarity analysis, and other user-facing applications.

However, image-recognition results can be incorrect. In one illustrative example, a smart speaker was classified as a soap dispenser. Such a result should not be added to a knowledge graph without validation. The quality of added metadata affects the quality of the graph and of every application built on it.


Document and paragraph similarity

Document vectors

Doc2Vec represents a document as a vector, allowing documents to be compared by their semantic similarity. A vector-based similarity measure can identify documents whose meanings are related, even when they do not use exactly the same words.

The resulting relationships can be stored directly in the graph. For example, a system may store the most similar documents or a selected set of the top related documents. Precomputing these links makes them available for graph traversal and recommendation without requiring every similarity calculation to be performed at query time.

Paragraph vectors

Paragraph-level vector techniques can be used when analysis needs to focus on smaller units than an entire document. This provides another level at which similarity or meaning can be assessed.

Applications

Document and paragraph representations can support:

  • Finding related documents.

  • Improving search and recommendation systems.

  • Connecting documents or concepts based on meaning.

  • Supplying reusable features for classification and other analysis.


Topic modeling and clustering

Topic modeling groups documents according to patterns in their content, often without requiring preassigned labels. It is an unsupervised approach: the system analyzes the text and clusters documents based on their similarities.

Topics and document-to-topic relationships can be represented in the graph. This creates new ways to retrieve and explore content, such as finding documents that belong to a particular subject cluster.

Topic-modeling results should be evaluated by people who understand the domain. Business users or subject-matter experts can determine which groupings and relationships are useful for the organization’s needs.


Sentiment analysis and performance

Sentiment analysis estimates the polarity or overall sentiment expressed in text. It can be used to assess opinions in documents and, when combined with a knowledge graph, to connect those opinions to entities such as people, organizations, or companies.

A graph can also support sentiment propagation: sentiment associated with one node may be examined in relation to connected people or companies. For example, financial news sentiment may be connected to companies and shareholders through ownership relationships.

The described approach used Doc2Vec-based techniques to build a sentiment model. A slower NLP system could be used to process a subset of examples, after which a faster model could be trained for repeated use. The presentation reported that sentiment processing with one Stanford-based setup could take approximately two seconds for a document and, for some larger documents, as long as twenty-two seconds. A trained model was reported to return results in about seven milliseconds while achieving approximately similar accuracy in the described use case.

These timings are examples from the system discussed, not universal benchmarks. They illustrate why processing speed, model choice, and the ability to compose different components matter when systems must handle large document volumes.


Graph-based access, search, and recommendations

Once entities, facts, and similarity relationships are stored in a graph, they can support many forms of access:

  • Semantic search: finding information based on meaning and relationships, not only exact text matches.

  • Related-document discovery: following stored similarity links to documents with similar meaning.

  • Recommendations: using graph connections to suggest relevant items.

  • Geographic search: finding documents associated with places near a selected location.

  • Visual exploration: allowing users to inspect connected data and discover relationships.

Storing useful relationships in advance can improve query performance. For example, precomputing links to the most related documents avoids recalculating similarities every time a user requests recommendations. The graph structure also makes it possible to traverse existing connections to retrieve relevant results.


Example: geographic document search

A document-processing system can identify geographic entities or coordinates in text and add them to a knowledge graph. If a place can be resolved through a geolocation service, its geographic data can be stored alongside the entity.

A user can then select a point on a map and retrieve documents mentioning locations within a chosen distance. This provides a straightforward way for business users or knowledge workers to find geographically relevant documents.

The search is enabled by combining several pieces:

  1. Geographic mentions are recognized in documents.

  2. The mentions are linked to geographic information.

  3. Geographic relationships are stored in the graph.

  4. A map selection supplies the location from which nearby results are retrieved.


Applications

Financial market analysis

Structured financial data, such as shareholder relationships, can be combined with sentiment analysis of financial news. The graph can link news sentiment to people and companies and examine how sentiment relates to ownership or other connections.

Significance-based document archiving

A document’s relationships and importance within a graph can help determine whether it should be archived. This uses the document’s connections and significance in the larger information network rather than relying only on the document in isolation.

Geographic search

Geographic entities and coordinates support searches for documents associated with a selected location or surrounding area.

Research and funding analysis

Research papers can be combined with structured government funding information. This can help users:

  • Find funding associated with a topic or keyword.

  • Identify whether work on a subject has already been funded.

  • Discover whether research on a subject has already been completed.

  • Compare an abstract with known research papers to identify related work.

These examples show why structured and unstructured information can be combined: each source contributes different details to the graph.


Deployment, scaling, and system design

The described platform was designed for on-premises deployment, keeping the organization’s data within its own environment rather than requiring it to be stored in the cloud.

The system was presented as an ecosystem of composable components. Different components can be combined to meet a specific information need, and connectors can be built to work with existing data sources. The same processing logic can be deployed in different application or scaling environments.

Processing time depends on document length, workload, and available infrastructure. The presentation gave an estimate of approximately one day to process one million long research-paper documents on one Neo4j node. It also suggested that a three-node cluster could process work approximately three times faster in the described setup. These are illustrative estimates rather than general performance guarantees.

The central design principle is that a system should use components appropriate to its actual needs. A fast-paced service, such as airline customer support, may not be able to tolerate a long processing delay for each document. In such cases, faster models or precomputed results may be necessary.


Designing around an information need

A knowledge graph is a means to solve a problem, not an end in itself. A successful application begins by identifying the information need:

  • What should users be able to find or understand?

  • Which entities and relationships matter to the task?

  • Which external sources can add relevant context?

  • What level of accuracy and speed is required?

  • Which results should be stored for fast access?

  • Which outputs will support a useful decision or action?

Business users and subject-matter experts are important throughout this process. They help determine whether the entities, topics, classifications, and relationships represented in the graph are meaningful for the domain.

A data-driven system primarily works with collected data. A knowledge-driven system also uses relationships, context, and meaning to make that data more useful. The goal is to turn information into knowledge at scale so people and applications can use it efficiently and reliably.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent