about summary refs log tree commit diff
path: root/transform/triples.scm
diff options
context:
space:
mode:
Diffstat (limited to 'transform/triples.scm')
-rw-r--r--transform/triples.scm3
1 files changed, 2 insertions, 1 deletions
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)))))))