Major change
[u/philim/db2osl_thesis.git] / Bachelor thesis.tex
CommitLineData
c31df1ed
PM
1%&latex
2% headsepline: Linie am oberen Blattrand unterhalb der Seitennummer
3% bibtotoc: Aufnahme des Literaturverzeichnisses ins Inhaltsverzeichnis
4%\documentclass[a4paper,headsepline,bibtotoc]{scrreprt}
5
6% Constants
7\newcommand{\mytitle}{Bootstrapping ontology-based data access specifications from
8 relational databases}
9\newcommand{\myprog}{\name{db2osl}}
10\newcommand{\osl}{\name{OSL}}
b96bb723
PM
11\newcommand{\osllong}{\name{OBDA Specification Language}}
12\newcommand{\oslboth}{\osllong{} (\osl{})}
c31df1ed
PM
13\newcommand{\myfontsize}{12pt}
14\newcommand{\smallerfontsize}{11pt}
15\newcommand{\smallfontsize}{10pt}
16\newcommand{\oslbaseurl}{\url{http://w3studi.informatik.uni-stuttgart.de/~martispp/ont\#}}
17\newcommand{\oslheaderurl}{\url{http://w3studi.informatik.uni-stuttgart.de/~martispp/ont/db2osl.owl}}
18%\newcommand{\spacebeforetable}{2em}
19\newcommand{\itm}{\textbullet \ }
20
21% New commands
22%\newcommand{\file}[1]{{\sffamily\slshape #1}}
23\newcommand{\file}[1]{\textsf{#1}}
24\newcommand{\name}[1]{\textsc{#1}}
25\newcommand{\sbr}[1]{\texttt{#1}}
26\newcommand{\var}[1]{\textsl{\texttt{#1}}}
27\newcommand{\cmd}[1]{\uppercase{\texttt{#1}}}
28\newcommand{\ind}{\hspace*{30pt}}
29\newcommand{\code}[1]{\texttt{#1}}
30\newcommand{\codepar}[1]{\begin{itemize}\item[]\code{#1}\end{itemize}\vspace{12pt}}
31\newcommand{\fullref}[1]{\ref{#1} -- \nameref{#1}}
32
33% Documentclass etc.
34\documentclass[\myfontsize,a4paper,twoside=semi]{scrreprt}
62fe6284 35%\documentclass[paper=a4,twoside,bibliography=totoc,cleardoublepage=empty,parskip=half,final]{scrbook} % Remember to comment in \backmatter!
c31df1ed
PM
36\usepackage[utf8]{inputenc}
37\usepackage[T1]{fontenc}
38\usepackage{lmodern}
39\usepackage{color}
62fe6284 40%\usepackage[hyperref,dvipsnames]{xcolor}
c31df1ed
PM
41
42% Einstellungen bez. des 'scrreprt'-Stils
43% Caption Schriftstil und -Groesse
44\renewcommand{\capfont}{\footnotesize}
45\renewcommand{\caplabelfont}{\footnotesize\bfseries}
46\typearea{15} %Einstellung des Verh�ltnisses Gr��e des Textes zur Papiergr��e
47%\renewcommand{\familydefault}{\sfdefault} % "moderne" Schrift
48%\renewcommand{\headfont}{\normalfont\sf} % Kolumnentitel serifenlos
49%\renewcommand{\pnumfont}{\normalfont\sffamily} % Seitennummern serifenlos
50
51% Sprache
52\usepackage[ngerman,english]{babel}
53\selectlanguage{english}
54\setlength{\parindent}{0pt}
55
56\addto\extrasgerman{\renewcommand{\figurename}{Abb.}}
57\addto\extrasgerman{\renewcommand{\tablename}{Tab.}}
58
28b54c67
PM
59% Text
60\usepackage{textcomp}
61
62fe6284 62% Bilder / Graphiken
c31df1ed
PM
63\usepackage[rflt]{floatflt}
64\usepackage{epsfig,wrapfig}
c31df1ed 65\usepackage{float}
62fe6284 66\usepackage{graphicx}
b96bb723
PM
67\usepackage{caption}
68\usepackage[list=true]{subcaption}
c31df1ed 69
62fe6284 70% Mathematische Symbole etc.
c31df1ed 71\usepackage{amsmath,amssymb}
002fa020 72%\usepackage[binary-units=true,decimalsymbol=comma]{siunitx}
62fe6284
PM
73
74% Algorithmen
002fa020
PM
75%\usepackage{algpseudocode}
76%\usepackage{algorithm}
77%\usepackage{algorithmicx}
c31df1ed
PM
78
79% Tabellen
80\usepackage{longtable,lscape}
81\usepackage{multirow}
28b54c67 82\usepackage{multicol}
c31df1ed
PM
83\usepackage{tabularx}
84
85% Kopfzeilen
86\usepackage[automark,headsepline]{scrlayer-scrpage}
87\pagestyle{plain}
88\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
89\renewcommand{\sectionmark}[1]{\markboth{\thesection\ #1}{}}
90\clearpairofpagestyles
91\cfoot[\pagemark]{\pagemark}
92\lehead{\headmark}
93\rohead{\headmark}
94\pagestyle{scrheadings}
62fe6284
PM
95%\usepackage[automark]{scrpage2}
96%\renewcommand{\footnoterule}{}
97%\addtolength{\skip\footins}{\baselineskip}
98%\usepackage{fnpos}
c31df1ed
PM
99
100% Listenerscheinung
101\setlength{\itemsep}{0ex}
102\setlength{\parsep}{0ex}
103\setlength{\parskip}{2mm}
104
105% Biblatex
62fe6284
PM
106\usepackage[style=alphabetic,maxnames=10,backref=true,block=space,backend=bibtex]{biblatex}
107\setlength{\bibitemsep}{1em}
c31df1ed
PM
108\bibliography{bibliography}
109
62fe6284
PM
110% Cover
111\usepackage[title={\mytitle{}},
112 author={Philipp Martis},
113 type=bachelor,
114 institute=ipvs,
002fa020 115 number=281,
62fe6284
PM
116 course=cs,
117 examiner={PD\ Dr.\ Holger Schwarz},
118 supervisor={M. Sc. Leif Harald Karlsen},
119 startdate={23rd of November 2015},
120 enddate={24th of May 2016},
b96bb723 121 crk={D.0, H.2.8},
62fe6284
PM
122 language=english]{cs-cover/uni-stuttgart-cs-cover}
123
124% Appendix
125\usepackage{appendix}
126
127% Links
128%\usepackage{url}
129\usepackage{caption} % Always link to the top of a figure or table
130\usepackage[]{hyperref} % Should be loaded last!
c31df1ed
PM
131\hypersetup{
132 unicode,
133 pdftitle={\mytitle{}},
134 pdfauthor={Philipp Martis},
135 pdfsubject={Ontology-based data access (OBDA)},
136 pdfkeywords={Ontology, Database, Database access, Big data},
137 pdfpagelayout=TwoPageRight,
138 linktoc=all,
139 colorlinks=true,
140 breaklinks=true,
141 extension=pdf,
142% destlabel=true,
143% allcolors=blue,
144 linkcolor=blue,
145 citecolor=green,
146 filecolor=cyan,
147 urlcolor=magenta,
148 pdfstartview=FitH,
149 pdfpagemode=UseOutlines,
150 bookmarksnumbered=true,
151 bookmarksopen=true,
152 bookmarksopenlevel=1
153}
c31df1ed
PM
154
155
156\begin{document}
157
158% Seitennumerierung bis zum Beginn der Einleitung auf kleine roemische Zahlen setzen
159\pagenumbering{roman}
160
161% Title page
62fe6284
PM
162\Titelblatt
163%\KOMAoption{fontsize}{\smallerfontsize{}}
164%\title{\mytitle{}}
165%\author{Bachelor thesis \\
166% by \\
167% stud.\ inf.\ Philipp Martis}
168%\publishers{realized at the \\
169% Institute for Parallel and Distributed Systems, \\
170% University of Stuttgart \\[5ex]
171% Stuttgart, in May 2016}
172%\date{}
173%\maketitle
174%\KOMAoption{fontsize}{\myfontsize{}}
c31df1ed
PM
175
176% Abstract
177\include{abstract}
178\addcontentsline{toc}{chapter}{Abstract}
179\include{kurzfassung}
180\addcontentsline{toc}{chapter}{Kurzfassung}
181
182% Contents
183\tableofcontents
184\addcontentsline{toc}{chapter}{Contents}
185
186%% Nomenclature
187%\addcontentsline{toc}{chapter}{Nomenclature}
188%\include{nomenclature}
189
190% List of figures
191\listoffigures
192\addcontentsline{toc}{chapter}{List of figures}
193
194% List of tables
195\listoftables
196\addcontentsline{toc}{chapter}{List of tables}
197
62fe6284
PM
198% List of algorithms
199%\listofalgorithms
200%\addcontentsline{toc}{chapter}{List of algorithms}
201
c31df1ed
PM
202\clearpage
203\pagestyle{plain}
204\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
205\renewcommand{\sectionmark}[1]{\markboth{\thesection\ #1}{}}
206
207% Seitennumerierung ab der folgenden Einleitung auf arabische Zahlen setzen
208\pagenumbering{arabic}
209
210% Introduction
211\include{introduction}
212
213% Background
214\include{background}
215
b96bb723
PM
216% On bootstrapping and IRI generation
217\include{bootstrapping}
218
c31df1ed
PM
219% The OBDA Specification Language (OSL)
220\include{osl}
221
222% The db2osl software
223\include{program}
224
b96bb723
PM
225% Implementation aspects of \name{db2osl}
226\include{impl}
227
c31df1ed
PM
228% Summary
229\include{summary}
230
62fe6284
PM
231%\backmatter % Only for the book document classes
232
c31df1ed
PM
233% Appendix
234\include{appendix}
235\addcontentsline{toc}{chapter}{Appendix}
236
237% Bibliography bibtex (add pagebackref=true to hyperref options if desired)
238%\bibliographystyle{alpha}
239%\bibliography{bibliography}
240%\addcontentsline{toc}{chapter}{Bibliography}
241
242% Bibliography biblatex
243\printbibliography
244\addcontentsline{toc}{chapter}{Bibliography}
245
62fe6284
PM
246% Legal statement
247\pagestyle{empty}
248\renewcommand*{\chapterpagestyle}{empty}
249\clearpage
250\Versicherung
251
c31df1ed 252\end{document}