Technical university of Liberec Faculty of mechatronics Semantic
Technical university of Liberec Faculty of mechatronics Semantic integration of data in database systems and ontologies Ing. Petra Šeflová
Integration of data - merging a set given schemas into global schema Semantic integration - part of concept integration of data - be focusing on data exchange between applications in the light of their meaning, content and required business rules 2
Integration of data Example Find houses with four bathrooms and price under $500. 000 mediated schema realestate. com Source schema wrapper homeseekers. com Source schema wrapper greathomes. com A data integration system in the real estate domain. 3
Applications q q q Catalog integration in B 2 B applications E-commerce Bioinformatics P 2 P Databases Agent communications Web services Integration 4
Key commonalities application of Semantic integration 1. q Use structured representation (e. g. relational schemas and XML DTDs) Must resolve heterogenities with respect to the schema and their data § Enable their manipulation § § § Merging the schemas Computing differences Enable translation of data and queries across the schemas/ontologies 5
• Database schema – Present definition physical system layout (database) • Ontology – System of knowledge about world • Claimless on coherence (lot of partial ontology) • Frequently specific created artefact – Definition of Gruber: Ontology is formal, explicit specification sharing conceptualization. 6
Problems of Semantic integration 1. Semantic of elements can be inferred from only a few information sources 1. 2. 3. 2. 3. 4. Creators of data Dokumentation Associated schema and data Schema element are typically matched based on clues in the schema and data Schema and data clues are often incomlpete Matching is often subjective, depending in the application 7
Matching process • Take as input two schemas/ontologies, each consisting of a set discrete entities, and determine as output the relationships holding between these entities 8
Schema S Houses Location Price ($) Agent-id Atlanta, GA 360, 000 32 Raleigh, NC 430, 000 15 Agents Id Name city state 32 Mike Brown Athlanta GA 15 Jean Laup Relaign NC Schema T Area listprice Agentaddress Agentname Denver, CO 550, 000 Boulder, CO Laura Smith Atlanta, GA 370, 800 Athens, GA Mike Brown Example : The schema of two relational database S and T on house listing, and the semantic correspondence between them 9
Matching techniques Two groups q Rule-based q Learning-based 10
Rule-based solutions 1. 2. Many of the early as well as current matching solutions employ hand-crafted rules Exploit schema information 1. 2. 3. 4. 3. Element names Data types Structures Integrity constraints Can provide a quick and concise method to capture valuable user knowledge about domain 11
Rule-based solutions q Benefits q q „relatively inexpensive“ Do not require training Operate only on schema Drawback q q They cannot exploit data instance effectively They cannot exploit previous matching efforts For example : q q Tran. Scm DIKE MOMIS CUPID 12
• Tran. Scm – Employs rules such as „two elements match if they have the same name (allowing synonyms) and the same number of subelements • DIKE – Computes similarity between two schema element based on similarity of the characteristics of the element and similarity of related elements • MOMIS – Compute similarity of schema elements as a weighted suma of the similarity of name, data type and substructure • CUPID – Employs rules that categorize elements based on names, data types and domains 13
Learning-based solutions q Exploit both schema and data information They do exploit previous matching efforts q Examples: q q q Sem. Int system LSD system i. MAP system Autocomplex Automatch 14
• Sem. Int – Uses a neuralnetwork learning approaches – It matched schema elements based on attribute specifications and statistic of data content • LSD – Employs Naive Bayes over data instance – Develop novel learning solution exploit the hierarchical nature of XML data • i. MAP – Matches the schemas of two sources by analyzing the description of objects that are found in both sources • Autoplex and Automatch – Use a Naive Bayes learning approach that exploits data instances to match element 15
The Matching dimensions • Input dimension • Process dimension • Output dimensions 16
Input dimension • Concern the kind of input on which algorithm operate • First dimension – Algorithms depending on the data/ conceptual model in which ontologies or schemas are expressed • Second dimension – Depend on the kind of data algorithms exploit – Different approaches exploit different information of the input data/conceptual models • Schema-level information • Instance data • Exploit both 17
Process dimensions • Classification of the matching process could be based on its general properties • It depends on the approximate or exact nature of its computation – Exact algorithms compute the absolute solution to a problem – Approximate algorithms sacrifice exactness to performance • Three large classes based on intrinsic input, external resources or some semantic theory – Syntactic – External – Semantic 18
Output dimensions • Concern the form of the result they produce – – – • One-to-one correspondence Is any relation suitable Has it to be final mapping element System deliver a graded answer • Correspondences hold with 98% confidence • Correspondences hold with 4/5 probability • All-or-nothing answer – Correspondences using distance measuring – Kind of relations between entities a system can provide • Equivalence • Subsumption • Incompatibility 19
Classification of elementary schema-based matching approaches Schema-Based Matching Techniques Element-level Syntactic Structure-level External Syntantic External Semantic Granuality/Input Interpretation layer String. Based Language. Based Linguistic Resource Linguistic Terminological Contraint. Based Alignment reuse Upper Level Formal ontologies Internal Graph. Based Taxonomy- Repository Based of Structure Relational Structural Schema-Based Matching Techniques Model. Based Basic Techniques layer Semantic 20
Element-level vs structure-level q q q Element-level matching techniques compute mapping elements by analyzing entities in isolation Ignoring their relation with other entities Structure-level techniques compute mapping elements by analyzing how entities appear together in a structure 21
Internal vs external techniques q Interal q Exploiting information which comes only with input schema/ontologies q q q Syntactic interpretation of input Sematic interpretation of input External q q Exploit auxiliary (external) resources of domain to interpret the input Resources : q q Human input Some thesaurus expressing the relationship between terms 22
Schema Matching vs Ontology Matching Differences q Database schema often do not provide explicit semantics for their data q q q Semantics is usually specified explicitly at designtime Usually performed with the help of techniques trying to guess the meaning encoded in the schemas Ontologies are logical systems that themselves obey some formal semantics q Primarily try to exploit knowledge explicitly encoded in the ontologies 23
Schema Matchin vs Ontology Matching Commonalities Ontologies and schemas are similar in the sense : q q Provide a vocablurary of terms that describes a domain of interest Constrain the meaning of terms used in vocablurary Schema and ontologies are found in such enviroment as the Semantic web 24
Sources : • Natalya F. Noy : Semantic Integration: A survey of Ontology-Based Approaches • • • An. Hai Doan, Alon Y. Haley: Semantic Integration in the Database Community: A Brief Survey P. Schvaiko, J. Euzenat: A Survey of schema-based Matching Approaches G. Antonious, F. van Harmelen: A Semantic Web Primer R. Araújo, H. Sofia Pinto: Toward Semantics-based ontology similarity H. Wache, T. Vögele, U. Visser, H. Stuckenschmidt, G. Shuster, H. Neumann and S. Húbner: Ontology-based integration of information – A survey existing Approaches E. Rahm, P. A. Bernstein: A survey of approaches to automatic schema matching 25
- Slides: 25