A Game of Data and GraphQL [Game of Thrones Community Post]


Learn how to use Neo4j + GraphQL to analyze data from Game of Thrones and A Song of Ice and Fire

This blog post was originally published on Medium by Michael Hunger and is used with permission.

Creating a Neo4j graph 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 A Wiki of Ice and Fire and the Game of Thrones Wikia. But those are unfortunately not available as plain data APIs.

Thanks to Joakim 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 GitHub repository.

Most recently, the Wall Street Journal wrote about his API, which I find quite unexpected.



As we currently have our 7 weeks of Graph of Thrones challenge running, I thought it would be fun and useful to create a Neo4j graph database out of Joakim’s data.

You can find all the scripts and documentation in my game-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 Michael’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.


Want to learn more about how relational databases compare to their graph counterparts? Download this ebook, The Definitive Guide to Graph Databases for the RDBMS Developer, and discover when and how to use graph technology in conjunction with your relational database.

Get the Ebook