aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-05-28 13:50:20 +0200
committerJonas Smedegaard <dr@jones.dk>2024-06-04 17:35:42 +0200
commit7bb254aeff3416e5501192f83b2d11f20ccfc4b5 (patch)
treeea28492a317b65a7c252d8ba9e759c4bc1d6aa18
parentd6fd3583311d4983a4847cbbff302eb40e010c4e (diff)
strip owl:imports
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6618d3b..0647e0c 100644
--- a/Makefile
+++ b/Makefile
@@ -35,11 +35,12 @@ prepare: $(patsubst %,learn/$(ONTOLOGIES_VERSION)/%.ttl,core tentacular)
learn/$(ONTOLOGIES_VERSION)/%.ttl: learn/%.ttl
mkdir --parents learn/0.1
- perl -p \
+ perl -gp \
-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;' \
-e 's,purl\.org/learn/\K(?=[^\d]),$(ONTOLOGIES_VERSION)/,g;' \
+ -e 's,\n\s*owl:imports\s[^\n]+;(?=\n),,g;' \
< $< > $@
cal-all: cal-fetch cal-render cal-publish