Home / Companies / Neo4j / Blog / Post Details
Content Deep Dive

Upload Your Last.fm Data to Neo4j with RNeo4j and the Transactional Endpoint

Blog post from Neo4j

Post Details
Company
Date Published
Author
Nicole White
Word Count
1,087
Language
English
Hacker News Points
-
Summary

This article demonstrates how to upload Last.fm data, a music listening history database, into Neo4j using RNeo4j. The author collects scrobble data from the Last.fm API and writes it to a CSV file, which is then imported into Neo4j in blocks of 1000 rows to avoid performance issues with the batch importer. The data model includes relationships between users, tracks, artists, and genres, allowing for querying of music listening history and artist information. After creating the database, the author adds genre information for the artists by retrieving the top tags for each artist using the Artist.getTopTags endpoint and updating the corresponding artist nodes with a relationship to the genre node. The process is done in batches to ensure performance and efficiency.