Professional Documents
Culture Documents
Starter 2: 2.1 Advantages of Multimedia Database 3
Starter 2: 2.1 Advantages of Multimedia Database 3
Starter 2: 2.1 Advantages of Multimedia Database 3
Starter 2
2. Multimedia database. 2
2.1 Advantages of multimedia database 3
3. Motivated Example. 4
6.1 I 2 RP architecture 7
6.2 SQL+D architecture 8
6.3 The Oracle interMedia architecture 9
7. Entity-Multimedia-Relationship model (EMRM) 12
8. Defining types and Creation of tables using oracle interMedia ..13
9. New look using Oracle 9i multiMedia.21
Sushil Kulkarni
1. Starter
Today, we need to query and process vast quantities of data that are not easy to
describe with mere symbols. The term "multimedia" attracts a lot of attention, it's really
just a subclass of a large category of unstructured data called abstract data; The
examples of multimedia are text, images, audio, video etc.
The recent explosion in the use of media-rich Internet applications has resulted in an
appreciation for the value of multimedia content, and a realization of the challenges in
managing that content. Emerging Web and e-commerce applications found in diverse
areas such as retail sales, real estate, and Web publishing, need effective, efficient, and
reliable management of multimedia content.
Managing multimedia content for such applications presents unique issues. Large,
relatively unstructured media objects come in a wide variety of complex formats, and
need to be associated with the appropriate application information. Loading large
volumes of multimedia content into a management system requires associating the
correct metadata; indexing the content for search and retrieval; and, efficiently
delivering the multimedia content.
Media and metadata can be stored using following alternatives:
* Binary large objects, or BLOBs, stored within the database
* File-based large objects, or BFILEs, stored in local operating system specific file
systems
* URLs containing image, audio, and video data stored on any HTTP server, such as
the Oracle9i Application Server
* Specialized media storage servers
In this chapter, I will present the architecture and model required for multimedia
databases and its implementation using Oracle interMedia.
2. Multimedia database
Thus, a multimedia database is a database that contains one or more media types of
information such as text, image, video clip, sound, diagram, and graphical animation
and can help to analyze the problem.
There are several applications that need the ability to query multimedia objects based
on their content. For example, online shopping, criminal record application, medical
applications, album of satellite images etc.
An application for criminal records can contain the database that contains face
recognition to identification criminal, criminals trademarks, fingerprints and information
about his or her criminal activities. On the other hand an application for hospital
management may contain the databases of patients X-rays, electrocardiograms,
magnetic resonance imaging (MRI) and traditional information about patient like name
age etc.
sushiltry@yahoo.co.in
Sushil Kulkarni
To satisfy these needs, commercial DBMSs like DB2, Informix, Oracle interMedia support
content based retrieval over multimedia data.
On the web there are huge data files that can support multimedia databases. For
example, consider the web based image data management solution system contains
Text that provides a rich sensory experience, powerful search capabilities, and
extraordinary convenience to a large market of customers giving the system a distinct
competitive advantage. The systems main assets are of course the images, and the
traditional relational (business) data. Placing all these assets in the same database
management system reduces administration and training costs, and increases system
reliability, availability, and scalability. Most important, it creates opportunities for
multimedia information sharing, redirection of that information, and integration of the
multimedia data with traditional relational data and other operational applications that
manage the systems business.
2.1 Advantages of multimedia database
Following are advantages to store multimedia objects in the database:
* Better security: multimedia objects are secured in the databases and can be
invoked any time when required. For example, a doctor can see M.R.I. report of
patient whenever he wants and can be preserved as long as the patient takes the
treatment of doctor.
* Greater control (resizing, manipulating): multimedia objects can be resized
when required and certain changes can be made when required.
* Easy deletion: Images can be deleted without deleting the corresponding data
from the database
* One can search for multimedia content in the same fashion as they search for
traditional relational data. For instance, customers can search for images by a
unique image name or key, by photographer, or by category. In addition, customers
can use Oracle interMedias powerful image content based retrieval capability to
search for similar images recursively through the database. And once a customer
has found an image of interest, they can simply click on it and see the full resolution
image.
* Easy to extract statistics on usage
Oracle interMedia enables Oracle9i to manage multimedia content (image, audio, and
video) in an integrated fashion with other enterprise information. It extends Oracle9i
reliability, availability, and data management to multimedia content in media-rich
Internet applications. As an integral part of the Oracle9 i database server, Oracle
interMedia data benefits from all Oracle9i capabilities, including its speed, efficiency,
scalability, security, and power.
sushiltry@yahoo.co.in
Sushil Kulkarni
3. Motivated Examples
Digital Library is a hot research field and there are matured systems that are
developed. The Association for Computing Machinery (ACM) has already put all its
journals online in its digital library. They have stopped sending the published journals to
its members since 2002.As a substitution of the traditional media the digital library (DL)
of ACM provides much more functionality for researchers to retrieve the interested
papers.
Another big computer research society, the IEEE software also decided to stop
providing the paper based journal. However, the in use digital libraries are not actual
digital library because they still need the backend support of the traditional media. For
example, ACM digital library is just the index of the traditional journal and documents
are stored in PDF format.
One can define the system that supports multimedia objects in addition to text. One can
also have some user-defined data types and functions to retrieve the multi media
objects.
The Multimedia Digital Library Document system (MDLDS) can be designed for
educational and research use. The possible Document can include lectures given by the
Professor, reports include demo of the software applications, seminar lecture given by
the visiting scholars so on and so forth.
This system can have learning Network that allows the students to take classes without
regular lectures. Students can learn by reading the notes, assignments given by the
professors and doing the project at home. However, without lectures it becomes hard
for students to get the points of the professor correctly and the learning curve is going
to be smooth to most students. With the MDLDS the Professors can record their lectures
to some important issues and save them as Documents. The students can retrieve and
play video/audio of the lectures stored in the MDLDS system to learn quickly.
The system can also be used for research. The research has lot documents published
every year. Some of them are about software applications. Even though the writing
paper can be very good for people to read but it will be hard to understand what is
going on with the system with paper only because the system might be very
complicated. With the MDLDS system the document can have video/audio that shows
how the system works and how they deal with the problems to other researchers. This
will help improve the communication among researchers and avoid of the repeated
work.
The Professors and researchers can write/record the documents and put it into the
system. Beside this they can also use the system to retrieve the documents for
education or research purpose. The students can retrieve the documents for study or
research use and may contribute documents too.
The basic requirement of this system is to support information retrieval of the
documents. The document contains not only the traditional text document but also the
sushiltry@yahoo.co.in
Sushil Kulkarni
multimedia including picture, audio or video. So the system must support the multimedia
data type and the operations on them. There may have many kinds of search
requirements like some people may only want to get the picture of the system structure
so it doesnt make sense to retrieve the document as a whole. We should be able to
operate on the pieces of the documents.
Following are representative queries on MDLDS:
(1)
(2)
(3)
(4)
(5)
sushiltry@yahoo.co.in
Sushil Kulkarni
The content format consists of monochrome or bit depth, color space (GRAY, RGB),
Special attributes such as alpha channel or transparency color.
Multimedia database supports most popular desktop publishing image file formats,
including: TIFF, JFIF (more commonly referred to as JPG), BMP, TARGA, EXIF, PCX,
PICT, GIF, CALS, SUN RASTER, FPIX, PNGF, PPMF, PGMF, PBMF, WBMP, and RPIX.
Developers can easily store images created by applications without becoming experts in
image file formats.
4.2 Audio and Video Types
Audio and video services provide the foundation for digital audio and video data in
databases. Digitized audio/video consists of the data (digitized bits) and the attributes
that describe and characterize the data. The minimum collection of attributes includes
the following:
*
*
*
*
*
*
*
*
*
These data attributes describe or characterize the data as it was recorded or produced
by the digital recording device.
sushiltry@yahoo.co.in
Sushil Kulkarni
sushiltry@yahoo.co.in
Sushil Kulkarni
sushiltry@yahoo.co.in
Sushil Kulkarni
sushiltry@yahoo.co.in
Sushil Kulkarni
10
Above that arrow, still within the Oracle9i database (see figure), are two boxes: the
media parser and the media processor. The parser takes multimedia content and
parses out the format and application metadata when that content is entered into the
database. The media processor, primarily based upon the Java Advanced Imaging (JAI)
engine, supports the processing of images within the database. Both the parser and
processor are written in Java, and run within the Oracle9i Java Virtual Machine (JVM).
To the left of the Oracle9i database (see figure) are the special delivery servers. These
servers, connected by plug-ins, get the multimedia content out of the database and
deliver it to thin clients (typically). The RealNetworks G2 streaming server is a good
example of a special delivery server.
To the right of the Oracle9i database (see figure) is a box labeled media content
indexers. These indexers perform functions such as speech recognition and building a
speech-to-text time base for the specialized multimedia content.
6.3.2 Application or Web Server Tier
In the middle tier (see figure below), is the Web server. It is here that Oracle
interMedia provide access class libraries. In the case of JDBC, these are Java classes for
efficient retrieval of multimedia content from the database, and delivery of it to Web
browsers.
sushiltry@yahoo.co.in
Sushil Kulkarni
11
sushiltry@yahoo.co.in
Sushil Kulkarni
12
sushiltry@yahoo.co.in
Sushil Kulkarni
13
Reader and Author. It does make sense that a person can be the Author and
Reader at the same time so the classification hierarchy is (p, o) which means a
Person can be either a Reader or an Author or both.
An author is a person.
An author writes document.
Document contains multimedia content.
sushiltry@yahoo.co.in
Sushil Kulkarni
14
(d) Multimedia content consists of text, image, audio and video. In other
words, document consists of text, image, audio and video.
Let us consider the above statements:
(a) An author is a person.
Author and person are entities. We define name of person (Pname) and PersonType as
an object with attributes and a method to compute an age as follows:
1. Pname type object :
Create type Pname as object (
FirstName VARCHAR (20), // first name
MiddleName VARCHAR (3), // middle name
LastName
VARCHAR (20) // last name
);
1. PersonType object :
Create type PersonType as object(
pid
VARCHAR (12), // user pid
Name
Pname, // name object of the person
Bdate
Date, // birthdate
Pnumber VARCHAR(10), // contact phone number
Profile CLOB // Persons profile image
);
create type body PersonType as
member function Age_f return Integer as
begin
Return Year(sysdate) Year(Bdate);
End Age_f
End;
Now we create an author table as follows:
Create table Author (
aid
CHAR(12) NOT NULL, // author id
person
PersonType // person object
research_field VARCHAR(500), // Research field of the author
primary key (aid)
)
The author id is the primary key of this table so its automatically indexed. Some queries
are about the authors name or the research_field so it might be a good choice to index
the name of the person and research field. The index in name is a composite index
because the search on name will match the last name and first name at the same time.
It can improve the efficiency.
sushiltry@yahoo.co.in
Sushil Kulkarni
15
sushiltry@yahoo.co.in
Sushil Kulkarni
16
Sushil Kulkarni
17
sushiltry@yahoo.co.in
Sushil Kulkarni
did
CHAR
imid
CHAR
Primary key
Foreign Key
Foreign Key
);
18
imid is the identifier of the image media type. A document can have more that one
image media and one image media can be used by more than one document. The
conjoint primary key implements this relationship. Because the did and imidare also the
primary of tables document and imageMediaTable they are declared as foreign key in
this table.
4. Audio object and table:
The Audio inherits the media type so it has all the attributes defined by the media
entity and the following additional attributes
* Title: Title is the theme of audio and it abstract what the content of the audio is
about.
* Introduction: The introduction of the audio gives more detail information to the
audio thanTitle. It is helpful for the search of the audio information.
* Track (BLOB): The audio track of the audio is defined as binary large object.
Audio type and table can be created as follows:
Create type AudioMedia under Media (
Title VARCHAR(500) , // Title of the audio tape
Introduction VARCHAR(5000), // A brief description of audio
Track BLOB // Track of the audio
);
Create table AudioMediaTable (
amid CHAR(12) NOT NULL, // amid of the audio media
Audio AudioMedia, // Audio media object
primary key (id)
);
The amid of the audio media is the primary key of the table AudioMediaTable. The
primary key will ensure the id is unique and is indexed. For query efficiency purposes
the attribute keywords, title and introduction are indexed too.
Create Ind_Audio_Keyword on Audio MediaTable(audio.keywords);
Create Ind_Audio _Title on Audio MediaTable(audio.Title);
Create Ind_Audio _Introduction on Audio
MediaTable(audio.Introduction);
Now we connect an audioMedia table to document using consistOf relationship as
follows:
sushiltry@yahoo.co.in
Sushil Kulkarni
19
20
Sushil Kulkarni
ConsistOfImage
did
title= Elphinstone College
did ,
imid
ImageMediaTable
imid , Image.pixels
imt.Image.pixels
document d,
ConsistsOfImage coi,
ImageMediaTable imt
d.title = Elphinstone College and d.did = coi.did
and coi.imid = imt.imid;
sushiltry@yahoo.co.in
21
Sushil Kulkarni
ConsistOfAudio
did
title= computer
did ,
Document
did
title= Soccer
amid
ConsistOfVideo
did ,
vmid
AudioMediaTable
amid , Audio.Track
VideoMediaTable
vmid , Video.stream
amt.Audio.Track
document d,
ConsistsOfAudio coa,
AudioMediaTable amt
d.title = computer and d.did = coa.did
and coa.amid = amt.amid;
amt.Video.stream
document d,
ConsistsOfVideo cov,
VideoMediaTable vmt
d.title = Soccer and d.did = cov.did
and cov.amid = vmt.vmid;
sushiltry@yahoo.co.in
Sushil Kulkarni
22
interMedia also includes an object data type known as ORDDoc. This multimedia column
type can contain any mixture of ORDImage, ORDAudio, or ORDVideo objects, thus
increasing the flexibility of its multimedia management capability.
sushiltry@yahoo.co.in
Sushil Kulkarni
23
'it1',pictures,20,ORDSYS.ORDImage.init('file', 'image_dir',
'item.jpg')
);
Select photo into image from Item
Where Id = 'it1' for Update;
image.setProperties;
Update Item set photo = image
Where cam_id = 'Cam 1';
End;
The coding above is to set the pointer of it1 to point to the image file of the initialised
image directory. In this case, photo entity of it1 will store pointer value of image name
image.jpg in the directory of C:\adbms\images. This method of storing image is
known as the BFILE technique.
sushiltry@yahoo.co.in