From 3d0f8c3b17668cbbd6be2c8ce6a8076d526fa094 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 29 Aug 2024 19:48:28 +0200 Subject: tighten ontology mangling: use Notation 3 shorthand 'a' --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8aa5a31..6b033a9 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,8 @@ learn/$(ONTOLOGIES_VERSION)/%.ttl: learn/%.ttl -e 's,purl\.org/learn/\K(?=[^\d]),$(ONTOLOGIES_VERSION)/,g;' \ -e 's/\n\h+owl:imports <[^>]+> ;//g;' \ -e 's/(?:\G|^)\s{4}/\t/gm;' \ + -e 's/^\S+\K\s+rdf:type\s+/ a /gm;' \ + -e 's/^\t\Krdf:type /a /gm;' \ -e 's/\s+$$/\n/;' \ < $< > $@ -- cgit v1.2.3