aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-05-28 13:17:31 +0200
committerJonas Smedegaard <dr@jones.dk>2024-06-04 17:35:42 +0200
commit35e604963b57ade771ceba97c300e6498fd9c1a4 (patch)
tree186bbcd9db277a1313c83affef3cdb1478f0ceb5
parent83310cf788fe765c7d53f8949ef24dff69de0944 (diff)
tighten and version learn ontologies
-rw-r--r--Makefile12
-rw-r--r--_quarto.yml3
2 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index eceebac..0081e6c 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,13 @@ SSH_BASE_PATH = public_websites/thoughtroam.abcde.../
BASE_SSH = $(SSH_HOST):$(SSH_BASE_PATH)
BASE_IRI = https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/
+BASE_URI = https://thoughtroam.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/
PAD_ARTICLES = worlding
ARTICLES = waste worlding
ONTOLOGIES = learn waste
+ONTOLOGIES_VERSION = 0.1
GRAPHS = $(patsubst ex/%.ttl,%,$(wildcard ex/*.ttl))
@@ -29,7 +31,15 @@ render:
publish:
rsync -avH --delete-after _site/ $(BASE_SSH)
-prepare: learn/core.ttl learn/tentacular.ttl
+prepare: $(patsubst %,learn/$(ONTOLOGIES_VERSION)/%.ttl,core tentacular)
+
+learn/$(ONTOLOGIES_VERSION)/%.ttl: learn/%.ttl
+ mkdir --parents learn/0.1
+ perl -p \
+ -e 's,\b$(subst tentacular,learn10tac,$(subst core,learn,$*)):,:,g;' \
+ -e 's,\Q$(BASE_URI)stub/foaf#,http://xmlns.com/foaf/0.1/,g;' \
+ -e 's,\Q$(BASE_URI)stub/doap#,http://usefulinc.com/ns/doap#,g;' \
+ < $< > $@
cal-all: cal-fetch cal-render cal-publish
diff --git a/_quarto.yml b/_quarto.yml
index e41de24..c2d2520 100644
--- a/_quarto.yml
+++ b/_quarto.yml
@@ -73,5 +73,4 @@ resources:
- fonts
- waste/index.pdf
- worlding/S2424791-JI_ME.pdf
- - learn/core.ttl
- - learn/tentacular.ttl
+ - learn/*/*.ttl