Company
Date Published
Author
Neo4j
Word count
2240
Language
English
Hacker News points
None

Summary

In this blog post, the author explores how to load XML data into a Neo4j graph database using APOC, a suite of procedural macros for Cypher. The author starts by preparing the data, including downloading the XML files and installing the necessary Python driver py2neo. They then use APOC to extract information from the XML files, creating nodes and relationships in the graph as they go. The author demonstrates how to create relations between nodes using internal node IDs and how to visualize the resulting graph. Finally, they explore how the healthcare industry is influenced by lobbying efforts, tracing connections between lobbyists, lobby firms, and legislators. Throughout the post, the author shares their Python code and Cypher queries, providing a step-by-step guide for readers to follow along.