cldf / cldfviz

A python library providing tools to visualize data from CLDF datasets.
Apache License 2.0
5 stars 2 forks source link

Create ERD diagram for CLDF dataset #38

Closed xrotwang closed 1 year ago

xrotwang commented 1 year ago

Download

Run

cldf createdb ... db.sqlite
java -jar schemaspy-6.1.0.jar -t sqlite-xerial -db db.sqlite -sso -s public -o tmp -dp drivers/ -cat % -vizjs
mv tmp/diagrams/summary/relationships.real.large.svg out.svg
rm -rf tmp
SimonGreenhill commented 1 year ago

Oh -- this will be super useful.

xrotwang commented 1 year ago
$ cldfbench cldfviz.erd https://zenodo.org/record/7322688 wacl.svg --schemaspy-jar ext/schemaspy.jar --sqlite-jar ext/sqlite.jar --format compact.svg

will create wacl

fmatter commented 1 year ago

This is great, thank you!

SimonGreenhill commented 1 year ago

cool! thanks Robert