Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Crisis Events Text Summarization
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Francesco Crisafulli
Crisis Events Text Summarization
Commits
f9491d99
Commit
f9491d99
authored
1 year ago
by
fcrisafulli-dev
Browse files
Options
Downloads
Patches
Plain Diff
schema
parent
9f3ad80a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
README.md
+23
-0
23 additions, 0 deletions
README.md
crisis_events.db
+0
-0
0 additions, 0 deletions
crisis_events.db
databaseAPI.py
+13
-0
13 additions, 0 deletions
databaseAPI.py
init_database.sql
+1
-0
1 addition, 0 deletions
init_database.sql
tutorial.db
+0
-0
0 additions, 0 deletions
tutorial.db
with
37 additions
and
0 deletions
README.md
+
23
−
0
View file @
f9491d99
# Crisis Events Text Summarization
## Adgenda
## QSL Schema
```
Enum CollectionType {
TextFileList
URLList
HTMLFileList
}
Table EventCollections {
User: UUID,
CollectionType: CollectionType
CollectionID: UUID,
Summary: BLOB
}
Table TextFileCollections{
ID: UUID,
Collection: idk
}
... similar for all other enum types
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
crisis_events.db
0 → 100644
+
0
−
0
View file @
f9491d99
File added
This diff is collapsed.
Click to expand it.
databaseAPI.py
+
13
−
0
View file @
f9491d99
...
...
@@ -8,6 +8,19 @@ def init_database():
#try to delete the databse and all relevant data
connection
=
sqlite3
.
connect
(
"
crisis_events.db
"
)
cur
=
connection
.
cursor
()
cur
.
execute
(
"
CREATE TABLE movie(title, year, score)
"
)
cur
.
execute
(
"""
INSERT INTO movie VALUES
(
'
Monty Python and the Holy Grail
'
, 1975, 8.2),
(
'
And Now for Something Completely Different
'
, 1971, 7.5)
"""
)
res
=
cur
.
execute
(
"
SELECT name FROM sqlite_master
"
)
print
(
res
.
fetchone
())
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
init_database.sql
0 → 100644
+
1
−
0
View file @
f9491d99
DROP
TABLE
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tutorial.db
deleted
100644 → 0
+
0
−
0
View file @
9f3ad80a
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment