Closed World Assumption

The closed world assumption (CWA) is the rule that a fact neither stated in nor derivable from a database is false, so a missing record counts as a no.

Status
Published, version 1.0.1
Last reviewed
21 Nov 2026, by Dr Darrin Baines
Report a problem
Tell us if something is wrong or out of date

Concept Architecture

Closed World Assumption in Databases and Semantic Web Data

Under the closed world assumption, a system that can neither find nor derive a fact answers as if the fact were false. It is the default reading of most databases and record systems, where a patient with no row in an adverse event table is taken to have had no adverse event. Health economists rely on it whenever they count events, costs or patients from a database, and the reading is safe only when the data are complete for the question asked. The Semantic Web standards take the opposite default, so moving data from a database into a graph changes what an absent fact means.

Origin of the term and who uses it

Raymond Reiter set out the closed world assumption under that name in a 1978 paper on question answering over data bases, contrasting it with an open world assumption. The OWL 2 Primer of the World Wide Web Consortium (W3C) uses the term for the way a database usually treats a missing fact as false, and Hogan and colleagues, in their survey of knowledge graphs, call it the assumption of many classical database systems, abbreviated CWA. Allemang, Hendler and Gandon, in chapter 1 of Semantic Web for the Working Ontologist, present it as the counterpart of the open world assumption and say it suits documents with a set format or records that follow a database schema. The wiki label matches this standard term.

How a closed world answers a query

In Reiter's account, an open world system answers a query only from proofs that use the data base as hypotheses. A closed world system also accepts answers that rest on a failure to find a proof, so when no proof of a positive ground fact exists, the negation of that fact is taken as true. The rule can be written as a set of added negative facts.

CWA(DB)=DB∪{¬P(a)∣DB⊬P(a)}\mathrm{CWA}(DB) = DB \cup \{ \neg P(a) \mid DB \nvdash P(a) \}

where DBDB is the set of stored facts and rules, P(a)P(a) is any positive ground fact (a predicate PP applied to named constants aa, with no variables), ⊬\nvdash means that the fact cannot be proved from DBDB, ¬\neg is negation, and CWA(DB)\mathrm{CWA}(DB) is the data base together with every negative fact the assumption adds. Reiter showed that these added facts can contradict a data base holding a disjunction, for instance a record that one of two patients had an event without saying which, but that a consistent Horn data base, in which every clause has at most one positive literal, stays consistent.

Closed world reasoning is non-monotonic. Hogan and colleagues note that under the closed world assumption a new edge may contradict something previously assumed false, whereas under the open world assumption a statement proven false stays false as data are added. The 2004 RDF Concepts recommendation calls the Resource Description Framework an open-world framework, and the 2004 RDF Semantics recommendation states that its strict monotonic discipline means RDF cannot express closed-world assumptions. RDF 1.1 Semantics, which replaced it in 2014, keeps the rule that every entailment regime extends simple entailment monotonically.

Closed and open readings of the same data

The two assumptions agree about stored facts and differ only on absence. The open world reading, which has its own page, belongs to RDF and the Web Ontology Language, and the closed one to most databases. The rows below, from one trial database, are illustrative.

Statement testedClosed world answerOpen world answer
Patient 017 had a hospital admission, and a row records itTrueTrue
Patient 042 had a hospital admission, and no row records oneFalseUnknown
Number of patients with no admissionA definite countNone without a completeness statement
A new row for patient 042 arrivesThe earlier answer is withdrawnThe answer moves from unknown to true

The cases Allemang and colleagues name have close parallels in health data. A trial database whose collection rules require every event of a given kind to be recorded is meant to be complete for it, so reading the absence of an adverse event record as no event is defensible there for patients still under follow-up. Statements merged from several sources, such as a knowledge graph built from registries and publications, carry no such promise, and absence there shows only that nothing was recorded. Hogan and colleagues describe a middle course, the local closed world assumption, in which chosen parts of a graph are treated as complete. A modelling team's own register of model inputs is an illustrative case.

Closing part of the world with Semantic Web standards

The Semantic Web standards keep an open default but provide ways to close part of the world when appropriate, as Allemang and colleagues also note. In OWL, an enumerated class lists its members, and the OWL 2 Primer explains that this makes them the only members, so such classes are sometimes called closed classes. Negative property assertions record something known to be false, which the Primer says matters in OWL because the default stance is that anything is possible until stated otherwise.

SPARQL closes the world for the length of a query. Its NOT EXISTS filter tests whether a pattern fails to match the data, and the SPARQL 1.1 recommendation notes that testing for an unbound variable after an optional pattern is called negation as failure in logic programming. The answer describes only the dataset queried.

The Shapes Constraint Language (SHACL) validates the data graph that is present. A minimum count condition gives a validation result whenever the graph holds fewer values than the minimum, so a missing value is reported instead of being left open. A SHACL closed shape shares only the word, since it reports properties the shape does not list.

Closed world checks in the Health Economics Ontology family

The ontologies published by HealthEconomics.wiki pair ontology files in OWL and Turtle, read under the open world assumption, with closed world checks in SHACL. The Health Economics Ontology (HEO), at healtheconomics.wiki/ontologies/heo, ships a shapes file requiring every concept to have a preferred label and a scheme, and every live concept a definition. The companion Outcomes Health Economics Ontology (OHEO), version 0.3.0, holds reference case rules for several HTA bodies and expert panels. One rule reports an analysis that claims a reference case expressing health effects in QALYs but holds no QALY record, using a SPARQL NOT EXISTS test inside a SHACL shape.

The rules file records why. In OHEO 0.1.0 the requirements were OWL classes with existential restrictions, which no reasoner can use to reject an analysis. Under the open world reading, an unstated QALY record may still exist.

Worked example with an adverse event table

The numbers are illustrative. A cost-effectiveness model needs the proportion of patients with grade 3 or worse neutropenia, and its cost, in one arm of a trial with 200 patients. The adverse event table holds 18 such events, each in a different patient, and each event is costed at GBP 1,200.

Step 1. Closed world reading. Patients with no row, including any not followed up, are taken to have had no event. The proportion is 18 / 200 = 0.09, or 9%. The event cost is 18 × 1,200 = GBP 21,600, and per patient 21,600 / 200 = GBP 108.

Step 2. The table was merged from two sources. Suppose it combines a published report and a registry extract, and 30 patients have no follow-up data in either, so under an open world reading their status is unknown. Their missing rows reflect missing follow-up, people not observed for the whole period, which is a different matter from incomplete recording of events in people who were observed. Among the 200 − 30 = 170 patients with data, the proportion is 18 / 170 = 0.106, about 10.6%. This complete case figure is a statistical treatment of the missing data that assumes the 30 resemble the patients with data, and van Buuren notes that complete case analysis gives unbiased estimates when data are missing completely at random (MCAR) and can be badly biased otherwise. Under the broader missing at random (MAR) assumption, the chance of missing follow-up may differ between groups defined by recorded data, such as baseline risk, but is the same within each group, and modern missing data methods generally start from that assumption.

Step 3. Bounds. Keeping the assumption that events were fully recorded for the 170 patients observed, if none of the 30 had an event, the proportion stays at 9% and the cost at GBP 108 per patient. If all 30 had one, the proportion is 48 / 200 = 0.24, or 24%. The event cost is then 48 × 1,200 = GBP 57,600, and per patient 57,600 / 200 = GBP 288.

Step 4. Interpretation. The closed world figure of 9% is the lowest value consistent with the data and is correct only if events were fully recorded and the 30 patients had no event. The example separates three different things, the assumption that events were completely recorded in the 170 patients observed, the assumption made about the 30 patients not observed for the whole period, and the statistical treatment of their missing data, such as complete case analysis under MCAR or methods that start from MAR. The closed world assumption speaks only to the first, and only how the data were collected can justify it. A database or graph can record follow-up dates and why data are missing, but the analyst must establish which of these assumptions hold.

Misreadings when counting from records

A count of zero from a database means zero recorded, and it means zero events only when collection was designed to catch them and the patients were followed for the period counted. Whether a source is complete for a model input is a data quality question that the software cannot settle.

Closed world conclusions can be withdrawn when data arrive, so results from a live database should carry the extract date. Loading an extract into an RDF store drops the closed world reading unless shapes or queries restate it. Hogan and colleagues treat the unique name assumption as a separate choice, covered on the Nonunique Naming Assumption page, and OWL adopts neither the unique name assumption nor the closed world assumption, so a graph can hold two names for one patient as well as leave facts open.

Sources

Frequently Asked Questions (6)

  • What is Closed World Assumption?

    The closed world assumption (CWA) is the rule that a fact neither stated in nor derivable from a database is false, so a missing record counts as a no.

    Source: Reiter 1978

  • Who introduced the Closed World Assumption?

    Raymond Reiter set out the closed world assumption under that name in his paper On closed world data bases, presented at a workshop in Toulouse in 1977 and published in 1978. He contrasted it with an open world assumption, in which the only answers to a query are those proved from the data base. Under his closed world assumption, when no proof of a positive ground fact exists, the negation of that fact is taken as true. Reiter stressed that this implicit treatment of negative facts presumes total knowledge of the domain, and he judged it warranted in most applications.

    Source: Reiter 1978

  • How does the Closed World Assumption differ from the open world assumption used in OWL?

    The closed world assumption and the open world assumption agree about facts that are stated and differ only on facts that are absent. The OWL 2 Primer explains that a fact missing from a database is usually considered false, which is the closed world assumption, whereas a fact missing from an OWL 2 document may simply be missing and possibly true. For this reason the Primer says OWL 2 is not a database framework, even though both store information. A query about an unrecorded hospital admission therefore returns false from a typical database and unknown from an OWL reasoner.

    Source: Hitzler et al. 2012

  • Why is reasoning under the Closed World Assumption described as non-monotonic?

    Under the closed world assumption, adding data can remove a conclusion drawn earlier. Hogan and colleagues, in their survey of knowledge graphs, explain that under the closed world assumption a new edge may contradict something previously assumed false through missing information. Under the open world assumption, by contrast, a statement proven false continues to be false as more edges are added. For a health economic analysis, a count taken from a live database can change when late records arrive, so results drawn under the closed world reading should carry the date of the extract.

    Source: Hogan et al. 2021

  • How does SHACL validation apply the Closed World Assumption to RDF data?

    The Shapes Constraint Language (SHACL) checks the data graph that is actually present, so it can report what is missing in a way that OWL reasoning does not. Under its minimum count condition, a validation result is produced whenever a focus node has fewer values for a property than the stated minimum. A missing value is therefore reported as a problem instead of being left open as possibly true elsewhere. The SHACL closed shape is a different feature that shares only the word, since it reports properties that a shape does not list.

    Source: Knublauch and Kontokostas 2017

  • When is it safe to apply the Closed World Assumption to adverse event data in a health economic model?

    Reading a missing adverse event record as no event is defensible when the source was designed to record every event of the kind counted, as in a trial database with that collection rule, for patients still under follow-up. Allemang and colleagues say the closed reading suits documents with a set format and records that follow a database schema. The closed world assumption covers only completeness of recording, while missing follow-up and the statistical treatment of missing data are separate questions. Statements merged from registries and publications carry no promise of completeness, so a missing record shows only that nothing was recorded. The closed world proportion of patients with an event is then only the lowest value consistent with the data.

    Source: Allemang et al. 2020

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 21 Nov 2026

Content version: 1.0.1

Canonical Identity

Term code
HS-HP-DH-131

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This article is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/concept/closed-world-assumption