diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-08-29 19:48:28 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-08-29 19:54:38 +0200 |
commit | 3d0f8c3b17668cbbd6be2c8ce6a8076d526fa094 (patch) | |
tree | 60da801a7cee8e272c66c34b110c922a88afe7a0 | |
parent | f2bf2b72b4dcc25da1513828345482a92f789b5e (diff) |
tighten ontology mangling: use Notation 3 shorthand 'a'
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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/;' \ < $< > $@ |