RAIA™ Specification

2.19 Operational Knowledge Graphs in Real Estate — Relational Lineage over Visual Diagrams

A knowledge graph maps the hidden connections between landlords, companies, properties, tenants, and contracts. Instead of confusing bubble diagrams, RAIA (Real estate Artificial Intelligence Agent) turns this into a dense vertical ownership lineage tree for quick staff access.

← Back to Developer Hub TEXTBOOK SPECIFICATION
🧩 Section A: In Plain English

2.19 Operational Knowledge Graphs in Real Estate — Relational Lineage over Visual Diagrams

A knowledge graph maps the hidden connections between landlords, companies, properties, tenants, and contracts. Instead of confusing bubble diagrams, RAIA (Real estate Artificial Intelligence Agent) turns this into a dense vertical ownership lineage tree for quick staff access.

🧩 In Plain English

A "Knowledge Graph" is a way of mapping out how landlords, companies, properties, tenants, and contracts link together behind the scenes. However, busy staff hate floating bubble maps—they are confusing to look at and hard to click. Instead, RAIA (Real estate Artificial Intelligence Agent) turns this network map into an extremely dense, vertical **Ownership Lineage Tree** in the sidebar. This gives staff 1-click access to everything they need, while a background program continuously watches for links, alerts, and potential fraud.

High Density Ownership Mapping over Visual Node Diagrams — How we implement high-utility relationship mapping in RAIA, prioritizing vertical lineage trees over visual node-link circles for maximum staff utility.

High Density Sovereign Utility 6-Tier Pyramid Aligned Relational Analytics
0%
Vaporware d3.js visual bubbles — ruthlessly eliminated to prevent staff cognitive fatigue
100%
Vertical lineage density — fits complex multi-tiered joins into a 300px Right Inspector
1-Click
Instant workspace routing — clicking any entity morphs the screen to its dedicated file
Background
Continuous graph-relation audits detecting fraud, circular guarantees, and database anomalies

Part 1 In Plain English

Many business products show fancy "node-link diagrams" (interactive circles and connecting lines that you can drag around) because they look impressive in sales presentations. But in the real world, estate agency staff find them deeply frustrating. Dragging bubbles is slow, takes up too much screen space, and doesn't answer direct business questions like *"Is this tenant's guarantor also renting another one of our properties?"*

RAIA (Real estate Artificial Intelligence Agent) rejects visual node-link gimmicks. Instead, we divide our "Knowledge Graph" capability into two highly useful components:

  • The Ownership Lineage Tree (Sidebar): A condensed, vertical, interactive folder-like tree in the Right-hand Inspector. It updates automatically based on whatever entity is selected in the Center Workspace.
  • Continuous Relation Audits (Backend): A background process that scans the database relationships for anomalies, duplicate contact channels, circular reference guarantees, or duplicate bank payout channels, feeding critical warnings directly into the main Actions list.

Relationship Strategy Comparison

Capability Aspect Standard Node-Link Bubble Charts (Visual Gimmick) RAIA (Real estate Artificial Intelligence Agent) Ownership Lineage Tree (High-Density UX)
Screen Layout Takes up 100% of a massive interactive canvas; completely breaks standard layouts. Fits perfectly inside a 300px wide sidebar (the Right-hand Inspector), matching standard vertical habits.
Cognitive Load High. Staff must trace overlapping lines, rotate labels, and drag circles to read titles. Zero. Standard vertical hierarchy allows instant scanning and alphabetical or pyramid-tiered sorting.
Interactive Utility Poor. Dragging and zooming circles does not route or execute actions easily. Exceptional. Clicking any node instantly updates the main workspace filter to that entity with 0 layout drift.
Behind-the-scenes Power None. Purely visual rendering. Intelligent background graph query loops trigger critical operational warnings.

Part 2 How It Works — Staff Workflow

The daily operation of this high-density layout integrates seamlessly with standard staff workflows, protecting them from data blindness and constant "tab hopping":

  • 1
    Context Selection

    Staff select an Action card (e.g., "Review outstanding KYC for Eugin Song") in Column 1, or click on a Landlord record in the center workspace. The workspace filters instantly to Eugin Song's details.

  • 2
    Lineage Panel Morph

    The Right Inspector panel instantly morphs to show the **Ownership Lineage Tree**. Without leaving the page, the user can see that Eugin Song represents "Sovereign Node Holdings Ltd", which owns "Flat 4, 12 Park Lane" and "Flat 5, 12 Park Lane", with active tenancies and specific tenants.

  • 3
    Halo Status Scan

    Color-coded status halos around tree nodes instantly warn staff of blockages. For example, a red border around the "Jane Doe (Tenant)" node warns that her ID check is pending, while the property itself is green (occupied).

  • 4
    1-Click Traversal

    Staff click on "Jane Doe" inside the sidebar tree. The workspace immediately routes to Jane Doe's referencing and onboarding module. Staff complete her check. The tree updates instantly, turning Jane's halo border Green.

