From adf24d98f4998af3fad6b60647503575df3ed039 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 5 Jun 2024 10:48:07 +0200 Subject: add rdfs2dot diagrams, rendered conditionally as SVG or TeX --- .gitignore | 2 ++ Makefile | 16 +++++++++++++++- _report.yml | 1 + worlding/_diagram.qmd | 17 +++++++++++++++++ worlding/index.qmd | 4 ++++ 5 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 worlding/_diagram.qmd diff --git a/.gitignore b/.gitignore index 393c83d..a23c38a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,9 +10,11 @@ svg-inkscape/ /ex/*.svg /learn/*/*.ttl /learn/*.ttl +/learn/*.pdf /learn/*.puml /learn/*.png /learn/*.svg +/learn/*.tex /waste/*.ttl /waste/*.puml /waste/*.png diff --git a/Makefile b/Makefile index 052f422..9d86a51 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,9 @@ render: $(ANNOT_TAGS:%=annot/%/index.qmd) publish: rsync -avH --delete-after _site/ $(BASE_SSH) -prepare: $(patsubst %,learn/$(ONTOLOGIES_VERSION)/%.ttl,core $(ONTOLOGIES_LEARN)) +prepare: \ + $(patsubst %,learn/$(ONTOLOGIES_VERSION)/%.ttl,core $(ONTOLOGIES_LEARN)) \ + $(foreach dia,tentacular trap,$(foreach ext,svg tex,learn/$(dia)_rdfs.$(ext))) learn/$(ONTOLOGIES_VERSION)/%.ttl: learn/%.ttl mkdir --parents learn/0.1 @@ -203,6 +205,18 @@ $(ARTICLES:%=%/b.tex): %/b.tex: %/core.svg: %/core.puml plantuml -tsvg $< +%/rdfs.svg: %/core.ttl + rdfs2dot -f turtle $< | dot -Tsvg -o$@ + +learn/%_rdfs.svg: learn/%.ttl + rdfs2dot -f turtle $< | dot -Tsvg -o$@ + +%/rdfs.tex: %/core.ttl + rdfs2dot -f turtle $< | dot2tex --figonly -o$@ + +learn/%_rdfs.tex: learn/%.ttl + rdfs2dot -f turtle $< | dot2tex --figonly -o$@ + ex/%.puml: ex/%.ttl ex/prefixes.ttl rdfpuml $< diff --git a/_report.yml b/_report.yml index bad7757..8f8c924 100644 --- a/_report.yml +++ b/_report.yml @@ -7,6 +7,7 @@ comments: format: pdf: + default-image-extension: tex # links-as-notes: true colorlinks: false pdf-engine: lualatex diff --git a/worlding/_diagram.qmd b/worlding/_diagram.qmd new file mode 100644 index 0000000..df8c902 --- /dev/null +++ b/worlding/_diagram.qmd @@ -0,0 +1,17 @@ +## Diagrammer + +::: {.content-visible when-format="html"} + +::: {.callout-tip} + +### Fuldskærmsvisning + +Klik på diagrammet for en detaljeret visning. + +::: + +::: + +![Tentakulær læring [rdfs2dot]](../learn/tentacular_rdfs){#fig-10tac-rdfs width=100% .lightbox} + +![Faldgruber [rdfs2dot]](../learn/trap_rdfs){#fig-trap-rdfs width=100% .lightbox} diff --git a/worlding/index.qmd b/worlding/index.qmd index 8cfa869..577c3ad 100644 --- a/worlding/index.qmd +++ b/worlding/index.qmd @@ -72,3 +72,7 @@ breaks: false # Bilag C {.appendix} {{< include ../interview/expert2/index.qmd >}} + +# Bilag D {.appendix} + +{{< include _diagram.qmd >}} -- cgit v1.2.3