From f114390fd935c4884dcbb89b12d99fbd82abf01c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 1 Jun 2024 18:05:24 +0200 Subject: add annotation addendum for tags ontology reflection, via make target annot-all --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e6b0ac4..84851fa 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,8 @@ BASE_SSH = $(SSH_HOST):$(SSH_BASE_PATH) BASE_IRI = https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/ BASE_URI = https://thoughtroam.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/ +ANNOT_TAGS = ontology reflection + #PAD_ARTICLES = worlding ARTICLES = waste worlding @@ -44,16 +46,18 @@ learn/$(ONTOLOGIES_VERSION)/%.ttl: learn/%.ttl -e 's,\n\s*owl:imports\s[^\n]+;(?=\n),,g;' \ < $< > $@ -annot-all: annot-sync annot-fetch +annot-all: annot-sync annot-render annot-sync: gooseberry sync -annot-fetch: - gooseberry view --uri urn:x-pdf:923a0c10ff1cdb4db772a8a948176c52 > worlding/_annot.md - annot-render: gooseberry make --uri urn:x-pdf:923a0c10ff1cdb4db772a8a948176c52 --clear --force + perl -p \ + -e 's/^#(?=\s)/##/g;' \ + -e 's/^(?:Group|Created|Tags):.*\K/ /g;' \ + -e 's/^\[See in context\].*//g;' \ + $(ANNOT_TAGS:%=~/gooseberry/%.md) > worlding/_annot.md cal-all: cal-fetch cal-render cal-publish -- cgit v1.2.3