aboutsummaryrefslogtreecommitdiff
path: root/dump
AgeCommit message (Expand)Author
2023-07-31Pass a default dump-directory when dumping table metadata...* dump/schema-dump.scm (dump-data-table): Add extra optional arg "default-dump-directory". Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-31Add missing imports...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-31Add new method "string->binomial-name"...* dump/triples.scm: Export string->binomial-name. (string->binomial-name): New procedure. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-31Add missing import...* dump/strings.scm: Import (ice-9 textual-ports) Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-31Replace set! mutations with an alist...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-31Replace "?s ?p ?o" with "*"...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-31Update some minor formatting...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-31Convert subject into a string if it's a symbol...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Make define-dump take extra args as key...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Dump prefixes correctly when auto-generating docs...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Use a min of 4 should the schema triples be many...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Only document a triple if it exists...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Rename 'gn-id' prefix to 'gn'...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Replace :gn with :gn-id and :gn-term...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Make the default ontology "gn-id:"...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Use size of the results set to come up with sparql example...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Convert symbol to a string when show-casing triples in doc...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Add string-capitalize-first...* dump/strings.scm: Export string-capitalize-first (string-capitalize-first): New function. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Make string->identifier take optional keyword args...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Make dump-data? default to #f when dumping data...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Rewrite dump-with-documentation to be order-agnostic...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Conditionally dump documentationMunyoki Kilyungi
2023-07-21Make prefix function have an optional ttl?...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Revert "Pass port as an optional argument"...This reverts commit 195ca590be5533935cf708d49fcb3736b3c78643. Munyoki Kilyungi
2023-07-21Add missing srfi-26 import...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Create a new procedure for shadowing a file port...* dump/documentation.scm (dump): Export call-with-documentation. (call-with-documentation): New function. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Rename auto-documentation-port -> path...We don't need to pass around ports as part of a configuration when we can instead pass in a path that can be used to open a port. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Move dump-configuration record type to (dump documentation)...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Construct example SQL query and expected resultsMunyoki Kilyungi
2023-07-21Pass port to scm->triples...* dump/triples.scm (scm->triples): Make define have an optional arg fn that defaults to "triple". Munyoki Kilyungi
2023-07-21Pass port as an optional argument...* dump/triples.scm (triple): Add port as an optional argument. Defaults to #t. This enables us to use triple to print to other ports E.g in the case of dumping documentation to a different file. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Print out triples with the from Table.Name or Table.Alias...* dump/special-forms.scm (field->datum): New function. (define-dump): Use the field->datum to convert triples into the form Table.Name or Table.Alias. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Add table metadata to triple dumpMunyoki Kilyungi
2023-07-21Add a section sub-heading for schema triplesMunyoki Kilyungi
2023-07-21Wrap the dump title in quotesMunyoki Kilyungi
2023-07-21Replace #` with #'when fetching the name of the defined dumpMunyoki Kilyungi
2023-07-21Use call-with-target-database when dumping schema annotations...* dump/schema-dump.scm (dump-schema-annotations): Replace call-with-genenetwork-database with call-with-target-database. Munyoki Kilyungi
2023-07-21Conditionally autogenerate schema triples during dumpMunyoki Kilyungi
2023-07-21Rename dump-configuration slots...* dump/special-forms.scm: Export dump-configuration? Rename dump-configuration-table-metadata -> dump-configuration-triples?; dump-configuration-table-dump -> dump-configuration-table-metadata?; and dump-configuration-auto-document-path -> dump-configuration-auto-documentation-port (<dump-configuration>): Ditto renames. (dump-configuration): Ditto. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Make dumping optional, defaulting to #t...There may be a case where one just wants to dump metadata about the s-exps only. Munyoki Kilyungi
2023-07-21Add table-dump? option to dump-configuration record...* dump/special-forms.scm: Export dump-configuration-table-dump?. (<dump-configuration>): Add dump-configuration-table-dump. (dump-configuration): Make table-dump? default to #t. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-07-21Optionally self-document while dumpingMunyoki Kilyungi
2023-07-21Add a configuration record-type for for the define macro...* dump/special-forms.scm: Import (srfi srfi-9 gnu). (<dump-configuration>): New record-type. (define-dump): Use the above record-type. Munyoki Kilyungi
2023-06-21Fix failing tests...* dump/special-forms.scm: Export map-alist. * tests.scm: Import strings, and special-forms. Munyoki Kilyungi
2023-05-26Replace broken char-sets with an empty string...* dump/strings.scm (sanitize-rdf-string): Add extra elements---broken chars---to replace with "". Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-05-26Re-organize dumping macros and associated functions...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-05-26Always use "~a" to output like "display"...Replacing "~s" with "~a" will print utf-8 characters correctly. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-05-26Return an empty string if args passed to ontology is empty...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-05-26Fix how a symbol is displayed in the final RDF...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2023-04-05Simplify pattern matching when checking for a node...Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi