Chapter 11_12. Multimedia IR: Models and Languages

Similar documents
MULTIMEDIA DATABASES OVERVIEW

Introduction to Spatial Database Systems

3. Object-Oriented Databases

CS145 Final Examination

ODMG 2.0: A Standard for Object Storage

Principles of Data Management

Motivation and basic concepts Storage Principle Query Principle Index Principle Implementation and Results Conclusion

Introduction. Who wants to study databases?

Mahathma Gandhi University

Relational Model. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan

Course Modules for MCSA: SQL Server 2016 Database Development Training & Certification Course:

Chapter 12 Object and Object Relational Databases

Introduction to Database Systems CSE 344

DATABASE MANAGEMENT SYSTEMS. UNIT I Introduction to Database Systems

CMPT 354: Database System I. Lecture 2. Relational Model

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Several major software companies including IBM, Informix, Microsoft, Oracle, and Sybase have all released object-relational versions of their

FOUNDATIONS OF DATABASES AND QUERY LANGUAGES

Data, Information, and Databases

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Winter 2009 Lecture 6 - Storage and Indexing

Module 9: Managing Schema Objects

Chapter 4. Basic SQL. SQL Data Definition and Data Types. Basic SQL. SQL language SQL. Terminology: CREATE statement

Basant Group of Institution

Chapter 1 Chapter-1

Chapter 24. Active Database Concepts and Triggers. Outline. Trigger Example. Event-Condition-Action (ECA) Model

Physical Design of Relational Databases

Relational Database Features

ORDBMS - Introduction

E-R Diagram. Bagian I Entity Concept

Introduction to Computer Science and Business

20762B: DEVELOPING SQL DATABASES

Credit where Credit is Due. Last Lecture. Goals for this Lecture

CMP-3440 Database Systems

II. Data Models. Importance of Data Models. Entity Set (and its attributes) Data Modeling and Data Models. Data Model Basic Building Blocks

Microsoft. [MS20762]: Developing SQL Databases

Database Systems CSE 414

Developing SQL Databases

Systems:;-'./'--'.; r. Ramez Elmasri Department of Computer Science and Engineering The University of Texas at Arlington

Basics of Data Management

Introduction. Example Databases

CMPUT 391 Database Management Systems. Spatial Data Management. University of Alberta 1. Dr. Jörg Sander, 2006 CMPUT 391 Database Management Systems

Optional SQL Feature Summary

Unit I. By Prof.Sushila Aghav MIT

Introduction to Databases CSE 414. Lecture 2: Data Models

Creating and Managing Tables Schedule: Timing Topic

2.2.2.Relational Database concept

SQL: Concepts. Todd Bacastow IST 210: Organization of Data 2/17/ IST 210

Database Systems CSE 414

Announcements. Using Electronics in Class. Review. Staff Instructor: Alvin Cheung Office hour on Wednesdays, 1-2pm. Class Overview

Part 3: Object-Oriented Database Management Systems

RELATIONAL DATA MODEL

Outline. Textbook Chapter 6. Note 1. CSIE30600/CSIEB0290 Database Systems Basic SQL 2

Objective. The goal is to review material covered in Chapters 1-5. Do the following questions from the book.

DBMS (FYCS) Unit - 1. A database management system stores data in such a way that it becomes easier to retrieve, manipulate, and produce information.

2. An implementation-ready data model needn't necessarily contain enforceable rules to guarantee the integrity of the data.

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

SQL:1999 additional features. Object-oriented concepts Object relational concepts in SQL:1999 Active database concepts Active concepts in SQL:1999

Introduction to Indexing R-trees. Hong Kong University of Science and Technology


UNIT 4 DATABASE SYSTEM CATALOGUE

SQL Server Development 20762: Developing SQL Databases in Microsoft SQL Server Upcoming Dates. Course Description.

Assertions, Views, and Programming. CS157A Chris Pollett Oct. 31, 2005.

FACULTY OF ENGINEERING B.E. 4/4 (CSE) II Semester (Old) Examination, June Subject : Information Retrieval Systems (Elective III) Estelar

NCSS: Databases and SQL

CSE 544 Principles of Database Management Systems

SQL*Loader Concepts. SQL*Loader Features

CHAPTER 2: DATA MODELS

FUNDAMENTALS OF. Database S wctpmc. Shamkant B. Navathe College of Computing Georgia Institute of Technology. Addison-Wesley

Database System Concepts and Architecture

Query Processing and Advanced Queries. Advanced Queries (2): R-TreeR

Object Oriented Database

Rekayasa Perangkat Lunak 2 (IN043): Pertemuan 8. Data Management Layer Design

ER to Relational Model. Professor Jessica Lin

Introduction to Database Systems CSE 344

CSE 344 JANUARY 5 TH INTRO TO THE RELATIONAL DATABASE

SQL: Data De ni on. B0B36DBS, BD6B36DBS: Database Systems. h p:// Lecture 3

CSIE30600 Database Systems Basic SQL 2. Outline

Topic 3 Object Relational Database

Fundamentals of. Database Systems. Shamkant B. Navathe. College of Computing Georgia Institute of Technology PEARSON.

UNIT 3 XML DATABASES

KNGX NOTES INFS1603 [INFS1603] KEVIN NGUYEN

Preserving Semantics when Transforming Conceptual Spatio-Temporal Schemas

Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations. SQL: Structured Query Language

Entity-Relationship Model

COSC344 Database Theory and Applications. Lecture 5 SQL - Data Definition Language. COSC344 Lecture 5 1

Introduction to the Structured Query Language [ SQL ] (Significant Concepts)

CHAPTER 2 LITERATURE REVIEW

Announcements. Relational Model & Algebra. Example. Relational data model. Example. Schema versus instance. Lecture notes

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II

Database Technology Introduction. Heiko Paulheim

DBArtisan 8.6 New Features Guide. Published: January 13, 2009

Chapter 5. Relational Algebra and Relational Calculus

Chap4: Spatial Storage and Indexing. 4.1 Storage:Disk and Files 4.2 Spatial Indexing 4.3 Trends 4.4 Summary

Efficient Object-Relational Mapping for JAVA and J2EE Applications or the impact of J2EE on RDB. Marc Stampfli Oracle Software (Switzerland) Ltd.

Multidimensional Data and Modelling - DBMS

Chapter 1 SQL and Data

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

CSE544 Database Architecture

DB Creation with SQL DDL

Advanced Database Applications. Object Oriented Database Management Chapter 13 10/29/2016. Object DBMSs

Transcription:

Chapter 11_12 Multimedia IR: Models and Languages

Introduction Complex structures instead of simple data types Different media types (images, sounds, text, graphs) Mix of structured and unstructured data Metadata Semi-structured data Data whose structure may not match, or only partially match, the structure prescribed by data schema The system must typically extract some features from the multimedia objects Multimedia IR system should handle Metadata Architecture of system depends on Characteristics of data Operations performed on data 2

Introduction Data modeling Store multimedia objects Find for all fast images retrieval similar to a car Different kinds of media Find multimedia objects containing an apple Semistructured data Find all red images Find multimedia objects containing a video clip Data retrieval Data attributes and content Query specification Fuzzy predicates, content-based predicates, object attributes, structural predicates Query processing and optimization Query is parsed and compiled into an internal form Query iteration The query execution until the user is satisfied 3

Goal Multimedia IR systems should combine DBMS and IR technology Data modeling capabilities of DBMSs Similarity-based query capabilities of IR systems System should support attribute-based as well as content-based queries 4

Main tasks Data modeling A data model should be defined by which the user can specify the data to be stored into the system Support conventional and multimedia data types Provide methods to analyze, retrieve, and query such data Provide a model for the internal representation of multimedia data 5

RDBMSs may help Data modeling But integration of multimedia data in traditional DBMSs is difficult Unstructured data which requires methods to identify and represent content features and semantic structures Large storage requirements OODBMSs may help But performance stays behind Storage, query processing, transaction management Object-relational technology may help Extending the relational model with ability to represent complex data types (SQL3) 6

Data modeling Object-oriented DBMS Provide rich data model More suitable for modeling both multimedia data types and their semantic relationships Class Attributes +operations Inheritance Drawback the performances of storage techniques, query processing, and transaction management is not comparable to that of relational DBMSs Highly non-standard 7

Data modeling Object-relational DBMS Extend the relational model Represent complex data types Maintain the performance and the simplicity of relational DBMSs and related query languages Define abstract data types Allows one to define ad hoc data types for multimedia data 8

Support in commercial DBMSs Variable-length data types Details are platform specific RAW, LONGRAW, LOB, BLOB, CLOB IMAGE, TEXT No interpretation of data content SQL3 brings an extensible type system OO like manner Proprietary implementations abound Data cartridges in Oracle (ConText) Data blades in Illustra (2D/3D spatial, text, images) 9

B-Tree Traditional DBMS 10

R-tree (Region Tree) R-tree Represent a spatial object by its minimum bounding rectangle (MBR) Data rectangles are grouped to form parent nodes (recursively grouped) The MBR of a parent node completely contains the MBRs of its children MBRs are allowed to overlap Nodes of the tree correspond to disk pages 11

R-tree 180 5 10 200 12

R-Tree Node [(10,200),(5,180)] Leaf m = minimum of entires in a node M = maximum of entires in a node m -Big good for small update -Small good for high update M depend on Harddisk 13

R-Tree Example m = 2 M = 5 14

R-Tree Example [(6,10),(35,100)] [(6,7),(35,85)] [(1,3),(10,20)] 15

R-Tree Example Searching Sixth semester or higher and earned between 20 and 65 credits 16

R-Tree Example Insert Q [(6,10),(35,100)] [(8,10),(70,100)] [(8,10),(65,100)] Q Insert (Q,10,65) 17

Query languages Exact match is only one of the possible ways to query multimedia objects Due to the semistructured nature of the data Content-based querying considers both structure and content of the data Matching of features and degree of similarity Request specification Browsing and navigation Query by example Specific query language 18

SQL3 Support extensible type system Provide constructs to define user-dependent abstract data types, in an object-oriented like manner Collection data types Sets, multisets, and lists The elements of a collection must have compatible types 19

SQL3 / SQL99 Perspective from query language point of view Functions and stored procedures Active database facilities Perspective from multimedia point of view Suitable for being used as an interface language for multimedia applications External functions, user-defined data types Triggers can enforce spatial and temporal constraints A standard However, no integrated IR techniques Content-based search is application dependent SQL/MM Full Text, SFQL 20

SQL3 Example CREATE TABLE branch( Bno VARCHAR(3), address ROW( street VARCHAR(25), town VARCHAR(15), pcode ROW( city_id VARCHAR(4) subpart VARCHAR(4)))); INSERT INTO branch VALUES( B5, ( 22 Deer Rd, Sidcup, ( SW1, 4EH ))); 21

SQL3 Example CREATE TYPE person_type AS ( PRIVATE date_of_birth DATE CHECK(date_of_birth > DATE 1990-01-01 ); PUBLIC fname VARCHAR(15) NOT NULL, lname VARCHAR(15) NOT NULL, END); FUNCTION get_age (P person_type) RETURNS INTEGER RETURN /* code to calc age */ END; 22

SQL3 Example SELECT s.lname, s.get_age FROM staff s WHERE s.is_manager; SELECT p.lname, p.address FROM person p WHERE p.get_age > 65; SELECT p.lname, p.address FROM ONLY (person) p WHERE p.get_age > 65; 23

OQL (Object Query Language) class Student (extent students) { attribute short id; attribute string name; attribute string address; attribute date birthdate; relationship set<module> takes inverse Module takenby; short age(); }; 24

OQL (Object Query Language) class Module (extent modules) { attribute string title; attribute short semester; relationship set<student> takenby inverse Student takes; }; class Postgrad extends Student (extent postgrads) { attribute string thesis_title; }; 25

OQL (Object Query Language) select distinct x.age from Persons x where x.name = "Pat"; Return literal of type set<struct> select distinct struct(a:x.age, s:x.sex) from Persons x where x.name = "Pat"; 26

OQL Examples Path Expressions select c.address from Persons p, p.children c where p.address.street = "Main Street" and count(p.children) >= 2 and c.address.city!= p.address.city; Methods select max(select c.age from p.children c) from Persons p where p.name = "Paul"; 27

Query languages Conditions on multimedia data Multimedia query languages should provide predicates for expressing conditions on data Attribute predicates Structural predicates Semantic predicates Metadata,Database schema Content of query data and feature data Structural and semantic predicates can refer to spatial or temporal properties Contain, intersect, before, after Find all the objects containing the world OFFICE 28

Query languages Query Expression Uncertainty, proximity and weigths Imprecise terms and predicates Normal, unacceptable, typical Proximity predicates Based on semantic distance, such as nearest object Weights Specifying degree of precision by which a condition must be verified Allow the user to drive similarity-based selection of relevant objects 29