Leonard Law
Schema mappingAn example of how a knowledge graph and Leonard Law's own tables change together
Invented data. Illustrative format

How the graph and your tables change together

Neither schema changes on its own. A proposed change is reviewed by a person, recorded in a shared mapping file and versioned, so any copy can be traced back.

1. The graph learns something your tables don't hold

Documents keep describing projects by energy type. The graph holds this as a new attribute on the matter, and links it to the documents it came from.

(:Matter {matter_id: "M-1042"})
  -[:IN_SECTOR]-> (:Sector {name: "Energy"})
  -[:HAS_ENERGY_TYPE]-> (:EnergyType {name: "Solar"})
  -[:EVIDENCED_BY]-> (:Document {title: "Capability statement, 2025"})

2. A change is proposed, and a person decides

  1. ProposedAn agent raises a change request in the shared repository, with the evidence.
  2. ReviewedYour data owner approves, edits or rejects it. Nothing ships without this.
  3. VersionedThe mapping moves to a new version, and the systems that read it get notice.
  4. PublishedThe next run writes the new column to the agreed table.

3. The mapping file is the single reference

Both sides read it, both sides can propose changes, and every sync records which version it used.

version: 2
previous: 1
table: experience.matters
columns:
  matter_id:     { source_of_truth: firm,  graph: Matter.matter_id }
  client_id:     { source_of_truth: firm,  graph: (Matter)-[:FOR]->(Client).client_id }
  sector:        { source_of_truth: firm,  graph: (Matter)-[:IN_SECTOR]->(Sector).name }
  matter_name:   { source_of_truth: graph, graph: Matter.title }
  energy_type:   { source_of_truth: graph, graph: (Matter)-[:HAS_ENERGY_TYPE]->(EnergyType).name, added_in: 2 }
not_published:
  - evidence links: kept in the graph and shown in search, because a table would flatten them

4. What your table looks like

5. When something looks wrong

Each row carries the mapping version and sync run that wrote it, so you can trace it, compare against the previous version and roll back to it.

Leonard Law is a fictitious firm. It is a demonstration tenant run by Legal Engine Ltd. Every client, matter and person on this page is invented.