From 3e2bdc1ce2cdaf774fa050411f2de546605db44d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 29 Aug 2024 19:58:55 +0200 Subject: tighten ontology mangling: unwrap CURIE enumeration --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 6b033a9..0150d0b 100644 --- a/Makefile +++ b/Makefile @@ -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/;' \ < $< > $@ -- cgit v1.2.3