diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-05-21 09:38:09 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-06-04 17:35:41 +0200 |
commit | 6a4ad9a5cc192d1d34a0dfac9d5934095e4371b8 (patch) | |
tree | 25ae794548b84dc035c8474d160110703b3254c8 /Makefile | |
parent | 897fec693212b12496044e3e45e4141351701085 (diff) |
reorganize: separate dif for each ontology and knowledge graphlearn-v0.0.2
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 51 |
1 files changed, 30 insertions, 21 deletions
@@ -7,9 +7,9 @@ BASE_IRI = https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/ PAD_ARTICLES = worlding ARTICLES = waste worlding -ONTOLOGIES = learning waste +ONTOLOGIES = learn waste -GRAPHS = windsurfing +GRAPHS = $(patsubst ex/%.ttl,%,$(wildcard ex/*.ttl)) PERL_FILES = bin/biblatex-tidy bin/hedgedoc2quarto bin/xmp2rdfxml @@ -149,48 +149,57 @@ $(ARTICLES:%=%/b.tex): %/b.tex: mv --force $*/index.tex $@ rm --force _site/b.pdf -rdf/%-concepts.svg: rdf/%.sdm +%/concepts.svg: %/core.sdm sdml draw --diagram concepts -i $< -f svg -o $@ -rdf/%-er.svg: rdf/%.sdm +%/er.svg: %/core.sdm sdml draw --diagram entity-relationship -i $< -f svg -o $@ -rdf/%-uml.svg: rdf/%.sdm +%/uml.svg: %/core.sdm sdml draw --diagram uml-class -i $< -f svg -o $@ -rdf/%.ttl: rdf/%.sdm +%/core.ttl: %/core.sdm sdml convert -i $< -f rdf -o $@ --no-color -rdf/%.puml: rdf/%.ttl rdf/prefixes.ttl +%/core.puml: %/core.ttl %/prefixes.ttl rdfpuml $< -rdf/%.png: rdf/%.puml +%/core.png: %/core.puml plantuml -tpng $< -rdf/%.svg: rdf/%.puml +%/core.svg: %/core.puml plantuml -tsvg $< -rdf/%/index.html: rdf/%.ttl - mkdir --parents rdf/$* - ontospy gendocs --type 2 -x -o $(CURDIR)/rdf/$* $< +ex/%.puml: ex/%.ttl ex/prefixes.ttl + rdfpuml $< + +ex/%.png: ex/%.puml + plantuml -tpng $< -$(ONTOLOGIES:%=view-%-concept-diagram): view-%-concept-diagram: rdf/%-concepts.svg +ex/%.svg: ex/%.puml + plantuml -tsvg $< + +%/index.html: %/core.ttl + mkdir --parents $* + ontospy gendocs --type 2 -x -o $(CURDIR)/$* $< + +$(ONTOLOGIES:%=view-%-concept-diagram): view-%-concept-diagram: %/concepts.svg inkview $< -$(ONTOLOGIES:%=view-%-er-diagram): view-%-er-diagram: rdf/%-er.svg +$(ONTOLOGIES:%=view-%-er-diagram): view-%-er-diagram: %/er.svg inkview $< -$(ONTOLOGIES:%=view-%-uml-diagram): view-%-uml-diagram: rdf/%-uml.svg +$(ONTOLOGIES:%=view-%-uml-diagram): view-%-uml-diagram: %/uml.svg inkview $< -$(ONTOLOGIES:%=view-%-rdfs-graf): view-%-rdfs-graf: rdf/%.ttl +$(ONTOLOGIES:%=view-%-rdfs-graf): view-%-rdfs-graf: %/core.ttl rdfs2dot -f turtle $< | xdot - -#$(ONTOLOGIES:%=view-%-puml-diagram): view-%-puml-diagram: rdf/%.svg +#$(ONTOLOGIES:%=view-%-puml-diagram): view-%-puml-diagram: %/core.svg # inkview $< -#$(ONTOLOGIES:%=view-%-puml-diagram): view-%-puml-diagram: rdf/%.png -# imv-wayland $< -$(GRAPHS:%=view-%-puml-diagram): view-%-puml-diagram: rdf/%.png +$(ONTOLOGIES:%=view-%-puml-diagram): view-%-puml-diagram: %/core.png + imv-wayland $< +$(GRAPHS:%=view-%-puml-diagram): view-%-puml-diagram: ex/%.png imv-wayland $< -$(ONTOLOGIES:%=render-%-ontology): render-%-ontology: rdf/%/index.html +$(ONTOLOGIES:%=render-%-ontology): render-%-ontology: %/index.html |