diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-06-28 09:43:17 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-06-28 09:43:17 +0200 |
commit | c73f2a628fbb42927c38989ea8794ce2c2331296 (patch) | |
tree | 389a4dd82614a820d96adf55872f172f6e12388a /Makefile | |
parent | feab5d4c62dc030c7c59a5544172ac2b9576af79 (diff) |
add another Turtle serialization workaround
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 $< |