Age | Commit message (Collapse) | Author |
|
* dump.scm (dump-groups): New dump.
(main): Call dump-groups.
Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
|
|
* dump.scm (dump-case-attributes): New dump.
(main): Call dump-case-attributes.
Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
|
|
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>
|
|
This differentiates it from virtuoso and SPARQL connection parameters.
* dump.scm (call-with-genenetwork-database, dump-data-table): Prefix
SQL connection parameters with sql-.
* README.md (Using): Update documentation of SQL connection
parameters.
|
|
* dump.scm (investigator-attributes->id): Add special case for
investigator "Yohan Bossé".
|
|
* dump.scm (%connection-settings): Use 1th command-line argument.
(%dump-directory): Use 2th command-line argument.
|
|
* dump.scm: Import (rnrs programs).
(%connection-settings): New variable.
(call-with-database): Use %connection-settings.
(%database-name): Delete variable.
(%dump-directory): Set from command-line arguments.
(dump-data-table): Use %connection-settings instead of %database-name.
* README.org (Using): Add command-line arguments to usage
instructions.
|
|
If these macro helper functions are not evaluated at macro expansion
time, the dependent macros will fail to compile.
* dump.scm (string->identifier, field->key, field->assoc-ref,
collect-fields, find-clause, remove-namespace, column-id, dump-id):
Eval at macro expansion time.
|
|
* dump.scm: Do not add to load path.
|
|
* dump.scm (define-dump): Add docstring.
|
|
* dump.scm (syntax-let): New macro.
(define-dump): Use syntax-let.
* .dir-locals.el (scheme-mode): Indent syntax-let correctly.
|
|
* dump.scm (define-dump): Automatically create domain triples for
predicates.
|
|
* dump.scm (remove-namespace, dump-id): New functions.
(define-dump): Dump metadata about the dump itself.
|
|
* dump.scm (dump-schema, column-id): Disambiguate user and User tables
in RDF identifier.
|
|
* dump.scm (column-id): New function.
(dump-schema): Use column-id.
|
|
* dump.scm (%dumped): Delete variable.
(define-dump): Do not register dumped tables and columns to %dumped.
(dumped-table?): Delete function.
|
|
* dump.scm (dump-inbred-set): Set range of gn:inbredSetOfSpecies to
gn:species.
|
|
* dump.scm (dump-info-files): Set range of gn:datasetOfInvestigator to
foaf:Person instead of gn:investigator.
|
|
* dump.scm (dump-species, dump-strain, dump-inbred-set,
dump-phenotype, dump-publication, dump-tissue, dump-investigator,
dump-avg-method, dump-gene-chip, dump-info-files): Add Literal range
triples.
|
|
* dump.scm (dump-phenotype): Remove duplicate predicates
gn:prePublicationDescription and gn:postPublicationDescription.
|
|
gn:authors is a typo.
* dump.scm (dump-publication): Rename gn:authors predicate to
gn:author.
|
|
* dump.scm (triple): Add runtime type checking.
|
|
* dump.scm: Do not import (sxml simple) and (dump string-similarity).
(string-remove-suffix-ci, floor-log1024, human-units,
human-units-color, sxml->xml-string, sxml->graphviz-html, table-label,
table->graphviz-node, column->foreign-table, tables->graphviz-edges):
Move to ...
(dump-schema): Dump schema to RDF.
(main): Call dump-schema without setting schema.dot as the output
file.
* visualize-schema.scm: ... here.
|
|
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.scm (define-dump): Indent better.
|
|
* dump.scm (define-dump): Support schema-triples clause.
(dump-strain, dump-publish-xref, dump-info-files): Add schema-triples
clause.
(main): Output rdfs: prefix.
|
|
* dump.scm (find-clause): New function.
(define-dump): Make order of clauses unspecified.
|
|
* dump.scm (field->key, field->assoc-ref, collect-fields): New
functions.
(define-dump): Redefine with more concise syntax.
* dump.scm (dump-species, dump-strain, dump-mapping-method,
dump-inbred-set, dump-phenotype, dump-publication, dump-publish-xref,
dump-tissue, dump-investigators, dump-avg-method, dump-gene-chip,
dump-info-files): Use new define-dump syntax.
(default-metadata-proc): Delete function.
* .dir-locals.el (scheme-mode): Indent triples form correctly.
|
|
* dump.scm: Use (dump string-similarity).
(trigrams, jaccard-index, jaccard-string-similarity,
jaccard-string-similar?): Move to ...
* dump/string-similarity.scm: ... here.
|
|
* dump.scm (dump-species): Change gn:binomialname to gn:binomialName.
|
|
* dump.scm (table-label): Set port attributes on <td> tag.
(tables->graphviz-edges): Specify ports on edges.
|
|
* dump.scm (table-label): Unset border attribute of <table> tag. Set
cellborder and bgcolor attributes of <table> tag.
(table->graphviz-node): Unset style and fillcolor node attributes. Set
shape node attribute to none.
|
|
* dump.scm (graph->dot): Delete function.
(sxml->graphviz-html): Return a <html-string> object.
(dump-schema): Use graph->dot from (ccwl graphviz).
|
|
* dump.scm (column->foreign-table, tables->graphviz-edges): New
functions.
(dump-schema): Use tables->graphviz-edges.
|
|
* dump.scm (dumped-table?, table-label, table->graphviz-node): New
functions.
(dump-schema): Use table->graphviz-node.
|
|
* dump.scm (human-units-color): New function.
(dump-schema): Use human-units-color.
|
|
This generalizes better and is mathematically cleaner.
* dump.scm (floor-log1024): New function.
(human-units): Use floor-log1024.
|
|
Using sxml allows us to stay in the world of S-expressions.
* dump.scm (sxml->xml-string, sxml->graphviz-html): New function.
(dump-schema): Construct graphviz HTML string using sxml.
|
|
* dump.scm (dump-schema): Highlight tables and columns.
|
|
* dump.scm (replace-substrings): New function.
(graph->dot): Fix HTML string handling.
|
|
* dump.scm (%dumped): New variable.
(define-dump): Append to %dumped when a new table dumping function is
defined.
|
|
* dump.scm (define-dump): New macro.
(dump-species, dump-strain, dump-mapping-method, dump-inbred-set,
dump-phenotype, dump-publication, dump-publish-xref, dump-tissue,
dump-investigators, dump-avg-method, dump-gene-chip, dump-info-files):
Redefine using define-dump.
|
|
* dump.scm (<column>): New type.
(tables): Use <column> objects to represent columns.
(trigrams, jaccard-index, jaccard-string-similarity): New functions.
(dump-schema): Use string similarity and check if foreign key is an
integer.
|
|
* .dir-locals.el (scheme-mode): Indent set-table-columns correctly.
* dump.scm: Import (srfi srfi-9 gnu).
(%database-name): New variable.
(<table>): New type.
(tables, string-remove-suffix-ci, human-units, graph->dot,
dump-schema): New functions.
Invoke dump-schema.
* guix.scm: Import (gnu packages bioinformatics). Add ccwl, graphviz
and guile-libyaml to the manifest.
|
|
* dump.scm (get-tables-from-comments, dump-table-fields, dump-species,
dump-strain, dump-mapping-method, dump-inbred-set, dump-phenotype,
dump-publication, dump-publish-xref, dump-tissue, dump-investigators,
dump-avg-method, dump-gene-chip, dump-info-files): Use select-query.
|
|
* dump.scm (camel->lower-camel): Delete function.
(default-metadata-proc): Do not use camel->lower-camel.
|
|
* dump.scm (dump-mapping-method, dump-publication, dump-info-files):
Use string->identifier to build subjects.
|
|
This is slightly more readable.
* dump.scm (string->identifier): Append an underscore to the
identifier prefix.
|
|
* dump.scm (get-tables-from-comments, dump-table-fields): Fix
indentation.
|