diff options
author | BonfaceKilz | 2022-06-22 12:48:54 +0300 |
---|---|---|
committer | Arun Isaac | 2022-06-23 11:23:16 +0530 |
commit | c92bcce1f0291695daa12ee90b13013be69bf659 (patch) | |
tree | 1dc5eb7d069839203b2762651b5c6c733fa016ca | |
parent | de3ad2c960a36d671c23602f03d60f4422881d6a (diff) | |
download | gn-transform-databases-c92bcce1f0291695daa12ee90b13013be69bf659.tar.gz |
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>
-rwxr-xr-x | dump.scm | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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))) |