diff options
author | Munyoki Kilyungi | 2023-07-05 23:14:17 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-07-30 12:29:56 +0300 |
commit | 9dc944bac064cd591580df4743063530f07d427b (patch) | |
tree | 4269d50af6fd0558ba7776642aa38b8bc7080372 /dump/special-forms.scm | |
parent | 76000978a40f34d135f9545d75fd72bd5f928733 (diff) | |
download | gn-transform-databases-9dc944bac064cd591580df4743063530f07d427b.tar.gz |
Add a section sub-heading for schema triples
Diffstat (limited to 'dump/special-forms.scm')
-rw-r--r-- | dump/special-forms.scm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/dump/special-forms.scm b/dump/special-forms.scm index cd7a98c..d94733e 100644 --- a/dump/special-forms.scm +++ b/dump/special-forms.scm @@ -451,10 +451,13 @@ must be remedied." (format out "# '~a' Metadata~%~%" (syntax->datum #'name)) #,(syntax-case #'schema-triples-clause (schema-triples) ((schema-triples (triple-subject triple-predicate triple-object) ...) - #`(for-each triple - (list 'triple-subject ...) - (list 'triple-predicate ...) - (list 'triple-object ...))) + #`(begin + (format out "## Schema Triples for '~a'~%~%" (syntax->datum #'name)) + (for-each (lambda (s p o) + (format out "~a -> ~a -> ~a~%" s p o)) + (list 'triple-subject ...) + (list 'triple-predicate ...) + (list 'triple-object ...)))) (_ (error "Invalid schema triples clause:" #'schema-triples-clause))) (format out "## Generated Triples: |