-
Notifications
You must be signed in to change notification settings - Fork 4
/
Thesis.tex
639 lines (476 loc) · 18.5 KB
/
Thesis.tex
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
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
% ----------------------------------------------------------------------
% LATEX TEMPLATE FOR PhD THESIS
% ----------------------------------------------------------------------
% based on Harish Bhanderi's PhD/MPhil template, then Uni Cambridge
% http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
% corrected and extended in 2007 by Jakob Suckale, then MPI-CBG PhD programme
% and made available through OpenWetWare.org - the free biology wiki
%: Style file for Latex
% Most style definitions are in the external file PhDthesisPSnPDF.
% In this template package, it can be found in ./Latex/Classes/
\documentclass[twoside,11pt,table,xcdraw]{Latex/Classes/PhDthesisPSnPDF}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{lipsum}
%: Macro file for Latex
% Macros help you summarise frequently repeated Latex commands.
% Here, they are placed in an external file /Latex/Macros/MacroFile1.tex
% An macro that you may use frequently is the figuremacro (see introduction.tex)
%\include{Latex/Macros/MacroFile1}
%: ----------------------------------------------------------------------
%: TITLE PAGE: name, degree,..
% ----------------------------------------------------------------------
% below is to generate the title page with crest and author name
%if output to PDF then put the following in PDF header
\ifpdf
\pdfinfo { /Title
/Creator (TeX)
/Producer (pdfTeX)
/Author (David Chaves Fraga [email protected])
/CreationDate (D:YYYYMMDDhhmmss) %format D:YYYYMMDDhhmmss
/ModDate (D:YYYYMMDDhhmm)
/Subject (xyz)
/Keywords () }
\pdfcatalog { /PageMode (/UseOutlines)
/OpenAction (fitbh) }
\fi
\title{Knowledge Graph Construction from Heterogeneous Data Sources Exploiting Declarative Mapping Rules}
% ----------------------------------------------------------------------
% The section below defines www links/email for author and institutions
% They will appear on the title page of the PDF and can be clicked
\ifpdf
\author{{\hspace{7mm} David Chaves Fraga}}
\supervisor{Oscar Corcho}
%
% \cityofbirth{born in XYZ} % uncomment this if your university requires this
% % If city of birth is required, also uncomment 2 sections in PhDthesisPSnPDF
% % Just search for the "city" and you'll find them.
% \collegeordept{{Programa de Doctorado de Inteligencia Artificial \\ Facultad de Inform\'atica}}
% \university{\href{http://www.upm.es}{Universidad Polit\'ecnica de Madrid}}
% The crest is a graphics file of the logo of your research institution.
% Place it in ./0_frontmatter/figures and specify the width
% \crest{\includegraphics[width=3cm]{escudofi.pdf}}
\crest{
\centering
\begin{tabular}{l c}
\multirow{3}{*}{\includegraphics[width=2cm]{0_frontmatter/figures/escudofi.pdf}} & \\
& \textbf{Programa de Doctorado de Inteligencia Artificial} \\
& \textbf{Escuela T\'ecnica Superior de Ingenieros Inform\'aticos} \\
\end{tabular}
}
% If you are not creating a PDF then use the following. The default is PDF.
\else
\author{YourName}
% \cityofbirth{born in XYZ}
\collegeordept{CollegeOrDept}
\university{University}
\crest{\includegraphics[width=4cm]{logo}}
\fi
%\renewcommand{\submittedtext}{change the default text here if needed}
\degree{Philosophi\ae Doctor (PhD), DPhil,..}
\degreedate{June, 2021}
% ----------------------------------------------------------------------
% turn of those nasty overfull and underfull hboxes
%\tolerance=1
%\emergencystretch=\maxdimen
%\hyphenpenalty=10000
\hbadness=10000
\hfuzz=50pt
\usepackage{enumitem}
\usepackage[table,xcdraw]{xcolor}
\usepackage{floatrow}
\usepackage{mathptmx}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{listings}
\usepackage{tikz}
%\usepackage{paralist}
\usepackage{import}
\usepackage{array}
\usepackage{color}
\usepackage{pgfplots}
\usepackage{amsmath}
\usepackage{xspace}
\usepackage{amssymb}
%\usepackage{enumerate}
%\usepackage{float}
%\usepackage{algpseudocode}
%\usepackage{algorithm}
\usepackage{verbatim}
\usepackage{multirow}
\usepackage{siunitx}
\usepackage{url}
\usepackage{chngcntr}
\usepackage{amsthm}
\usepackage{latexsym}
\usepackage{subfig}
\usepackage{pifont}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{adjustbox}
\usepackage{rotating}
%\usepackage{subcaption}
%\captionsetup{compatibility=false}
\usepackage{bibentry}
\usepackage{mathtools}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{ctable}
\usepackage[htt]{hyphenat}
\usetikzlibrary{patterns}
\counterwithout{footnote}{chapter}
%%<ALVARO>
\newcommand*\rot{\rotatebox{75}}
\newcommand*\OK{\ding{51}}
\newcommand{\argmax}[1]{\underset{#1}{\operatorname{arg}\,\operatorname{max}}\;}
\DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
\newcounter{groupcount}
\pgfplotsset{
draw group line/.style n args={5}{
after end axis/.append code={
\setcounter{groupcount}{0}
\pgfplotstableforeachcolumnelement{#1}\of\datatable\as\cell{%
\def\temp{#2}
\ifx\temp\cell
\ifnum\thegroupcount=0
\stepcounter{groupcount}
\pgfplotstablegetelem{\pgfplotstablerow}{[index]0}\of\datatable
\coordinate [yshift=#4] (startgroup) at (axis cs:\pgfplotsretval,0);
\else
\pgfplotstablegetelem{\pgfplotstablerow}{[index]0}\of\datatable
\coordinate [yshift=#4] (endgroup) at (axis cs:\pgfplotsretval,0);
\fi
\else
\ifnum\thegroupcount=1
\setcounter{groupcount}{0}
\draw [
shorten >=-#5,
shorten <=-#5
] (startgroup) -- node [anchor=north] {#3} (endgroup);
\fi
\fi
}
\ifnum\thegroupcount=1
\setcounter{groupcount}{0}
\draw [
shorten >=-#5,
shorten <=-#5
] (startgroup) -- node [anchor=north] {#3} (endgroup);
\fi
}
}
}
%%<IDAFEN>
\usepackage{xcolor}
\usepackage{color}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\newcommand{\dfp}{dispel4py}
%\lstset{
% basicstyle=\footnotesize,
% breakatwhitespace=true,
% breaklines=true,
% numberstyle=\tiny\color{mygray},
% numbers=left,
% xleftmargin=1.5em,
% frame=single,
% framexleftmargin=1em,
% frame=bt,
%}
%%subindex
\usepackage{multirow}
%%highlighting package
\usepackage{color}\newcommand{\mynote}[2][inline]{\color{red} [PENDING]: #2\color{black}}
%\newcommand{\mymark}[1]{\colorbox{orange}{#1}}
\newcommand{\mymark}[2][inline]{\color{orange}#2\color{black}}
\newcommand{\new}[2][inline]{\color{black}#2\color{black}}
\newcommand{\newtwo}[2][inline]{\color{black}#2\color{black}}
%\newcommand{\mynote}[2][inline]{\color{red} [PENDING]: #2\color{black}}
\usepackage{epigraph}
%%adding subsubsections
%\setcounter{secnumdepth}{3}
%%</IDAFEN>
\DeclareCaptionFormat{algor}{%
\hrulefill\par\offinterlineskip\vskip1pt%
\textbf{#1#2}#3\offinterlineskip\hrulefill}
\DeclareCaptionStyle{algori}{singlelinecheck=off,format=algor,labelsep=space}
%\captionsetup[algorithm]{style=algori}
\pdfoptionpdfminorversion 6
%% PIERRE
\definecolor{s1}{RGB}{228, 26, 28}
\definecolor{s2}{RGB}{55, 126, 184}
\definecolor{s3}{RGB}{77, 175, 74}
\definecolor{s4}{RGB}{152, 78, 163}
\definecolor{s5}{RGB}{255, 127, 0}
\definecolor{s6}{RGB}{160, 82, 45}
\pgfplotscreateplotcyclelist{tyr}{%
s1,every mark/.append style={fill=white},mark=*\\%
s2,every mark/.append style={fill=white},mark=square*\\%
s3,every mark/.append style={fill=white},mark=diamond*\\%
s4,every mark/.append style={fill=white},mark=triangle*\\%
s5,every mark/.append style={fill=white},mark=pentagon*\\%
s6,every mark/.append style={fill=white},mark=otimes*\\%
}
\pgfplotsset{compat=1.11,
/pgfplots/ybar legend/.style={
/pgfplots/legend image code/.code={%
\draw[##1,/tikz/.cd,yshift=-0.25em]
(0cm,0cm) rectangle (6.5pt,0.7em);},
},
}
\pgfplotsset{
grid=major,
width=9cm,
height=6cm,
compat=1.9
}
\makeatletter
\g@addto@macro\@floatboxreset\centering
\makeatother
\pgfplotsset{plot coordinates/math parser=false}
\makeatletter
\pgfplotsset{
groupplot xlabel/.initial={},
every groupplot x label/.style={
at={($({group c1r\pgfplots@[email protected]}|-{group c1r\pgfplots@[email protected] south})!0.5!({group c\pgfplots@group@columns r\pgfplots@[email protected]}|-{group c\pgfplots@group@columns r\pgfplots@[email protected] south})$)},
anchor=north,
},
groupplot ylabel/.initial={},
every groupplot y label/.style={
rotate=90,
at={($({group c1r1.north}-|{group c1r1.outer
west})!0.5!({group c1r\pgfplots@[email protected]}-|{group c1r\pgfplots@[email protected] west})$)},
anchor=south
},
execute at end groupplot/.code={%
\node [/pgfplots/every groupplot x label]
{\pgfkeysvalueof{/pgfplots/groupplot xlabel}};
\node [/pgfplots/every groupplot y label]
{\pgfkeysvalueof{/pgfplots/groupplot ylabel}};
},
group/only outer labels/.style =
{
group/every plot/.code = {%
\ifnum\pgfplots@group@current@row=\pgfplots@group@rows\else%
\pgfkeys{xticklabels = {}, xlabel = {}}\fi%
\ifnum\pgfplots@group@current@column=1\else%
\pgfkeys{yticklabels = {}, ylabel = {}}\fi%
}
}
}
\def\endpgfplots@environment@groupplot{%
\endpgfplots@environment@opt%
\pgfkeys{/pgfplots/execute at end groupplot}%
\endgroup%
}
\makeatother
\definecolor{gray}{rgb}{0.95,0.95,0.95}
\usetikzlibrary{arrows, positioning, shapes.multipart, calc, fit, patterns, decorations.text,
decorations.pathreplacing, shapes.symbols}
\usepgfplotslibrary{groupplots}
%% Tables
\newcommand{\specialcell}[2][c]{%
\begin{tabular}[#1]{@{}c@{}}#2\end{tabular}}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\newcolumntype{N}{@{}m{0pt}@{}}
%% Algo
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\let\oldReturn\Return
%\renewcommand{\Return}{\State\oldReturn}
%\renewcommand{\algorithmicforall}{\textbf{for each}}
%\algnewcommand{\LineComment}[1]{\State{\textit{\textcolor{black!60}{\(\triangleright\) #1}}}}
%% PGF
\pgfdeclarelayer{bg}
\pgfdeclarelayer{mbg}
\pgfsetlayers{bg,mbg,main}
%% Sections
\newcommand{\lsection}[2]{
\section{#2}
\label{sec:#1}
}
\newcommand{\lsubsection}[2]{
\subsection{#2}
\label{sec:#1}
}
\newcommand{\lsubsubsection}[2]{
\subsubsection{#2}
\label{sec:#1}
}
\newcommand{\lsecref}[1]{\ref{sec:#1}}
\newcommand{\csubfloat}[2][]{%
\makebox[0pt]{\subfloat[#1]{#2}}%
}
\newcommand{\centerhfill}[1][\quad]{\hspace{\stretch{0.5}}#1\hspace{\stretch{0.5}}}
\makeatletter
\newcommand\resetstackedplots{
\makeatletter
\pgfplots@stacked@isfirstplottrue
\makeatother
\addplot [forget plot,draw=none] coordinates{(1,0) (2,0) (3,0)};
}
%% /PIERRE
%: --------------------------------------------------------------
%: FRONT MATTER: dedications, abstract,..
% --------------------------------------------------------------
\begin{document}
%\language{english}
% sets line spacing
\renewcommand\baselinestretch{1.2}
\baselineskip=18pt plus1pt
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[chapter] % reset theorem numbering for each chapter
\theoremstyle{definition}
\newtheorem{definition}[thm]{Definition} % definition numbers are dependent on theorem numbers
\newcommand{\attention}[1]{{\color{red}\textbf{#1}}}
\renewcommand\appendixname{ANNEX}
%: ----------------------- generate cover page ------------------------
\frontmatter
\maketitle % command to print the title page with above variables
%: ----------------------- cover page back side ------------------------
% Your research institution may require reviewer names, etc.
% This cover back side is required by Dresden Med Fac; uncomment if needed.
% ALVARO: I'll have to change this
%\newpage
\pagestyle{plain}
\cleardoublepage
\pagestyle{plain}
\noindent Tribunal nombrado por el Sr. Rector Magfco. de la Universidad Polit\'{e}cnica de
Madrid, el d\'{i}a 9 de Junio de 2021. %\mynote{DD de YYYY de 2015}
\vspace{10mm}
Presidente:\hspace{0.3mm} Dr. Marcelo Arenas
\vspace{5mm}
Vocal: \hspace{6.7mm} Dr. Juan Sequeda
\vspace{5mm}
Vocal: \hspace{6.7mm} Dra. Anastasia Dimou
\vspace{5mm}
Vocal: \hspace{6.7mm} Dr. Álvaro Sicilia Gómez
\vspace{5mm}
Secretario:\hspace{0.67mm} Dr. Raúl García Castro
\vspace{5mm}
Suplente: \hspace{1.5mm} Dr. Mariano Fernández López
\vspace{5mm}
Suplente: \hspace{1.5mm} Dr. Alberto Bugarín Díz
\vspace{10mm}
\noindent Realizado el acto de defensa y lectura de la Tesis el d\'{i}a 28 de Junio de 2021 en la Escuela T\'ecnica Superior de Ingenieros Inform\'aticos
\vspace{5mm}
\noindent Calificaci\'{o}n: \rule{123mm}{0.2mm}
\vspace{20mm}
EL PRESIDENTE \hspace{30mm} VOCAL 1 \hspace{30mm} VOCAL 2
\vspace{30mm}
%\begin{center}
\hspace{15mm} VOCAL 3 \hspace{45mm} EL SECRETARIO
%\end{center}
%: ----------------------- tie in front matter ------------------------
%\frontmatter
\cleardoublepage
\input{0_frontmatter/dedication}
\cleardoublepage
\input{0_frontmatter/acknowledgement}
%: ----------------------- abstract ------------------------
% Your institution may have specific regulations if you need an abstract and where it is to be placed in the document. The default here is just after title.
\cleardoublepage
\input{0_frontmatter/abstract}
% The original template provides and abstractseparate environment, if your institution requires them to be separate. I think it's easier to print the abstract from the complete thesis by restricting printing to the relevant page.
% \begin{abstractseparate}
% \input{Abstract/abstract}
% \end{abstractseparate}
%: ----------------------- contents ------------------------
\cleardoublepage
\setcounter{secnumdepth}{3} % organisational level that receives a numbers
\setcounter{tocdepth}{2} % print table of contents for level 3
\tableofcontents % print the table of contents
% levels are: 0 - chapter, 1 - section, 2 - subsection, 3 - subsection
%: ----------------------- list of figures/tables ------------------------
\listoffigures % print list of figures
\listoftables % print list of tables
\listofalgorithms % Print list of algorithms
%: ----------------------- glossary ------------------------
% Tie in external source file for definitions: /0_frontmatter/glossary.tex
% Glossary entries can also be defined in the main text. See glossary.tex
%\include{0_frontmatter/glossary}
%
%\begin{multicols}{2} % \begin{multicols}{#columns}[header text][space]
%\begin{footnotesize} % scriptsize(7) < footnotesize(8) < small (9) < normal (10)
%
%\printnomenclature[1.5cm] % [] = distance between entry and description
%\label{nom} % target name for links to glossary
%
%\end{footnotesize}
%\end{multicols}
%: --------------------------------------------------------------
%: MAIN DOCUMENT SECTION
% --------------------------------------------------------------
% the main text starts here with the introduction, 1st chapter,...
\mainmatter
%\renewcommand{\chaptername}{} % uncomment to print only "1" not "Chapter 1"
%\titleformat{\chapter}[display]{\normalfont\bfseries\}{\chaptertitlename\ \thechapter}{5pt}{\Huge}
%-#####-> Uncomment to have Andres' style for chapter title
%\titleformat{\chapter}[display]
%{\bfseries\Large}
%{\filleft\MakeUppercase{\chaptertitlename} \Huge\thechapter}
%{4ex}
%{\titlerule
%\vspace{2ex}%
%\filright}
%[\vspace{2ex}%
%\titlerule]
%-#####-> End uncomment
\input{1_introduction/introduction}
\input{2_stateoftheart/stateofart}
\input{3_objectives/objectives}
\input{4_mappingtranslation/translation}
\input{5_evaluation/evaluation}
\input{6_enhancingaccess/access}
\input{7_kgconstruction/construction}
\input{8_conclusions/conclusions}
\appendix
\include{appendix/appendix1}
\include{appendix/appendix2}
\include{appendix/appendix3}
\include{appendix/appendix02}
\include{appendix/appendix03}
\include{appendix/appendix04}
% --------------------------------------------------------------
%: BACK MATTER: appendices, refs,..
% --------------------------------------------------------------
% the back matter: appendix and references close the thesis
%\include{appendix/questions}
%\include{appendix/wicusontos}
%\include{appendix/annotations}
%\include{appendix/files}
%\include{appendix/terminology}
%: ----------------------- bibliography ------------------------
% The section below defines how references are listed and formatted
% The default below is 2 columns, small font, complete author names.
% Entries are also linked back to the page number in the text and to external URL if provided in the BibTex file.
% PhDbiblio-url2 = names small caps, title bold & hyperlinked, link to page
%\begin{multicols}{2} % \begin{multicols}{ # columns}[ header text][ space]
%\begin{tiny} % tiny(5) < scriptsize(7) < footnotesize(8) < small (9)
%\bibliographystyle{Latex/Classes/PhDbiblio-case} % Title is link if provided
\bibliographystyle{Latex/Classes/jmb}
%\bibliographystyle{plainnat}
%\renewcommand{\bibname}{Bibliography} % changes the header; default: Bibliography
\bibliography{bibliography/bibliography} % adjust this to fit your BibTex file
%\end{tiny}
%\end{multicols}
% --------------------------------------------------------------
% Various bibliography styles exit. Replace above style as desired.
% in-text refs: (1) (1; 2)
% ref list: alphabetical; author(s) in small caps; initials last name; page(s)
%\bibliographystyle{Latex/Classes/PhDbiblio-case} % title forced lower case
%\bibliographystyle{Latex/Classes/PhDbiblio-bold} % title as in bibtex but bold
%\bibliographystyle{Latex/Classes/PhDbiblio-url} % bold + www link if provided
%\bibliographystyle{Latex/Classes/jmb} % calls style file jmb.bst
% in-text refs: author (year) without brackets
% ref list: alphabetical; author(s) in normal font; last name, initials; page(s)
%\bibliographystyle{plainnat} % calls style file plainnat.bst
% in-text refs: author (year) without brackets
% (this works with package natbib)
% --------------------------------------------------------------
% according to Dresden med fac summary has to be at the end
%\include{0_frontmatter/abstract}
%: Declaration of originality
%\include{12_bibliography/declaration}
\end{document}