Graph Databases
Collect evidence through permitted routes
BOTIE
Examples, experiments and workspace controls
Connect a tool's inputs to see what it produces. You can try a branch before connecting it to Result.
Try your own inputs
Use a copy of the example to try your own data. Keep the problem's assumptions in mind, and predict the effect of a change before checking the output. You can also add another branch to compare two ways of doing the calculation.
Context for this challenge
Restrict nodes to the supplied tenant and retain only edges with both endpoints inside it. Inspect what happens to the route through X before collecting documents.
Future documents and routes through another tenant must not enter the context.
Inspect the component calculation
Restrict the graph before expansion( Graph: Invented graph snapshot Tenant ID: Permitted tenant )
Examples and results
- Invented graph snapshot
Nodes and properties (6)
- P7 · Asset
- tenant: red
- S1 · Asset
- tenant: red
- X · Asset
- tenant: blue
- D1 · Document
- tenant: red
- available_at: 2
- D2 · Document
- tenant: red
- available_at: 8
- D3 · Document
- tenant: red
- available_at: 1
- P7 to S1: DEPENDS_ON
- P7 to X: DEPENDS_ON
- P7 to D1: HAS_MANUAL
- S1 to D2: HAS_MANUAL
- X to D3: HAS_MANUAL
Inspect the node and relationship records
{ "nodes": [ { "id": "P7", "kind": "Asset", "tenant": "red" }, { "id": "S1", "kind": "Asset", "tenant": "red" }, { "id": "X", "kind": "Asset", "tenant": "blue" }, { "id": "D1", "kind": "Document", "tenant": "red", "available_at": 2 }, { "id": "D2", "kind": "Document", "tenant": "red", "available_at": 8 }, { "id": "D3", "kind": "Document", "tenant": "red", "available_at": 1 } ], "edges": [ { "id": "d", "source": "P7", "target": "S1", "type": "DEPENDS_ON" }, { "id": "cross", "source": "P7", "target": "X", "type": "DEPENDS_ON" }, { "id": "m1", "source": "P7", "target": "D1", "type": "HAS_MANUAL" }, { "id": "m2", "source": "S1", "target": "D2", "type": "HAS_MANUAL" }, { "id": "m3", "source": "X", "target": "D3", "type": "HAS_MANUAL" } ] }- P7 · Asset
- Permitted tenant
red
- Required result
Nodes and properties (5)
- P7 · Asset
- tenant: red
- S1 · Asset
- tenant: red
- D1 · Document
- tenant: red
- available_at: 2
- D2 · Document
- tenant: red
- available_at: 8
- D3 · Document
- tenant: red
- available_at: 1
- P7 to S1: DEPENDS_ON
- P7 to D1: HAS_MANUAL
- S1 to D2: HAS_MANUAL
Inspect the node and relationship records
{ "nodes": [ { "id": "P7", "kind": "Asset", "tenant": "red" }, { "id": "S1", "kind": "Asset", "tenant": "red" }, { "id": "D1", "kind": "Document", "tenant": "red", "available_at": 2 }, { "id": "D2", "kind": "Document", "tenant": "red", "available_at": 8 }, { "id": "D3", "kind": "Document", "tenant": "red", "available_at": 1 } ], "edges": [ { "id": "d", "source": "P7", "target": "S1", "type": "DEPENDS_ON" }, { "id": "m1", "source": "P7", "target": "D1", "type": "HAS_MANUAL" }, { "id": "m2", "source": "S1", "target": "D2", "type": "HAS_MANUAL" } ] }- P7 · Asset
- Invented graph snapshot
Nodes and properties (6)
- P7 · Asset
- tenant: red
- S1 · Asset
- tenant: red
- X · Asset
- tenant: blue
- D1 · Document
- tenant: red
- available_at: 2
- D2 · Document
- tenant: red
- available_at: 8
- D3 · Document
- tenant: red
- available_at: 1
- P7 to S1: DEPENDS_ON
- P7 to X: DEPENDS_ON
- P7 to D1: HAS_MANUAL
- S1 to D2: HAS_MANUAL
- X to D3: HAS_MANUAL
Inspect the node and relationship records
{ "nodes": [ { "id": "P7", "kind": "Asset", "tenant": "red" }, { "id": "S1", "kind": "Asset", "tenant": "red" }, { "id": "X", "kind": "Asset", "tenant": "blue" }, { "id": "D1", "kind": "Document", "tenant": "red", "available_at": 2 }, { "id": "D2", "kind": "Document", "tenant": "red", "available_at": 8 }, { "id": "D3", "kind": "Document", "tenant": "red", "available_at": 1 } ], "edges": [ { "id": "d", "source": "P7", "target": "S1", "type": "DEPENDS_ON" }, { "id": "cross", "source": "P7", "target": "X", "type": "DEPENDS_ON" }, { "id": "m1", "source": "P7", "target": "D1", "type": "HAS_MANUAL" }, { "id": "m2", "source": "S1", "target": "D2", "type": "HAS_MANUAL" }, { "id": "m3", "source": "X", "target": "D3", "type": "HAS_MANUAL" } ] }- P7 · Asset
- Permitted tenant
red
- Required result
Nodes and properties (5)
- P7 · Asset
- tenant: red
- S1 · Asset
- tenant: red
- D1 · Document
- tenant: red
- available_at: 2
- D2 · Document
- tenant: red
- available_at: 8
- D3 · Document
- tenant: red
- available_at: 1
- P7 to S1: DEPENDS_ON
- P7 to D1: HAS_MANUAL
- S1 to D2: HAS_MANUAL
Inspect the node and relationship records
{ "nodes": [ { "id": "P7", "kind": "Asset", "tenant": "red" }, { "id": "S1", "kind": "Asset", "tenant": "red" }, { "id": "D1", "kind": "Document", "tenant": "red", "available_at": 2 }, { "id": "D2", "kind": "Document", "tenant": "red", "available_at": 8 }, { "id": "D3", "kind": "Document", "tenant": "red", "available_at": 1 } ], "edges": [ { "id": "d", "source": "P7", "target": "S1", "type": "DEPENDS_ON" }, { "id": "m1", "source": "P7", "target": "D1", "type": "HAS_MANUAL" }, { "id": "m2", "source": "S1", "target": "D2", "type": "HAS_MANUAL" } ] }- P7 · Asset
- Invented graph snapshot
Nodes and properties (6)
- P7 · Asset
- tenant: red
- S1 · Asset
- tenant: red
- X · Technician
- tenant: red
- D1 · Document
- tenant: red
- available_at: 2
- D2 · Document
- tenant: red
- available_at: 8
- D3 · Document
- tenant: red
- available_at: 1
- P7 to S1: DEPENDS_ON
- P7 to X: DEPENDS_ON
- P7 to D1: HAS_MANUAL
- S1 to D2: HAS_MANUAL
- X to D3: HAS_MANUAL
Inspect the node and relationship records
{ "nodes": [ { "id": "P7", "kind": "Asset", "tenant": "red" }, { "id": "S1", "kind": "Asset", "tenant": "red" }, { "id": "X", "kind": "Technician", "tenant": "red" }, { "id": "D1", "kind": "Document", "tenant": "red", "available_at": 2 }, { "id": "D2", "kind": "Document", "tenant": "red", "available_at": 8 }, { "id": "D3", "kind": "Document", "tenant": "red", "available_at": 1 } ], "edges": [ { "id": "d", "source": "P7", "target": "S1", "type": "DEPENDS_ON" }, { "id": "cross", "source": "P7", "target": "X", "type": "DEPENDS_ON" }, { "id": "m1", "source": "P7", "target": "D1", "type": "HAS_MANUAL" }, { "id": "m2", "source": "S1", "target": "D2", "type": "HAS_MANUAL" }, { "id": "m3", "source": "X", "target": "D3", "type": "HAS_MANUAL" } ] }- P7 · Asset
- Permitted tenant
red
- Required result
Nodes and properties (6)
- P7 · Asset
- tenant: red
- S1 · Asset
- tenant: red
- X · Technician
- tenant: red
- D1 · Document
- tenant: red
- available_at: 2
- D2 · Document
- tenant: red
- available_at: 8
- D3 · Document
- tenant: red
- available_at: 1
- P7 to S1: DEPENDS_ON
- P7 to X: DEPENDS_ON
- P7 to D1: HAS_MANUAL
- S1 to D2: HAS_MANUAL
- X to D3: HAS_MANUAL
Inspect the node and relationship records
{ "nodes": [ { "id": "P7", "kind": "Asset", "tenant": "red" }, { "id": "S1", "kind": "Asset", "tenant": "red" }, { "id": "X", "kind": "Technician", "tenant": "red" }, { "id": "D1", "kind": "Document", "tenant": "red", "available_at": 2 }, { "id": "D2", "kind": "Document", "tenant": "red", "available_at": 8 }, { "id": "D3", "kind": "Document", "tenant": "red", "available_at": 1 } ], "edges": [ { "id": "d", "source": "P7", "target": "S1", "type": "DEPENDS_ON" }, { "id": "cross", "source": "P7", "target": "X", "type": "DEPENDS_ON" }, { "id": "m1", "source": "P7", "target": "D1", "type": "HAS_MANUAL" }, { "id": "m2", "source": "S1", "target": "D2", "type": "HAS_MANUAL" }, { "id": "m3", "source": "X", "target": "D3", "type": "HAS_MANUAL" } ] }- P7 · Asset
Try a fresh construction
This clears this draft, including its undo history. Earlier successful attempts stay recorded. Build again without opening hints to record an independent attempt.
Stuck? Inspect a worked construction
The tools below form one possible solution. You can assemble it, follow its signals, and undo that change to return to your own construction.
Assumptions and test precision
These components operate on the supplied records in your browser. They do not run a graph database or interpret Cypher. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.
Your last tested pieces can start the full construction. An existing draft there keeps its own pieces.
A permitted document sits beyond a forbidden detour
This check uses the pieces from “Compose bounded dependency and manual retrieval”.
BOTIE
- Invented graph snapshot
Nodes and properties (10)
- R6 · Asset
- tenant: amber
- S6 · Asset
- tenant: amber
- S7 · Asset
- tenant: amber
- X6 · Asset
- tenant: violet
- D-own · Document
- tenant: amber
- available_at: 10
- D-supply · Document
- tenant: amber
- available_at: 4
- D-detour · Document
- tenant: amber
- available_at: 2
- D-deep · Document
- tenant: amber
- available_at: 3
- D-future · Document
- tenant: amber
- available_at: 11
- N-label · Note
- tenant: amber
- available_at: 1
- R6 to S6: DEPENDS_ON
- S6 to S7: DEPENDS_ON
- R6 to X6: DEPENDS_ON
- R6 to D-own: HAS_MANUAL
- S6 to D-supply: HAS_MANUAL
- X6 to D-detour: HAS_MANUAL
- S7 to D-deep: HAS_MANUAL
- S6 to D-future: HAS_MANUAL
- R6 to N-label: HAS_MANUAL
Inspect the node and relationship records
{ "nodes": [ { "id": "R6", "kind": "Asset", "tenant": "amber" }, { "id": "S6", "kind": "Asset", "tenant": "amber" }, { "id": "S7", "kind": "Asset", "tenant": "amber" }, { "id": "X6", "kind": "Asset", "tenant": "violet" }, { "id": "D-own", "kind": "Document", "tenant": "amber", "available_at": 10 }, { "id": "D-supply", "kind": "Document", "tenant": "amber", "available_at": 4 }, { "id": "D-detour", "kind": "Document", "tenant": "amber", "available_at": 2 }, { "id": "D-deep", "kind": "Document", "tenant": "amber", "available_at": 3 }, { "id": "D-future", "kind": "Document", "tenant": "amber", "available_at": 11 }, { "id": "N-label", "kind": "Note", "tenant": "amber", "available_at": 1 } ], "edges": [ { "id": "dep1", "source": "R6", "target": "S6", "type": "DEPENDS_ON" }, { "id": "dep2", "source": "S6", "target": "S7", "type": "DEPENDS_ON" }, { "id": "cross", "source": "R6", "target": "X6", "type": "DEPENDS_ON" }, { "id": "own", "source": "R6", "target": "D-own", "type": "HAS_MANUAL" }, { "id": "supply", "source": "S6", "target": "D-supply", "type": "HAS_MANUAL" }, { "id": "detour", "source": "X6", "target": "D-detour", "type": "HAS_MANUAL" }, { "id": "deep", "source": "S7", "target": "D-deep", "type": "HAS_MANUAL" }, { "id": "future", "source": "S6", "target": "D-future", "type": "HAS_MANUAL" }, { "id": "wrong-kind", "source": "R6", "target": "N-label", "type": "HAS_MANUAL" } ] }- R6 · Asset
- Starting asset ID
R6
- Permitted tenant
amber
- Decision hour
10
- Maximum dependency hops
1
Use a number, text, or an array matching the requested result. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.
Build a construction in the workspace above first. This case will test those pieces.
How would you test whether the added graph context improves answers, and what should happen when no adequate evidence survives?
Evaluate evidence retrieval and generated claims separately, including forbidden evidence and unresolved questions.
These components operate on the supplied records in your browser. They do not run a graph database or interpret Cypher.
Work through the Python challenges →