Skip to content

Pillar 3 — Materialization (OWL 2 RL)

pgrdf.materialize(graph_id BIGINT) → JSONB runs OWL 2 RL forward-chaining inference (via the reasonable reasoner) over the named graph, and writes every entailed triple back to the same graph with is_inferred = TRUE.

The call is idempotent: re-running drops previously inferred rows first and replaces them. The base graph is never touched.

Topics in this pillar

At a glance

sql
SELECT pgrdf.materialize(100);
--  → {"base_triples": 3, "inferred_triples_written": 11, ...}

Next — Mental model →

Apache-2.0 licensed. Documentation for pgRDF — built with VitePress, served via GitHub Pages.