-
Notifications
You must be signed in to change notification settings - Fork 1
/
wikilabels_dfd.tex
47 lines (41 loc) · 1.93 KB
/
wikilabels_dfd.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
% Data flow diagram
% Template adapted from http://www.texample.net/tikz/examples/data-flow-diagram/ by David Fokkema
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,shapes}
% Custom, should be provided in the same directory.
\usepackage{datastore}
% Disable page number for better SVG.
\pagenumbering{gobble}
\begin{document}
\begin{tikzpicture}[
font=\sffamily,
every matrix/.style={ampersand replacement=\&,column sep=2cm,row sep=2cm},
interface/.style={draw,thick,regular polygon,regular polygon sides=4,inner sep=0},
process/.style={draw,thick,rounded corners,inner sep=.3 cm},
datastore/.style={draw,thick,shape=datastore,inner sep=.3cm},
to/.style={->,>=stealth',shorten >=1pt,semithick,font=\sffamily\footnotesize},
every node/.style={align=center}]
% Position the nodes using a matrix layout
\matrix{
\node[interface] (researcher) {Researcher};
\& \node[interface] (mediawiki) {MediaWiki \\ API}; \\
\node[process] (design) {Build experiments}; \\
\node[datastore] (experiments) {Experiments};
\& \node[process] (wikilabels) {Wiki labels \\ UI};
\& \node[interface] (keyer) {Labeler}; \\
\& \node[process] (labels) {Completed campaigns}; \\
};
\node[below=1cm, align=flush center] (title) at (labels)
{\Large Wiki labels \\ \normalsize data flow diagram \\
};
% Draw the arrows between the nodes and label them.
\draw[to] (researcher) -- node[midway,left] {research questions \\ revision curation \\ wikis} (design);
\draw[to] (design) -- (experiments);
\draw[to] (mediawiki) -- node[midway,right] {wiki siteinfo} (wikilabels);
\draw[to] (wikilabels) to[bend left=25] node[midway,above] {cases} (keyer);
\draw[to] (keyer) to[bend left=25] node[midway,below] {classification labels} (wikilabels);
\draw[to] (experiments) -- node[midway,right] {} (wikilabels);
\draw[to] (wikilabels) -- node[midway, left] {judgements} (labels);
\end{tikzpicture}
\end{document}