Knowledge Graph

From WFM Labs
The four rungs
1. Taxonomy
Names, synonyms and a hierarchy
2. Ontology
Kinds of thing and their relationships
3. Knowledge Graph
Recorded facts, each with a source
4. Guardrails for AI Agents
Checks on what an AI agent may do
Standards and software: Ontology Tools and Standards

A knowledge graph is a collection of facts stored as a network of things and the relationships between them, usually organized by an ontology that describes the kinds of thing and relationship involved. It is the third rung of a four-rung ladder: a taxonomy agrees the names, an ontology states what the named things are, a knowledge graph records what is true of particular things, and guardrails check proposals against it. In workforce management (WFM) the ontology says that a queue has a service-level target and that occupancy is a ratio with variants. The knowledge graph says that the billing queue's target is 80% in 20 seconds, that last week's occupancy on that queue was 84% under the with-hold variant, and which report each figure came from.

The term entered general use in 2012, when Google described a system holding more than 500 million objects and 3.5 billion facts about them under the phrase "things, not strings".[1] There is no single agreed definition. A 2021 survey of the field in ACM Computing Surveys discusses the roles of schema, identity and context in knowledge graphs.[2]

Ontology plus facts

A narrower working definition is sufficient for a planning function: a knowledge graph is an ontology plus facts.

Layer Says Example
Ontology (the schema) What can be said A queue has a service-level target. A measurement is of a measure variant, for a queue and a period.
Facts (the data) What is the case The billing queue has the target 80/20. Measurement 4471 is of occupancy with hold, for the billing queue, for the week of 2 March, with the value 0.84.

The division is the same one that separates The Definitions Register, which holds what a number means, from the reports that hold the numbers. A knowledge graph keeps both in one structure, so that a figure is never separated from the definition it was computed under.

Triples

The smallest unit of a knowledge graph is a single statement with three parts: a subject, a predicate (the property) and an object (the value). In the Resource Description Framework (RDF) this unit is called a triple, and a set of triples is an RDF graph.[3]

ex:BillingQueue   ex:hasTarget     ex:Target8020 .
ex:Measurement4471 ex:ofVariant    ex:OccupancyWithHold .
ex:Measurement4471 ex:forQueue     ex:BillingQueue .
ex:Measurement4471 ex:forPeriod    ex:Week2026-03-02 .
ex:Measurement4471 ex:value        0.84 .

Here ex: is a placeholder prefix and prefix declarations are omitted. Each line reads as a sentence. Because the object of one triple can be the subject of another, the statements join into a network: the measurement points to a queue, the queue to a target, the target to its threshold. Nothing in the format fixes the shape in advance, so a new kind of fact is added by writing new triples and not by altering a table.

Things are identified by web-style identifiers (IRIs), not by their labels. Two systems that both hold "Billing" as a queue name hold the same text; whether they hold the same queue is a separate question, answered by giving the queue one identifier or by stating that two identifiers refer to the same thing. Settling identity is a substantial part of the work in building a graph from existing systems.

RDF graphs and property graphs

Two families of graph are in common use, and the choice affects which tools and standards apply.[2]

RDF graph Property graph
Unit Triple: subject, predicate, object Nodes and relationships, each able to carry key–value properties
Identity Global identifiers (IRIs), designed to be shared between organizations Identifiers local to one database
Schema and meaning RDFS and OWL for meaning; SHACL for validation Labels and optional constraints defined by the database product
Query language SPARQL, a W3C Recommendation[4] Query languages defined mainly by database products
A fact about a fact Needs an extra construct (see below) Direct: a relationship carries its own properties
Typical strength Publishing and combining data across organizations against shared vocabularies Traversal and analytics inside one application

Neither is the better model in general. A vocabulary intended for a whole profession is published in RDF, because the standards for shared vocabularies (SKOS, RDFS, OWL, SHACL) are all defined over RDF. An operational application that needs fast traversal of schedules, skills and queues may reasonably keep its working data in a property graph or a relational database and map to the shared vocabulary at the boundary.

A knowledge graph also does not have to be stored in a graph database. For a planning function the facts may remain in a warehouse, with the ontology and a mapping layer describing them. What makes it a knowledge graph is that every figure can be reached as a statement about an identified thing under a stated definition.

Provenance on statements

A fact in a planning system is rarely just true. It is true according to a source, as of a time, under a definition. A knowledge graph that drops this context cannot distinguish a published forecast from a working draft, or a platform's occupancy from the function's own.

Wikidata is the best-known example of provenance built into the model. Each statement there can carry qualifiers, references and a rank, and where sources disagree the conflicting values are all recorded with their sources.[5] A WFM graph needs the same capability for the same reason. A partner's report and the internal ledger will sometimes give different values for one measure and period, and the graph should hold both with their origins and not silently keep one.

There are three ways to attach provenance in RDF.

Model the measurement as a thing
The examples above already do this. Measurement 4471 is a node, so the source, the extraction time and the definition used are ordinary properties of it. This is the simplest method and is sufficient for most reporting data.
Named graphs
Triples are grouped into a named set, and provenance is stated about the set: "everything in this graph was loaded from the Monday interval report". RDF 1.1 supports this through datasets.[3]
Statements about statements
RDF has a reification vocabulary for describing a statement, which takes four extra triples for each statement described.[6] RDF 1.2 adds triple terms, which let one triple be the object of another, so that a single fact can be annotated directly. RDF 1.2 was a Candidate Recommendation Draft in November 2026 and not yet a final Recommendation.[7]

The vocabulary for what to record is the W3C Provenance Ontology (PROV-O), a Recommendation since 30 April 2013. It has three core classes: an entity (a thing, such as a figure or a report), an activity (something that happened, such as an extraction or a forecast run) and an agent (a person, team or piece of software responsible). Its properties link them: an entity was generated by an activity, was derived from another entity, and was attributed to an agent.[8]

ex:Measurement4471
    prov:wasGeneratedBy  ex:IntervalExtract-2026-03-09 ;
    prov:wasDerivedFrom  ex:PlatformIntervalReport-W10 ;
    prov:wasAttributedTo ex:ReportingTeam .

Provenance in a graph is the machine-readable counterpart of the Data Lineage Card for Planning Models and the Source of Truth Register: the card and register state where a number should come from, and the provenance statements record where each instance did come from.

What a graph can and cannot answer

A query against a knowledge graph returns what the graph records. A query engine reports only whether a match was found; how to read a missing match is a decision for whoever uses the answer. Under the open-world reading on which RDF and OWL are built, the absence of a statement means the fact is unknown, not that it is false.[9] If a query asks whether an agent holds the billing skill and no such statement exists, the correct reading is "not recorded". Whether that may be treated as "no" depends on whether the graph is known to be complete for skills, which is a fact about the data feed and not about the agent.

This distinction governs how a graph is used to check the proposals of software agents, described in Guardrails for AI Agents. A check that finds a contradicting fact can refuse. A check that finds nothing can only report that it found nothing.

A graph is also only as current as its loads. Planning data changes within the day, and a statement loaded at 08:00 says nothing reliable about 14:00 unless it carries its time of validity. The quality gates that apply to any planning input, set out in Data Quality Gates for Planning Inputs, apply to a graph in the same way.

Maturity Model Position

The placement below is an interpretation of the model and is not taken from the model's own text. In the WFM Labs Maturity Model™, a function at Level 2 keeps its facts in reports and its definitions in a register, joined by people. A knowledge graph becomes worthwhile at Level 3, where automated processes need a figure together with its definition and source, and it is a working requirement at Levels 4 and 5, where software agents query the state of the operation and their answers must be traceable to a recorded fact.

See Also

References

  1. ↑ Singhal, A. (16 May 2012). "Introducing the Knowledge Graph: things, not strings". Google. https://blog.google/products/search/introducing-knowledge-graph-things-not/
  2. ↑ 2.0 2.1 Hogan, A., Blomqvist, E., Cochez, M., d'Amato, C., de Melo, G., Gutierrez, C., et al. (2021). "Knowledge Graphs". ACM Computing Surveys, 54(4), article 71. doi:10.1145/3447772. Preprint: https://arxiv.org/abs/2003.02320
  3. ↑ 3.0 3.1 Cyganiak, R., Wood, D. & Lanthaler, M. (eds.) (25 February 2014). RDF 1.1 Concepts and Abstract Syntax. W3C Recommendation. https://www.w3.org/TR/rdf11-concepts/
  4. ↑ Harris, S. & Seaborne, A. (eds.) (21 March 2013). SPARQL 1.1 Query Language. W3C Recommendation. https://www.w3.org/TR/sparql11-query/
  5. ↑ Wikidata. Help:Statements. https://www.wikidata.org/wiki/Help:Statements
  6. ↑ Brickley, D. & Guha, R. V. (eds.) (25 February 2014). RDF Schema 1.1. W3C Recommendation. https://www.w3.org/TR/rdf-schema/
  7. ↑ World Wide Web Consortium (16 November 2026). RDF 1.2 Concepts and Abstract Data Model. W3C Candidate Recommendation Draft. https://www.w3.org/TR/rdf12-concepts/
  8. ↑ Lebo, T., Sahoo, S. & McGuinness, D. (eds.) (30 April 2013). PROV-O: The PROV Ontology. W3C Recommendation. https://www.w3.org/TR/prov-o/
  9. ↑ Hitzler, P., Krötzsch, M., Parsia, B., Patel-Schneider, P. F. & Rudolph, S. (eds.) (11 December 2012). OWL 2 Web Ontology Language Primer (Second Edition). W3C Recommendation. https://www.w3.org/TR/owl2-primer/