From f14cf62a118c9324e7e83749df1e50ab2f3ad265 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 19 May 2024 23:50:49 +0200 Subject: add example knowledge graph windsurfing --- Makefile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3