Copied copy path!

How it was generatedURL copied

The pack is generated from the schema files in the admin/sql/ folder of metabrainz/musicbrainz-server. These are CreateTables.sql, CreatePrimaryKeys.sql, and CreateFKConstraints.sql.

vyasa sql-kg CreateTables.sql CreatePrimaryKeys.sql CreateFKConstraints.sql \
  -o demo/musicbrainz-er.kg --title "MusicBrainz schema" \
  --module 'link_types=^link' --module 'relationships=^l_' --module 'release_group=^release_group' \
  --module 'medium=^(medium|track|cdtoc|alternative_medium|alternative_track)' \
  --module 'release=^(release|alternative_release)' \
  --module 'editor=^editor' --module 'editing=^(edit|vote|autoeditor)' \
  --module 'classification=^(tag|genre|mood)' \
  --module 'system=^(replication_control|unreferenced_row_log|dbmirror)'

Each --module NAME=REGEX rule puts the matching tables in one area. The first rule that matches wins. A table that no rule matches joins the area of its longest table-name prefix. For example, artist_alias_type joins artist. A table that is left alone in its own area joins the area it links to most.