Download presentation
Presentation is loading. Please wait.
Published byEsther Hunt Modified over 9 years ago
1
Digital Media Technology Week 10: Introduction to Relational Databases Peter Verhaar
2
“Critical Digital Humanities” □ Tools criticism and software studies □ Theorising computational approaches □ Social and cultural implications of software, cf. research in STS; Langdon Winner □ Effects on the research agenda
3
A series of counts: number of titles per decade
5
List of all subjects Deduplication and counts in, for example, Excel
8
Strengths □ Creation of lists □ Filtering a list □ Counting the number of items in a list Weaknesses □ Find the unique values in a list □ Count the number of items for all these unique values XSLT and data processing
9
Stylesheet languages vs. Querying languages
11
□ Design □ Implementation □ Data entry □ Analysis Creating a database: Phases
12
The import of books from Britain into the Netherlands between 1850 and 1879 increased from f 21,085 to f 161,925, or some 760% in a 29-year period. By comparison, overall book imports in the same period went from f 341,449 to f 1,509,732 or almost 440%. In other words, if import of foreign books was booming generally, the British share in this import grew even faster. In 1850 it amounted to just over 6% of all book imports, growing to a full 10% in 1879. By 1939 the figure for books and periodicals are separate. British books by then account for 18% of all book imports; British periodicals for 43% of all periodical imports. Thus, the average of books and periodicals is 23%.We can put this remarkable growth in perspective by comparing it with the book title production within the Netherlands itself, which went up from 1732 titles in 1850 to almost 3000 (2948) in 1900: an increase of less than 200% over a 50-year period, compared to the 760% over a 29-year period in the case of British imports. Linearity
13
Date,Author last name,Author first name,Title,Vols,No. printed,No. sold,Mudie's subs,Mudie's % Jan. 1858,Eliot,George,Scenes of Clerical Life,2,1050,1006,350,35 Dec. 1858,Lytton,Edward Bulwer,What Will He Do With It?,4,4200,3801,1725,45 Jan. 1859,Eliot,George,Adam Bede,3,3416,3304,1500,45 June 1863,Speke,John Hanning,What Led to the Discovery of the Nile,1,1575,922,100,11 Structure
14
Data redundancy
15
□ A database is a collection of structured and related data which □ is organised in a structured way □ allows for random access because of its non-linear nature □ ideally maximises storage and retrieval efficiency □ Database management system (DBMS): computer program that enables users to store, modify, and extract information from a database
16
Interpretation continuum Data Information Source: Obrst and Liu, Knowledge representation, Ontological Engineering and Topic Maps, in: XML Topic Maps, 2003 DIKW Pyramid
17
Tables, Rows, Columns Records (rows) Fields (columns)
18
Flat File Database AUTHOR_ ID LAST_NAMEFIRST_NAME YEAR_OF_ BIRTH YEAR_OF_ DEATH NATIONALITY 1AustenJane17751817uk 2GoldsmithOliver17301774ie 3BeckettSamuel19061989ie 4ShawGeorge Bernard 18561950ie 5PinterHarold19302008uk 6O'NeillEugene18881953us
19
LAST_NAMEFIRST_NAME YEAR_OF_ BIRTH YEAR_OF _DEATH NATIONAL ITY TITLEPUBLISHERYEAREXTENT AustenJane17751817ukMansfield ParkCambridge University Press 2005738 p. AustenJane17751817ukPersuasionCambridge University Press 2006392 p. BeckettSamuel19061989ieEndgame : a play in one act Faber and Faber196560 p. BeckettSamuel19061989ieMolloyCalder1997176 p. BeckettSamuel19061989ieWattCalder1963225 p. GoldsmithOliver17301774ieShe stoops to conquer Oxford University Press1995120 p. GoldsmithOliver17301774ieThe vicar of Wakefield George Routlede and Sons 1886320 p. O'NeillEugene18881953usStrange interlude : a play Cape1965348 p. O'NeillEugene18881953usLong day’s journey into night Cape1966156 p. HeaneySeamus1939ieDeath of a Naturalist Faber and Faber196667 p. HeaneySeamus1939ieSeeing ThingsFaber and Faber199178 p. ShawGeorge Bernard 18561950ieMajor BarbaraPenguin1957153 p. Create, Retrieve, Update, Delete
20
AUTHOR_ ID LAST_NAMEFIRST_NAME YEAR_OF_ BIRTH YEAR_OF_ DEATH NATIONALITY 1AustenJane17751817uk 2GoldsmithOliver17301774ie 3BeckettSamuel19061989ie 4ShawGeorge Bernard18561950ie 5PinterHarold1930uk 6O'NeillEugene18881953us BOOK_IDTITLE AUTHOR_ ID PUBLISHERYEAREXTENT 1Mansfield Park1Cambridge University Press 2005738 p. 2Persuasion1Cambridge University Press 2006392 p. 3Long day’s journey into night 6Cape1966156 p. 4Strange interlude : a play 6Cape1965348 p. 5Molloy3Calder1997176 p. 6The caretaker5Methuen196078 p. 7She stoops to conquer2Oxford University Press 1995120 p. 8The vicar of Wakefield2George Routlede and Sons 1886320 p. 9Endgame : a play in one act 3Faber and Faber196560 p. 10Watt3Calder1963225 p. 11The homecoming5Methuen197267 p. 12Major Barbara4Penguin1957153 p. Shared column foreign key primary key
21
Primary Key
22
Seminal publications: □ E.F. Codd, “A Relational Model of Data for Large Shared Data Banks” (1970) □ Peter Chen, “The Entity-Relationship Model: Toward a Unified View of Data” (1976)
24
□ Technique to visualise the various relationships between the entities in a database □ Steps: □ (1) Identify entities □ (2) Identify attributes □ (3) Establish relationships and cardinalities □ (4) Remove many-to-many relationships Entity-Relationship Modelling
25
AUTHOR BOOK PUBLISHER
26
AUTHOR P_ID FIRST_NAME LAST_NAME DATE_OF_BIRTH DATE_OF_DEATH NATIONALITY Attributes PK is underlined
27
AUTHOR BOOK STUDENT COURSE EMPLOYEE COMPANY LIBRARY BOOK writes is enrolled in works for owns
28
cardinality □ How many instances of the entity can be related to how many instance of another entity? □ The answer to this question should be one of the following: one-to-one, one-to-many, many-to-one, many-to-many.
29
AUTHOR CAPITAL STUDENT COURSE COUNTRY BOOK one-to-one one-to-many many-to-many
30
Many-to-many relationships Person1Company1 Person2Company1 Person1Company2 Person3Company2 Person2Company3 Person3Company3
31
PERSON COMPANY (employee) (employer) ? many EMPLOYMENT P_IDC_ID P_ID C_ID E_ID [ DETAILS ]
32
Important Principles □ There must always be a one-to-one relationship between an entity’s primary key and its descriptive attributes. □ There can only be one-to-many relationships between different entities. □ In the case of many-to-many relationships, a separate table must be created (a linking table) in order to record information about this relationship.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.