aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-08-29 17:25:15 +0200
committerJonas Smedegaard <dr@jones.dk>2024-08-29 17:35:52 +0200
commitcf6c637d93a0330cc2b9fe55c441c5598086cef1 (patch)
treeb7dadb45436cbe28c9817114e740a62c92ee98d8 /Makefile
parenta5ebf93d7ce59063922ebe16c00baf601839b3bf (diff)
tighten ontology mangling: stricten owl:import matching
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 35f97aa..7089f8b 100644
--- a/Makefile
+++ b/Makefile
@@ -57,7 +57,7 @@ learn/$(ONTOLOGIES_VERSION)/%.ttl: learn/%.ttl
-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;' \
+ -e 's/\n\h+owl:imports <[^>]+> ;//g;' \
< $< > $@
learn/%_sdm.qmd: learn/$(ONTOLOGIES_VERSION)/%.ttl