aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-06-28 09:43:17 +0200
committerJonas Smedegaard <dr@jones.dk>2024-06-28 09:43:17 +0200
commitc73f2a628fbb42927c38989ea8794ce2c2331296 (patch)
tree389a4dd82614a820d96adf55872f172f6e12388a
parentfeab5d4c62dc030c7c59a5544172ac2b9576af79 (diff)
add another Turtle serialization workaround
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
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
# <https://github.com/sdm-lang/rust-sdml/issues/9>
- perl -pi -e 's/\\"([^\\"]*)\\"(?="\^\^xsd:date\b)/$$1/g;' $@
+# <https://github.com/sdm-lang/rust-sdml/issues/11>
+ perl -pi \
+ -e 's/\\"([^\\"]*)\\"(?="\^\^xsd:date\b)/$$1/g;' \
+ -e 's/sdml:srcLabel\s+\K\S+/"$$&"/g;' \
+ $@
%/core.puml: %/core.ttl %/prefixes.ttl
rdfpuml $<