about summary refs log tree commit diff stats
path: root/schema.sql
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-03-10 21:34:55 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-03-10 21:34:55 -0500
commite1be2716746e75cf6ed37e86461a7f580a964564 (patch)
tree38a69a8cbd690f27f1ee8c2ce43eeb0333753d52 /schema.sql
parent41decb9a671e4d0fbbe12533372435ec6ede2246 (diff)
downloadfurries-e1be2716746e75cf6ed37e86461a7f580a964564.tar.gz
furries-e1be2716746e75cf6ed37e86461a7f580a964564.tar.bz2
furries-e1be2716746e75cf6ed37e86461a7f580a964564.zip
Started implementing verbly data generator
Currently, the generator:
 - Uses AGID to create entries for verb words and their inflections
 - Uses WordNet to create entries for adjective, adverb, and noun senses
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql121
1 files changed, 119 insertions, 2 deletions
diff --git a/schema.sql b/schema.sql index 7c1b52c..62dd780 100644 --- a/schema.sql +++ b/schema.sql
@@ -34,5 +34,122 @@ CREATE TABLE `verb_groups` (
34DROP TABLE IF EXISTS `adjectives`; 34DROP TABLE IF EXISTS `adjectives`;
35CREATE TABLE `adjectives` ( 35CREATE TABLE `adjectives` (
36 `adjective_id` INTEGER PRIMARY KEY, 36 `adjective_id` INTEGER PRIMARY KEY,
37 `adjective` VARCHAR(32) NOT NULL 37 `form` VARCHAR(32) NOT NULL,
38); \ No newline at end of file 38 `position` CHAR(1)
39);
40
41DROP TABLE IF EXISTS `adverbs`;
42CREATE TABLE `adverbs` (
43 `adverb_id` INTEGER PRIMARY KEY,
44 `form` VARCHAR(32) NOT NULL
45);
46
47DROP TABLE IF EXISTS `nouns`;
48CREATE TABLE `nouns` (
49 `noun_id` INTEGER PRIMARY KEY,
50 `form` VARCHAR(32) NOT NULL
51);
52
53DROP TABLE IF EXISTS `hypernymy`;
54CREATE TABLE `hypernymy` (
55 `hypernym_id` INTEGER NOT NULL,
56 `hyponym_id` INTEGER NOT NULL,
57 FOREIGN KEY (`hypernym_id`) REFERENCES `nouns`(`noun_id`),
58 FOREIGN KEY (`hyponym_id`) REFERENCES `nouns`(`noun_id`)
59);
60
61DROP TABLE IF EXISTS `instantiation`;
62CREATE TABLE `instantiation` (
63 `class_id` INTEGER NOT NULL,
64 `instance_id` INTEGER NOT NULL,
65 FOREIGN KEY (`class_id`) REFERENCES `nouns`(`noun_id`),
66 FOREIGN KEY (`instance_id`) REFERENCES `nouns`(`noun_id`)
67);
68
69DROP TABLE IF EXISTS `member_meronymy`;
70CREATE TABLE `member_meronymy` (
71 `meronym_id` INTEGER NOT NULL,
72 `holonym_id` INTEGER NOT NULL,
73 FOREIGN KEY (`meronym_id`) REFERENCES `nouns`(`noun_id`),
74 FOREIGN KEY (`holonym_id`) REFERENCES `nouns`(`noun_id`)
75);
76
77DROP TABLE IF EXISTS `part_meronymy`;
78CREATE TABLE `part_meronymy` (
79 `meronym_id` INTEGER NOT NULL,
80 `holonym_id` INTEGER NOT NULL,
81 FOREIGN KEY (`meronym_id`) REFERENCES `nouns`(`noun_id`),
82 FOREIGN KEY (`holonym_id`) REFERENCES `nouns`(`noun_id`)
83);
84
85DROP TABLE IF EXISTS `substance_meronymy`;
86CREATE TABLE `substance_meronymy` (
87 `meronym_id` INTEGER NOT NULL,
88 `holonym_id` INTEGER NOT NULL,
89 FOREIGN KEY (`meronym_id`) REFERENCES `nouns`(`noun_id`),
90 FOREIGN KEY (`holonym_id`) REFERENCES `nouns`(`noun_id`)
91);
92
93DROP TABLE IF EXISTS `variation`;
94CREATE TABLE `variation` (
95 `noun_id` INTEGER NOT NULL,
96 `adjective_id` INTEGER NOT NULL,
97 FOREIGN KEY (`noun_id`) REFERENCES `nouns`(`noun_id`),
98 FOREIGN KEY (`adjective_id`) REFERENCES `adjectives`(`adjective_id`)
99);
100
101DROP TABLE IF EXISTS `noun_antonymy`;
102CREATE TABLE `noun_antonymy` (
103 `noun_1_id` INTEGER NOT NULL,
104 `noun_2_id` INTEGER NOT NULL,
105 FOREIGN KEY (`noun_1_id`) REFERENCES `nouns`(`noun_id`),
106 FOREIGN KEY (`noun_2_id`) REFERENCES `nouns`(`noun_id`)
107);
108
109DROP TABLE IF EXISTS `adjective_antonymy`;
110CREATE TABLE `adjective_antonymy` (
111 `adjective_1_id` INTEGER NOT NULL,
112 `adjective_2_id` INTEGER NOT NULL,
113 FOREIGN KEY (`adjective_1_id`) REFERENCES `adjectives`(`adjective_id`),
114 FOREIGN KEY (`adjective_2_id`) REFERENCES `adjectives`(`adjective_id`)
115);
116
117DROP TABLE IF EXISTS `adverb_antonymy`;
118CREATE TABLE `adverb_antonymy` (
119 `adverb_1_id` INTEGER NOT NULL,
120 `adverb_2_id` INTEGER NOT NULL,
121 FOREIGN KEY (`adverb_1_id`) REFERENCES `adverbs`(`adverb_id`),
122 FOREIGN KEY (`adverb_2_id`) REFERENCES `adverbs`(`adverb_id`)
123);
124
125DROP TABLE IF EXISTS `specification`;
126CREATE TABLE `specification` (
127 `general_id` INTEGER NOT NULL,
128 `specific_id` INTEGER NOT NULL,
129 FOREIGN KEY (`general_id`) REFERENCES `adjectives`(`adjective_id`),
130 FOREIGN KEY (`specific_id`) REFERENCES `adjectives`(`adjective_id`)
131);
132
133DROP TABLE IF EXISTS `pertainymy`;
134CREATE TABLE `pertainymy` (
135 `noun_id` INTEGER NOT NULL,
136 `pertainym_id` INTEGER NOT NULL,
137 FOREIGN KEY (`noun_id`) REFERENCES `nouns`(`noun_id`),
138 FOREIGN KEY (`pertainym_id`) REFERENCES `adjectives`(`adjective_id`)
139);
140
141DROP TABLE IF EXISTS `mannernymy`;
142CREATE TABLE `mannernymy` (
143 `adjective_id` INTEGER NOT NULL,
144 `mannernym_id` INTEGER NOT NULL,
145 FOREIGN KEY (`adjective_id`) REFERENCES `adjectives`(`adjective_id`),
146 FOREIGN KEY (`mannernym_id`) REFERENCES `adverbs`(`adverb_id`)
147);
148
149DROP TABLE IF EXISTS `synonymy`;
150CREATE TABLE `synonymy` (
151 `adjective_1_id` INTEGER NOT NULL,
152 `adjective_2_id` INTEGER NOT NULL,
153 FOREIGN KEY (`adjective_1_id`) REFERENCES `adjectives`(`adjective_id`),
154 FOREIGN KEY (`adjective_2_id`) REFERENCES `adjectives`(`adjective_id`)
155);