Extending the biogeographical model Africamuseum 6 (7?) June 2013.

Slides:



Advertisements
Similar presentations
WHAT D IS RAW, UNPROCESSED FACTS AND FIGURES COLLECTED, STORED AND PROCESSED BY COMPUTERS.
Advertisements

Introduction to Databases
8 June Single table database in normal form Fields and records Normal form 1.Header in the first line 2.Same content for every field 3.Each record.
Exploring Microsoft Access 2003 Chapter 6 Many-to-Many Relationships: A More Complex System.
ISP 121 Access Normalization and Relationships. Normalization Say we’re operating a pet day-care and we need to keep information on our pets/customers.
From Class Diagrams to Databases. So far we have considered “objects” Objects have attributes Objects have operations Attributes are the things you record.
File Systems and Databases
DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH
1 The Information School of the University of Washington Nov 29fit forms © 2006 University of Washington More Forms INFO/CSE 100, Fall 2006 Fluency.
1212 CHAPTER DATABASES. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved Competencies Distinguish between the physical and logical view.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
MS Access 2007 IT User Services - University of Delaware.
Database Relationships Objective 5.01 Understand database tables used in business.
Mapping ERM to relational database
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
2.3 Organising Data for Effective Retrieval
Week 1 Lecture MSCD 600 Database Architecture Samuel ConnSamuel Conn, Asst. Professor Suggestions for using the Lecture Slides.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 5 Advanced Data Modeling.
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Relational Database Concepts. Let’s start with a simple example of a database application Assume that you want to keep track of your clients’ names, addresses,
Access Primer UoN workshop Naivasha, 30 July – 4 August 2006.
Representing taxonomy MarBEF-IODE workshop Oostende, March 2007.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Access Primer Africamuseum 5 June MS Access  Relational Database Management System Data/information resides in series of related tables Principle.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 9 – Building Links,
1 Intro to JOINs SQL INNER JOIN SQL OUTER JOIN SQL FULL JOIN SQL CROSS JOIN Intro to VIEWs Simple VIEWs Considerations about VIEWs VIEWs as filters ALTER.
Lecturer: Gareth Jones. How does a relational database organise data? What are the principles of a database management system? What are the principal.
CSCI 3140 Module 3 – Logical Database Design for the Relational Model Theodore Chiasson Dalhousie University.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
1 Outline  What is a Primary Key?  AutoNumber primary keys  Single-field primary keys  Composite-field primary key  About Foreign Keys  Database.
Normalisation Africamuseum 5 June What is ‘Normalisation’?  Theoretical: satisfying the requirements of the different ‘Normal Forms’, as spelled.
(Spring 2015) Instructor: Craig Duckett Lecture 10: Tuesday, May 12, 2015 Mere Mortals Chap. 7 Summary, Team Work Time 1.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
Architectural Patterns Support Lecture. Software Architecture l Architecture is OVERLOADED System architecture Application architecture l Architecture.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
DATABASE What exactly is a database How do databases work? What's the difference between a spreadsheet database and a "real" database?
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
Exploring Microsoft Access Chapter 6 Many-to-Many Relationships: A More Complex System.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
ITGS Databases.
Database revision.
In this session, you will learn to: Map an ER diagram to a table Objectives.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Normalisation RELATIONAL DATABASES.  Last week we looked at elements of designing a database and the generation of an ERD  As part of the design and.
Flat Files Relational Databases
D1 FMA Review. Many-to-Many Relationships - Examples Car Hire –A customer may hire one or more cars –A car may be hired by one or more customers Gym Club.
1 Geog 357: Data models and DBMS. Geographic Decision Making.
Sample Table Standard Notation Entity name in uppercase
Introduction to Databases Angela Clark University of South Alabama.
CSCI 6962: Server-side Design and Programming Shopping Carts and Databases.
Visual Database Creation with MySQL Workbench 도시정보시스템 설계
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
NORMALISATION OF DATABASES. WHAT IS NORMALISATION? Normalisation is used because Databases need to avoid have redundant data, which makes it inefficient.
Databases Key Revision Points.
CIS 155 Table Relationship
Building Queries using the Principle of Simplest Query (POSQ)
Presentation transcript:

