https://github.com/kxxwz/se305_dbst_project
Course Project for SE305 Database System Techniques
https://github.com/kxxwz/se305_dbst_project
databse mysql
Last synced: 11 months ago
JSON representation
Course Project for SE305 Database System Techniques
- Host: GitHub
- URL: https://github.com/kxxwz/se305_dbst_project
- Owner: kxxwz
- License: mit
- Created: 2018-12-04T11:31:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-08T12:46:53.000Z (over 7 years ago)
- Last Synced: 2025-06-14T02:07:08.215Z (about 1 year ago)
- Topics: databse, mysql
- Language: HTML
- Size: 21.6 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SE305 DBST Project
Course Project for SE305 Database System Techniques
## Directory
```bash
.
├── LICENSE
├── Project-Description.pdf
├── README.md
├── arxived_report
├── code
│ ├── build_MySQL_database
│ │ ├── create_table.py
│ │ ├── delete_table.py
│ │ └── insert_item.py
│ ├── crawler
│ │ ├── crawl_book_content.py
│ │ └── crawl_book_info.py
│ ├── interface
│ │ ├── default.png
│ │ └── interface.py
│ └── process
│ ├── download_picture.py
│ ├── output
│ └── process.py
└── data_sample
```
## ER Model

## Relational Model
- **Book** (**book\_id**, author, title, book\_url)
- **Picture** (**picture\_url**, description\_words)
- **belong\_to** (**book\_id**, **picture\_url**, chapter\_number)
## Query
```
# Find the books according to the name, author.
def find_book(book_name, author):
retun book_url
# Given a book and chapter number, you can return some relative pictures.
def find_pic_by_name_chapter(book_name, chapter_num):
return [pic1_url, pic2_url]
# Given some words, you can find the relative pictures according to the words.
def find_pic_by_words(book_name, words):
return [pic1_url, pic2_url]
```