From Classical to Quantum Databases with Applied Pullbacks Nick Rossiter Seminar – PSSL, 15th February 2003

Slides:



Advertisements
Similar presentations
Three-Step Database Design
Advertisements

I-ESA'08 Berlin1 Logical Foundations for the Infrastructure of the Information Market Heather, Michael, Livingstone, David, & Rossiter, Nick, CEIS, Northumbria.
Four-level Architecture for Closure in Interoperability EFIS, 17th-18th July 2003 Nick Rossiter & Michael Heather Informatics, Northumbria University
1 What are Bit Strings? The View from Process Nick Rossiter Northumbria University.
GI Systems and Science January 30, Points to Cover  Recap of what we covered so far  A concept of database Database Management System (DBMS) 
CMPT 354, Simon Fraser University, Fall 2008, Martin Ester 52 Database Systems I Relational Algebra.
1 Ivan Lanese Computer Science Department University of Bologna Roberto Bruni Computer Science Department University of Pisa A mobile calculus with parametric.
File Systems and Databases
Sangam: A Transformation Modeling Framework Kajal T. Claypool (U Mass Lowell) and Elke A. Rundensteiner (WPI)
1 Category Theory in a ( E,M ) -category Some aspects of category theory, in particular related to universality, can be developed in any finitely complete.
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Midterm 1 Concepts Relational Algebra (DB4) SQL Querying and updating (DB5) Constraints and Triggers (DB11) Unified Modeling Language (DB9) Relational.
Architectural Design.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Category Theory By: Ashley Reynolds. HISTORY OF CATEGORY THEORY  In 1942–45, Samuel Eilenberg and Saunders Mac Lane introduced categories, functors,
CSC2012 Database Technology & CSC2513 Database Systems.
Anticipation in constructing and interrogating Natural Information Systems: From Classical through Nano to Quantum Computing.
Information Systems: Modelling Complexity with Categories Four lectures given by Nick Rossiter at Universidad de Las Palmas de Gran Canaria, 15th-19th.
Database System Concepts and Architecture Lecture # 2 21 June 2012 National University of Computer and Emerging Sciences.
Database System Concepts and Architecture
Introduction to Database Systems
The Challenge of Interoperability: the Grid, Semantic Web and Categories Nick Rossiter Seminar -- Northumbria University, 13th November 2002
What is MOF? The Meta Object Facility (MOF) specification provides a set of CORBA interfaces that can be used to define and manipulate a set of interoperable.
Symposium 2: Applied Mathematics, Dynamical Systems, Logics and Category Theory CASYS’11 - International Conference on COMPUTING ANTICIPATORY SYSTEMS HEC.
Categories and Computer Science
10/17/2012ISC471/HCI571 Isabelle Bichindaritz 1 Technologies Databases.
Information System Development Courses Figure: ISD Course Structure.
A Holistic Security Architecture for Distributed Information Systems – A Categorical Approach.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
1 The Contravariancy of Anticipatory Systems Dimitrios Sisiaridis, Michael Heather & Nick Rossiter Northumbria University, Newcastle NE2 1XE, UK Symposium.
21st May 2004Informatics Research Conference, Northumbria University 1 Some Fundamental Questions in Databases Nick Rossiter (with Michael Heather)
The Representation of Reality in Computational Form Nick Rossiter Visiting Fellow with Michael Heather and Dimitrios Sisiaridis Computing, Engineering.
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 2-1 Data Models Data Model: A set.
Data resource management
Lecture 2: Introduction to Category Theory Nick Rossiter, Computing Science, Newcastle University, England
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
1 Generic Image Structures in Integrated Media Nick Rossiter & Michael Heather, University of Northumbria at Newcastle
Computing & Information Sciences Kansas State University Friday, 26 Jan 2008CIS 560: Database System Concepts Lecture 2 of 42 Friday, 29 August 2008 William.
1 Typing in Information Systems Nick Rossiter, Michael Heather Computer Science and Digital Technologies Northumbria University, Newcastle NE1 8ST, UK.
Lecture 4: Handling Heterogeneity with Information Resource Dictionary Systems Nick Rossiter, Computing Science, Newcastle University, England
AREIN, I-ESA March Higher Order Logic and Interoperability in Global Enterprise Heather, Michael, Livingstone, David, & Rossiter, Nick, CEIS, Northumbria.
Jemerson Pedernal IT 2.1 FUNDAMENTALS OF DATABASE APPLICATIONS by PEDERNAL, JEMERSON G. [BS-Computer Science] Palawan State University Computer Network.
Free and Open Systems Theory Nick Rossiter Michael Heather University of Northumbria
Information Systems and the Theory of Categories: Is Every Model an Anticipatory System?
SE305 Database System Technology 25/09/2014 Quiz-1.
Lecture 3: Object Concepts as Categories Nick Rossiter, Computing Science, Newcastle University, England
The Natural Metaphysics of Computing Anticipatory Systems Michael Heather Nick Rossiter University of Northumbria
Page 1 Renzo Angles and Claudio Gutierrez University of Chile ACM Computing Surveys, 2008 Survey of Graph Database Models.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
1 © 2013 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
WOSC 2008 Wroclaw1 Problems of Interoperability in Information Systems Nick Rossiter and Michael Heather CEIS, Northumbria University, UK
Chapter 2: Database System Concepts and Architecture - Outline
Chapter 2 Database Environment.
A Universal Technique for Relating Heterogeneous Data Models
Relational Algebra Chapter 4, Part A
Tools for Memory: Database Management Systems
Relational Algebra 461 The slides for this text are organized into chapters. This lecture covers relational algebra, from Chapter 4. The relational calculus.
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
A Natural Basis for Interoperability
Relational Database Design
Categories for Information
Conditions for Interoperability
The Process Semantics of Time and Space as Anticipation
Process in the World as a Transaction
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