Extending the biogeographical model Africamuseum 6 (7?) June 2013

Workplan  Continue with database constructed so far  Add fields for Authority (name of the author, date, parentheses) Classification Fields for different ranks Synonymy Sources

Fields for classification  Add fields to ‘species’ table for the main ranks: Kingdom Phylum (=division) Class Order Family  Alternative: separate table Split taxonomy in genus/species, and family and above  Problem: not properly normalised, not good solution for long-term management of taxonomic register

Add field for authority  Add field for authority in the species table One text field, not structured further Too complex to be split up in separate fields  Optionally, add field for reference to original description Ideally as a link to the sources table

Add table sources  Fields ID (=primary key, autonumber) Author Year Reference

Relations with sources table  Add ‘SourcesID’ link in Species table  Add ‘SourcesID’ link in Distribution table  Create relations between Sources and Species table Sources and distribution table

Add synonymy  ‘Self-referential’ table Record in table refers to other record in same table Needs status of the taxon described in the record  Create new fields: AcceptedID TaxonStatus (optionally link to separate table)  Create relation: AcceptedID link to ID of taxon table

Relations diagram - synonyms

One-to-many relationships  E.g. species in family: each species belongs to one, and only one family  Implement by listing the Primary Key of the ‘one’ side as a field in the table of the ‘many’ side  ‘Foreign Key’ points at the right record in the ‘one’ side of the relationship

One-to-many relationships (Many) species in (one) family (Many) places/localities in (one) country

Many-to-many relationships?  Problem: we don’t have a ‘one’ side, there is no single record to refer to  Can not be implemented directly in SQL  Needs extra table To split up many-to-many in two one-to- many relations Extra table takes pointers to both sides of the relationship

Many-to-many relationship  Example: ‘sources’ versus ‘species’ Source = literature, report, database…  One source refers to several species  A species is referred to in many sources  Create many-to-many table Split the one many-to-many relationship in two one-to-many relationships

Many-to-many relationship

Relations diagram - complete

Present structure: Philosophy  Structure has to be as simple as possible  But not any simpler!!  Present structure is good short-term solution, but not long-term Needs better alternative to represent classification and hierarchy

Hierarchy: flat table  Every rank in the hierarchy is represented by a field in the table  Simplest solution Easy to create Easy to query

Hierarchy: flat table

 Problems not normalised! Not a real problem if a quick-and-dirty solution is all that is needed Difficult to maintain hierarchy in the long term ‘Standard’ problems with non-normalised database  Possible conflicting information, inefficient storage… Cfr MASDEA; too simple

Hierarchy: normalised tables  Every rank is represented by a separate table  Not very difficult to write a query to regenerate flat table  Every taxon can have additional information Extra fields with description…

Hierarchy: cascading tables

Hierarchy: normalised tables  Avantages Easy to maintain and query Normailised, possible to add information at any level of the hierarchy  Drawbacks Ranks are hard-wired on the structure of the database New rank would require change of the structure of the database And probably of the user interface, web interface… Number of tables Lot of functionality duplicated

Taxonomic reality  Ranks used depend on the taxonomic group Botany: mainly infra-specific; zoology: mainly on higher levels Many of the ranks are only sparsely used  Needs for a more flexible system  Much of the functionality is the same across all ranks ‘parent’, synonymy Authority, description…

‘Open Hierarchy’  Possible to define new ranks without having to rewrite the structure of the database  All taxonomic names are stored in a field in a single table; other fields indicate parent and rank  Many-to-one relation: a single parent, several descendants Include ID of parent in the record of the descendant

Open Hierarchy  Avantages Completely normalised Flexible  Drawbacks Difficult to query classification Queries of the type ‘all species of the Echinodermata’… Solution: Recursive query ‘calculated field’ program

Synonymy  Every taxon can have several synonyms; in principle, only one valid name for any synonym Many-to-one relation: one valid name, many synonymous names Include ID of the valid name in the record of the synonymous name Other fields for the type of synonymy…

Rest of the taxonomic model  Ranks should be in a separate table Information on the level of the rank can be added Possibility of extra quality control Rank of a parent as compared to rank of descendants Rank of siblings should be same

Combine with rest  Previous work on geography and sources