aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-08-29 19:58:55 +0200
committerJonas Smedegaard <dr@jones.dk>2024-08-29 19:58:55 +0200
commit3e2bdc1ce2cdaf774fa050411f2de546605db44d (patch)
treee9fc4335e87daa3bef3cc02ffad39c233b977a55 /Makefile
parent3d0f8c3b17668cbbd6be2c8ce6a8076d526fa094 (diff)
tighten ontology mangling: unwrap CURIE enumeration
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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/;' \
< $< > $@