wn.sqltemplates.sqlite.views.views.sql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tosql Show documentation
Show all versions of tosql Show documentation
Export Wordnet model to SQL files.
The newest version!
DROP VIEW IF EXISTS `samplesets`; CREATE VIEW IF NOT EXISTS `samplesets` AS SELECT ${samples.synsetid},GROUP_CONCAT(DISTINCT ${samples.sample}) AS `sampleset` FROM ${samples.table} GROUP BY ${samples.synsetid};
DROP VIEW IF EXISTS `dict`; CREATE VIEW IF NOT EXISTS `dict` AS SELECT * FROM ${words.table} w LEFT JOIN ${senses.table} s USING (${words.wordid}) LEFT JOIN ${casedwords.table} c USING (${words.wordid},${casedwords.casedwordid}) LEFT JOIN ${synsets.table} y USING (${synsets.synsetid}) LEFT JOIN `samplesets` USING (${synsets.synsetid});