PathRAG Service — Test Data Reference
This document describes the test data currently loaded in the Neo4j database for developing and validating the PathRAG service.
All data belongs to the "Adventures of Bob the Cat" fictional book series.
It lives in the FictionalStories ontology and the DefaultCommunity_FictionalStories community.
Ontology: FictionalStories
Id: FictionalStories
Description: Defines entities and relationships for fictional stories about pets and their owners. Relevant when documents related to animals or pet owners are in the conversation focus.
Entity Types
| Label |
Description |
animal |
An animal, real or fictional from a story |
person |
A human person, either real or a fictional character |
place |
The place where an event happened — can be a geographical name (e.g. Paris) or a generic name (e.g. in the kitchen, in the garden) |
event |
A fully detailed description of what happened: which actors were involved, where, what each effective user did, what the preconditions were, and what the consequences were |
Relationship Types
| Relationship |
Source |
Target |
Description |
involve |
event |
person, animal |
Connects an Event to each effective user (person or animal) that participated in it |
takes_place |
event |
place |
Connects an Event to the Place where it occurred |
is_friend_of |
person, animal |
person, animal |
Mono-directional friendship; must be created in both directions for bi-directional friendships |
owns |
person |
person, animal |
Ownership relationship; typically a Person owns an Animal |
is_child_of |
person, animal |
person, animal |
Parent/child relationship |
Community: DefaultCommunity_FictionalStories
Id: DefaultCommunity_FictionalStories
This is the permanent Community ID and the only community identifier. Community
nodes do not have a separate name property.
All entities below belong to this community via (Community)-[:AGGREGATES]->(Entity).
Entity Catalog
Animals
| Id |
Name |
Description |
bob |
Bob |
(no consolidated description — Bob is the protagonist cat) |
joy |
Joy |
(no consolidated description — Joy is a squirrel Bob befriends in the garden) |
Persons
| Id |
Name |
Description |
jane |
Jane |
(no consolidated description — Jane is Bob's owner) |
martha |
Martha |
(no consolidated description — Martha lives with Jane) |
Places
| Id |
Name |
Description |
house |
house |
The home where Jane and Martha live |
kitchen |
kitchen |
Martha's pristine kitchen — setting of the milk-knocking incident |
garden |
garden |
Lush greenery with a sweet floral scent; a paradise where Bob explores with Jane |
attic |
attic |
A previously unexplored upper-floor space filled with dusty books, toys, and trunks |
rooftop_garden |
rooftop garden |
Overgrown but beautiful garden on the roof |
Events
| Id |
Description |
Status |
milk_mishap |
Bob leapt onto the kitchen counter and knocked over a cup of milk |
Fully connected |
clean_up |
Jane and Bob clean the kitchen together |
Fully connected |
bonding_moment |
The spilled milk incident becomes a bonding moment for the family |
Fully connected |
home_alone |
Bob is home alone while Jane and Martha are at the hospital |
Fully connected |
purrfect_plan |
Jane devises a plan to help Martha and involve Bob |
Fully connected |
welcome_home |
Jane and Martha return home and discover Bob's adventure |
Fully connected |
attic_adventure |
Bob explores the attic |
Fully connected |
secret_garden_discovery |
Bob discovers a hidden rooftop garden |
Fully connected |
garden_adventure |
Bob and Jane explore the garden together |
Fully connected |
unexpected_encounter |
Bob meets Joy the squirrel in the garden |
Fully connected |
friendship_bloom |
The day ended with laughter and a new friendship; the garden is a place where friendships blossom |
Fully connected |
day_of_discovery |
"Bob the Cat: The Day of Discovery" (story-level event covering book 3) |
Fully connected |
spilled_milk_incident |
"Bob the Cat: The Spilled Milk Incident" (story-level event covering book 1) |
Fully connected |
music_box_discovery |
Bob found an old music box that, when knocked over, plays a delicate melody |
Fully connected |
Relationship Catalog (directed triples)
Character relationships
(bob) -[:is_friend_of]-> (jane)
(bob) -[:is_friend_of]-> (martha)
(bob) -[:is_friend_of]-> (joy)
(jane) -[:owns]-> (bob)
Events — actors
(milk_mishap) -[:involve]-> (bob)
(milk_mishap) -[:involve]-> (jane)
(milk_mishap) -[:involve]-> (martha)
(clean_up) -[:involve]-> (bob)
(clean_up) -[:involve]-> (jane)
(clean_up) -[:involve]-> (martha)
(bonding_moment) -[:involve]-> (bob)
(bonding_moment) -[:involve]-> (jane)
(bonding_moment) -[:involve]-> (martha)
(home_alone) -[:involve]-> (bob)
(home_alone) -[:involve]-> (jane)
(home_alone) -[:involve]-> (martha)
(purrfect_plan) -[:involve]-> (bob)
(purrfect_plan) -[:involve]-> (jane)
(purrfect_plan) -[:involve]-> (martha)
(welcome_home) -[:involve]-> (bob)
(welcome_home) -[:involve]-> (jane)
(welcome_home) -[:involve]-> (martha)
(attic_adventure) -[:involve]-> (bob)
(secret_garden_discovery)-[:involve]-> (bob)
(garden_adventure) -[:involve]-> (bob)
(garden_adventure) -[:involve]-> (jane)
(unexpected_encounter) -[:involve]-> (bob)
(unexpected_encounter) -[:involve]-> (joy)
(friendship_bloom) -[:involve]-> (bob)
(friendship_bloom) -[:involve]-> (jane)
(friendship_bloom) -[:involve]-> (joy)
Events — places
(milk_mishap) -[:takes_place]-> (kitchen)
(clean_up) -[:takes_place]-> (kitchen)
(bonding_moment) -[:takes_place]-> (house)
(home_alone) -[:takes_place]-> (house)
(purrfect_plan) -[:takes_place]-> (house)
(welcome_home) -[:takes_place]-> (house)
(attic_adventure) -[:takes_place]-> (attic)
(secret_garden_discovery)-[:takes_place]-> (rooftop_garden)
(garden_adventure) -[:takes_place]-> (garden)
(unexpected_encounter) -[:takes_place]-> (garden)
(friendship_bloom) -[:takes_place]-> (garden)
Graph Diagram
[jane] -[:owns]-> [bob]
[bob] -[:is_friend_of]-> [jane]
[bob] -[:is_friend_of]-> [martha]
[bob] -[:is_friend_of]-> [joy]
[milk_mishap] -[:involve]->(bob,jane,martha) -[:takes_place]->(kitchen)
[clean_up] -[:involve]->(bob,jane,martha) -[:takes_place]->(kitchen)
[bonding_moment] -[:involve]->(bob,jane,martha) -[:takes_place]->(house)
[home_alone] -[:involve]->(bob,jane,martha) -[:takes_place]->(house)
[purrfect_plan] -[:involve]->(bob,jane,martha) -[:takes_place]->(house)
[welcome_home] -[:involve]->(bob,jane,martha) -[:takes_place]->(house)
[attic_adventure] -[:involve]->(bob) -[:takes_place]->(attic)
[secret_garden_discovery] -[:involve]->(bob) -[:takes_place]->(rooftop_garden)
[garden_adventure] -[:involve]->(bob,jane) -[:takes_place]->(garden)
[unexpected_encounter] -[:involve]->(bob,joy) -[:takes_place]->(garden)
[friendship_bloom] -[:involve]->(bob,jane,joy) -[:takes_place]->(garden)
Story-level events — actors & places
(spilled_milk_incident) -[:involve]-> (bob)
(spilled_milk_incident) -[:involve]-> (jane)
(spilled_milk_incident) -[:involve]-> (martha)
(spilled_milk_incident) -[:takes_place]-> (kitchen)
(day_of_discovery) -[:involve]-> (bob)
(day_of_discovery) -[:involve]-> (jane)
(day_of_discovery) -[:involve]-> (martha)
(day_of_discovery) -[:takes_place]-> (house)
(music_box_discovery) -[:involve]-> (bob)
(music_box_discovery) -[:takes_place]-> (attic)
Notes on story-level events:
- spilled_milk_incident represents the entire first book (Bob the Cat: The Spilled Milk Incident, bob-01.txt). The kitchen is its central location.
- day_of_discovery represents the entire third book (Bob the Cat: The Day of Discovery, bob-03.txt). The house is its top-level location; sub-events (attic_adventure, secret_garden_discovery, etc.) refine the location further.
- music_box_discovery is a specific scene within day_of_discovery (Chapter 2): Bob knocks over a music box in the attic.
Sample PathRAG Queries
The following queries can be used to test the PathRAG beam-search implementation against this dataset.
Single-hop
| Query |
Expected seed(s) |
Expected path |
| "Where did the milk incident happen?" |
milk_mishap |
milk_mishap -[:takes_place]-> kitchen |
| "Who was involved when Bob knocked over the milk?" |
milk_mishap |
milk_mishap -[:involve]-> bob, milk_mishap -[:involve]-> jane, milk_mishap -[:involve]-> martha |
| "Who owns Bob?" |
bob |
jane -[:owns]-> bob |
| "Where is the rooftop garden?" |
rooftop_garden |
secret_garden_discovery -[:takes_place]-> rooftop_garden |
Two-hop
| Query |
Expected seed(s) |
Expected path |
| "Who was with Bob when the kitchen was cleaned up?" |
clean_up, kitchen |
clean_up -[:takes_place]-> kitchen, clean_up -[:involve]-> jane, clean_up -[:involve]-> martha |
| "Which events happened in the garden?" |
garden |
garden_adventure -[:takes_place]-> garden, unexpected_encounter -[:takes_place]-> garden, friendship_bloom -[:takes_place]-> garden |
| "Who did Bob meet in the garden?" |
bob, garden |
unexpected_encounter -[:involve]-> bob, unexpected_encounter -[:involve]-> joy, unexpected_encounter -[:takes_place]-> garden |
Multi-hop (3+ hops)
| Query |
Expected seed(s) |
Expected path |
| "How did Bob and Joy become friends?" |
bob, joy |
unexpected_encounter -[:involve]-> bob, unexpected_encounter -[:involve]-> joy, unexpected_encounter -[:takes_place]-> garden → friendship_bloom -[:involve]-> joy, friendship_bloom -[:takes_place]-> garden |
| "What happened in the house while Jane was away?" |
home_alone, house |
home_alone -[:involve]-> bob, home_alone -[:takes_place]-> house + downstream events purrfect_plan, welcome_home |
Data Gaps & Notes
day_of_discovery and spilled_milk_incident are story-level events representing full books. Their sub-events (attic_adventure, milk_mishap, clean_up, etc.) model individual scenes within those stories. A part_of or contains relationship type could be added to the ontology to formally link scene-events to their parent story-events.
joy and bob have no description_consolidated. Adding a brief description (species, appearance) would improve seed-scoring quality during PathRAG exploration.
- No
is_child_of relationships exist in the current data, even though the relationship type is defined in the ontology.
- No bidirectional
is_friend_of edges exist: e.g., joy -[:is_friend_of]-> bob is absent; only bob -[:is_friend_of]-> joy is present.