-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
482 lines (446 loc) · 20.7 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
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>The EU Knowledge Graph</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/wdaqua.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<link rel="stylesheet" href="plugin/title-footer/title-footer.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<div class="reveal">
<header style="position: absolute;top: 50px; left: 100px; z-index:500; font-size:100px;background-color: rgba(0,0,0,0.5)"></header>
<div class="slides">
<!-- First slide -->
<section ch="-1" style="position: relative; height: 100%;">
<h3 style="margin-top: 10%; color: rgb(10,100,147);">Wikibase:</h3>
<h3 style="color: rgb(10,100,147);">The EU Knowledge Graph</h3>
<!--<div style="font-size: 25px; padding-top: 25px;">by Dennis Diefenbach</div>-->
<div style="font-size: 25px; padding-top: 25px;">26.08.2020</div>
<div style="font-size: 25px; padding-top: 25px;">@EU (online)</div>
<img src="http://commons.wikimedia.org/wiki/Special:FilePath/European%20Commission.svg" style="margin-top: 5%; height: 100px; border: none; box-shadow: none;">
<!--<h4>From BibTeX input:</h4>-->
<div id="key1" class="cite" data-type="bib" ></div>
<div id="key2" class="cite" data-type="bib" ></div>
</section>
<!-- Outline -->
<section ch="0">
<h2>Outline</h2>
<ol>
<li><a href="#/general"><div style="display: inline-block; background: darkcyan; width: 35px; height: 35px"></div> What is Wikibase?</a></li>
<li><a href="#/EUKG"><div style="display: inline-block; background: rebeccapurple; width: 35px; height: 35px"></div> The EU Knowledge Graph</a></li>
<li><a href="#/kohesio"><div style="display: inline-block; background: #cd0027; width: 35px; height: 35px"></div> Kohesio</a></li>
<li><a href="#/conclusion"><div style="display: inline-block; background: orange; width: 35px; height: 35px"></div> Conclusion</a></li>
</ol>
</section>
<section ch="1" id="general">
<h2>What is Wikibase?<div style="vertical-align: top; font-size: smaller; display: inline;"></div></h2>
</section>
<section ch="1">
<div>Wikimedia hosts many wikis ....</div>
<img src="assets/wikimedia_projects.png" style="width: 60%;">
</section>
<section ch="1" data-background-iframe="https://www.wikidata.org/wiki/Q458" data-background-interactive>
<div style="margin-bottom: 90%">Wikidata is one of them!</div>
</section>
<section ch="1" data-background-iframe="https://wikiba.se" data-background-interactive>
<div style="margin-top: 40%">Wikibase is the software behind Wikidata</div>
</section>
<section ch="2" id="EUKG">
<h2>The EU Knowledge Graph<div style="vertical-align: top; font-size: smaller; display: inline;"></div></h2>
</section>
<section ch="2">
<div>A data repository to store structured data about the European Commission</div>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/The_EU_Knowledge_Graph" data-background-interactive>
<div style="margin-top: 50%">Available at <a href="https://linkedopendata.eu/">https://linkedopendata.eu/</a> </div>
</section>
<section>
<section ch="2">
<h3> Why using Wikibase?</h3>
</section>
<section ch="2">
<div>User Friendly</div>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q1" data-background-interactive>
</section>
<section ch="2">
<div>Graph structure</div>
</section>
<section ch="2" data-background-iframe="https://query.wikidata.org/embed.html#%23defaultView%3AGraph%0ASELECT%20%3Fitem%20%3FitemLabel%0AWHERE%0A%7B%0A%20%20%3Fitem%20%3FpDirect%20%3FlinkTo%20.%0A%20%20VALUES%20%3Fitem%20%7B%20wd%3AQ458%20%7D%0A%20%20%3Fitem%20rdfs%3Alabel%20%3FitemLabel%20.%0A%20%20FILTER%28lang%28%3FitemLabel%29%3D%22en%22%29%0A%7D" data-background-interactive>
</section>
<section ch="2">
<div>Can be queried</div>
</section>
<section ch="2" data-background-iframe="https://query.linkedopendata.eu/#%20SELECT%20DISTINCT%20%3Fname%20%3Fo2%20WHERE%20%7B%20%0A%20%20%20%3Chttps%3A%2F%2Flinkedopendata.eu%2Fentity%2FQ1%3E%20%20%3Chttps%3A%2F%2Flinkedopendata.eu%2Fprop%2Fdirect%2FP104%3E%20%20%3Fo1%20.%20%0A%20%20%20%3Fo1%20rdfs%3Alabel%20%3Fname%20.%0A%20%20%20FILTER%20%28lang%28%3Fname%29%3D%22en%22%29%0A%20%20%20%3Fo1%20%20%3Chttps%3A%2F%2Flinkedopendata.eu%2Fprop%2Fdirect%2FP9%3E%20%20%3Fo2%20.%20%0A%20%7D%20%20order%20by%20desc%28%3Fo2%29" data-background-interactive>
</section>
<section ch="2">
<div>Can be edited by humans and by bots</div>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q1" data-background-interactive>
<div style="z-index: 2"><a href="https://linkedopendata.eu/wiki/Item:Q1" target="_blank">https://linkedopendata.eu/wiki/Item:Q1</a></div>
</section>
<section ch="2">
<div>Scales</div>
</section>
<section ch="2">
<div>Wikibase hosts Wikidata, one of the largest existing KGs containing 5 Billion triples.</div>
</section>
<section ch="2">
<div>Multilingual</div>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q1" data-background-interactive>
<div><a style="z-index: 2" href="https://linkedopendata.eu/wiki/Item:Q1" target="_blank">https://linkedopendata.eu/wiki/Item:Q1</a></div>
</section>
<section ch="2">
<div>Full track of changes!</div>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q74781" data-background-interactive>
</section>
</section>
<section>
<section ch="2">
<h3>Current content ...</h3>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q171" data-background-interactive>
<div>European institutions</div>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q23" data-background-interactive>
<div>European countries</div>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q52" data-background-interactive>
<div>Capitals</div>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q131" data-background-interactive>
<div>Head of States</div>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q8361" data-background-interactive>
<div>DGs</div>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q244787" data-background-interactive>
<div>Buildings</div>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q19837" data-background-interactive>
<div>705.095 projects financed by the European Union</div>
</section>
</section>
<section>
<section ch="2">
<h3> Importing data ...</h3>
</section>
<section ch="2">
<h3> 1. Take any structured data</h3>
<img src="assets/buildings.png" style="width: 40%;">
</section>
<section ch="2">
<h3> 2. Model the data</h3>
<ul>
<li> Need entities like building, office</li>
<li> Need properties like address, open hour, occupant</li>
<li> Whenever possible take wikidata entities/properties or existing entities/properties</li>
</ul>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q244596" data-background-interactive>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Property:P641" data-background-interactive>
</section>
<section ch="2">
<h3> 3. Keep identifiers</h3>
<div> Use other identifiers so that one can use them to link to other resources!</div>
</section>
<section ch="2">
<h3> 4. Import using Wikibase APIs</h3>
<div> We always used Pywikibot ....</div>
<div> But there are alternatives ....</div>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q242378" data-background-interactive>
</section>
<section ch="2">
<div> The imported data is easy to understand, aligned with existing concepts, queriable and easy to reuse ....</div>
</section>
</section>
<section>
<section ch="2">
<h3> Keeping data fresh ...</h3>
</section>
<section ch="2">
<h3> 1. Entities imported from Wikidata</h3>
</section>
<section ch="2" data-background-iframe="https://www.wikidata.org/wiki/Q38" data-background-interactive>
</section>
<section ch="2" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q15" data-background-interactive>
</section>
<section ch="2">
<h3> 2. Entities imported from other sources</h3>
<div> Use the identifier to find the entity in the KG.</div>
<div> Check what has changed and make an update.</div>
</section>
</section>
<section>
<section ch="2">
<h3> Services around ...</h3>
</section>
<section ch="2">
<h3> 1. Data exports</h3>
<div>Available at <a href="https://data.linkedopendata.eu">https://data.linkedopendata.eu</a></div>
</section>
<section ch="2" data-background-iframe="https://data.linkedopendata.eu" data-background-interactive>
</section>
<section ch="2">
<h3> 2. Query Service</h3>
<div>Available at <a href="https://query.linkedopendata.eu">https://query.linkedopendata.eu</a></div>
</section>
<section ch="2" data-background-iframe="https://query.linkedopendata.eu/#%20SELECT%20DISTINCT%20%3Fs1%20%3Fcoordinates%20WHERE%20%7B%0A%20%20%20%20%20%3Fs1%20%20%3Fp1%20%20%3Chttps%3A%2F%2Flinkedopendata.eu%2Fentity%2FQ63%3E%20.%20%0A%09%20%3Fs1%20%20%3Chttps%3A%2F%2Flinkedopendata.eu%2Fprop%2Fdirect%2FP35%3E%20%20%3Chttps%3A%2F%2Flinkedopendata.eu%2Fentity%2FQ8636%3E%20.%20%0A%20%20%20%20%20%3Fs1%20%3Chttps%3A%2F%2Flinkedopendata.eu%2Fprop%2Fdirect%2FP127%3E%20%3Fcoordinates%20.%0A%20%7D%20%20LIMIT%201000" data-background-interactive>
</section>
<section ch="2">
<h3> 3. Question Answering</h3>
<div>We allow to query and explore the KG using natural language</div>
<div>Available at <a href="https://qa.linkedopendata.eu">https://qa.linkedopendata.eu</a></div>
</section>
<section ch="2" data-background-iframe="https://qa.linkedopendata.eu/qa/full?query=buildings%20by%20dg%20connect&tags=%5B%5D&lang=en&kb=eu&user=commission" data-background-interactive>
</section>
<section ch="2" data-background-iframe="https://qa.linkedopendata.eu/qa/full?query=who%20is%20the%20president%20of%20france&tags=%5B%5D&lang=en&kb=eu&user=commission" data-background-interactive>
</section>
<section ch="2" data-background-iframe="https://qa.linkedopendata.eu/qa/full?query=who%20is%20the%20director%20of%20dg%20connect&tags=%5B%5D&lang=en&kb=eu&user=commission" data-background-interactive>
</section>
<section ch="2">
<h3> Can be integrated in chatbots</h3>
<div>Available at <a href="https://chatbot.cnect.eu/">https://chatbot.cnect.eu/</a></div>
</section>
<section ch="4" data-background="assets/dori.png">
</section>
</section>
<section ch="3" id="kohesio">
<h2>Kohesio:</h2>
<h3> making projects financed by the European Commission accessible to citizens </h3>
</section>
<section ch="3">
<h2>EU Cohesion Policy</h2>
<ul>
<li>EU Cohesion Policy supports every year tens of thousands of projects across Europe</li>
<li>EU Cohesion Policy makes up approximately 32.5 % of the EU budget 2014-2020 (equivalent to ca. EUR 351.8 billion)</li>
</ul>
</section>
<section ch="3">
<h2>What is Kohesio?</h2>
<ul>
<li>The money is given to the 27 member states which have to implement the projects</li>
<li>The member states report back to the European Commission how the money was spent.</li>
<li>The objective of Kohesio is to aggregate this data and make it accessible to citizens.</li>
</ul>
</section>
<section ch="3">
<h2>Data</h2>
<ol>
<li>Around 20 files in csv, xlsx or xls describing the projects of 6 pilot countries</li>
<li>Around 15 files in csv, xlsx or xls describing vocabulary of the Cohesion Policy: categories of interventions, policy objectives, ....</li>
<li>Data about geographic entities (NUTS)</li>
<li>Wikidata</li>
</ol>
</section>
<section ch="3" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q77409" data-background-interactive>
</section>
<section ch="3">
<h2>Enrich the data</h2>
<ol>
<li>Translate the project descriptions to English</li>
<li>Compute geo coordiantes for every project</li>
<li>Compute in which region the project is contained</li>
<li>Link the NUTS with information from Wikidata</li>
<li>Link the beneficiaries to entities in Wikidata</li>
</ol>
</section>
<section ch="3" data-background-iframe="https://linkedopendata.eu/wiki/Item:Q77409" data-background-interactive>
</section>
<section ch="3">
<h2>Build a website for citizens on top</h2>
<div>Available at <a href="https://kohesio.eu">https://kohesio.eu</a> </div>
</section>
<section ch="3" data-background-iframe="https://dev.kohesio.eu" data-background-interactive>
</section>
<section ch="3">
<h2>To summarize</h2>
<ol>
<li>We integrated structure data from different sources in one uniform model</li>
<li>The data is enriched increasing its value</li>
<li>The data is accessible by citizens</li>
</ol>
</section>
<section id="conclusion" ch="4">
<h2>Conclusion</h2>
<div style="float: left">We have shown:</div>
<ol>
<li>how Wikibase is used as an infrastructure in the EU Knwoledge Graph (KG)</li>
<li>what is the content of the EU KG, how the data is ingested, maintained fresh and which services are offered.</li>
<li>a concrete use case: Kohesio</a></li>
</ol>
</section>
<section ch="0">
<div>Acknowledgmentes:</div>
<ul>
<li>Doris Team @ DG Connect</li>
<li>Knowledge Management @ DG Regio</li>
</ul>
</section>
<section ch="-1">
<div>Thank you! Questions?</div>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script src="assets/bib.bib"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
//slideNumber: true,
progress: false,
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/title-footer/title-footer.js', async: true, callback: function() { } }
]
});
</script>
<script>
Reveal.addEventListener( 'slidechanged', function( event ) {
var elem = document.getElementById('title-footer');
if (elem!=null){
elem.parentNode.removeChild(elem);
}
var title = ' ';
var color = 'rgb(51, 51, 51)';
if (event.currentSlide.getAttribute("ch")=="-1" || event.currentSlide.getAttribute("ch")===undefined || Reveal.getIndices().h===undefined){
title = "-1";
}
if (event.currentSlide.getAttribute("ch")=="0"){
title = " ";
}
if (event.currentSlide.getAttribute("ch")=="1"){
title = "What is Wikibase?";
color = "darkcyan";
}
if (event.currentSlide.getAttribute("ch")=="2"){
title = "The EU Knowledge Graph";
color = "rebeccapurple";
}
if (event.currentSlide.getAttribute("ch")=="3"){
title = "Kohesio";
color = "#cd0027";
}
if (event.currentSlide.getAttribute("ch")=="4"){
title = "Conclusion";
color = "orange";
}
var page = Reveal.getIndices().h+1;
if (Reveal.getIndices().v!=0){
page = Reveal.getIndices().h+1+"."+Reveal.getIndices().v;
}
title_footer.initialize(page+"/25", title, color);
// console.log(event.currentSlide.getAttribute("chapter"));
//console.log(event.currentSlide.chapter);
// event.previousSlide, event.currentSlide, event.indexh, event.indexv
} );
</script>
<!--<script class="code" type="text/javascript">-->
<!--var citations = $('.cite');-->
<!--for (var i=0; i< citations.length; i++){-->
<!--console.log(citations[i].id);-->
<!--}-->
<!--var Cite = require('citation-js')-->
<!--// Set variables-->
<!--var cite = new Cite();-->
<!--var opt = {-->
<!--format: 'string'-->
<!--}-->
<!--// Make shorter ref to function-->
<!--var parseAsync = Cite.parse.input.async.chain-->
<!--// Make a factory for callback-->
<!--var callbackFactory = function (out) {-->
<!--console.log(out);-->
<!--return function (data) {-->
<!--out.html(cite.set(data).get(opt))-->
<!--}-->
<!--}-->
<!--$(function(){-->
<!--// jQuery elements-->
<!--console.log(bib);-->
<!--var bibx_in = bib;-->
<!--console.log("here");-->
<!--console.log(bibx_in);-->
<!--console.log("here2");-->
<!--// Callbacks-->
<!--var bibxCb = callbackFactory($('#bibx-out'));-->
<!--// Declare function to update the output-->
<!--function update() {-->
<!--// Get user options-->
<!--opt.type = 'html',-->
<!--opt.style ='citation-apa',-->
<!--opt.lang = 'en-US'-->
<!--// Set data (explicit parsing only recommended for async) and set html element to get output-->
<!--parseAsync(bibx_in).then(bibxCb)-->
<!--}-->
<!--// Make output update when input is defocussed...-->
<!--$('.in').on('blur', update)-->
<!--// ... or a select tag has changed-->
<!--$('select').on('change', update)-->
<!--// Trigger update-->
<!--update()-->
<!--})-->
<!--</script>-->
</body>
<!--<style type="text/css">-->
<!--/* 1. Style header/footer <div> so they are positioned as desired. */-->
<!--#header-left {-->
<!--position: absolute;-->
<!--top: 0%;-->
<!--left: 0%;-->
<!--}-->
<!--#header-right {-->
<!--position: absolute;-->
<!--top: 0%;-->
<!--right: 0%;-->
<!--}-->
<!--#footer-left {-->
<!--position: absolute;-->
<!--bottom: 0%;-->
<!--left: 0%;-->
<!--}-->
<!--</style>-->
<!--<!– 2. Create hidden header/footer <div> –>-->
<!--<div id="hidden" style="display:none;">-->
<!--<div id="header">-->
<!--<div id="header-left">HEADER-LEFT</div>-->
<!--<div id="header-right">HEADER-RIGHT</div>-->
<!--<div id="footer-left">FOOTER-LEFT</div>-->
<!--</div>-->
<!--</div>-->
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<!--<script type="text/javascript">-->
<!--// 3. On Reveal.js ready event, copy header/footer <div> into each `.slide-background` <div>-->
<!--var header = $('#header').html();-->
<!--if ( window.location.search.match( /print-pdf/gi ) ) {-->
<!--Reveal.addEventListener( 'ready', function( event ) {-->
<!--$('.slide-background').append(header);-->
<!--});-->
<!--}-->
<!--else {-->
<!--$('div.what').append(header);-->
<!--}-->
<!--</script>-->
</html>