-
Notifications
You must be signed in to change notification settings - Fork 1
/
entities.tex
48 lines (42 loc) · 1.74 KB
/
entities.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
48
% JADE entities and their relationships.
\documentclass{article}
\usepackage{tikz}
\usepackage[landscape]{geometry}
\usetikzlibrary{arrows,shapes}
% 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, fill=white},
entity/.style={draw, ellipse, thick, inner sep=1em},
arrow/.style={->, >=stealth', shorten >=1pt, semithick, font=\sffamily\footnotesize},
every node/.style={align=center}]
% TODO: dashed boxes for regions: wiki entity, judgment, discussion
% Position the nodes using a matrix layout
\matrix{
\node[entity] (wiki1) {Wiki article};
\& \& \node[entity] (wiki2) {Wiki revision}; \\
% FIXME: Vary node styles?
\node[entity] (comment1) {ORES \\ article quality};
\& \node[entity] (comment2) {JADE \\ article judgment};
\& \node[entity] (comment3) {ORES \\ revision score};
\& \node[entity] (comment4) {JADE \\ revision judgment}; \\
\& \node[entity] (reply1) {Reply}; \\
\& \node[entity] (reply2a) {Reply};
\& \node[entity] (reply2b) {Reply}; \\
};
\node [below=1cm, align=flush center] at (reply2a)
{\Large JADE \\ \normalsize object graph};
% Draw the arrows between the nodes and label them.
\draw[arrow] (comment1) -- (wiki1);
\draw[arrow] (comment2) -- (wiki1);
\draw[arrow] (comment2) -- node[midway, below] {refutes} (comment1);
\draw[arrow] (comment3) -- (wiki2);
\draw[arrow] (comment4) -- (wiki2);
\draw[arrow] (comment4) -- node[midway, below] {supports} (comment3);
\draw[arrow] (reply1) -- node[midway, right] {discusses} (comment2);
\draw[arrow] (reply2a) -- (reply1);
\draw[arrow] (reply2b) -- (reply1);
\end{tikzpicture}
\end{document}