2017-11-07 14:37:56 +01:00
|
|
|
\documentclass{f4_beamer}
|
|
|
|
\usepackage{graphicx}
|
|
|
|
\usepackage{float}
|
|
|
|
\usepackage{subfigure}
|
|
|
|
\usepackage{xspace}
|
|
|
|
\usepackage{textcomp}
|
|
|
|
\usepackage{tabularx}
|
|
|
|
\usepackage{booktabs}
|
|
|
|
\usepackage{amsmath}
|
|
|
|
\usepackage{subfigure}
|
|
|
|
\usepackage{here}
|
|
|
|
\usepackage{verbatim}
|
|
|
|
\usepackage{listings}
|
|
|
|
\usepackage{url}
|
|
|
|
\usepackage{caption}
|
|
|
|
\usepackage[autostyle=true,german=quotes]{csquotes}
|
|
|
|
|
|
|
|
% Suppress numbering captions
|
|
|
|
\captionsetup{labelformat=empty}
|
|
|
|
|
|
|
|
% Setup für Codeblocks
|
|
|
|
\lstset{
|
|
|
|
% Optionen
|
|
|
|
breaklines=true,
|
|
|
|
breakatwhitespace=true,
|
|
|
|
breakautoindent=true,
|
|
|
|
frame=single,
|
|
|
|
%framexleftmargin=19pt,
|
|
|
|
inputencoding=utf8,
|
|
|
|
%language=awk,
|
|
|
|
%numbers=left,
|
|
|
|
%numbersep=8pt,
|
|
|
|
showspaces=false,
|
|
|
|
showstringspaces=false,
|
|
|
|
tabsize=1,
|
|
|
|
%xleftmargin=19pt,
|
|
|
|
captionpos=b,
|
|
|
|
% Styling
|
|
|
|
basicstyle=\footnotesize\ttfamily,
|
|
|
|
commentstyle=\footnotesize,
|
|
|
|
keywordstyle=\footnotesize\ttfamily,
|
|
|
|
numberstyle=\footnotesize,
|
|
|
|
stringstyle=\footnotesize\ttfamily,
|
|
|
|
}
|
|
|
|
% Hack für Sonderzeichen in Codeblocks
|
|
|
|
\lstset{literate=%
|
|
|
|
{Ö}{{\"O}}1
|
|
|
|
{Ä}{{\"A}}1
|
|
|
|
{Ü}{{\"U}}1
|
|
|
|
{ß}{{\ss}}1
|
|
|
|
{ü}{{\"u}}1
|
|
|
|
{ä}{{\"a}}1
|
|
|
|
{ö}{{\"o}}1
|
|
|
|
{°}{{${^\circ}$}}1
|
|
|
|
}
|
|
|
|
|
|
|
|
\mode<presentation>
|
2017-11-07 19:19:32 +01:00
|
|
|
\title{Intelligente Systeme}
|
|
|
|
\subtitle{Ontologieprojekt: RDFS Ontologie }
|
2017-11-07 14:37:56 +01:00
|
|
|
\author{Marcel Felix, Jan Philipp Timme}
|
|
|
|
\date{\today}
|
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
\begin{frame}{Szenario}
|
2017-11-07 14:37:56 +01:00
|
|
|
\begin{itemize}
|
2017-11-07 19:19:32 +01:00
|
|
|
\item Welt der Spielekonsolen mit Bewertungen
|
|
|
|
\item Spielekonsolen mit einigen Attributen beschrieben
|
|
|
|
\item Spielekonsolen werden von Organisationen hergestellt
|
|
|
|
\item Spielekonsolen haben einen Nachfolger/Vorgänger
|
|
|
|
\item Organisationen haben einen CEO
|
|
|
|
\item \dots
|
2017-11-07 14:37:56 +01:00
|
|
|
\end{itemize}
|
|
|
|
\end{frame}
|
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
\begin{frame}[fragile]{Selbstdefinierte Prädikate}
|
|
|
|
\begin{lstlisting}
|
|
|
|
:foundingYear rdf:type rdf:Property ;
|
|
|
|
rdfs:domain foaf:Organization ;
|
|
|
|
rdfs:range xsd:int .
|
2017-11-07 14:37:56 +01:00
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
:internetEnabled rdf:type rdf:Property ;
|
|
|
|
rdfs:domain :GameConsole ;
|
|
|
|
rdfs:range xsd:boolean .
|
2017-11-07 14:37:56 +01:00
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
:consoleName rdf:type rdf:Property ;
|
|
|
|
rdfs:domain :GameConsole ;
|
|
|
|
rdfs:range xsd:string .
|
|
|
|
\end{lstlisting}
|
2017-11-07 14:37:56 +01:00
|
|
|
\end{frame}
|
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
\begin{frame}[fragile]{Ein eigener Datentyp und mehr \dots}
|
|
|
|
\begin{lstlisting}
|
|
|
|
# rdfs:Datatype
|
|
|
|
:PriceEur rdf:type rdfs:Datatype .
|
|
|
|
:PriceEur rdfs:label "Preis in Euro"^^xsd:string .
|
2017-11-07 14:37:56 +01:00
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
# rdfs:subPropertyOf
|
|
|
|
:predecessorOfConsole rdfs:subPropertyOf :relatedToConsole .
|
|
|
|
:successorOfConsole rdfs:subPropertyOf :relatedToConsole .
|
2017-11-07 14:37:56 +01:00
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
# rdfs:subClassOf
|
|
|
|
:GameConsole rdf:type rdfs:Class .
|
|
|
|
:PortableGameConsole rdf:type rdfs:Class .
|
2017-11-07 14:37:56 +01:00
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
:PortableGameConsole rdfs:subClassOf :GameConsole .
|
|
|
|
\end{lstlisting}
|
2017-11-07 14:37:56 +01:00
|
|
|
\end{frame}
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
\begin{frame}[fragile]{Überblick Daten A-Box (1/2)}
|
|
|
|
\begin{lstlisting}
|
|
|
|
@prefix : <http://example.com/ins_uebung/#> .
|
|
|
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
|
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
|
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
|
|
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
|
|
|
@prefix rev: <http://purl.org/stuff/rev#> .
|
2017-11-07 14:37:56 +01:00
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
:Nintendo rdf:type foaf:Organization ;
|
|
|
|
:ceo :Kimishima ;
|
|
|
|
:foundingYear 1889 ;
|
|
|
|
foaf:name "Nintendo Co., Ltd."^^xsd:string .
|
2017-11-07 14:37:56 +01:00
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
:Kimishima rdf:type foaf:Person ;
|
|
|
|
foaf:familyName "Kimishima"^^xsd:string ;
|
|
|
|
foaf:givenName "Tatsumi"^^xsd:string .
|
2017-11-07 14:37:56 +01:00
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
\end{lstlisting}
|
2017-11-07 14:37:56 +01:00
|
|
|
\end{frame}
|
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
\begin{frame}[fragile]{Überblick Daten A-Box (2/2)}
|
|
|
|
\begin{lstlisting}
|
|
|
|
:Switch rdf:type :PortableGameConsole .
|
|
|
|
:Switch rev:hasReview :SwitchReviewByJPT .
|
|
|
|
|
|
|
|
:Wii rdf:type :GameConsole .
|
|
|
|
|
|
|
|
:Wii_u rdf:type :GameConsole ;
|
|
|
|
:internetEnabled true ;
|
|
|
|
:consoleName "Wii U"^^xsd:string ;
|
|
|
|
:numOfSupportedControllers 8 ;
|
|
|
|
:predecessorOfConsole :Wii ;
|
|
|
|
:releaseYear 2012 ;
|
|
|
|
:successorOfConsole :Switch .
|
|
|
|
\end{lstlisting}
|
|
|
|
...
|
2017-11-07 14:37:56 +01:00
|
|
|
\end{frame}
|
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
\begin{frame}[fragile]{T-Box (1/2)}
|
|
|
|
\begin{lstlisting}
|
|
|
|
@prefix : <http://example.com/ins_uebung/#> .
|
|
|
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
|
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
|
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
|
|
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
|
|
|
@prefix rev: <http://purl.org/stuff/rev#> .
|
|
|
|
|
|
|
|
# Our own properties
|
|
|
|
:ceo rdf:type rdf:Property ;
|
|
|
|
rdfs:domain foaf:Organization ;
|
|
|
|
rdfs:range foaf:Person .
|
|
|
|
|
|
|
|
:foundingYear rdf:type rdf:Property ;
|
|
|
|
rdfs:domain foaf:Organization ;
|
|
|
|
rdfs:range xsd:int .
|
|
|
|
|
|
|
|
:internetEnabled rdf:type rdf:Property ;
|
|
|
|
rdfs:domain :GameConsole ;
|
|
|
|
rdfs:range xsd:boolean .
|
|
|
|
\end{lstlisting}
|
2017-11-07 14:37:56 +01:00
|
|
|
\end{frame}
|
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
\begin{frame}[fragile]{T-Box (2/2)}
|
|
|
|
\begin{lstlisting}
|
|
|
|
:consoleName rdf:type rdf:Property ;
|
|
|
|
rdfs:domain :GameConsole ;
|
|
|
|
rdfs:range xsd:string .
|
2017-11-07 14:37:56 +01:00
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
:numOfSupportedControllers rdf:type rdf:Property ;
|
|
|
|
rdfs:domain :GameConsole ;
|
|
|
|
rdfs:range xsd:string .
|
2017-11-07 14:37:56 +01:00
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
:successorOfConsole rdf:type rdf:Property ;
|
|
|
|
rdfs:domain :GameConsole ;
|
|
|
|
rdfs:range :GameConsole .
|
|
|
|
\end{lstlisting}
|
2017-11-07 14:37:56 +01:00
|
|
|
\end{frame}
|
|
|
|
|
2017-11-07 19:19:32 +01:00
|
|
|
\begin{frame}[fragile]{Anwendung von RDFS-Regeln}
|
|
|
|
Gegeben sei folgende A-Box
|
|
|
|
\begin{lstlisting}
|
|
|
|
:Wii_U rdf:type :GameConsole .
|
|
|
|
:Switch :successorOfConsole :Wii_U .
|
|
|
|
\end{lstlisting}
|
|
|
|
mit dieser T-Box
|
|
|
|
\begin{lstlisting}
|
|
|
|
:successorOfConsole rdf:type rdf:Property ;
|
|
|
|
rdfs:domain :GameConsole ;
|
|
|
|
rdfs:range :GameConsole .
|
|
|
|
\end{lstlisting}
|
|
|
|
Anwendung der Regel \texttt{rdfs2}
|
|
|
|
\begin{lstlisting}
|
|
|
|
s p o .
|
|
|
|
p rdfs:domain c . ==> s rdf:type c .
|
|
|
|
\end{lstlisting}
|
|
|
|
Ergebnis:
|
|
|
|
\begin{lstlisting}
|
|
|
|
:Switch rdf:type :GameConsole .
|
|
|
|
\end{lstlisting}
|
2017-11-07 14:37:56 +01:00
|
|
|
\end{frame}
|
|
|
|
|
|
|
|
% The end.
|
|
|
|
\end{document}
|