Skip to content

Commit

Permalink
Translate Graphviz-based figures, add script to generate images
Browse files Browse the repository at this point in the history
To run: `cd images ; sh render.sh scs` (for scs.dot -> scs.png)

See #378
  • Loading branch information
fsteeg committed Jul 26, 2018
1 parent 8d1bedd commit c9b36fb
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 22 deletions.
14 changes: 7 additions & 7 deletions doc/images/data.dot
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ digraph data {

subgraph cluster_title{
style=solid
label="Title Data"
union [label="hbz union catalog\n(Aleph)"]
label="Titeldaten"
union [label="hbz-Verbundkatalog\n(Aleph)"]
}

subgraph cluster_geo{
style=solid
label="Geo Data"
label="Geodata"
wikidata[label="Wikidata\n(JSON)"]
}

subgraph cluster_auth{
style=solid
label="Authority Data"
label="Normdaten"
gnd[label="GND\n(RDF)"]
sigel[label="Sigel\n(Pica)"]
dbs[label="DBS\n(CSV)"]
Expand All @@ -48,9 +48,9 @@ digraph data {
sigel->api[ltail=cluster_auth]
union->api[ltail=cluster_title]

app1[label="Application 1"]
app2[label="Application 2"]
app3[label="Application 3"]
app1[label="Anwendung 1"]
app2[label="Anwendung 2"]
app3[label="Anwendung 3"]

api->app1[dir=back]
api->app2[dir=back]
Expand Down
Binary file modified doc/images/data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions doc/images/lobid-1.dot
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ digraph {
graph[fontname=helvetica]
edge[fontname=helvetica arrowhead=empty]

db[label="Source\nData"]
db[label="Quelldaten"]
rdf[label="N-Triples"]
json[label="JSON-LD\nAPI"]
apps[label="Our Apps"]
third[label="3rd Party"]
apps[label="Eigene\nAnwendungen"]
third[label="3rd-Party-\nAnwendungen"]

db->rdf[label="craft"]
rdf->json[label="gene-\nrate" constraint=false]
db->rdf[label="anfertigen"]
rdf->json[label="gene-\nrieren" constraint=false]
json->apps
json->third[label="use"]
json->third[label="verwenden"]
rdf->third
}
Binary file modified doc/images/lobid-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions doc/images/lobid-2.dot
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ digraph {
graph[fontname=helvetica]
edge[fontname=helvetica arrowhead=empty]

db[label="Source\nData"]
db[label="Quelldaten"]
rdf[label="RDF"]
json[label="JSON-LD\nAPI"]
apps[label="Our Apps"]
third[label="3rd Party"]
apps[label="Eigene\nAnwendungen"]
third[label="3rd-Party-\nAnwendungen"]

db->json[label="craft"]
json->rdf[label="gene-\nrate" constraint=false]
db->json[label="anfertigen"]
json->rdf[label="gene-\nrieren" constraint=false]
json->apps
json->third[label="use"]
json->third[label="verwenden"]
rdf->third
}
Binary file modified doc/images/lobid-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions doc/images/render.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dot -Tpng -Gsize=9,15\! -Gdpi=100 -o$1.png $1.dot
6 changes: 3 additions & 3 deletions doc/images/scs.dot
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ digraph scs {
edge[arrowhead=empty arrowtail=empty]
rankdir=TD
splines=false
scs1[shape=record label="{UI|{Trans-\nformation|Index}|API}"]
scs2[shape=record label="{UI|{Trans-\nformation|Index}|API}"]
scs3[shape=record label="{UI|{Trans-\nformation|Index}|API}"]
scs1[shape=record label="{Oberfläche|{Trans-\nformation|Index}|API}"]
scs2[shape=record label="{Oberfläche|{Trans-\nformation|Index}|API}"]
scs3[shape=record label="{Oberfläche|{Trans-\nformation|Index}|API}"]
}
Binary file modified doc/images/scs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c9b36fb

Please sign in to comment.