To avoid clutter and honor Gene's strict **3-Column UX (Nav, Workspace, Right Inspector)** layout, the relationship graph is never a standalone main tab. It is mapped to the standard layout surfaces as follows:

1. Context-Triggered Access: The Right Inspector (Column 3)

The **primary entry point** for relationship graph data is the Right Inspector panel. When any core entity (Landlord, Organization, Property, Tenant, Supplier, or Maintenance Case) is loaded into the Workspace (Column 2), the Right Inspector automatically renders the **Ownership Lineage Tree** representing that entity's first-hop and second-hop relationships.

2. Analytical Entry Point: Registry Detail Sub-Tabs (Column 2)

Under the alphabetical **Registries** tier in the Left Nav (Landlords, Tenants, Properties), clicking an item opens its main dashboard. Beside the basic detail cards, an **"Audit Relations"** sub-tab allows technical staff to review deeper relational links, direct database joins, and connected assets.

3. Critical Priority Flags: Urgent Actions (Column 1)

When the background daemon detects graph anomalies (e.g., circular guarantor references, duplicated phone numbers across different client types, or matching bank details), it generates a card directly inside **Left Nav ➔ Actions ➔ Urgent** with a high-priority red alert badge.


Part 3 Technical Architecture

Ownership Lineage Panel Schema

Lineage trees are computed efficiently by joining our primary datastores: intersecting tbl_persons (Persons) and tbl_asset_ownership (Ownership) via organisation_id to resolve landlords. Never use tbl_organisations_clients, as that contains strictly tenant entities.

Eugin Song Landlord
person_id: ps_90281 | email: eugin.song@rentlondonflat.com
Sovereign Node Holdings Ltd Organisation
organisation_id: org_10023 | Payout: ClearBank (*3928)
Flat 4, 12 Park Lane Property (Occupied)
property_id: prop_004 | Certs: Gas Safe (Valid)
Tenancy PL-04-2026 Active Tenancy
tenancy_id: ten_29381 | Move-In: 2026-04-12
Jane Doe Tenant (ID Chase)
person_id: ps_33421 | Phone: +447820019293 (tbl_persons_channels)
Flat 5, 12 Park Lane Property (Vacant)
property_id: prop_005 | Certs: EPC Rating D (Expired)

Repository Code

The live codebase implementation for this specification sits within the following repository folder:

Left-Slope SVG Diagram

Our relationships strictly obey the 6-Tier Real Estate Pyramid, mapping relational flow from regulatory, enterprise, ownership, assets, transacting, down to onsite devices. Notice how every connection flows cleanly down and left, with zero visual clutter:

T2: ENTERPRISE (Org) T3: OWNERSHIP (Landlord) T4: ASSETS (Properties) T5: TRANSACTING (Tenants) Joins via organisation_id Joins via asset_ownership Joins via active tenancy

Automated Graph Auditing Queries

Behind the scenes, we use recursive and relational SQL logic to continuously trace relationship anomalies. For example, the following query runs as a daily background task to identify circular reference guarantor rings:

-- Detect Circular Referencing Guarantors (Tenant X guarantees Tenant Y, who guarantees Tenant X)
WITH RECURSIVE guarantor_chain AS (
  -- Base case: Immediate guarantor links
  SELECT 
    tenant_id,
    guarantor_id,
    ARRAY[tenant_id] AS path,
    false AS cycle
  FROM tbl_tenancy_guarantors
  
  UNION ALL
  
  -- Recursive case: Trace guarantor chain
  SELECT 
    gc.tenant_id,
    tg.guarantor_id,
    gc.path || tg.tenant_id,
    tg.guarantor_id = ANY(gc.path)
  FROM guarantor_chain gc
  JOIN tbl_tenancy_guarantors tg ON gc.guarantor_id = tg.tenant_id
  WHERE NOT gc.cycle
)
SELECT 
  tenant_id,
  guarantor_id,
  path
FROM guarantor_chain
WHERE cycle = true;

Red Team Delta Audit

1
Data Mismatch Mappings (Landlord resolving)

Risk: Landlords MUST be resolved strictly by joining tbl_persons and tbl_asset_ownership via organisation_id. Never attempt to query tbl_organisations_clients, which is reserved exclusively for Tenants. Querying the wrong table will cause silent data starvation, failing to surface ownership links in the panel.

2
UI Freeze and Token Inflation Risk

Risk: Attempting to load the entire portfolio's graph at the frontend will freeze the browser tab (from rendering thousands of d3 nodes) and burn hundreds of thousands of tokens per API call. Remediation: All graph traversals are hard-capped to 2-hops max from the currently selected entity. Long-range multi-hop queries are strictly computed offline by the background analytics daemon.


Repository & Code

Repository Code

The live codebase implementation for this textbook logic sits within the following repository folder: