semantic web for learning aid
summaryrefslogtreecommitdiff
path: root/Makefile
blob: 04173e5a672e36fff18f595af3e7824f6a18238d (plain)
  1. SSH_HOST = www-ruc@xayide.jones.dk
  2. SSH_BASE_PATH = public_websites/thoughtroam.abcde.../
  3. BASE_SSH = $(SSH_HOST):$(SSH_BASE_PATH)
  4. BASE_IRI = https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/
  5. BASE_URI = https://thoughtroam.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/
  6. ANNOT_TAGS = ontology reflection definition
  7. #PAD_ARTICLES = worlding
  8. ARTICLES = waste worlding
  9. ONTOLOGIES = learn waste
  10. ONTOLOGIES_LEARN = tentacular bisected
  11. ONTOLOGIES_VERSION = 0.1
  12. GRAPHS = $(patsubst ex/%.ttl,%,$(wildcard ex/*.ttl))
  13. PERL_FILES = bin/biblatex-tidy bin/hedgedoc2quarto bin/xmp2rdfxml
  14. TIDY_MARKDOWN = worlding
  15. export HEDGEDOC_COOKIES_FILE = $(CURDIR)/cookies.txt
  16. export HEDGEDOC_SERVER = https://pad.degrowth.net/
  17. all: preview
  18. preview:
  19. quarto preview
  20. render:
  21. quarto render
  22. publish:
  23. rsync -avH --delete-after _site/ $(BASE_SSH)
  24. prepare: $(patsubst %,learn/$(ONTOLOGIES_VERSION)/%.ttl,core $(ONTOLOGIES_LEARN))
  25. learn/$(ONTOLOGIES_VERSION)/%.ttl: learn/%.ttl
  26. mkdir --parents learn/0.1
  27. perl -gp \
  28. -e 's,\b$(subst bisected,learn2sect,$(subst tentacular,learn10tac,$(subst core,learn,$*))):,:,g;' \
  29. -e 's,\Q$(BASE_URI)stub/foaf#,http://xmlns.com/foaf/0.1/,g;' \
  30. -e 's,\Q$(BASE_URI)stub/doap#,http://usefulinc.com/ns/doap#,g;' \
  31. -e 's,purl\.org/learn/\K(?=[^\d]),$(ONTOLOGIES_VERSION)/,g;' \
  32. -e 's,\n\s*owl:imports\s[^\n]+;(?=\n),,g;' \
  33. < $< > $@
  34. annot-all: annot-sync annot-render
  35. annot-sync:
  36. gooseberry sync
  37. annot-render:
  38. gooseberry make --uri urn:x-pdf:923a0c10ff1cdb4db772a8a948176c52 --clear --force
  39. perl -p \
  40. -e 's/^#(?=\s)/##/g;' \
  41. -e 's/^(?:Group|Created|Tags):.*\K/ /g;' \
  42. -e 's/^\[See in context\].*//g;' \
  43. $(ANNOT_TAGS:%=~/gooseberry/%.md) > worlding/_annot.md
  44. cal-all: cal-fetch cal-render cal-publish
  45. cal-fetch:
  46. bin/cal-fetch.sh
  47. cal-render:
  48. bin/cal-publish.sh
  49. cal-publish:
  50. ssh $(SSH_HOST) mkdir -p $(SSH_BASE_PATH)events/
  51. rsync -avH --delete-after $(patsubst %,events/%,$(ARTICLES) superteam) $(BASE_SSH)events/
  52. pad-login:
  53. hedgedoc login --email
  54. pad-list:
  55. hedgedoc history
  56. pad-export-all: $(PAD_ARTICLES:%=pad-export-%)
  57. pad-export-worlding: ref.bib worlding/index.qmd \
  58. $(patsubst %,worlding/_%.qmd,baggrund teori_og_metode undersøgelser konklusion perspektivering kilder planer)