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 | |
parent | 897fec693212b12496044e3e45e4141351701085 (diff) |
reorganize: separate dif for each ontology and knowledge graphlearn-v0.0.2
-rw-r--r-- | .gitignore | 17 | ||||
-rw-r--r-- | Makefile | 51 | ||||
-rw-r--r-- | ex/prefixes.ttl (renamed from rdf/prefixes.ttl) | 0 | ||||
-rw-r--r-- | ex/windsurfing.ttl (renamed from rdf/windsurfing.ttl) | 0 | ||||
-rw-r--r-- | learn/core.sdm (renamed from rdf/learning.sdm) | 0 | ||||
-rw-r--r-- | learn/prefixes.ttl | 31 | ||||
-rw-r--r-- | learn/tentacular.sdm (renamed from rdf/learning_tentacular.sdm) | 0 | ||||
-rw-r--r-- | sdml-catalog.json | 14 | ||||
-rw-r--r-- | waste/core.sdm (renamed from rdf/waste.sdm) | 2 | ||||
-rw-r--r-- | waste/prefixes.ttl | 31 | ||||
-rw-r--r-- | waste/view.sdm (renamed from rdf/waste_view.sdm) | 2 |
11 files changed, 114 insertions, 34 deletions
@@ -5,8 +5,17 @@ index_files/ svg-inkscape/ *~ /worlding/S2424791-JI_ME.pdf -rdf/*.ttl -rdf/*.svg +/ex/*.puml +/ex/*.png +/ex/*.svg +/learn/*.ttl +/learn/*.puml +/learn/*.png +/learn/*.svg +/waste/*.ttl +/waste/*.puml +/waste/*.png +/waste/*.svg +!/learn/prefixes.ttl +!/waste/prefixes.ttl index.tex -!rdf/prefixes.ttl -!rdf/windsurfing.ttl @@ -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 diff --git a/rdf/prefixes.ttl b/ex/prefixes.ttl index 11a3a6f..11a3a6f 100644 --- a/rdf/prefixes.ttl +++ b/ex/prefixes.ttl diff --git a/rdf/windsurfing.ttl b/ex/windsurfing.ttl index b4bfdba..b4bfdba 100644 --- a/rdf/windsurfing.ttl +++ b/ex/windsurfing.ttl diff --git a/rdf/learning.sdm b/learn/core.sdm index e3b7026..e3b7026 100644 --- a/rdf/learning.sdm +++ b/learn/core.sdm diff --git a/learn/prefixes.ttl b/learn/prefixes.ttl new file mode 100644 index 0000000..11a3a6f --- /dev/null +++ b/learn/prefixes.ttl @@ -0,0 +1,31 @@ +@base <https://thoughtroam.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/rdf> . +@prefix : <#> . +@prefix ex: <https://thoughtroam.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/rdf/ex#> . +@prefix learning: <https://thoughtroam.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/rdf/> . +@prefix foaf: <http://xmlns.com/foaf/0.1/> . +@prefix owl: <http://www.w3.org/2002/07/owl#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix sdml: <http://sdml.io/sdml-owl.ttl#> . +@prefix dc: <http://purl.org/dc/elements/1.1/> . +@prefix skos: <http://www.w3.org/2004/02/skos/core#> . +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . + +#[] puml:options """ +# hide empty members +# hide circle +# left to right direction +#""". + +# TODO: use FoaF ontology +foaf:Person puml:stereotype "(A,orange)". +:Learner puml:stereotype "(A,orange)". +:Educator puml:stereotype "(A,orange)". +:Objective puml:stereotype "(O,green)". + +#<> a puml:Inline. +#sdml:Member a puml:Inline. +sdml:hasMember a puml:InlineProperty. +dc:creator a puml:InlineProperty. +dc:license a puml:InlineProperty. +owl:imports a puml:InlineProperty. diff --git a/rdf/learning_tentacular.sdm b/learn/tentacular.sdm index cf1eebb..cf1eebb 100644 --- a/rdf/learning_tentacular.sdm +++ b/learn/tentacular.sdm diff --git a/sdml-catalog.json b/sdml-catalog.json index 7e1a3b7..de66410 100644 --- a/sdml-catalog.json +++ b/sdml-catalog.json @@ -1,22 +1,22 @@ { - "base": "https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/rdf/", + "base": "https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/", "entries": { "learning": { "item": { - "relative_url": "learning#", - "relative_path": "./learning.sdm" + "relative_url": "learning/core#", + "relative_path": "learn/core.sdm" } }, "waste": { "item": { - "relative_url": "waste#", - "relative_path": "rdf/waste.sdm" + "relative_url": "waste/core#", + "relative_path": "waste/core.sdm" } }, "waste_view": { "item": { - "relative_url": "waste_view#", - "relative_path": "rdf/waste_view.sdm" + "relative_url": "waste/view#", + "relative_path": "waste/view.sdm" } } } diff --git a/rdf/waste.sdm b/waste/core.sdm index c75dc87..6ff284f 100644 --- a/rdf/waste.sdm +++ b/waste/core.sdm @@ -1,4 +1,4 @@ -module waste action <https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/rdf/> is +module waste core <https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/waste/> is import [ dc skos xsd ] import [ waste_view ] diff --git a/waste/prefixes.ttl b/waste/prefixes.ttl new file mode 100644 index 0000000..11a3a6f --- /dev/null +++ b/waste/prefixes.ttl @@ -0,0 +1,31 @@ +@base <https://thoughtroam.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/rdf> . +@prefix : <#> . +@prefix ex: <https://thoughtroam.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/rdf/ex#> . +@prefix learning: <https://thoughtroam.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/rdf/> . +@prefix foaf: <http://xmlns.com/foaf/0.1/> . +@prefix owl: <http://www.w3.org/2002/07/owl#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix sdml: <http://sdml.io/sdml-owl.ttl#> . +@prefix dc: <http://purl.org/dc/elements/1.1/> . +@prefix skos: <http://www.w3.org/2004/02/skos/core#> . +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . + +#[] puml:options """ +# hide empty members +# hide circle +# left to right direction +#""". + +# TODO: use FoaF ontology +foaf:Person puml:stereotype "(A,orange)". +:Learner puml:stereotype "(A,orange)". +:Educator puml:stereotype "(A,orange)". +:Objective puml:stereotype "(O,green)". + +#<> a puml:Inline. +#sdml:Member a puml:Inline. +sdml:hasMember a puml:InlineProperty. +dc:creator a puml:InlineProperty. +dc:license a puml:InlineProperty. +owl:imports a puml:InlineProperty. diff --git a/rdf/waste_view.sdm b/waste/view.sdm index ea2b8a8..7eb97cd 100644 --- a/rdf/waste_view.sdm +++ b/waste/view.sdm @@ -1,4 +1,4 @@ -module waste_view waste_view <https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/rdf/> is +module waste waste_view <https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/waste/> is ; Grossness: https://english.stackexchange.com/a/272409 import [ dc skos xsd ] |