diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-05-19 23:50:49 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-06-04 17:35:41 +0200 |
commit | f14cf62a118c9324e7e83749df1e50ab2f3ad265 (patch) | |
tree | 9c47929a95e8a48d8658c81aa78adf8438961d63 /Makefile | |
parent | 81baf0aa7d414dbdcb70d3d63e691f8de2440432 (diff) |
add example knowledge graph windsurfing
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -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 |