From 7bb254aeff3416e5501192f83b2d11f20ccfc4b5 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 28 May 2024 13:50:20 +0200 Subject: strip owl:imports --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3