From d8345bc41d9c5567021e328734a16a1c8998f8d8 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Mon, 16 Feb 2026 13:33:25 +0300 Subject: Make url char separator optional in "string->identifier". Signed-off-by: Munyoki Kilyungi --- transform/triples.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'transform') diff --git a/transform/triples.scm b/transform/triples.scm index 13758e5..7f96eea 100644 --- a/transform/triples.scm +++ b/transform/triples.scm @@ -39,6 +39,7 @@ #:optional #:key (ontology "gn:") (separator "") + (url-char #\_) (proc (lambda (x) x))) "Convert STR to a turtle identifier after replacing illegal characters with an underscore and prefixing with gn:PREFIX." @@ -55,7 +56,7 @@ characters with an underscore and prefixing with gn:PREFIX." (char-numeric? c) (char=? c #\_)) c - #\_)) + url-char)) (proc str))))))) -- cgit 1.4.1