From Classical to Quantum Databases with Applied Pullbacks Nick Rossiter Seminar – PSSL, 15th February

Database Theory Usually based on sets (Jeffrey Ullman, Chris Date, Ted Codd) –Relational databases Sets of tuples Functions for dependencies First-order safe predicate calculus for manipulation (SQL) Also an equivalent algebra –Network databases Graphs for structures Navigational (traversal) languages for manipulation –Object-oriented databases Set-based class and object structures Navigational (traversal) language for manipulation (OQL)

Definition: Database Model (as it varies!) Database Model: a representation of policies in a structured form according to some perceived view of reality e.g. –Relational model – world is tabular –Hierarchical model – world is tree-like –Security model – world is task-based –Object model – world is based on o-o paradigm

Relationships Main classifying feature of databases is how they represent relationships: –Relational – including a foreign key (primary key of another table) in the set of attributes –Network – including the address of an object in another object (pointer-based) –Object-oriented – having a function from one class to another (references)

Challenge of Interoperability Interoperability: the ability to request and receive services between various systems and use their functionality. More than data exchange. Implies a close integration No longer possible for systems to be stand- alone

Motivations Diversity of modelling techniques Distributed businesses may exercise local autonomy in platforms Data warehousing requires heterogeneous systems to be connected Data mining enables new dependencies to be derived from heterogeneous collections

Simple Problem in Interoperability Homogeneous Models –the same information may be held as attribute name, relation name or a value in different databases –e.g. fines in library; could be held in a dedicated relation Fine(amount, borrowed_id) or as an attribute Loan(id, isbn, date_out, fine) or as a value Charge(1.25, ‘fine’)

Complex Problems in Interoperability Heterogeneous models Need to relate model constructions to one another, for example: – relate classes in object-oriented to user-defined types in object-relational All problems are magnified at this level.

Use of the term Meta Data Meta means ‘about’ The basis of schema integration Sometimes treated as an object (MOF - Meta Object Facility) Better viewed as a relationship: –Name (data files) –Classify (database classes) –Meta (data dictionary) –MetaMeta (classify data dictionary )

Mappings are two-way MetaMeta Policy Meta Organize Classify Instantiate Concepts Constructs Schema Types Named Data Values Downward arrows are intension-extension pairs

Formalising the Architecture Requirements: –mappings within levels and across levels –bidirectional mappings –closure at top level –open-ended logic –relationships (product and coproduct) Candidate: category theory as used in mathematics as a workspace for relating different constructions

Choice: category theory Requirements: –mappings within levels and across levels arrows: function, functor, natural transformation –bidirectional mappings adjunctions –closure at top level four levels of arrow, closed by natural transformation –open-ended logic Heyting intuitionism –relationships (product and coproduct) Cartesian-closed categories (like 2NF): pullback and pushout

Work with Databases and Categories Michael Johnson, Robert Rosebrugh and RJ Wood, Entity-Relationship-Attribute Designs and Sketches, TAC 10(3) –sketches for design (class structure) –models for states (objects) where model is used in categorical sense –lextensive category (finite limits, stable disjoint finite sums) for query language

Sketch/Model Developed also in databases by: –Zinovy Diskin, Boris Cadish: Algebraic Graph-Based Approach to Management of Multidatabase Systems, NGITS’ (1995). Sketch originally from Charles Ehresmann. –Finite Discrete (FD) sketch D = (E, L, R, S) finite graph E (data structure) set of diagrams L in E (constraints) Finite set R of discrete cones in D (relationships) Finite set S of discrete cocones in D (attributes) Model (M) – graph homomorphism maps any E to category V where V is a database state L  commutative diagrams, R  limit cones, S  colimit cocones preserve products In FP sketches in Johnson et al: finite sums satisfy the lextensive axiom sums are well-behaved

Pullbacks are used extensively for database relationships Here of S and M in Context of IMG S = source, M = medium, IMG = image, W = world

Categories Each level is represented by a category: –Named data values by DATA (DT) valuename –Schema types by SCHEMA (SM) –Constructions by CONSTRUCTS (CS) –Concepts by CONCEPTS (CC) Red font -- categories

Functors Relationships between categories at adjacent levels are given by a functor –For example: –Meta: SCHEMACONSTRUCTS –Meta is a functor Blue font -- functors

Levels in Functorial Terms MetaMeta CONCEPTS CONSTRUCTS S ystem Policy Model Meta InstantiateOrganize DATASCHEMA Classify Green font - composed functors: System = MetaMeta o Meta o Classify

Composition of Adjoint Functors Classify -- CMeta-- M MetaMeta -- A Policy -- POrganise -- O Instantiate -- I CCCSSMDT P OI AMC Composed adjunction

Adjunctions The adjointness between two functors is given by a 4-tuple e.g. for CCCS –  unit of adjunction measures change from initial cc to cc obtained by following P and A (1 CC AP(cc) ) –  counit of adjunction measures PA(cs)1 cs –Unit and counit give measure of creativity of arrows and preservation of style in mapping by functors. – If complete preservation of style (  =1) and no creativity (  =0) -- isomorphism. P A

Composed Adjunction for Four Levels Represents complex mappings across the levels of the system

Benefits of Approach Can represent relationships between levels, either: –abstractly with one relationship from top to bottom levels –in much more detail with all combinations of adjoints expressed.

Comparing one System with Another CCCSSMDT CCCS´SM´ DT´ POI P´P´ O ´I ´  , ,  are natural transformations (comparing functors) 

Godement Calculus Rules showing: –composition of functors and natural transformations is associative –natural transformations can be composed with each other For example: (I´O´)  = I´(O´  );  (OP) = (  O)P   = (  O) o (I´  );   =  P o (O´  )

Four Levels are Sufficient In category theory: –objects are identity arrows –categories are arrows from object to object –functors are arrows from category to category –natural transformations are arrows from functor to functor An arrow between natural transformations is a composition of natural transformations, not a new level

Analogous Levels for Interoperability

Discussion Category theory shows that: –four levels are ideal for interoperability –more than four yields no benefits –less than four gives only local interoperability Categorical approach provides: –an architecture for universal interoperability –a calculus (Godement) for composing mappings at any level –adjunctions for evaluating two-way mappings

Quantum Databases Recent area of interest Following Grover’s work on searching algorithms Following initial work by Peter Sellinger, we are developing database query language for the quantum area Based on category theory (entanglements as limits, superpositioning as colimts)

References 1 Our work (available from NR’s home page) –Heather, M A, & Rossiter, B N, The Anticipatory and Systemic Adjointness of E-Science Computation on the Grid, Computing Anticipatory Systems, Proceedings CASYS`01, Liège, Dubois, D M, (ed.), AIP Conference Proceedings (2002). –Rossiter, B N, Heather, M A, & Nelson, D A, A Universal Technique for Relating Heterogeneous Data Models, 3rd International Conference on Enterprise Information Systems (ICEIS), Setúbal, I (2001). –Heather, M A, & Rossiter, B N, Constructing Standards for Cross- Platform Operation, Software Quality Journal, 7(2) (1998).

References 2 Category Theory and Computing Science: –Barr, M, & Wells, C, Category Theory for Computing Science, Prentice-Hall (1990). –Mac Lane, S, Categories for the Working Mathematician, Springer, 2 nd ed (1998). Category Theory and Information Systems: some other workers –Zinovy Diskin (USA, formerly Latvia) –Boris Cadish (Latvia) –Robert Rosebrugh (Canada) –Michael Johnson (Australia) –Christopher Dampney (Australia) –Michael Heather (Northumbria) –David Nelson (Sunderland) –Arthur ter Hofstede (Australia, formerly Holland) Many other workers on category theory and program semantics