Purpose
When explicit structure earns its cost
A knowledge graph represents selected entities and typed relationships as data that programs can inspect and query. It earns this extra structure when an application repeatedly needs the same identity-aware joins, relationship constraints, or multi-step connections. A support system, for example, may need to connect a ticket to the affected component, the component to an exact deployed artifact, and that artifact to its dependencies. Search can locate passages mentioning those objects; a graph can make the chosen identities and connections reusable across many questions.
Documents remain the natural authority when wording, surrounding argument, or newly encountered concepts matter most. Relational tables remain strong when the domain already has stable records, keys, constraints, and known joins; recursive SQL can even implement graph-shaped traversal. Search indexes are useful when candidate ranking matters more than exhaustive structural matching. A graph database is therefore a storage and query choice, not a prerequisite for connected data and not a replacement for source documents.
Match the representation to the task
| Task property | Usually useful starting point | Why |
|---|---|---|
| Exact source wording and narrative context | Documents plus search | The document remains the object being interpreted. |
| Stable records, constraints, and known joins | Relational data | Keys and declarative joins already express the contract. |
| Repeated traversal through named relationships | Graph or relational graph model | Identity and path structure become reusable query inputs. |
| Ranked discovery over changing text | Lexical or vector search | Ranking semantics matter more than exact pattern matching. |
| Source-faithful evidence plus repeated relationship questions | Hybrid document–graph system | Documents preserve evidence; the graph indexes curated identities and relations. |
| New concepts arrive faster than curation | Documents and search; add structure selectively | A rapidly changing graph can cost more to maintain than its relationships are reused. |
| Qualified claims and provenance are essential | Explicit claim tables, a deliberately modeled graph, or a hybrid | Preserve participants, occurrence context and source lineage in the chosen model. |
| No owner for identity and schema decisions | Prefer existing contracts and keep graph scope narrow | Unmaintained structure loses its apparent precision over time. |
The strongest adoption evidence compares the graph with the credible simpler alternative on the same tasks. One LinkedIn customer-service study reported higher retrieval rank for its graph-based system than its text-retrieval comparison, while a separate production comparison found shorter median resolution time for the complete tool than manual work. Those results concern a particular ticket structure, system, and workflow; they neither isolate graph structure as the sole cause nor establish a universal advantage.
Representation
Entities, relations, and graph instances
An entity is a distinguishable thing in the modeled domain: a person, organization, software component, document, event, or concept. An attribute is a value describing an entity or relationship. A relation is a typed claim connecting participants, such as component depends on package. Direction matters: A depends on B does not mean B depends on A. Stable identifiers let several records refer to the same chosen entity even when their display names change. Minsky’s frames (June 1974 memo) represented familiar situations through slots, conditions and revisable defaults. Those defaults were expectations, not verified assertions.
The Resource Description Framework (RDF) represents a statement as a subject–predicate–object triple. A subject may be an Internationalized Resource Identifier (IRI) or a blank node; a predicate is an IRI; and an object may be an IRI, a blank node, or a literal value. Reusing an IRI connects statements into a graph. A property graph instead uses nodes, typed directed edges, labels, and properties on nodes or edges. These models can express similar domain claims, but their structural units and ways of attaching metadata differ.
Suppose a source states that package web-framework@4.2 depends on common-util@2.1. RDF can encode two resources connected by a dependsOn predicate and attach version values in additional triples. A property graph can use two Package nodes and a DEPENDS_ON edge. In either form, the graph records an assertion made under a modeling contract. It does not prove that the dependency inventory is complete, current, or correct.
Schemas constrain; ontologies interpret
A graph schema specifies the structures an implementation accepts or describes: node or entity types, relationship types, property datatypes, permitted endpoint directions, keys, and sometimes cardinalities. Angles and colleagues’ PG-Schema (2023) distinguishes prescriptive schemas, which constrain modifications, from descriptive schemas, which report existing structure, and partial schemas, which enforce only stable portions. A schema can therefore be both a contract and a discovery surface, but those are different operating modes.
An ontology gives domain categories and relationships explicit meaning and may include axioms from which a reasoner derives further statements. In Web Ontology Language (OWL) semantics, declaring teaches to have domain Teacher means that observing Bob teaches Scooter entails that Bob is a Teacher. This is not a database constraint that rejects an untyped Bob; it is a rule for deriving a type. Likewise, a declared transitive relation supports composition only when that relation's domain meaning truly is transitive.
The Shapes Constraint Language (SHACL) checks selected RDF nodes against declared constraints, reporting missing values or wrong datatypes without modifying the graph. Conformance and entailment do not verify identities or premises.
OWL also commonly uses an open-world assumption: failure to find a statement does not entail its negation. If the graph lacks a birth date, the date is unknown to that graph—not necessarily nonexistent. An application shape can nevertheless require that date: requirements and entailments answer different questions. In the application example, a shape explicitly targets Bob and requires a staffIdentifier value; it need not wait for class inference to choose that focus node.
One assertion, two independent questions
Bob teaches ScooterNo staffIdentifier value is recorded for Bob.Validation branch
Application constraint
:StaffShape a sh:NodeShape ; sh:targetNode :Bob ; sh:property [ sh:path :staffIdentifier ; sh:minCount 1 ] .
Explicit focus node Bob + asserted data → SHACL validation
Entailment branch
Domain axiom
:teaches rdfs:domain :Teacher .
Teaching assertion + domain axiom → reasoning
Bob rdf:type TeacherMust-know turning points
Knowledge graphs combine traditions that developed in parallel: conceptual representation, logical data independence, reusable domain knowledge, interoperable descriptions and construction from imperfect sources.
Traditions combined in knowledge graphs
1967Quillian’s semantic networkOrganized conceptual associations for programmatic search and comparison.
Contributors: Quillian
What changed: The paper Word Concepts described a running program that searched dictionary-derived networks to compare meanings and express conclusions.
June 1970Codd’s relational modelSeparated logical relations from physical organization and access paths.
Contributors: E. F. Codd
What changed: A Relational Model of Data for Large Shared Data Banks established a continuing alternative for explicit relationships, declarative operations, and consistency—not a lineage displaced by graphs.
1977 implementationKL-ONEGave concepts, roles, inheritance, and instantiation more precise semantics.
Contributors: Brachman and Schmolze, authors of the 1985 overview
What changed: The retrospective reports the first implementation in 1977. It distinguishes describing a category from asserting that a particular individual exists.
March 15, 1985 paperCycProposed reusable commonsense knowledge to address brittle AI systems.
Contributors: Douglas Lenat, Mayank Prakash, and Mary Shepherd
What changed: The paper argued that scaling learning, programming, and language understanding required substantial real-world knowledge, while identifying knowledge acquisition as a major burden.
1985 project startWordNetMade lexical concepts and typed semantic relationships directly addressable.
Contributors: Princeton; report authors Miller, Beckwith, Fellbaum, Gross, and Miller
What changed: Synonym sets represent concepts rather than alphabetical entries. The supplied report describes the 1990 system and was revised in August 1993; 1985 identifies the project start.
February 22, 1999 RecommendationRDFProvided a domain-neutral model for exchanging machine-processable descriptions.
Contributors: W3C
What changed: The Recommendation distinguished its data model from XML interchange syntax. Domain meaning was supplied through schemas, supporting exchange between independently developed applications.
July 27, 2006 noteLinked DataConnect publishers through identifiers, HTTP lookup and cross-dataset links.
Contributors: Tim Berners-Lee
What changed: The personal Design Issues note described an explorable Web of data, not a W3C Recommendation. The supplied version records a later June 2009 revision.
2007 paperDBpediaExtract structured Wikipedia content into connected RDF descriptions.
Contributors: DBpedia research team
What changed: The paper mapped infoboxes and other structures into queryable data while noting contradictory sources and extraction errors. An article link alone did not express a specific domain relation.
2008 paperFreebasePresented a collaboratively maintained, application-facing knowledge commons.
Contributors: Bollacker, Evans, Paritosh, Sturge, and Taylor
What changed: The SIGMOD paper described a general-knowledge tuple database with public read/write access through an HTTP graph-query API.
2014 paperKnowledge VaultCombined noisy extraction channels with repository priors through probabilistic fusion.
Contributors: Dong and colleagues
What changed: Presented at KDD, the system assigned probabilities to candidate facts instead of treating automatically extracted triples as accepted truth.
Wider exchange increases the opportunity for reuse while exposing contradictions, extraction errors and uncertain identity. Common identifiers and a shared data model do not resolve those construction problems.
The traditions remain complementary. Formal semantics can clarify a modeling contract; extraction can propose broader coverage; probabilistic scores can guide review. Each still requires an explicit acceptance and maintenance policy.
Identity and claims
Identity decisions shape every neighborhood
Entity resolution decides whether records or mentions denote the same entity. A scalable pipeline usually first generates plausible candidate pairs, then evaluates evidence such as identifiers, normalized attributes, context, and disagreement. Probabilistic record linkage compares how likely observed agreements are among true matches versus nonmatches; agreement on a rare value is generally stronger evidence than agreement on a common one. The result may be a link, a non-link, or an unresolved case requiring more evidence.
Candidate generation must be evaluated separately from match classification. If blocking excludes a true pair, no later matcher can recover it. Let the eligible pair universe be , true matching pairs be , and generated candidates be . Candidate recall is ; its denominator includes true pairs outside the candidate set. Measuring only scored candidates hides precisely those misses.
A false merge combines neighborhoods that belong to different entities, contaminating traversals and inherited attributes. A false split leaves one entity represented by several nodes and hides connections. Final clusters can imply record pairs that were never directly scored, so cluster evaluation must inspect all within-cluster pairs rather than only accepted comparison edges. Pairwise quality and exact recovery of complete entities answer different questions.
Identity grouping changes the query neighborhood
Query seed: r1. Collect product claims from all source records in r1’s canonical identity group. Outlined groups represent identity decisions; each record’s product claim stays attached to that record.
Correct identity
r1 reports product → Bearings
r2 reports product → Seals
r3 reports product → Valves
Reachable from r1Bearings, Seals
False merge
r1 reports product → Bearings
r2 reports product → Seals
r3 reports product → Valves
Reachable from r1Bearings, Seals, Valves
False split
r1 reports product → Bearings
r2 reports product → Seals
r3 reports product → Valves
Reachable from r1Bearings
Repair must be reversible. Wikidata's documented unmerge procedure restores both pre-merge items and warns that downstream references may also require correction. Preserve source records, match evidence, the chosen canonical identity, and unresolved alternatives instead of destructively replacing them with one display name. For the broader distinction between content similarity and identity, see Duplicates depend on identity.
Relationships need their context
A binary edge is sufficient when a relation truly has two participants and no consequential occurrence-specific details. Direction, inverse meaning, and symmetry must still be explicit. Package A depends on Package B is directional; Person A collaborates with Person B may be modeled symmetrically; Person A manages Team B may have a separately named inverse. These choices determine which paths queries can follow.
When dates, roles, quantities, product scope, jurisdiction, source, or confidence belong to a particular occurrence, the relationship needs an attachment point. The W3C's n-ary relation pattern represents the relationship as its own instance connected to participants and qualifiers. Two supply arrangements between the same companies can then retain different products, dates, and sources instead of collapsing into one undifferentiated supplies edge.
Shared participants, separate qualifier bundles
Possible lossy projection: S supplies C. A chosen mapping could produce this binary statement; the relation-instance pattern does not automatically entail it.
RDF reification can describe a realization of a triple through subject, predicate, and object fields. Importantly, reifying a triple does not assert the triple, and asserting the triple does not create its reification. Property graphs can attach properties to an edge, while an event or relation node can work in either broader modeling style. These alternatives differ in query shape, identity, and portability; none automatically supplies trustworthy provenance.
Extraction must also preserve linguistic qualifications. Negation, possibility, attribution, and quantities can change the meaning of an otherwise identical subject–relation–object triple. MinIE's published examples show affirmative, negative, and uncertain sentences yielding the same underlying relation with different annotations. Dropping those annotations turns distinct claims into false agreement.
Construction
Extraction proposes; acceptance publishes
Graph construction begins with source acquisition and representation. Structured records often already expose fields and keys that can be mapped into nodes and relations. Unstructured documents require mention detection, entity linking, relation extraction, and preservation of document structure. A useful document-derived graph keeps lexical objects—documents, sections, chunks, and mention locations—separate from domain entities so an extracted assertion can still be traced to its source context.
A domain schema reduces uncontrolled variation. Instead of asking a model for arbitrary triples, an extractor can be asked for known entity types, relation types, units, and fields. A recipe extractor, for example, can distinguish recipes, ingredients, quantities, steps, and techniques. Structured output makes proposed records more consistent and queryable, but even a strong prompt can misidentify an entity, normalize a unit incorrectly, or invent a relation.
Treat extraction as proposal generation. Normalize identifiers and values under explicit rules; validate; resolve or defer ambiguous identities; and apply task-specific review before publication. Preserve rejected and unresolved proposals when they are useful for diagnosing systematic errors. General questions about whether a source is fit and permitted belong to Origins, times and permitted use; this pipeline owns the graph-specific decision about what becomes an assertion.
Acceptance is a separate transition
Illustrative pseudocode
Python-like pseudocodeEvery assertion needs a paper trail
Provenance records an asserted production history. The W3C PROV model distinguishes entities, activities, and responsible agents. A source revision is an entity; an extraction or review is an activity that uses inputs and generates outputs; software, a person, or an organization may bear responsibility. Derivation links a published assertion to the source and intermediate representations that affected it.
For a consequential assertion, retain the source identifier and immutable revision or content hash, source passage when available, acquisition time, transformation and software version, reviewer or responsible process, assertion status, and business-effective time when the domain uses one. Keep source time, retrieval time, generation time, and effective time distinct: generating a fresh summary from an old source does not make the underlying claim current.
Documents, sections and exact passages form a lexical structure; extraction and review activities form a production history. These support the domain assertions without being the same graph. Derived facts must remain connected to verbatim or otherwise faithful inputs. When two entities merge, the merged identity must preserve both source sets. When later evidence contradicts a relationship, invalidating the old assertion while recording the new evidence preserves why the visible state changed. A provenance graph walk makes inspection possible after lexical, vector, or relational retrieval, but inspectability still does not prove truth.
Provenance also does not confer permission. Derived summaries and graph artifacts can contain information from several restricted sources, so authorization must follow the contributing information into retrieval and generation. Broader responsibilities for lineage and authority are developed in Preserve origins and dependencies.
Query and evidence
Patterns bind; traversals expand
A graph query usually starts with a pattern. Variables bind to nodes, relationships, or values that satisfy specified labels, directions, types, and property predicates. This resembles a relational join: shared variables connect compatible bindings. The visual graph is not the query result; the result is a collection of variable bindings whose multiplicity depends on the query's semantics.
SPARQL evaluates graph patterns as multisets of solution mappings. Projection can hide variables without removing duplicates; DISTINCT explicitly deduplicates. OPTIONAL retains the left-side match if its optional pattern fails. In the comparison, moving the price filter outside removes B because 30 is not below 20, and C because comparing an unbound value produces an error.
A filter changes which partial matches survive
FILTER inside OPTIONAL
PREFIX ex: <https://example.invalid/>
SELECT ?item ?p WHERE {
?item a ex:Item .
OPTIONAL {
?item ex:price ?p .
FILTER (?p < 20)
}
}
ORDER BY ?item| ?item | ?p |
|---|---|
| A | 10 |
| B | unbound |
| C | unbound |
FILTER outside OPTIONAL
PREFIX ex: <https://example.invalid/>
SELECT ?item ?p WHERE {
?item a ex:Item .
OPTIONAL { ?item ex:price ?p . }
FILTER (?p < 20)
}
ORDER BY ?item| ?item | ?p |
|---|---|
| A | 10 |
Property-graph languages such as Cypher express similar ideas through node–relationship patterns and traversal. A selective indexed predicate can reduce starting rows before expansion. Variable-length expansion then follows eligible relationships, while later joins or Cartesian products can multiply intermediate bindings. The final answer may be small even when the plan explored many rows. Use plan estimates for hypotheses and measured operator rows for diagnosis.
Traversal requires an explicit boundary: allowed relationship types and directions, minimum and maximum hops, cycle policy, permitted endpoints, and termination conditions. Breadth-first and depth-first strategies explore in different orders; an end node and a terminator node have different effects. A depth-limited result is evidence about that bounded search, not proof of unrestricted reachability.
A connected path is not proof
A multi-hop result composes several assertions. Every edge brings its own identity decision, source, effective time, review status, and authorization conditions. If service uses artifact and artifact contains package are both current and correctly resolved, the path supports investigating the package's relationship to the service. It does not by itself establish that a reported vulnerability is exploitable; that requires a separate product-context assessment.
Navigation and logical inference must not be confused. Any two edges can form a navigable path. They license a derived relation only when a declared rule and the domain semantics justify composition. ancestorOf may be transitive; knows generally is not. OWL entailment follows supplied axioms, so an invalid premise or inappropriate axiom can still produce a formally valid but factually wrong consequence.
Edge confidence scores do not combine automatically. The probability that every premise is correct depends on conditional relationships among errors. Multiplying individual scores assumes an independence structure that copied sources, shared extractors, or one mistaken entity merge usually violate. Multiple paths may be correlated, contradictory, or different derivations of the same claim. Preserve the supporting subgraph and its alternatives instead of returning only a terminal entity or a single unsupported confidence number.
Graph context can nevertheless improve diagnosis. If an answer is wrong, the selected subgraph gives developers a concrete object to inspect for bad extraction, duplicate entities, stale edges, or overbroad traversal. That is explainability of the retrieval basis, not proof that the model's answer follows from it.
Graphs complement search and generation
Search and graph querying answer different kinds of question. Search ranks candidate documents, chunks, or entities under lexical or learned relevance signals. A graph pattern returns structured matches under explicit identity and relationship constraints. A hybrid system can use full-text or vector search to find seed nodes, expand through selected relationships, and rank the expanded candidates. The graph does not replace the search index; it provides another retrieval surface.
Graph-assisted retrieval is useful when a relevant fact is connected to a semantic match but is not independently similar to the question. In a news graph, for example, vector-matched paragraph nodes can lead to their articles, then through shared topics or organizations to other articles. Expansion must still be bounded and evaluated: every neighbor is reachable, not necessarily relevant. General index construction, ranking, freshness, and retrieval evaluation belong in Search and Retrieval.
GraphRAG names a family of retrieval-augmented generation systems that use graph-derived artifacts or traversal as part of context selection. Darren Edge and colleagues’ From Local to Global: A GraphRAG Approach to Query-Focused Summarization, first submitted on April 24, 2024, presents Microsoft’s approach. It extracts entities and relationships, creates hierarchical communities and summaries, and uses community reports for corpus-wide questions. Other systems begin with vector seeds and local neighbor expansion. These mechanisms answer different query classes and impose different indexing, provenance, and authorization burdens.
Before generation, authorize the selected derived artifacts, retain their source lineage, and serialize a bounded evidence package. Generated answers then have their own grounding, citation, and abstention obligations, covered in Retrieval-Augmented Generation. Graph construction, retrieval, context serialization, and answer generation are separate stages; success at one does not validate the others.
Lifecycle and decision
Corrections must propagate without erasing history
Graph maintenance starts by naming the change. A new source, corrected assertion, entity merge, entity split, expired relation, schema revision, and permission withdrawal affect different objects. Re-running extraction without classifying the event can duplicate assertions, preserve obsolete summaries, or destroy the history needed to explain a correction.
A bitemporal model separates valid time, when a fact applies in the modeled world, from system time, when a version became known to the database. A correction learned today can revise what was believed to apply last month while preserving the earlier database snapshot. Evaluations and historical queries must choose both cutoffs consistently; querying past valid time with current system knowledge can leak later corrections. The fictional supply arrangement was first recorded on February 1 as applying from January 1. An April 1 correction changes its valid start to March 1; both stored versions remain available.
Ask both when it applies and when it was known
Start dates are inclusive; end dates are exclusive. Both valid-time intervals extend beyond the plot. The corrected system-time interval also continues indefinitely.
| Stored version | Valid interval | System interval |
|---|---|---|
| Initial | [2026-01-01, ∞) | [2026-02-01, 2026-04-01) |
| Corrected | [2026-03-01, ∞) | [2026-04-01, ∞) |
| Valid-time target | System cutoff | Result |
|---|---|---|
| 2026-01-15 | 2026-02-15 | Initial |
| 2026-01-15 | 2026-04-15 | No assertion in this snapshot |
| 2026-03-15 | 2026-04-15 | Corrected |
Retraction is not always deletion. If one source contribution is removed, an assertion may remain supported by another contribution or derivation. Incremental maintenance therefore tracks support separately from the visible assertion set. For derived facts, deletion must distinguish unsupported results from results with another proof. Cycles and equality make this harder, which is why source contribution counts should not be confused with logical derivation counts or confidence.
Derived artifacts require their own maintenance. Zep's documented behavior, for example, can preserve shared nodes and edges after one episode is deleted, while names or summaries may retain information from that episode. GraphRAG community reports similarly contain generated material derived from multiple sources. Updating the canonical edge is therefore not completion: affected indexes, embeddings, reports, caches, authorization metadata, and downstream consumers must be invalidated, regenerated, denied, or explicitly reconciled.
A change event shows that an update was published, not that every downstream consumer applied it. Verify the state exposed by each affected consumer after its documented synchronization mechanism runs; missing or unreadable source data should remain an error rather than being treated as proof of deletion. The broader change taxonomy appears in Maintain fitness through change, while deletion propagation is developed in Propagate correction and deletion.
Test each layer, then choose the representation
A knowledge graph has no single quality score. Schema conformance, referential integrity, entity resolution, extraction accuracy, provenance coverage, freshness, query correctness, authorization, and downstream usefulness are separate claims requiring distinct oracles. Pairwise resolution metrics cannot validate final clusters; a correct query result cannot show that its premises are current or permitted.
Claims require different checks
| Claim | Useful check | What remains open |
|---|---|---|
| Instance follows structural contract | Schema or shape validation | Identity, truth, completeness, and usefulness |
| Records were resolved correctly | Labeled pair and final-cluster evaluation | Unlabeled population and downstream impact |
| Assertion is inspectable | Source and derivation trace audit | Source truth, authority, and permission |
| Query implements its contract | Fixture results plus plan inspection | Premise quality and production task value |
| Retrieved context supports the response | Claim-to-context assessment | Real-world correctness and source eligibility |
| Graph improves the workflow | Task-matched baseline comparison | Transfer, recurring cost, and future drift |
Evaluation units must stay visible. Retrieval precision and recall require a declared item type and relevance set; chunk numerators cannot be mixed with document denominators. Entity blocking needs truth labels outside the candidate set. Query performance requires intermediate rows and storage work, not only final result count. Downstream comparisons should hold the task population, consumer, permissions, and relevant system settings stable. Choose checks that match the requirement develops this oracle discipline.
Include maintenance in the comparison: identify who will review identity, evolve the schema, preserve provenance and propagate corrections. A representation that cannot be maintained under the real workload is not a successful implementation.
Choose the smallest representation that preserves the task's consequential distinctions. A graph is a strong candidate when stable identities, repeated relationship joins, semantic constraints, inspectable connected evidence, or localized corrections materially improve outcomes. Documents are stronger when exact wording and rapid ingestion dominate. Relational systems remain appropriate when known records and joins already express the domain. Many AI systems should be hybrid: documents remain canonical evidence, while a deliberately scoped graph indexes identities and relationships that have demonstrated reuse.
The final architecture must name owners for schema evolution, identity review, provenance, corrections, authorization, and consumer notification. If no one can maintain those contracts, the graph's apparent precision will decay into stale structure. If those contracts support demonstrably better tasks, however, the graph becomes more than a drawing: it becomes a maintained interface through which programs can inspect and use connected claims.
Open questions
How can teams estimate the recurring cost of identity review, ontology evolution, provenance retention, and correction propagation before adopting a graph? Existing sources document particular workloads, not a portable total-cost model.
How should permission withdrawal propagate through assertions, embeddings, community summaries, caches, and generated outputs with end-to-end completion evidence? Component mechanisms exist, but no implementation-independent protocol guarantees complete withdrawal.
How large is the downstream effect of false merges and false splits under realistic graph workloads? Current evidence explains mechanisms, denominators, and repair procedures, but not a representative propagation magnitude.
Can graph, relational, document, lexical, vector, and hybrid systems be compared on the same evolving tasks while holding semantic enrichment, consumer behavior, review labor, and authorization constant? Such a study would make architectural decisions substantially less anecdotal.
How should uncertainty propagate through dependent assertions and alternative derivations without treating extractor scores as calibrated probabilities or independent evidence? Progress would require explicit dependency models, calibrated inputs, and evaluation against conclusions rather than isolated edges.


















































