aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-08-29 19:48:28 +0200
committerJonas Smedegaard <dr@jones.dk>2024-08-29 19:54:38 +0200
commit3d0f8c3b17668cbbd6be2c8ce6a8076d526fa094 (patch)
tree60da801a7cee8e272c66c34b110c922a88afe7a0
parentf2bf2b72b4dcc25da1513828345482a92f789b5e (diff)
tighten ontology mangling: use Notation 3 shorthand 'a'
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
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/;' \
< $< > $@