410 likes | 564 Views
Storing and Querying instances XML of OWL Ontologies using Relational Databases. Claudia Becerra, Sergio Jiménez PROYECTO TOPICOS AVANZADOS DE BASES DE DATOS Maestría en Ingeniería de Sistemas y Computación. - Primer Semestre 2006.
E N D
Storing and Querying instances XML of OWL Ontologies using Relational Databases Claudia Becerra, Sergio Jiménez PROYECTO TOPICOS AVANZADOS DE BASES DE DATOS Maestría en Ingeniería de Sistemas y Computación. - Primer Semestre 2006 Presentación primer Artículo: From Ontology to Relational Databases [Gali et al. ’04] ** Imagenes Tomadas de Scientific American Ed. Mayo 2001, T. Berners-Lee, J. Hendler, and O. Lassila. The Semantic Web.
Anuradha Gali1, Cindy X. Chen1, Kajal T. Claypool1 and Rosario Uceda-Sosa2, U. Massachusetts (CSD). From Ontology to Relational Databases, Proceedings at ER 2004 (23rd International Conf. on Conceptual Modeling, Workshop: 1st Int. Workshop on Conceptual Model directed Web Information Integration and Mining COMWIM, Shanghai, China, November 8-12, 2004. Lecture Notes in Computer Science 3289 Springer 2004, pp 278-289 A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99] Tools not specific to the particular subject domain
Anuradha Gali1, Cindy X. Chen1, Kajal T. Claypool1 and Rosario Uceda-Sosa2, U. Massachusetts (CSD). From Ontology to Relational Databases, Proceedings at ER 2004 (23rd International Conf. on Conceptual Modeling, Workshop: 1st Int. Workshop on Conceptual Model directed Web Information Integration and Mining COMWIM, Shanghai, China, November 8-12, 2004. Lecture Notes in Computer Science 3289 Springer 2004, pp 278-289 A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
INSTITUT NATIONAL DE RECHERCHE EN INFORMATIQUE ET EN AUTOMATIQUE A Performance Evaluation of Alternative Mapping Schemes for Storing XML Data in a Relational Database Daniela Florescu - Donald Kossmann A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
XML Mapping approaches • Sistemas Nativos (e.g. Lotus Notes) • OODBMSs (e.g. O2 ) • RDBMSs A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Ejemplo guía A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Ejemplo guía A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Ejemplo guía (XML-QL) A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
XML to RDBMS Mapping Approaches • Edge Approach 2. Attribute Approach. 3. Universal Approach 4. Normalized Universal Approach 5. Attribute Approach using inlining A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
1. Edge Approach A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
2. Attribute Approach A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
3. Universal Approach A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
4. Normalized Universal Approach /Oracle 8 A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
5. Attribute approach using Inlining A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Conclusiones del trabajo de Florescu et al A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Conclusiones del trabajo de Florescu et al A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Conclusiones del trabajo de Florescu et al A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
XML to RDBMS Mapping Approaches • Edge Approach 2. Attribute Approach. 3. Universal Approach 4. Normalized Universal Approach 5. Attribute Approach using inlining (***) XML DTDs to Relational Schema 1. Basic Inlining Approach 2. Shared Inlining Approach 3. Hybrid Inlining Approach A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Jayavel Shanmugasundaram, Kristin Tufte, Chun Zhang, Gang He, David J. DeWitt, Jeffrey F. Naughton: Relational Databases for Querying XML Documents: Limitations and Opportunities. VLDB'99, Proceedings of 25th International Conference on Very Large Data Bases 1999, Edinburgh, Scotland, UK, pp 302-314 A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Ejemplo Guía Books.xml Books.dtd A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Ejemplo Guía – DTD Graph DTD Graph A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
1. Basic Inlining Approach. A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
2. Shared Inlining Approach A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
3. Hybrid Inlining Approach A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Mapping OWL to Relational SchemaJustificación • Las ontologías están ganando popularidad e importancia y comienzan a ser el esquema preferido para representar información en la Web. • Representación persistente y escalable es crucial. • Los RDBMS son eficientes, pero una representación equivalente de la ontología en el esquema relacional requiere muchos joins, que son operaciones costosas. • Representar una ontología OWL en un esquema general en un RDBMS es sencillo pero tiene pobre rendimiento. A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Mapping OWL to Relational Schema OWL2DB • Determinar un nivel de profundidad depth, con el cual se va a dividir el árbol de jerarquía de clases. • Iniciar desde la RootClasse identificar sus descendientes hasta el nivel depth • Recolectar todos los nombres de clases y sus attributos en el nivel depth • Agrupar los nombres por clases disjuntas en tablas • Recolectar las instancias (datos) • Conectarse a la Base de datos, crear las tablas e insertar las instancias como filas. • Entrar recursivamente en el siguiente nivel A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Mapping OWL to Relational SchemaOWL2DB (1) A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Mapping OWL to Relational SchemaOWL2DB (2) A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Mapping OWL to Relational SchemaOWL2DB (3) Clases A y B disjuntas A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Mapping OWL to Relational SchemaOWL2DB (2) A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Resultados OWL2DB Selecten wine.owl • Select hasColor, hasLocation, hasBody, hasSugar from Wine Edge Attribute Universal Univ. Norm. Basic Inlining Shared Inlining Hybrid Inlining OWL2DB A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Resultados OWL2DB Deleteen wine.owl • Delete hasSugar from all the Wines that have hasColor=Red Edge Attribute Universal Univ. Norm. Basic Inlining Shared Inlining Hybrid Inlining OWL2DB A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Resultados OWL2DB Updateen wine.owl • Update the hasBody for all the Wines located in Sauterine Region Edge Attribute Universal Univ. Norm. Basic Inlining Shared Inlining Hybrid Inlining OWL2DB A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Resultados OWL2DB Joinen wine.owl • List all the Wines made in Bordeaux (several location) Edge Attribute Universal Univ. Norm. Basic Inlining Shared Inlining Hybrid Inlining OWL2DB A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Fin de la presentación. A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Slides Opcionales... A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]
Marco Teórico – Ejemplo OWL <?xml version="1.0"?> <rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:prod="http://www.URL/product#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#"> ... <rdf:Description rdf:about="http://www.URL/product#Computers"> <rdf:type> <rdf:Description rdf:about="http://www.w3.org/2002/07/owl#Class"/> </rdf:type> <rdfs:subClassOf> <rdf:Description rdf:about="http://www.URL/product#IT"/> </rdfs:subClassOf> <owl:unionOf rdf:parseType="Collection"> <rdf:Description rdf:about="http://www.URL/product#DesktopComputers"/> <rdf:Description rdf:about="http://www.URL/product#LaptopComputers"/> <rdf:Description rdf:about="http://www.URL/product#WorkStations"/> <rdf:Description rdf:about="http://www.URL/product#Servers"/> </owl:unionOf> </rdf:Description> ... A performance evaluation of Alternative Mapping Schemes for Storign XML Data in a Relational Database [Florescu et al. '99]