aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-06-22 09:26:06 +0200
committerJonas Smedegaard <dr@jones.dk>2024-06-22 09:26:06 +0200
commite0e223c56e201119d9ccf23a76817f1107dcad9d (patch)
treeb1e547018883fc02a69dafa9cdaaac9965291123
parentc1f85c98478a19b196b38a9185e63554449b2e38 (diff)
work around SDML rendering syntactically wrong datatype
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 24a7ef9..397a39b 100644
--- a/Makefile
+++ b/Makefile
@@ -184,6 +184,9 @@ $(ARTICLES:%=%/b.tex): %/b.tex:
%.ttl: %.sdm
sdml --no-color convert -i $< -f rdf -o $@
+# TODO: drop workaround when SDML renders syntactically correct datatype
+# <https://github.com/sdm-lang/rust-sdml/issues/9>
+ perl -pi -e 's/\\"([^\\"]*)\\"(?="\^\^xsd:date\b)/$$1/g;' $@
%/core.puml: %/core.ttl %/prefixes.ttl
rdfpuml $<