aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 04e3426..226e9bf 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,8 @@ ARTICLES = waste worlding
ONTOLOGIES = learning waste
+GRAPHS = windsurfing
+
PERL_FILES = bin/biblatex-tidy bin/hedgedoc2quarto bin/xmp2rdfxml
TIDY_MARKDOWN = worlding
@@ -147,7 +149,7 @@ $(ARTICLES:%=%/b.tex): %/b.tex:
mv --force $*/index.tex $@
rm --force _site/b.pdf
-rdf/%.svg: rdf/%.sdm
+rdf/%-concepts.svg: rdf/%.sdm
sdml draw --diagram concepts -i $< -f svg -o $@
rdf/%-er.svg: rdf/%.sdm
@@ -159,11 +161,20 @@ rdf/%-uml.svg: rdf/%.sdm
rdf/%.ttl: rdf/%.sdm
sdml convert -i $< -f rdf -o $@ --no-color
+rdf/%.puml: rdf/%.ttl rdf/prefixes.ttl
+ rdfpuml $<
+
+rdf/%.png: rdf/%.puml
+ plantuml -tpng $<
+
+rdf/%.svg: rdf/%.puml
+ plantuml -tsvg $<
+
rdf/%/index.html: rdf/%.ttl
mkdir --parents rdf/$*
ontospy gendocs --type 2 -x -o $(CURDIR)/rdf/$* $<
-$(ONTOLOGIES:%=view-%-concept-diagram): view-%-concept-diagram: rdf/%.svg
+$(ONTOLOGIES:%=view-%-concept-diagram): view-%-concept-diagram: rdf/%-concepts.svg
inkview $<
$(ONTOLOGIES:%=view-%-er-diagram): view-%-er-diagram: rdf/%-er.svg
@@ -175,4 +186,11 @@ $(ONTOLOGIES:%=view-%-uml-diagram): view-%-uml-diagram: rdf/%-uml.svg
$(ONTOLOGIES:%=view-%-rdfs-graf): view-%-rdfs-graf: rdf/%.ttl
rdfs2dot -f turtle $< | xdot -
+#$(ONTOLOGIES:%=view-%-puml-diagram): view-%-puml-diagram: rdf/%.svg
+# inkview $<
+#$(ONTOLOGIES:%=view-%-puml-diagram): view-%-puml-diagram: rdf/%.png
+# imv-wayland $<
+$(GRAPHS:%=view-%-puml-diagram): view-%-puml-diagram: rdf/%.png
+ imv-wayland $<
+
$(ONTOLOGIES:%=render-%-ontology): render-%-ontology: rdf/%/index.html