Skip to content

Instantly share code, notes, and snippets.

@gunzapper
Created February 20, 2014 13:08
Show Gist options
  • Save gunzapper/9113147 to your computer and use it in GitHub Desktop.
Save gunzapper/9113147 to your computer and use it in GitHub Desktop.
Network of album mined form OndaRock.it
{
"directed": false,
"graph": [],
"nodes": [
{
"title": "I Am A Bird Now",
"artist": "Antony and the Johnsons",
"group": 1,
"id": "/recensioni/2005_antony.htm",
"year": "2005"
},
{
"title": "An Empty Bliss Beyond This World",
"artist": "The Caretaker",
"group": 1,
"id": "/recensioni/2011_caretaker.htm",
"year": "2011"
},
{
"title": "R\u00e9alit\u00e9 De L'Automation Directe",
"artist": "Vivenza",
"group": 1,
"id": "/recensioni/2011_vivenza_realite.htm",
"year": "2011"
},
{
"title": "Memory Drawings",
"artist": "Drift",
"group": 1,
"id": "/recensioni/2008_drift.htm",
"year": "2008"
},
{
"title": "Cremations",
"artist": "Cold Cave",
"group": 1,
"id": "/recensioni/2009_cremations.htm",
"year": "2009"
},
{
"title": "Violetshaped",
"artist": "Violetshaped",
"group": 1,
"id": "/recensioni/2013_violetshaped_violetshaped.htm",
"year": "2013"
},
{
"title": "The Rose Has Teeth In The Mouth Of A Beast",
"artist": "Matmos",
"group": 1,
"id": "/recensioni/2006_matmos.htm",
"year": "2006"
},
{
"title": "Love Comes Close",
"artist": "Cold Cave",
"group": 1,
"id": "/recensioni/2009_coldcave.htm",
"year": "2009"
},
{
"title": "Sadly, The Future Is No Longer What It Was",
"artist": "Leyland Kirby",
"group": 1,
"id": "/recensioni/2009_kirby.htm",
"year": "2009"
},
{
"title": "The Sun Awakens",
"artist": "Six Organs Of Admittance",
"group": 1,
"id": "/recensioni/2006_sixorgansofadmittance.htm",
"year": "2006"
},
{
"title": "Talk Amongst The Trees",
"artist": "Eluvium",
"group": 1,
"id": "/recensioni/2005_eluvium.htm",
"year": "2005"
},
{
"title": "September Cell Ep",
"artist": "Vatican Shadow",
"group": 1,
"id": "/recensioni/2012_vaticanshadow_septembercell.htm",
"year": "2012"
},
{
"title": "By The Throat",
"artist": "Ben Frost",
"group": 1,
"id": "/recensioni/2009_benfrost.htm",
"year": "2009"
},
{
"title": "Eald-Ge-Str\u00e9on/ Abhij\u00f1\u00e2",
"artist": "Troum",
"group": 1,
"id": "/recensioni/2009_troum.htm",
"year": "2009"
},
{
"title": "Eager To Tear Apart The Stars",
"artist": "Leyland Kirby",
"group": 1,
"id": "/recensioni/2011_leylandkirby.htm",
"year": "2011"
},
{
"title": "In Bocca Al Lupo",
"artist": "Xela",
"group": 1,
"id": "/recensioni/2008_xela.htm",
"year": "2008"
},
{
"title": "Green & Cold",
"artist": "Aidan Baker",
"group": 1,
"id": "/recensioni/2007_baker.htm",
"year": "2007"
},
{
"title": "KTL 2",
"artist": "KTL",
"group": 1,
"id": "/recensioni/2007_ktl.htm",
"year": "2007"
},
{
"title": "And Still, Wanting",
"artist": "Prurient",
"group": 1,
"id": "/recensioni/2008_prurient.htm",
"year": "2008"
},
{
"title": "Psychedelic Black",
"artist": "Prostitutes",
"group": 1,
"id": "/recensioni/2012_prostitutes_psychedelicblack.htm",
"year": "2012"
},
{
"title": "Now I'm Just A Number: Soundtracks 1994-1995",
"artist": "Black Rain",
"group": 1,
"id": "/recensioni/2012_blackrain_nowimjustanumber.htm",
"year": "2012"
},
{
"title": "Fantasma - Parastasie",
"artist": "Aidan Baker & Tim Hecker",
"group": 1,
"id": "/recensioni/2008_baker.htm",
"year": "2008"
},
{
"title": "Theory Of Machines",
"artist": "Ben Frost",
"group": 1,
"id": "/recensioni/2007_benfrost.htm",
"year": "2007"
},
{
"title": "The Civil War",
"artist": "Matmos",
"group": 1,
"id": "/recensioni/2003_matmos.htm",
"year": "2003"
},
{
"title": "Wrapped In The Flame Of Illusion, Masked In The Clay Of Behavior",
"artist": "Prurient",
"group": 1,
"id": "/recensioni/2012_prurient_wrappedintheflame.htm",
"year": "2012"
},
{
"title": "Mothertongue",
"artist": "Nico Muhly",
"group": 1,
"id": "/recensioni/2008_muhly.htm",
"year": "2008"
},
{
"title": "Tiger Smells A Corpse",
"artist": "Prurient",
"group": 1,
"id": "/recensioni/2012_prurient_tigersmellsacorpse.htm",
"year": "2012"
},
{
"title": "Cloud Seed",
"artist": "Vex'd",
"group": 1,
"id": "/recensioni/2010_vexd.htm",
"year": "2010"
},
{
"title": "Going Places",
"artist": "Yellow Swans",
"group": 1,
"id": "/recensioni/2010_yellowswans.htm",
"year": "2010"
},
{
"title": "Persistent Repetition Of Phrases",
"artist": "Caretaker",
"group": 1,
"id": "/recensioni/2008_thecaretaker.htm",
"year": "2008"
},
{
"title": "Oxidation",
"artist": "Prurient",
"group": 1,
"id": "/recensioni/2012_prurient_oxidation.htm",
"year": "2012"
},
{
"title": "Rose Pillar",
"artist": "Prurient",
"group": 1,
"id": "/recensioni/2009_prurient.htm",
"year": "2009"
},
{
"title": "Summer Make Good",
"artist": "Mum",
"group": 1,
"id": "/recensioni/2004_mum.htm",
"year": "2004"
},
{
"title": "Ravedeath, 1972",
"artist": "Tim Hecker",
"group": 1,
"id": "/recensioni/2011_timhecker.htm",
"year": "2011"
},
{
"title": "Exterminate (ristampa)",
"artist": "Atrax Morgue",
"group": 1,
"id": "/recensioni/2012_atraxmorgue_exterminate.htm",
"year": "2012"
},
{
"title": "The Pentaki Slopes",
"artist": "Kangding Ray",
"group": 1,
"id": "/recensioni/2012_kangdingray_pentakislopes.htm",
"year": "2012"
},
{
"title": "In A Safe Place",
"artist": "The Album Leaf",
"group": 1,
"id": "/recensioni/2004_thealbumleaf.htm",
"year": "2004"
},
{
"title": "Ornamented Walls",
"artist": "Vatican Shadow",
"group": 1,
"id": "/recensioni/2012_vaticanshadow_ornamentedwalls.htm",
"year": "2012"
},
{
"title": "Until Human Voices Wake Us",
"artist": "Shapednoise",
"group": 1,
"id": "/recensioni/2013_shapednoise_untilhumanvoiceswakeus.htm",
"year": "2013"
},
{
"title": "Bermuda Drain",
"artist": "Prurient",
"group": 1,
"id": "/recensioni/2011_prurient.htm",
"year": "2011"
},
{
"title": "Aftertime",
"artist": "Roly Porter",
"group": 1,
"id": "/recensioni/2011_rolyporter.htm",
"year": "2011"
},
{
"title": "Through The Window",
"artist": "Prurient",
"group": 1,
"id": "/recensioni/2013_prurient_throughthewindow.htm",
"year": "2013"
},
{
"year": "2014",
"artist": "AA.VV.",
"group": 0,
"id": "/recensioni/2014_aavv_sullagiostranellombra.htm",
"title": "Sulla Giostra Nell'ombra"
},
{
"title": "School Of The Flower",
"artist": "Six Organs Of Admittance",
"group": 1,
"id": "/recensioni/2005_sixorgansofadmittance.htm",
"year": "2005"
},
{
"title": "()",
"artist": "Sigur R\u00f2s",
"group": 1,
"id": "/recensioni/2002_sigurros.htm",
"year": "2002"
},
{
"title": "Cherish The Light Years",
"artist": "Cold Cave",
"group": 1,
"id": "/recensioni/2011_coldcave.htm",
"year": "2011"
},
{
"title": "Love Is A Stream",
"artist": "Jefre Cantu-Ledesma",
"group": 1,
"id": "/recensioni/2010_jefrecantuledesma.htm",
"year": "2010"
},
{
"title": "Black Ships Ate The Sky",
"artist": "Current 93",
"group": 1,
"id": "/recensioni/2006_current93.htm",
"year": "2006"
},
{
"title": "Ekv\u00edlibr\u00edum",
"artist": "Valgeir Sigurdsson",
"group": 1,
"id": "/recensioni/2007_sigurdsson.htm",
"year": "2007"
},
{
"title": "Kurr",
"artist": "Amiina",
"group": 1,
"id": "/recensioni/2007_amiina.htm",
"year": "2007"
},
{
"title": "An Imaginary Country",
"artist": "Tim Hecker",
"group": 1,
"id": "/recensioni/2009_hecker.htm",
"year": "2009"
},
{
"title": "The Letting Go",
"artist": "Bonnie Prince Billy",
"group": 1,
"id": "/recensioni/2006_bonnieprincebilly.htm",
"year": "2006"
}
],
"links": [
{
"source": 0,
"target": 6
},
{
"source": 0,
"target": 47
},
{
"source": 1,
"target": 14
},
{
"source": 1,
"target": 8
},
{
"source": 1,
"target": 29
},
{
"source": 2,
"target": 38
},
{
"source": 3,
"target": 46
},
{
"source": 4,
"target": 31
},
{
"source": 4,
"target": 11
},
{
"source": 4,
"target": 7
},
{
"source": 5,
"target": 38
},
{
"source": 5,
"target": 40
},
{
"source": 5,
"target": 37
},
{
"source": 5,
"target": 42
},
{
"source": 5,
"target": 19
},
{
"source": 5,
"target": 35
},
{
"source": 5,
"target": 20
},
{
"source": 6,
"target": 22
},
{
"source": 6,
"target": 23
},
{
"source": 7,
"target": 45
},
{
"source": 7,
"target": 31
},
{
"source": 8,
"target": 14
},
{
"source": 8,
"target": 29
},
{
"source": 9,
"target": 47
},
{
"source": 9,
"target": 43
},
{
"source": 10,
"target": 50
},
{
"source": 11,
"target": 39
},
{
"source": 11,
"target": 45
},
{
"source": 11,
"target": 37
},
{
"source": 11,
"target": 24
},
{
"source": 12,
"target": 25
},
{
"source": 12,
"target": 33
},
{
"source": 12,
"target": 22
},
{
"source": 12,
"target": 49
},
{
"source": 12,
"target": 48
},
{
"source": 13,
"target": 28
},
{
"source": 14,
"target": 40
},
{
"source": 15,
"target": 46
},
{
"source": 16,
"target": 50
},
{
"source": 17,
"target": 40
},
{
"source": 18,
"target": 26
},
{
"source": 21,
"target": 50
},
{
"source": 22,
"target": 40
},
{
"source": 24,
"target": 39
},
{
"source": 24,
"target": 30
},
{
"source": 26,
"target": 30
},
{
"source": 26,
"target": 41
},
{
"source": 27,
"target": 40
},
{
"source": 28,
"target": 46
},
{
"source": 28,
"target": 50
},
{
"source": 28,
"target": 40
},
{
"source": 30,
"target": 39
},
{
"source": 31,
"target": 39
},
{
"source": 32,
"target": 36
},
{
"source": 33,
"target": 51
},
{
"source": 33,
"target": 50
},
{
"source": 33,
"target": 46
},
{
"source": 33,
"target": 40
},
{
"source": 33,
"target": 36
},
{
"source": 34,
"target": 38
},
{
"source": 36,
"target": 44
},
{
"source": 37,
"target": 41
},
{
"source": 38,
"target": 41
},
{
"source": 38,
"target": 42
},
{
"source": 39,
"target": 41
},
{
"source": 39,
"target": 45
},
{
"source": 46,
"target": 50
}
],
"multigraph": false
}
<!DOCTYPE html>
<!-- From D3 documentation page -->
<!-- here divided in two files, view network_control.js -->
<meta charset="utf-8">
<style>
h1 {
font-size : 12pt;
color: #999;
}
.node {
stroke: #fff;
stroke-width: 1.5px;
}
.link {
stroke: #999;
stroke-opacity: .6;
stroke-width: 1.5px;
}
</style>
<head>
<title>Ondarock Network Analysis</title>
</head>
<body>
<h1>Network of linked albums</h1>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var width = 960,
height = 500;
var color = d3.scale.category20();
var force = d3.layout.force()
.charge(-120)
.linkDistance(30)
.size([width, height]);
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
d3.json("force.json", function(error, graph) {
force
.nodes(graph.nodes)
.links(graph.links)
.start();
var link = svg.selectAll(".link")
.data(graph.links)
.enter().append("line")
.attr("class", "link")
.style("stroke-width", function(d) { return Math.sqrt(d.value); });
var node = svg.selectAll(".node")
.data(graph.nodes)
.enter().append("circle")
.attr("class", "node")
.attr("r", 5)
.style("fill", function(d) { return color(d.group); })
.call(force.drag);
node.append("title")
.text(function(d) { return d.artist+'\n'+d.title+'\n'+d.year; });
force.on("tick", function() {
link.attr("x1", function(d) { return d.source.x; })
.attr("y1", function(d) { return d.source.y; })
.attr("x2", function(d) { return d.target.x; })
.attr("y2", function(d) { return d.target.y; });
node.attr("cx", function(d) { return d.x; })
.attr("cy", function(d) { return d.y; });
});
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment