Skip to content

Add Neo4j-powered Business Leader Network#4

Open
tporetro wants to merge 1 commit intorailstutorial:masterfrom
tporetro:claude/business-leader-network-Oz3W1
Open

Add Neo4j-powered Business Leader Network#4
tporetro wants to merge 1 commit intorailstutorial:masterfrom
tporetro:claude/business-leader-network-Oz3W1

Conversation

@tporetro
Copy link

Implements the graph-based B2B sales and marketing network described in the Kantwert / Neo4j article (https://neo4j.com/blog/cypher-and-gql/the-power-of-business-leader-networks/).

Graph schema
(:BusinessLeader)-[:KNOWS]->(:BusinessLeader)
(:BusinessLeader)-[:WORKS_AT]->(:Company)
(:BusinessLeader)-[:BOARD_MEMBER_OF]->(:Company)
(:BusinessLeader)-[:PREVIOUSLY_WORKED_AT]->(:Company)

Key capabilities

  • Introduction path finder: shortestPath Cypher query up to 6 hops
  • Top connectors view: bridge nodes ranked by degree centrality
  • B2B industry targeting: all leaders + connection counts per sector
  • Extended network: reachable leaders within 1–3 degrees
  • Mutual connections: shared contacts between any two leaders

Files added

  • lib/neo4j/client.rb Raw HTTP client for Neo4j transactional API
  • config/initializers/neo4j.rb Connection + index/constraint setup at boot
  • app/models/business_leader.rb Graph ORM with path and network queries
  • app/models/company.rb Graph ORM for company nodes
  • app/controllers/* Three controllers (leaders, companies, network)
  • app/views/** Full UI across 9 view templates
  • db/seeds.rb 20 leaders, 8 companies, 38 connections
  • lib/tasks/neo4j.rake Operational rake tasks

https://claude.ai/code/session_011KFG93TXcjZMhSgM6iFJ5T

Implements the graph-based B2B sales and marketing network described in the
Kantwert / Neo4j article (https://neo4j.com/blog/cypher-and-gql/the-power-of-business-leader-networks/).

Graph schema
  (:BusinessLeader)-[:KNOWS]->(:BusinessLeader)
  (:BusinessLeader)-[:WORKS_AT]->(:Company)
  (:BusinessLeader)-[:BOARD_MEMBER_OF]->(:Company)
  (:BusinessLeader)-[:PREVIOUSLY_WORKED_AT]->(:Company)

Key capabilities
- Introduction path finder: shortestPath Cypher query up to 6 hops
- Top connectors view: bridge nodes ranked by degree centrality
- B2B industry targeting: all leaders + connection counts per sector
- Extended network: reachable leaders within 1–3 degrees
- Mutual connections: shared contacts between any two leaders

Files added
- lib/neo4j/client.rb            Raw HTTP client for Neo4j transactional API
- config/initializers/neo4j.rb   Connection + index/constraint setup at boot
- app/models/business_leader.rb  Graph ORM with path and network queries
- app/models/company.rb          Graph ORM for company nodes
- app/controllers/*              Three controllers (leaders, companies, network)
- app/views/**                   Full UI across 9 view templates
- db/seeds.rb                    20 leaders, 8 companies, 38 connections
- lib/tasks/neo4j.rake           Operational rake tasks

https://claude.ai/code/session_011KFG93TXcjZMhSgM6iFJ5T
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants