RDF and RDB 1 Some slides adapted from a presentation by Ivan Herman at the Semantic Technology & Business Conference, 2012.

Slides:



Advertisements
Similar presentations
RDF and RDB 1 Some slides adapted from a presentation by Ivan Herman at the Semantic Technology & Business Conference, 2012.
Advertisements

Database Management Systems, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
Semantic Web Introduction
RDF and RDB 1 Some slides adapted from a presentation by Ivan Herman at the Semantic Technology & Business Conference, 2012.
™ Suggestions for Semantic Web Interfaces to Relational Databases Mike Dean W3C Workshop on RDF Access to Relational Databases Cambridge,
Attribute databases. GIS Definition Diagram Output Query Results.
MS Access 2007 IT User Services - University of Delaware.
DartGrid Browser-based mapping tool of SQL to RDF Point Template Zhejiang University & OpenLink Software.
IST Databases and DBMSs Todd S. Bacastow January 2005.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Publishing data on the Web (with.
RDF: Concepts and Abstract Syntax W3C Recommendation 10 February Michael Felderer Digital Enterprise.
Managing & Integrating Enterprise Data with Semantic Technologies Susie Stephens Principal Product Manager, Oracle
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Rajashree Deka Tetherless World Constellation Rensselaer Polytechnic Institute.
The Relational Model These slides are based on the slides of your text book.
Relational Data Model, R. Ramakrishnan and J. Gehrke with Dr. Eick’s additions 1 The Relational Model Chapter 3.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
Logics for Data and Knowledge Representation
Database Support for Semantic Web Masoud Taghinezhad Omran Sharif University of Technology Computer Engineering Department Fall.
1 © 2012 OpenLink Software, All rights reserved. Virtuoso - Column Store, Adaptive Techniques for RDF Orri Erling Program Manager, Virtuoso Openlink Software.
Relational Databases to RDF (a.k.a RDB2RDF) Juan F. Sequeda Dept of Computer Science University of Texas at Austin.
Master Informatique 1 Semantic Technologies Part 11Direct Mapping Werner Nutt.
Querying with SPARQL Tuesday, October 28, 2014 Technical Exchange on Network Management Interoperability Andrea Westerinen JHU-APL/Nine Points Solutions.
1 The Relational Model. 2 Why Study the Relational Model? v Most widely used model. – Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. v “Legacy.
Efficient RDF Storage and Retrieval in Jena2 Written by: Kevin Wilkinson, Craig Sayers, Harumi Kuno, Dave Reynolds Presented by: Umer Fareed 파리드.
RELATORS, ROLES AND DATA… … similarities and differences.
OWLED 2008 DC Use of OWL and SWRL for Semantic Relational Database Translation Matthew Fisher, Mike Dean, Greg Joiner {mdean, April 1.
RDF and Relational Databases
© 2009 OpenLink Software, All rights reserved. Mapping Relational Databases to RDF with OpenLink Virtuoso Orri Erling - Program Manager, Virtuoso.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
Dr. Alexandra I. Cristea SPARQL Exerciess.
Overview of the Semantic Web Ralph R. Swick World Wide Web Consortium (W3C) 17 October 2009.
1 RDF Storage and Retrieval Systems Jan Pettersen Nytun, UiA.
Linking Ontologies to Spatial Databases
Databases and DBMSs Todd S. Bacastow January
DBM 380 AID Focus Dreams/dbm380aid.com
DEPTT. OF COMP. SC & APPLICATIONS
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Components.
RDF and RDB 2 D2RQ.
Tutorial on Semantic Web
Triple Stores.
RDF and RDB 2 D2RQ.
DBM 380 aid Education Begins/dbm380aid.com
DBM 380 HELP Exciting Results – dbm380help.com
How does the Semantic Web Work?
Created by Kamila zhakupova
Overview of the Semantic Web Ralph R
Selecting the right database for your semantic storage needs
Translation of ER-diagram into Relational Schema
DBM 380 Competitive Success/snaptutorial.com
DBM 380 Education for Service/snaptutorial.com
DBM 380 Teaching Effectively-- snaptutorial.com
Recording RDA data as linked data
CS 174: Server-Side Web Programming February 12 Class Meeting
Database Processing: David M. Kroenke’s Chapter One: Introduction
Logics for Data and Knowledge Representation
Database Processing: David M. Kroenke’s Chapter One: Introduction
The Relational Model Relational Data Model
Relational Databases The Relational Model.
Relational Databases The Relational Model.
Triple Stores.
Database Design Hacettepe University
RDA Community and linked data
INFO/CSE 100, Spring 2006 Fluency in Information Technology
RDF and RDB 2 D2RQ.
Graph Data on the Web: extend the pivot, don’t reinvent the wheel
DATABASE TECHNOLOGIES
Triple Stores.
Linked Open Data in 10 Minutes Sandro Hawke, W3C
Presentation transcript:

RDF and RDB 1 Some slides adapted from a presentation by Ivan Herman at the Semantic Technology & Business Conference, 2012.

Mapping Relational data to RDF Suppose we have data in a relational database that we want to export as RDF Choose an RDF vocabulary to represent the data Define a mapping from the relational tables to RDF Then either: Materialize the RDF triples from the database using the mappings Use a server to dynamically access the relational data given a SPARQL query Use a DBMS that directly supports RDF (e.g., Oracle 11g, DB2)

Many RDB systems can handle RDF Relational database vendors realize the importance of the Semantic Web market Many systems have a “hybrid” view: Traditional, relational storage, usually coupled with SQL RDF storage, usually coupled with SPARQL Examples include Oracle 11g, IBM’s DB2 and OpenLink Virtuoso The model involves exporting relational data to RDF

Exporting relational data to RDF Export does not necessarily mean physical conversion for very large databases a “duplication” would not be an option systems may provide SPARQL⇔SQL “bridges” to make queries on the fly Result of export is a “logical” view of the relational content

Simple export: Direct Mapping Provide a canonical RDF “view” of relational tables Only needs the information in the RDB Schema

Direct mapping approach Each column name provides a predicate ISBN Author Title Publisher Year 0006511409X id_xyz The Glass Palace id_qpr 2000 0007179871 The Hungry Tide 2004 Each row is a subject foreign keys refer to subjects in another table Cell values are literal objects ID Name Homepage id_xyz Ghosh, Amitav http://www.amitavghosh.com

Direct mapping approach Tables RDB Schema “Direct Graph” RDF graph generated from relational database with its schema Can automatically generate an SQL query to answer a SPARQL query that directly uses the relational DB

Pros and cons of Direct Mapping Advantages of Direct mapping Simple, does not require any other concepts Know schema ⇒ know RDF graph structure Know RDF graph structure ⇒ good idea of schema (!) Disadvantages: Resulting may not be what application wants Except for foreign keys, all cell values become literals, i.e. strings, not things Don’t want to force the database to be re-designed to expose more cell values as objects

Extended mapping approach Tables Direct Mapping RDB Schema “Direct Graph” Graph Processing (Rules, SPARQL, …) Final, Application Graph

Beyond Direct Mapping: R2RML R2RML: RDB to RDF Mapping Language W3C recommendation 9/2012 link Separate vocabulary to control the details of the mapping, e.g.: finer control over choice of the subject creation of URI references from cells predicates may be chosen from a vocabulary datatypes may be assigned etc. Produce final RDF graph in one step

Beyond Direct Mapping: R2RML RDB Schema R2RML Instance Tables R2RML Mapping Final, Application Graph

Relationships to the Direct Mapping Fundamentals are similar: Each row => set of triples with common subject Direct mapping is a “default” R2RML mapping Which approach? depends on local tools, personal experiences and background,… You can begin with a “default” R2RML, and gradually refine it

R2RML D2RQ was a practical system first devel-oped in 2004 that is widely used W3C formed a RDB2RDF working group in 2009 to develop a standard R2RML: RDB to RDF Mapping Language is a W3C recommendation since 2013-09-27 Several implementations are available