Difference between revisions of "Database Schema"

From ISFDB
Jump to navigation Jump to search
(→‎Global Tables: +MediaWiki table info)
(→‎Global Tables: Moved MediaWiki pages to a separate section)
Line 16: Line 16:
 
* [[Schema:license_keys]] - User license key information.
 
* [[Schema:license_keys]] - User license key information.
 
* [[Schema:metadata]] - Metadata about the database itself.
 
* [[Schema:metadata]] - Metadata about the database itself.
* [[Schema:mw_page]] - MediWaiki table with information about all Wiki pages. Used by the nightly cleanup reports to find Wiki-ISFDB mismatches.
 
* [[Schema:mw_user‎]] - MediaWiki table with user ID, name and other user-specific information. The version in publicly available backups has been cleansed of all private data.
 
* [[Schema:mw_user‎_groups]] - MediWiki table which determines which Wiki group (editors, moderators/sysops or bureaucrats) each user belongs to.
 
 
* [[Schema:notes]] - General-purpose notes area.
 
* [[Schema:notes]] - General-purpose notes area.
 
* [[Schema:submissions]] - Data submissions.
 
* [[Schema:submissions]] - Data submissions.
Line 26: Line 23:
 
* [[Schema:webpages]] - URLs of other Web sites. Used by authors, publishers, publication series, titles, series, award categories and award types.
 
* [[Schema:webpages]] - URLs of other Web sites. Used by authors, publishers, publication series, titles, series, award categories and award types.
 
* [[Schema:websites]] -  Third party (bookseller and bibliographic) sites that a publication may link to based on its ISBN.
 
* [[Schema:websites]] -  Third party (bookseller and bibliographic) sites that a publication may link to based on its ISBN.
 +
 +
== MediaWiki/User Tables==
 +
 +
The ISFDB uses MediaWiki software to run its Wiki. See [https://upload.wikimedia.org/wikipedia/commons/f/f7/MediaWiki_1.24.1_database_schema.svg this MediaWiki chart for lists of table fields]. The following MediaWiki pages are also used by the ISFDB software:
 +
 +
* '''mw_page''' - Information about all Wiki pages. Used by the nightly cleanup reports to find Wiki-ISFDB mismatches.
 +
* '''mw_user‎''' - User ID, name and other user-specific information. The version in publicly available backups has been cleansed of all private data.
 +
* '''mw_user‎_group''' - Includes the Wiki group (editors, moderators/sysops or bureaucrats) to which each user belongs.
  
 
==Author-Related Tables==
 
==Author-Related Tables==

Revision as of 18:23, 3 September 2016

Introduction

There are three primary document views utilized by the ISFDB: showing the bibliography of an author, showing the titles present in a publication, and showing the publications in which a title was published. These views require three primary tables: authors, titles, and publications. Various normalization tables are provided to reduce errors and storage needs.

The illustration below shows the relationship between the various tables. All notes are stored in the notes table, which other tables refer to via the primary note_id key. The metadata table contains data pertinent to the database itself.

A high-level explanation of the database can be found in the Database Overview article. An out-of-date diagram of the ISFDB tables and their relationships can be found here.

Global Tables

Information stored in the global tables are shared across the title, author, and publication related tables in the ISFDB.

MediaWiki/User Tables

The ISFDB uses MediaWiki software to run its Wiki. See this MediaWiki chart for lists of table fields. The following MediaWiki pages are also used by the ISFDB software:

  • mw_page - Information about all Wiki pages. Used by the nightly cleanup reports to find Wiki-ISFDB mismatches.
  • mw_user‎ - User ID, name and other user-specific information. The version in publicly available backups has been cleansed of all private data.
  • mw_user‎_group - Includes the Wiki group (editors, moderators/sysops or bureaucrats) to which each user belongs.

Author-Related Tables

The following tables are used to store information about authors and their works:

Publication-Related Tables

The following tables are used to store information about publications:

Title-Related Tables

The following tables are used to store information about titles:

Awards-Related Tables

The following tables are used to store information about awards:

Transliteration Tables

Data Cleanup Tables