forked from arc12/Text-Mining-Weak-Signals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SQLite Schema.sql
51 lines (49 loc) · 1.45 KB
/
SQLite Schema.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
CREATE TABLE abstract (
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
"origin" TEXT NOT NULL,
"year" TEXT NOT NULL,
"pages" TEXT,
"title" TEXT NOT NULL,
"authors" TEXT NOT NULL,
"abstract" TEXT NOT NULL,
"keywords" TEXT,
"url" TEXT NOT NULL,
"dblp_url" TEXT,
"pos_score" REAL,
"neg_score" REAL,
"subj_score" REAL,
"econ_score" REAL,
"polit_score" REAL,
"legal_score" REAL,
"doing_score" REAL,
"knowing_score" REAL,
"treated" TEXT,
"non_stopwords" INTEGER,
"treated_words" INTEGER
);
CREATE UNIQUE INDEX "ABSTRACT_URL_UNQ" on "abstract" (url ASC);
CREATE INDEX "ABSTRACT_YEAR" on abstract (year ASC);
CREATE TABLE blog_post (
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
"content" TEXT NOT NULL,
"title" TEXT NOT NULL,
"authors" TEXT NOT NULL,
"datestamp" TEXT NOT NULL,
"origin" TEXT NOT NULL,
"url" TEXT NOT NULL,
"pos_score" REAL,
"neg_score" REAL,
"subj_score" REAL,
"econ_score" REAL,
"polit_score" REAL,
"legal_score" REAL,
"doing_score" REAL,
"knowing_score" REAL,
"treated" TEXT,
"non_stopwords" INTEGER,
"treated_words" INTEGER
);
CREATE UNIQUE INDEX "BLOG_POST_URL_UNQ" on blog_post (url ASC);
CREATE INDEX "BLOG_POST_DATESTAMP" on blog_post (datestamp ASC);
CREATE VIRTUAL TABLE abstract_fts4 USING fts4(content="abstract", abstract, treated);
CREATE VIRTUAL TABLE blog_post_fts4 USING fts4(content="blog_post", content, treated);