diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-05-28 13:50:20 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-06-04 17:35:42 +0200 |
commit | 7bb254aeff3416e5501192f83b2d11f20ccfc4b5 (patch) | |
tree | ea28492a317b65a7c252d8ba9e759c4bc1d6aa18 /Makefile | |
parent | d6fd3583311d4983a4847cbbff302eb40e010c4e (diff) |
strip owl:imports
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |