Browse Source

Remove "." if it occurs at the end of a turtle identifier.

A "." at the end of a turtle identifier---for example
"gn:caseAttribute_ethn."---generates an error when trying to validate
the generated RDF.

* dump.scm (string->identifier): Remove trailing "." if it occurs in
the identifier.

Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
master
Bonface Munyoki 2 months ago
committed by Arun Isaac
parent
commit
c92bcce1f0
Signed by: arunisaac GPG Key ID: 2E25EE8B61802BB3
  1. 4
      dump.scm

4
dump.scm

@ -111,7 +111,9 @@ characters with an underscore and prefixing with gn:PREFIX."
(case c
((#\/ #\< #\> #\+ #\( #\) #\space #\@) #\_)
(else c)))
(string-downcase str))))))
(string-downcase
(string-trim-right str #\.)))))))
(define (snake->lower-camel str)
(let ((char-list (string->list str)))

Loading…
Cancel
Save