-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
152 lines (132 loc) · 4.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html>
<head>
<title>Linked Open Data is Linked!</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="deps/jquery.min.js"></script>
<script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script src="deps/d3.v3.min.js" charset="utf-8"></script>
<!-- <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>-->
<script src="readjson.js"></script>
<script src="main.js"></script>
<!-- <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> -->
<style>
#tooltip {
color: white;
opacity: .9;
background: #333;
padding: 5px;
border: 1px solid lightgrey;
border-radius: 5px;
position: absolute;
z-index: 10;
visibility: hidden;
white-space: nowrap;
pointer-events: none;
}
#circle circle {
fill: none;
pointer-events: all;
}
path.group {
fill-opacity: .8;
}
path.chord {
fill-opacity: .8;
stroke: #000;
stroke-width: .25px;
}
#circle:hover path.fade {
display: none;
}
#svgcontainer {
margin-top: 2em;
width: 1400px;
height: 1200px;
position:relative;
}
#order {
width:14em;
position:absolute;
top:0;
left:0;
z-index:10;
}
#filters {
width:19em;
position:absolute;
top: 0;
left: 1100px;
z-index: 10;
}
#filters p {
border: 1px solid black;
margin: 2px;
padding:0.3em;
padding-bottom:0.5em;
height:1.2em;
background: #EEE
}
#svgfloat {
position:absolute;
top: 0;
left: 0;
z-index:1;
}
#menu .ui-selecting { background: #222222; color: white; }
#menu .ui-selected { background: #222222; color: white; }
#menu { list-style-type: none; margin: 0; padding: 0; }
#menu li { border:1px solid black; background:#EEEEEE; margin: 2px; padding: 0.3em; height: 1.2em; }
</style>
</head>
<body>
<div>
<h1>Linked Open Data is Linked!</h1>
<p>The following diagram represents the famous <a href="http://lod-cloud.net">Linked Open Data Cloud</a> as an interactive <a href="https://github.com/mbostock/d3/wiki/Chord-Layout">chord diagram</a> depicting the relationships among datasets using <a href="http://d3js.org">D3.js</a>. The data is extracted from the <a href="http://datahub.io">datahub.io</a> dataset repository, <a href="https://github.com/lod-cloud/datahub2void">converted to RDF</a>, and processed using the <a href="http://www.rdfhdt.org">RDF/HDT</a> tools. Special thanks to <a href="http://richard.cyganiak.de/">Richard Cyganiak</a> and <a href="http://anjeve.de/">Anja Jentzsch</a> for creating the original LOD Cloud diagram, and specially Richard for his feedback.</p>
Distributed under <a href="http://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA license</a> and available on <a href="http://github.com/MarioAriasGa/lod-chord">GitHub</a>. Visualization by <a href="http://github.com/MarioAriasGa">Mario Arias</a>.
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<p>Legend:<br/>
The <b>height</b> of the outer ring represents the <b>size</b> (in number of statements) of each dataset, in logarithmic scale.<br/>
The <b>sector width</b> is proportional to the number of <b>cross-dataset statements</b> (both incoming and outcoming).<br/>
The <b>color</b> of each label represents the <b>category</b> (Government, Geography, etc.)</p>
<a href="#" onclick="DoFullScreen(); return false">Enjoy Full screen</a>
<a href="#" onclick="return saveSvg(this);">Save as SVG.</a>
<!-- <a href="#" onclick="return savePng(this);">Save as PNG.</a> -->
</div>
<div>
<div id="svgcontainer">
<a name="top"></a>
<div id="filters">
<b>Filter by</b>
<p>
<input id="sizefilterlabel" type="text" readonly size="7" value=">0"/>
<input id="sizefilter" type="range" value="0"></input>
<label for="sizefilter">Dataset size</label>
</p>
<p>
<input id="linkfilterlabel" type="text" readonly size="7" value=">0" />
<input id="linkfilter" type="range" value="0"></input>
<label for="linkfilter">Links</label>
</p>
</div>
<div id="order">
<b>Order by</b>
<ol id="menu">
<li id="1" class="ui-selected ui-widget-content">Name</li>
<li id="2" class="ui-widget-content">Dataset size</li>
<li id="3" class="ui-widget-content">Category</li>
<li id="4" class="ui-widget-content">Number of links</li>
<li id="5" class="ui-widget-content">Number of related datasets</li>
</ol>
</div>
<div id="svgfloat">
</div>
<div style="clear:both">
</div>
</div>
<div id="tooltip"></div>
<div id="canvascontainer" style="display:none">
</div>
</body>
</html>