From c92bcce1f0291695daa12ee90b13013be69bf659 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Wed, 22 Jun 2022 12:48:54 +0300 Subject: 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 --- dump.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dump.scm') diff --git a/dump.scm b/dump.scm index a3e89a3..ada42e5 100755 --- a/dump.scm +++ b/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))) -- cgit v1.2.3