aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 $<