Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schaertl_andreas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
supervision
schaertl_andreas
Commits
036dae9d
Commit
036dae9d
authored
4 years ago
by
Andreas Schärtl
Browse files
Options
Downloads
Patches
Plain Diff
report: applications: move code into a floating figure
parent
12539924
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/report/applications-q3.tex
+45
-0
45 additions, 0 deletions
doc/report/applications-q3.tex
doc/report/applications.tex
+13
-32
13 additions, 32 deletions
doc/report/applications.tex
with
58 additions
and
32 deletions
doc/report/applications-q3.tex
0 → 100644
+
45
−
0
View file @
036dae9d
\begin{figure}
\centering
\begin{subfigure}
[]
{
0.9
\textwidth
}
\begin{lstlisting}
PREFIX ulo: <https://mathhub.info/ulo#>
PREFIX dcterms: <http://purl.org/dc/terms/>
SELECT ?work
WHERE
{
?work dcterms:creator|dcterms:contributor "John Smith" .
}
GROUP BY ?work
\end{lstlisting}
\caption
{
SPARQL query that asks for all
\texttt
{
work
}
s created
by an author named ``John Smith''. ULO~does not come with
predicates for creator or contributor, instead the available
data sets take advantage of the
\texttt
{
dcterms
}
namespace~
\cite
{
dcowl
}
.
}
\label
{
fig:q2a
}
\end{subfigure}
\vspace
{
0.5cm
}
\begin{subfigure}
[]
{
0.9
\textwidth
}
\begin{lstlisting}
PREFIX ulo: <https://mathhub.info/ulo#>
PREFIX dcterms: <http://purl.org/dc/terms/>
SELECT ?work (COUNT(?user) as ?refcount)
WHERE
{
?work dcterms:creator|dcterms:contributor "John Smith" .
?user ulo:uses ?work .
}
GROUP BY ?work
ORDER BY DESC(?refcount)
\end{lstlisting}
\caption
{
An adapted SPARQL~query based on~
\ref
{
fig:q2a
}
. It
lists all works authored by ``John Smith'' rated by number
of references. The idea is works that were referenced more
often are more important.
}
\label
{
fig:q2b
}
\end{subfigure}
\caption
{{
SPARQL
}
~queries for answering questions about authorship
and main contributions.
}
\label
{
fig:q2full
}
\end{figure}
This diff is collapsed.
Click to expand it.
doc/report/applications.tex
+
13
−
32
View file @
036dae9d
...
...
@@ -236,38 +236,19 @@ of~$A$, that is those works that~$A$ authored that are the most
important. Importance is a quality measure, simply sorting the
result by number of references might be a good start.
\noindent\textbf
{
Implementation
}
A search for contributions by a given author
can easily be formulated in
{
SPARQL
}
.
\begin{lstlisting}
PREFIX ulo: <https://mathhub.info/ulo#>
PREFIX dcterms: <http://purl.org/dc/terms/>
SELECT ?work
WHERE
{
?work dcterms:creator|dcterms:contributor "John Smith" .
}
GROUP BY ?work
\end{lstlisting}
To get the main contributions, we rate each individual
\texttt
{
?work
}
by its number of
\texttt
{
ulo:uses
}
references. Extending the
{
SPARQL
}
query above, we can query the
database for a ordered list of works, starting with the one that
has the most references.
\begin{lstlisting}
PREFIX ulo: <https://mathhub.info/ulo#>
PREFIX dcterms: <http://purl.org/dc/terms/>
SELECT ?work (COUNT(?user) as ?refcount)
WHERE
{
?work dcterms:creator|dcterms:contributor "John Smith" .
?user ulo:uses ?work .
}
GROUP BY ?work
ORDER BY DESC(?refcount)
\end{lstlisting}
We can formulate~
$
\mathcal
{
Q
}_
3
$
with just one SPARQL
query. Because everything is handled by the database, access
should be about as quick as we can hope it to be.
\input
{
applications-q3.tex
}
\noindent\textbf
{
Implementation
}
A search for contributions by a given
author can easily be formulated in
{
SPARQL
}
~(Figure~
\ref
{
fig:q2a
}
).
To get the main contributions, we rate each individual work
by its number of
\texttt
{
ulo:uses
}
references. Extending the previous
{
SPARQL
}
, we can query the database for a ordered list of works,
starting with the one that has the most
references~(Figure~
\ref
{
fig:q2b
}
). We can formulate~
$
\mathcal
{
Q
}_
3
$
with just one SPARQL query. Because everything is handled by the
database, access should be about as quick as we can hope it to be.
\subsubsection
{
Summarizing
$
\mathcal
{
Q
}_
1
$
to
$
\mathcal
{
Q
}_
3
$}
Experimenting with
$
\mathcal
{
Q
}_
1
$
to
$
\mathcal
{
Q
}_
3
$
provided us with
some insight into ULO and existing ULO exports.
$
\mathcal
{
Q
}_
1
$
shows
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment