aboutsummaryrefslogtreecommitdiff
path: root/visualize-schema.scm
AgeCommit message (Collapse)Author
2024-10-31Revert "Rename %sparql-port -> %sparql-http-server-port."Munyoki Kilyungi
This reverts commit 69e3f47fa29f9f967dfa66860edaec51c0de0125.
2024-10-31Rename %sparql-port -> %sparql-http-server-port.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-08-21Rename dump -> transformMunyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2022-05-04Read SPARQL connection settings from file.Arun Isaac
* visualize-schema.scm (%sparql-host, %sparql-port): New parameters. (sparql-query-records): Use %sparql-host and %sparql-port parameters. (main): Accept connection settings file as argument, read it, and parameterize %sparql-host and %sparql-port. Pass command-line arguments to main.
2021-12-24Make visualize-schema executable.Arun Isaac
* visualize-schema.scm: Add shebang and grant execution permissions.
2021-12-24Visualize RDF schema.Arun Isaac
* visualize-schema.scm (literal-node-id, rdf-type-nodes, rdf-literal-nodes, rdf-edges, write-rdf-visualization): New functions. (main): Call write-rdf-visualization.
2021-12-24Wrap SQL visualization code into a function.Arun Isaac
* visualize-schema.scm (write-sql-visualization, main): New functions. Invoke main.
2021-12-24Import functions from (ccwl graphviz).Arun Isaac
* 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.
2021-12-24Color code dumped tables and columns.Arun Isaac
* visualize-schema.scm (sxml->graphviz-html): Color code dumped tables and columns.
2021-12-24Fetch entire table schema in single SPARQL query.Arun Isaac
* visualize-schema.scm (tables): Fetch entire table schema in single SPARQL query.
2021-12-24Add TODO note to prefer JSON query results to CSV.Arun Isaac
* visualize-schema.scm (sparql-query-records): Add TODO note to prefer JSON query results to CSV.
2021-12-20Move schema visualization to separate script.Arun Isaac
* 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.