Docsity

Information Integration: Semistructured Data and Mediators, Slides of Information Integration

Partial preview of the text

Download Information Integration: Semistructured Data and Mediators and more Slides Information Integration in PDF only on Docsity!

Information Integration

Mediators

Semistructured Data

Answering Queries Using Views

docsity.com

Importance of Information

Integration

Very many modern DB applications involve combining databases.

Sometimes a “database” is not stored in a DBMS --- it could be a spreadsheet,flat file, XML document, etc.

docsity.com

Challenges

Legacy databases : DB’s get used formany applications.

‹

You can’t change its structure for thesake of one application, because it willcause others to break.

Incompatibilities : Two, supposedlysimilar databases, will mismatch inmany ways.

docsity.com

Examples: Incompatibilities

Lexical :

addr

in one DB is

address

in

another.

Value mismatches : is a “red” car the

same color in each DB?

Is 20 degrees

Fahrenheit or Centigrade?

Semantic : are “employees” in each

database the same?

What about

consultants?

Retirees?

Contractors?

docsity.com

Integration Architectures

Federation : everybody talks directlyto everyone else.

Warehouse : Sources are translatedfrom their local schema to a globalschema and copied to a central DB.

Mediator : Virtual warehouse --- turnsa user query into a sequence ofsource queries.

docsity.com

Federations

Wrapper

Wrapper

Wrapper

Wrapper

Wrapper

Wrapper

docsity.com

A Mediator

Result

User query

Mediator

Wrapper

Wrapper

Query

Query

Query

Query

Result

Result

Result

Result

Source 1

Source 2

docsity.com

Two Mediation Approaches

Query-centric : Mediator processesqueries into steps executed at sources.

View-centric : Sources are defined interms of global relations; mediator findsall ways to build query from views.

docsity.com

Example: Query-Centric

Mediator might start by querying each bus manufacturer for model-protocol pairs.

Š

The wrapper would turn them into triples byadding the manf component.

Then, for each protocol returned, mediator queries disk manufacturers for disks withthat protocol.

Š

Again, wrapper adds manf component.

docsity.com

Example: View-Centric

Sources’ capabilities are defined in terms of the global predicates.

Š

E.g.,Quantum’s disk database could bedefined by QuantumView(M,P) =Disks(’Quantum’,M,P).

Mediator discovers all combinations of a bus and disk “view,” equijoined on theprotocol components.

docsity.com

Semistructured Data

A data model that is suited for integrating (slightly) incompatiblesources.

Based on labeled graphs.

Key attribute: flexibility --- there is no schema; sources do not all need tohave the same attributes.

docsity.com

Semistructured Data --- (2)

Use semistructured data in place of the global schema.

Š

Easier to translate sources with varyinglocal schemas into one flexible schema.

XML and its attendant standards (XSL, XQUERY, etc.) are really animplementation of semistructured data.

docsity.com

XML and Semistructured Data

XML (Extensible Markup Language) uses a semistructured data model to representdocuments.

Example:

Joe’s

Maple

St.

docsity.com

Semistructured Data and Logic ‹

You can represent a semistructured data graph (or XML document) asrelations or predicates:

Š

arcs(From, To, Label)

Š

data(Node, Value)

But queries about paths in the graph become complex joins.

docsity.com