Update on Overleaf.
This commit is contained in:
parent
04d15498fe
commit
d7c3f8ae39
43
main.tex
43
main.tex
|
@ -186,6 +186,7 @@
|
|||
rdfs:domain :GameConsole ;
|
||||
rdfs:range :GameConsole .
|
||||
\end{lstlisting}
|
||||
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}[fragile]{Anwendung von RDFS-Regeln}
|
||||
|
@ -211,5 +212,47 @@ Ergebnis:
|
|||
\end{lstlisting}
|
||||
\end{frame}
|
||||
|
||||
\begin{frame}[fragile]{SPARQL-Anfragen (1/2)}
|
||||
Wie viele verschiedene Konsolen wurden von Nintendo hergestellt?
|
||||
\begin{lstlisting}
|
||||
SELECT COUNT(?console) AS ?numConsoles
|
||||
WHERE {
|
||||
?console :madeBy ?organization .
|
||||
}
|
||||
GROUP BY ?organization
|
||||
\end{lstlisting}
|
||||
Welche Konsolen kamen nach Jahr X raus?
|
||||
\begin{lstlisting}
|
||||
SELECT ?console
|
||||
WHERE {
|
||||
?console :madeBy :Nintendo .
|
||||
?console :releaseYear ?releaseYear .
|
||||
FILTER(?releaseYear > 1997)
|
||||
}
|
||||
\end{lstlisting}
|
||||
\end{frame}
|
||||
\begin{frame}[fragile]{SPARQL-Anfragen (2/2)}
|
||||
Einen CEO einer Konsole zuordnen.
|
||||
\begin{lstlisting}
|
||||
CONSTRUCT {
|
||||
?ceo :isRelatedToConsole ?console .
|
||||
}
|
||||
WHERE {
|
||||
?console rdf:type :GameConsole .
|
||||
?console :madeBy ?org .
|
||||
?org :ceo ?ceo .
|
||||
?ceo rdf:type foaf:Person .
|
||||
}
|
||||
\end{lstlisting}
|
||||
Alle Konsolen die mindestens ein Review haben.
|
||||
\begin{lstlisting}
|
||||
SELECT DISTINCT ?console
|
||||
WHERE {
|
||||
?console rev:hasReview ?anyReview .
|
||||
}
|
||||
\end{lstlisting}
|
||||
\end{frame}
|
||||
|
||||
|
||||
% The end.
|
||||
\end{document}
|
Loading…
Reference in New Issue