From c73f2a628fbb42927c38989ea8794ce2c2331296 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 28 Jun 2024 09:43:17 +0200 Subject: add another Turtle serialization workaround --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2ecd379..8c4f2d8 100644 --- a/Makefile +++ b/Makefile @@ -224,9 +224,13 @@ $(ARTICLES:%=%/b.tex): %/b.tex: %.ttl: %.sdm sdml --no-color convert -i $< -f rdf -o $@ -# TODO: drop workaround when SDML renders syntactically correct datatype +# TODO: drop workarounds when SDML renders syntactically correct Turtle # - perl -pi -e 's/\\"([^\\"]*)\\"(?="\^\^xsd:date\b)/$$1/g;' $@ +# + perl -pi \ + -e 's/\\"([^\\"]*)\\"(?="\^\^xsd:date\b)/$$1/g;' \ + -e 's/sdml:srcLabel\s+\K\S+/"$$&"/g;' \ + $@ %/core.puml: %/core.ttl %/prefixes.ttl rdfpuml $< -- cgit v1.2.3