Derived RDF graphs over WASABI artists, built from the WASABI knowledge graph (Zenodo 5603369) and MTG-SAS similarity data. Prepared for the Music Hackathon London, 5–6 December 2026, by George Fazekas (Centre for Digital Music, Queen Mary University of London). This is a temporary project release.
| Folder | Graph | Size |
|---|---|---|
cultural-similarity/ |
Cultural similarity v0.3: 20 nearest artists for each of 36,839 artists, from Last.fm tags, genres and Wikipedia categories (TF-IDF profiles, ComplEx KG embeddings and a KG-guided transformer) | 5.9M triples, 18 MB |
musical-similarity/ |
Musical similarity v0.4 from artist harmonic (chord) profiles: 20 nearest artists for each of 14,508 artists. Cosine between key-relative chord and chord-transition profiles from WASABI’s automatic chord transcriptions; no tags or genres used | 2.3M triples, 6.5 MB |
dissimilarity/ |
Within-genre dissimilarity v0.3-dis: for each artist and genre, the 5 least-similar artists of that genre (8,232 artists, 153 genres), plus 5 artists spanning each genre | 0.9M triples, 2.2 MB |
chord-theory/ |
Chord-theory graph v0.4: 24 triads and 576 transitions with music-theory relations (common tones, fifths, function, root motion, cadential variants) | 7k triples |
artist-tag-prompts/ |
Artist tag prompts v0.3.2: per artist (23,826), genres and most characteristic descriptive Last.fm tags (listener tags, not generated text), as ordered terms with tag facets | 0.7M triples, 3.1 MB |
.ttl.gz) and as JSON-LD (.jsonld.gz). The JSON-LD is also plain JSON: one object per artist with its links nested inside, plus names and MBIDs. A JSON-LD processor gets the same RDF as the Turtle, except the similarTo / contrastsWithinGenre shortcut triples; the names are convenience fields mapped to null in the context. The shared context is ../ontology/wsim-0.1.context.jsonld.…_sample.ttl and …_sample.jsonld (a few entries) that you can read on GitHub without downloading the dump.../ontology/wsim-0.1.ttl. Terms resolve there: wsim: = https://wsim.semanticaudio.net/ontology/wsim-0.1.ttl#.../ontology/example_similarity.ttl.wasabi-similarity-dataset.ttl.http://ns.inria.fr/wasabi/artist/…), so the graphs join directly with WASABI’s own RDF. Our data URIs start with https://wsim.semanticaudio.net/similarity/ and identify links, models, tags and facets; they don’t resolve to pages of their own.wsart:A wsim:similarTo wsart:B . # shortcut
sim:v0.3/sim/A-B a wsim:ArtistSimilarity ; wsim:source wsart:A ; wsim:target wsart:B ;
wsim:score 17.2 ; wsim:rank 1 ; wsim:dimension "cultural" ; # "musical" in the chord-profile graph
prov:wasGeneratedBy sim:v0.3/model . # model node: method, features, evaluation (JSON)
wsart:A wsim:contrastsWithinGenre wsart:C . # dissimilarity shortcut; details on wsim:ArtistDissimilarity nodes
wsart:A wsim:tagPrompt "trip hop, downtempo, female vocalists, …" ; wsim:promptTerm sim:v0.3.2/term/A/1 , … .
sim:tag/trip-hop wsim:facet sim:facet/genre .
import gzip, pyoxigraph as ox # pip install pyoxigraph (rdflib also works)
st = ox.Store()
st.bulk_load(gzip.open('similarity/cultural-similarity/artist_similarity_cultural_v0.3.ttl.gz').read(), ox.RdfFormat.TURTLE)
q = '''PREFIX wsim: <https://wsim.semanticaudio.net/ontology/wsim-0.1.ttl#>
SELECT ?rank ?other WHERE { ?l a wsim:ArtistSimilarity ; wsim:source <http://ns.inria.fr/wasabi/artist/56d95d7dcc2ddd0c0f6b9c59> ; # Radiohead
wsim:rank ?rank ; wsim:target ?other } ORDER BY ?rank LIMIT 5'''
for r in st.query(q): print(r['rank'].value, r['other'].value)
Plain JSON: json.load(gzip.open('…/artist_similarity_cultural_v0.3.jsonld.gz'))['@graph'] gives one object per artist with neighbours (rank, score, target, targetName).
Load several graphs into one store to compare them, e.g. filter on wsim:dimension to compare cultural and musical neighbours. Artist names come from WASABI itself.
CSV versions, artist embeddings and text tools (text → artists, artist → tag prompt) are in the hackathon data pack, outside this repository.