A Game of Data and GraphQL [Game of Thrones Community Post]
Head of Product Innovation & Developer Strategy, Neo4j
2 min read

This blog post was originally published on opens in new tabMedium by opens in new tabMichael Hunger and is used with permission.
Creating a Neo4j opens in new tabgraph database (and more) based on Game of Thrones (and A Song of Ice and Fire) data.
As season 7 is progressing, interest around Game of Thrones data is flaring up again. There are plenty of very thorough data sources like the opens in new tabA Wiki of Ice and Fire and the opens in new tabGame of Thrones Wikia. But those are unfortunately not available as plain data APIs.
Thanks to opens in new tabJoakim Skoog that changed at least a bit. He scraped and cleaned data from the sources above and made it available at his An API of Ice and Fire, which is a neat .NET project running on Microsoft Azure. The code and data (!!) is also available in his opens in new tabGitHub repository.
Most recently, the Wall Street Journal wrote about his API, which I find quite unexpected.
‘Game of Thrones’ fans are getting obsessive over datahttps://t.co/ImY1rWJQuO
— Wall Street Journal (@WSJ) July 12, 2017
As we currently have our opens in new tab7 weeks of Graph of Thrones challenge running, I thought it would be fun and useful to create a opens in new tabNeo4j graph database out of Joakim’s data.
You can find all the scripts and documentation in my opens in new tabgame-of-graphs GitHub repository.
Data Source
The data about Westeros is available via several API endpoints, which are detailed in the documentation. For us the house and character data is most interesting….
Read the rest of opens in new tabMichael’s post on Medium where he covers using Neo4j, GraphQL and Cypher to analyze data from Game of Thrones / A Song of Ice and Fire.