Age | Commit message (Collapse) | Author |
|
|
|
* 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>
|
|
There may be a case where one just wants to dump metadata about the
s-exps only.
|
|
* 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>
|
|
|
|
* dump/special-forms.scm: Import (srfi srfi-9 gnu).
(<dump-configuration>): New record-type.
(define-dump): Use the above record-type.
|
|
* dump/special-forms.scm: Export map-alist.
* tests.scm: Import strings, and special-forms.
|
|
* dump/strings.scm (sanitize-rdf-string): Add extra elements---broken
chars---to replace with "".
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Replacing "~s" with "~a" will print utf-8 characters correctly.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* dump.scm (annotate-field): New function.
* dump/triples.scm (triple): Print a string as they appear with
DISPLAY should they contain "\"" thus enabling a triple that looks
like:
gn:species_mus_musculus gn:name "Mouse"^^xsd:string
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* dump/utils.scm: Import srfi-19. Export time-unix->string.
(time-unix->string): New function.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* dump/triples.scm: Export ontology.
(ontology): New function.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
This change enables having:
"... GROUP_CONCAT(GeneRIF_BASIC.PubMedId) AS alias ..."
as part of the query.
* dump.scm (field->key, field->assoc-ref): Add new syntax-rule.
* dump/sql.scm (select-query): Ditto.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* dump.scm (string->identifier, string-blank?, triple, prefix): Move
to ...
* dump/triples.scm: ... new file.
* dump.scm: Import (dump triples).
|
|
* dump.scm (string-blank?): Move to ...
* dump/utils.scm (string-blank?): ... here.
|
|
The delete verb of map-alist somehow interacts with the delete
function from (srfi srfi-1), and I'm not able to figure out how. It is
simpler to just rename the delete verb to remove.
* dump/utils.scm: Do not rename the delete function from (srfi srfi-1).
(map-alist): Rename the delete verb to remove.
* tests.scm ("map-alist docstring example"): Update test.
|
|
* dump/table.scm (<column>): Add dumped? field. Rename constructor to
column-constructor.
(make-column): Implement as wrapper around column-constructor.
|
|
Capture full column type instead of just whether it is an integer.
* dump.scm (dump-data-table): Capture full column type in <column>
object.
* dump/table.scm (<column>)[int?]: Delete member.
[type]: New member.
Export column-type instead of column-int?.
|
|
* dump.scm (<table>, <column>): Move to ...
* dump/table.scm: ... here.
|
|
* dump/utils.scm (map-alist): Specify behaviour for multiple set
verbs.
|
|
The generalized versions---collect forms and translate-forms---will be
required by other macros.
* dump/utils.scm (collect-forms, translate forms): New public
functions.
(collect-keys): Rewrite in terms of collect-forms.
(key->assoc-ref): Rewrite in terms of translate-forms.
|
|
delete from (srfi srfi-1) somehow interferes with the delete verb of
map-alist. It is not clear why.
* dump/utils.scm (dump): Rename delete to srfi:delete while importing.
|
|
* dump.scm: Use (dump string-similarity).
(trigrams, jaccard-index, jaccard-string-similarity,
jaccard-string-similar?): Move to ...
* dump/string-similarity.scm: ... here.
|
|
* dump/sql.scm: Import (srfi srfi-1). Export select-query.
(select-query): New macro.
|
|
map-alist is a DSL to transform one association list into
another. These transformations are frequently required when dumping
tables, especially metadata tables.
* dump/utils.scm: New file.
|
|
|