summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-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