diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-08-29 19:58:55 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-08-29 19:58:55 +0200 |
commit | 3e2bdc1ce2cdaf774fa050411f2de546605db44d (patch) | |
tree | e9fc4335e87daa3bef3cc02ffad39c233b977a55 /Makefile | |
parent | 3d0f8c3b17668cbbd6be2c8ce6a8076d526fa094 (diff) |
tighten ontology mangling: unwrap CURIE enumeration
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -61,6 +61,7 @@ learn/$(ONTOLOGIES_VERSION)/%.ttl: learn/%.ttl -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+ |\t)(\S+) (?:[^\s"]+) \K(?:,\s+|;\n\t\1 )([^\s"]+) ;/, $$2 ;/gm;' \ -e 's/\s+$$/\n/;' \ < $< > $@ |