From cf6c637d93a0330cc2b9fe55c441c5598086cef1 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 29 Aug 2024 17:25:15 +0200 Subject: tighten ontology mangling: stricten owl:import matching --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3