-
Notifications
You must be signed in to change notification settings - Fork 0
/
presentation.html
289 lines (244 loc) · 11.9 KB
/
presentation.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1024" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>CharityViz - @mikejewell, @graingert, @danpalmer</title>
<meta name="description" content="impress.js is a presentation tool based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com." />
<meta name="author" content="Bartek Szopka" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic" rel="stylesheet" />
<link href="css/impress-demo.css" rel="stylesheet" />
<link rel="shortcut icon" href="favicon.png" />
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
<!-- CharityViz Requirements -->
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/2.8.1/d3.v2.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.2/backbone-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.0.3/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0.beta6/handlebars.min.js"></script>
<script src="http://www.openlayers.org/api/OpenLayers.js"></script>
<script src="js/countrycodes.js"></script>
<script src="js/sparql/sparql.js"></script>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body class="impress-not-supported">
<div class="fallback-message">
<p>Your browser <b>doesn't support the features required</b> by impress.js, so you are presented with a simplified version of this presentation.</p>
<p>For the best experience please use the latest <b>Chrome</b>, <b>Safari</b> or <b>Firefox</b> browser.</p>
</div>
<div id="impress">
<div id="s1" class="step slide" data-x="-1000" data-y="-1500">
<q>There is a lot of available data about charities and their projects, but no one knows where it is.</q>
</div>
<div id="s1-1" class="step slide" data-x="-1000" data-y="-1500" data-z="-2000">
<q>The <b>International Aid Transparency Initiative</b> is leading the way providing open data for many projects happening all over the world.</q>
<img src="http://www.aidtransparency.net/wp-content/themes/iati/img/iati-logo.png"/>
</div>
<div id="s2" class="step slide" data-x="0" data-y="-1500">
<q>Charities are being told to make more of their data public, but aren't seeing any use of it.</q>
</div>
<div id="s3" class="step slide" data-x="1000" data-y="-1500">
<q>We want to give people easy access to the data <em>where they want it</em>.<br/><br/>Charities will be able to see the effect that publishing good data has.</q>
</div>
<div id="s4" class="step" data-x="0" data-y="0" data-scale="4">
<h1>Introducing...</h1>
<span class="try">charityviz.js</span>
</div>
<div id="s5" class="step" data-x="2500" data-y="0" data-z="0" data-rotate-x="0" data-rotate-y="0" data-rotate-z="100" data-scale="1">
<p>Hover over this charity...<br/>
<a data-iati="41AAA-00057337">Global Environment<br/>Facility (GEF) Small Grants Programme</a>
</p>
</div>
<div id="s6" class="step" data-x="2500" data-y="1500" data-scale="1">
<p>...and click on this one for more information!<br/>
<a data-iati="44000-P048204">Petroleum Environment<br/>Capacity Enhancement<br/>Project</a>
</p>
</div>
<div id="s7" class="step" data-x="1000" data-y="2000" data-scale="2">
<p>How do you use it?</p>
</div>
<div id="s8" class="step" data-x="1000" data-y="3000" data-scale="2">
<p>Well it's not quite finished, we have a few dependencies.<br/><br/>But this is what we are aiming for...</p>
</div>
<div id="s9" class="step" data-x="1000" data-y="4200" data-scale="2">
<pre class="prettyprint linenums" style="font-size:40px;line-height:50px">
<a data-iati="IATI-Project-ID">
A Charitable Project
</a>
<script src="charityviz.js">
</script></pre>
</div>
<div id="s10" class="step" data-x="3000" data-y="4200" data-scale="2">
<pre class="prettyprint linenums" style="font-size:40px;line-height:50px">
var u = 'http://myservice.com/endpoint';
$(function() {
$('[data-iati]').charityViz(u);
});</pre>
</div>
<div id="s11" class="step slide" data-x="-2000" data-z="-1500" data-y="3000" data-rotate-z="90" data-scale="2">
<q>We've got loads more data we can add, and we want to present this in a way that is accessible to everyone.<br/><br/><br/>How does it work?</q>
</div>
<div id="s11-2" class="step" data-x="-2000" data-z="-7000" data-y="3000" data-rotate-z="90" data-scale="2">
<pre>
SELECT * WHERE {
activity:{{{ project_id }}} iati:transaction ?trans .
?trans iati:value ?value;
iati:valueCurrency ?valueCurrency;
iati:transactionIsoDate ?date;
dc:description ?description;
iati:providerOrg ?providerOrg;
iati:receiverOrg ?receiverOrg.
{
select ?type where {
activity:{{{ project_id }}} iati:transaction ?trans .
?trans iati:transactionType ?txtype .
?txtype skos:prefLabel ?type .
}
}
{
select ?providerTitle where {
activity:{{{ project_id }}} iati:transaction ?trans .
?trans iati:providerOrg ?providerOrg .
?providerOrg dc:title ?providerTitle . } LIMIT 1
}
{
select ?receiverTitle where {
activity:{{{ project_id }}} iati:transaction ?trans .
?trans iati:receiverOrg ?receiverOrg .
?recieverOrg dc:title ?receiverTitle . } LIMIT 1
}
}
</pre>
</div>
<div id="s12" class="step" data-x="-3500" data-z="-1500" data-y="3000" data-rotate-z="90" data-scale="2">
<p>We hope we can work with the IATI in the future to make this happen and ensure that the project continues to evolve.</p>
</div>
<div id="s13" class="step" data-x="-5000" data-z="-1500" data-y="3000" data-rotate-x="90" data-rotate-z="0" data-scale="2">
<p>Thanks for watching.</p>
<a href="http://rhoksoton.github.com/CharityViz/">http://rhoksoton.github.com/CharityViz/</a><br/>
<br>by
<a href="http://twitter.com/mikejewell">@mikejewell</a>,
<a href="http://twitter.com/graingert">@graingert</a> and
<a href="http://twitter.com/danpalmer">@danpalmer</a><br/>
</div>
</div>
<!-- REMOVE!!!! -->
<script type="application/x-handlebars-template" id="project-retrieve-sparql-template">
SELECT * WHERE {
activity:{{{ project_id }}} dc:title ?title;
dc:description ?description;
iati:activityWebsiteUrl ?webSite.
OPTIONAL { activity:{{{ project_id }}} iati:recipientCountry ?recipientCountry. }
OPTIONAL {
activity:{{{ project_id }}} iati:contactInfoOrganisation ?contactInfo.
?contactInfo dc:title ?contactTitle;
iati:contactInfoEmail ?contactEmail;
iati:contactInfoPerson ?contactPerson;
iati:contactInfoPhone ?contactPhone;
iati:contactInfoAddress ?contactAddress.
}
}
</script>
<script type="text/x-handlebars-template" id="participant-retrieve-sparql-template">
SELECT ?participantTitle WHERE {
activity:{{{ project_id }}} iati:participatingOrg ?participating.
?participating rdfs:seeAlso ?actualParticipant.
?participating iati:participatingOrgRole "Implementing".
?actualParticipant dc:title ?participantTitle.
}
</script>
<script type="text/x-handlebars-template" id="transaction-retrieve-sparql-template">
SELECT * WHERE {
activity:{{{ project_id }}} iati:transaction ?trans .
?trans iati:value ?value;
iati:valueCurrency ?valueCurrency;
iati:transactionIsoDate ?date;
dc:description ?description;
iati:providerOrg ?providerOrg;
iati:receiverOrg ?receiverOrg.
{
select ?providerTitle where {
activity:{{{ project_id }}} iati:transaction ?trans .
?trans iati:providerOrg ?providerOrg .
?providerOrg dc:title ?providerTitle . } LIMIT 1
}
{
select ?receiverTitle where {
activity:{{{ project_id }}} iati:transaction ?trans .
?trans iati:receiverOrg ?receiverOrg .
?recieverOrg dc:title ?receiverTitle . } LIMIT 1
}
}
</script>
<script type="text/x-handlebars-template" id="project-view-template">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="project-name">{{ title }}<small class="charity-name">{{ organisation }}</small></h3>
</div>
<div class="modal-body">
{{#if address}}
<address>
<i class="icon-home"></i></i><strong>{{address.name}}</strong><br>
{{address.address}}<br>
<i class="icon-phone">tell:</i><a href="tel:{{address.phone}}">{{address.phone}}</a><br/>
<i class="icon-envelope"></i> <a href="mailto:{{address.email}}">{{address.email}}</a>
</address>
{{/if}}
{{#if transactions}}
<table class="table table-striped transactions-table">
<thead>
<tr>
<th>Incoming</th>
<th></th>
<th>Outgoing</th>
</tr>
</thead>
<tbody>
{{#each transactions}}
{{#if this.receiver}}
<tr>
<td class="td0"></td>
<td class="td1"><div class="left-arrow"></div></td>
<td class="td2"><b>{{this.receiver}}</b><br><small>{{this.description}}</small><br/><b>Amount: {{this.amount}}</b></td>
</tr>
{{else}}
<tr>
<td class="td0"><b>{{this.provider}}</b><br><small>{{this.description}}</small><br/><b>Amount: {{this.amount}}</b></td>
<td class="td1"><div class="right-arrow"></div></td>
<td class="td2"></td>
</tr>
{{/if}}
{{/each}}
</tbody>
</table>
{{/if}}
<hr/>
<h4>About</h4>
<p>{{ description }}</p>
</div>
<div class="modal-footer">
<a href="http://data.kasabi.com/dataset/iati/activity/{{id}}.html" target="_blank"><img border="0" src="http://assets.okfn.org/images/ok_buttons/od_80x15_blue.png" /></a>
</div>
</script>
<script type="text/x-handlebars-template" id="project-popover-template">
<div class="map"></div>
{{#if description}}
<div class="popover-content-container">
{{ description }}
</div>
{{/if}}
</script>
<!-- END REMOVE -->
<script src="js/impress.js"></script>
<script>impress().init();</script>
<script>
$(function() {
$('[data-iati]').projectViz('http://sparql.aidinfolabs.org/sparql/');
});
</script>
<script src="js/charityviz.js"></script>
</body>
</html>