Skip to content

v0.9.4

Latest

Choose a tag to compare

@benoitcayladbx benoitcayladbx released this 01 Dec 10:51
03c8085

OntoBricks — Release Notes V0.9.4

Release window: November 2026

Type: Patch release (v0.9.3 → v0.9.4)

Test status: uv run --frozen pytest -q -m "not scenario": 9797 passed, 337 skipped, 8 deselected.

This release is a patch on v0.9.3. It makes business-rule and OWL-axiom
reasoning actually reach the graph (axiom-driven transitivity and inverse
expansion, literal-object rule outputs, aggregate result classes), stops
Materialise from double-writing on Lakehouse, protects the app from the
cohort designer's full-graph previews, and makes Graph Chat respect its Depth
setting. No registry schema migration and no breaking MCP tool names.


Highlights

  • OWL axioms drive scalable graph reasoning — a self owl:propertyChainAxiom
    (p ∘ p ⊑ p) marks p transitive and runs the SQL transitive closure;
    owl:inverseOf expands to the missing reverse triples (provenance
    graph:inverse). The legacy property-characteristics panel (dead routes) is no
    longer the only source. (#237)
  • Rule triples with literal objects are materialised — SWRL, Decision Table
    and Aggregate outputs such as greatWine "true" were silently dropped by an
    all-URI filter; they now land in …_inferred and the graph.
    (#236)
  • Aggregate rules materialise their result class — a Result entity now
    types the matching group members. A rule without group-by / aggregate property
    cannot classify and is rejected at validation.
    (#247)
  • No double write on Lakehouse — ticking Write to Delta and Append to graph
    database
    when the Delta target is the graph's own …_inferred table now runs a
    single replace-write (manual Materialise, scheduled and API paths).
    (#246)
  • Cohort designer bounded on large graphs — live counters, Trace path and the
    sample-values picker no longer pull the whole graph above 100,000 triples, which
    was saturating the 2-vCPU app and returning 502 on every route.
    (#248,
    #249)
  • Graph Chat Depth is a hard limit — describe_entity is capped by the Depth
    dropdown, entity types reached are listed with counts, and truncated results are
    flagged TRUNCATED instead of being presented as complete.
    (#252)
  • Search cache off by default for Lakehouse Views only — with the Lakehouse
    backend in Views only — no data copy mode, the Search cache companion tables
    are not refreshed automatically, so the switch is now unchecked by default and
    turning it on shows a warning that the refresh must be managed separately.
  • MCP legacy connection switch — MCP_LEGACY_CONNECTION (default false)
    restores the pre-0.9.2 forwarding of the end user on x-forwarded-* headers
    for deployments that depend on it. Leave it unset unless needed.
  • Views-only triple count fixed — the Build page showed Triples: 1 after a
    views-only build that had written 881,669 triples. The count is now read from the
    …_props companion whatever relation is probed, and if it is genuinely unavailable
    the UI says count not available instead of showing a placeholder number.
    The count lookup never raises: a timeout, permission or I/O error on the count
    degrades to count not available and logs a warning. The timeout guard was
    contributed in PR #288
    by @gem3match-dev.
    (#250)

Reasoning

  • run_graph_reasoning reads ontology["axioms"]: self property chains become
    transitive properties, inverseOf axioms drive inverse_expand (Delta and
    Lakebase via the shared SQLGraphReasoningOps mixin). The ontology editor now
    requires a result property for a propertyChain axiom.
  • Neo4j does not support owl:inverseOf expansion yet: inverse_expand is a
    logged no-op (native Cypher is a follow-up).
  • Only self chains (p ∘ p ⊑ p) are expanded; general p ∘ q ⊑ r chains remain a
    follow-up.
  • Materialise filters keep literal objects (subject and predicate must still be
    URIs); adjacency traversal ignores literals at query time.

Build status (Lakehouse)

/dtwin/status and the Build page header now report how the triple count was
obtained through a new count_kind field: exact (the …_props row count),
exists_only (the relation has rows but no count is available, shown as
count not available) or empty. The MCP select_domain and get_status
replies use the same wording. The Build page no longer runs a live query for
views-only domains, so the count comes from the search-cache companion.

Materialise (Lakehouse)

When the Delta target is the store's inferred companion, OntoBricks collapses the
two writes into one replace-write (DeltaFlatStore.replace_inferred_companion),
so repeated runs do not grow the table. A store failure no longer aborts the
Delta write. Materialising to the graph alone still appends across runs (Purge
first for a clean count).

Domain settings (Lakehouse)

Choosing the Lakehouse backend or the Views only — no data copy access type
unchecks Search cache (marked as user-edited, so hydration does not
overwrite it). Enabling the cache in that mode opens a warning; cancelling
(Keep disabled) reverts the switch. Help text in Domain → Information states
the default.

MCP

MCP_LEGACY_CONNECTION is an optional MCP environment variable (exported from
scripts/deploy.config.sh, rendered into src/mcp-server/app.yaml). When it is
truthy (true / 1 / yes / on), the MCP server forwards the end user on
x-forwarded-email / x-forwarded-access-token; otherwise it keeps the default
x-ontobricks-acting-* headers. The M2M Authorization header is unchanged in
both modes. In legacy mode the main app sees the MCP service principal, so
per-user Team gating and OBO do not apply on the MCP hop.

Cohorts

Above PREVIEW_MAX_TRIPLES (100,000, checked with a cached COUNT, 30 s) the
preview endpoints return {too_large, triple_count, preview_cap} without loading
the graph; the UI shows — with a tooltip, a message in the trace panel, and a
manual-entry hint in the sample-values picker. If the size check fails, the
preview falls back to the previous behaviour and logs a warning. Not covered yet:
Preview cohorts, Why? and Materialise; SQL pushdown and async builds remain
in #248.

Graph Chat

The Depth dropdown caps the traversal depth the model can request, the system
prompt treats it as a hard limit, and results disclose the entity types reached
and any truncation. Regression dataset and judges were added under
tests/eval/; the live MLflow eval run is still to be done. Auto depth, a
post-answer completeness check and an aggregate counting tool are phases 2–3 of
#252.

Housekeeping

  • CONTRIBUTORS.md and licenses/ refreshed (neo4j, psycopg, DOMPurify added;
    owlrl license corrected to W3C-20150513).
  • Release-notes routine now also covers contributors and licenses.

Documentation

docs/user-guide.md (axiom reasoning, rule materialisation, Lakehouse single
write, Graph Chat Depth, Build triple-count source, Search cache default on
Views only), docs/advanced_features.md (cohort preview limits),
docs/architecture.md and docs/backend.md (inverse_expand, axiom-driven
reasoning), docs/api.md (count_kind on the status endpoint), docs/mcp.md
(MCP_LEGACY_CONNECTION, count not available wording), README.md,
docs/README.md.


Upgrade notes

  • No configuration change and no registry schema migration.
  • Re-run Inference / Materialise to pick up literal-object and aggregate
    result-class triples; domains with both Lakehouse write options ticked can
    clean duplicates with Purge Inferences first.
  • Aggregate rules that set a Result entity without a group-by or aggregate
    property must be edited (validation now rejects them).
  • On very large graphs the Cohort live counters show —; use Save rule and
    Materialise, or narrow the rule.
  • Neo4j-backed domains do not get inverse expansion yet.
  • Explorer search matches entity labels and IDs only. Searching by the value of a
    mapped attribute (datatype property) returns no results; this is planned as a
    separate enhancement tracked from #250.
  • Lakehouse domains on Views only no longer get a Search cache by default.
    To keep it, enable it explicitly and accept the warning; the cache is not
    refreshed automatically in that mode.
  • MCP: leave MCP_LEGACY_CONNECTION unset unless a deployment depends on the
    pre-0.9.2 x-forwarded-* forwarding. Redeploy the MCP server with make deploy
    to pick up the rendered app.yaml.
  • Lakehouse views-only domains: after upgrading, the Build page shows the real
    triple count from …_props. If it reads count not available, refresh the
    search cache from the Build page.