Age | Commit message (Collapse) | Author |
|
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.
|
|
* manifest.scm: Import guile-sparql with guix: prefix.
(guile-sparql): New variable.
|
|
This reverses an accidental commit of work in progress code.
* manifest.scm: Remove guix: prefix from guile-libyaml.
|
|
* manifest.scm: Import (guix build-system gnu) and (guix licenses).
(run64): New variable.
Add run64 to manifest.
* Makefile (GUILE): Delete variable.
(RUN64): New variable.
(check): Use run64 instead of guile to run tests.
|
|
* Makefile: New file.
|
|
* .dir-locals.el (makefile-gmake-mode): Set indent-tabs-mode to t.
|
|
We only have a manifest, not a package definition. So, rename it as
such, making `guix shell' invocations briefer.
* guix.scm: Rename to manifest.scm. In documentation comments, make
`guix shell' implicitly pick up the manifest file.
* README.org (Using): Make `guix shell' implicitly pick up the
manifest file.
|
|
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.
|
|
* BUGS.org (Dump table and field annotations to RDF): New bug.
|
|
* visualize-schema.scm: Add shebang and grant execution permissions.
|
|
* README.org (Using): Execute dump.scm directly without explicitly
invoking guile.
|
|
* pre-inst-env: New file.
|
|
* dump.scm: Do not add to load path.
|
|
* README.org (Using): New section.
|
|
* README.org (Contributing): New section.
|
|
* BUGS.org (Fix table size estimates): New bug.
|
|
* BUGS.org: New file.
|
|
* visualize-schema.scm (literal-node-id, rdf-type-nodes,
rdf-literal-nodes, rdf-edges, write-rdf-visualization): New functions.
(main): Call write-rdf-visualization.
|
|
* visualize-schema.scm (write-sql-visualization, main): New functions.
Invoke main.
|
|
* visualize-schema.scm (graph->dot, graph, graph-node, graph-edge,
graph-port, html-string): New functions.
(sxml->graphviz-html): Use html-string.
(foreign-key-graphviz-edges): Use graph-port.
|
|
* visualize-schema.scm (sxml->graphviz-html): Color code dumped tables
and columns.
|
|
* visualize-schema.scm (tables): Fetch entire table schema in single
SPARQL query.
|
|
* visualize-schema.scm (sparql-query-records): Add TODO note to prefer
JSON query results to CSV.
|
|
* 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/table.scm (<column>): Add dumped? field. Rename constructor to
column-constructor.
(make-column): Implement as wrapper around column-constructor.
|
|
* 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.
|
|
* guix.scm: Add guile-sparql to manifest.
|
|
* guix.scm (ccwl): Upgrade to commit
51c12b7e58685b70e7cfd9612dac403cf9ee845c.
|
|
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.
|
|
* tests.scm: New file.
|
|
* 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.
|