A SQL-based Approach for Mapping Relational Data to RDF Souripriya Das and Seema Sundara Database Semantic Technologies Group, Oracle.

Slides:



Advertisements
Similar presentations
Enhancing Productivity with MySQL 5.6 New Features
Advertisements

9 Copyright © 2004, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
9 Creating and Managing Tables. Objectives After completing this lesson, you should be able to do the following: Describe the main database objects Create.
Creating Tables. 2 home back first prev next last What Will I Learn? List and provide an example of each of the number, character, and date data types.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Your customer as a segment of one That changes every second! Hein Van Der Merwe Chief.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1.
BACS 485—Database Management Advanced SQL Overview Advanced DDL, DML, and DCL Commands.
1 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
Semantic Web Introduction
Copyright  Oracle Corporation, All rights reserved. 10 Creating and Managing Tables.
Introduction To SQL Lynnwood Brown President System Managers LLC Copyright System Managers LLC 2003 all rights reserved.
1 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
ISD3 Lecture 4 - Databases, SQL and MySQL. dept deptno dname location emp empno ename not null job not null hiredate sal comm manager The EMP DEPT database.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle SQL Developer What’s New in Version 4.1 Jeff Smith
The Safe Harbor The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. JD Edwards Summit The Newest JDE Module – Rental Management Joel Sandberg Sales Consultant.
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
Application Express 4.1 New Features Hilary Farrell, Principal Member of Technical Staff, Oracle.
Introduction to DBMS and SQL Introduction to DBMS and SQL GUIDED BY : MR. YOGESH SAROJ (PGT-CS) MR. YOGESH SAROJ (PGT-CS) Presented By : JAYA XII –COM.
CS370 Spring 2007 CS 370 Database Systems Lecture 7 The Relational model.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1 Quick Tutorial – Part 1 Using Oracle BPM with Open Data Web Services David Webber.
Oracle E-Business Suite Order Management: Presenting the HTML and Mobile User Experience Durgaprasad Bodapati Director, Product Management Bhavana Sharma.
o At the end of this lesson, you will be able to:  Describe the life-cycle development phases  Discuss the theoretical and physical aspects of a relational.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
Copyright  Oracle Corporation, All rights reserved. I Introduction.
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
RMB Billing UX Design Concepts / Proposals Peter Picone.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1 Quick Tutorial – Part 2 Open Data Web Services for Oracle BPM August, 2013 Forms.
1Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8 Contract Management.
1 Information Retrieval and Use (IRU) CE An Introduction To SQL Part 1.
Copyright  Oracle Corporation, All rights reserved. 4 Accessing a Database Using JBCL.
10 Creating and Managing Tables Objectives At the end of this lesson, you will be able to: Describe the main database objects Create tables Describe.
10-1 Copyright  Oracle Corporation, All rights reserved. Database Objects ObjectDescription TableBasic unit of storage; composed of rows and columns.
Copyright  Oracle Corporation, All rights reserved. 10 Creating and Managing Tables.
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
Session 2: SQL (A): Parts 1 and 2 Original materials supplied by the Oracle Academic Initiative (OAI). Edited for classroom use by Professor Laku Chidambaram.
“This presentation is for informational purposes only and may not be incorporated into a contract or agreement.”
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Using Edition-based redefinition with PL/SQL How to deploy database code changes.
1Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
11-1 Copyright  Oracle Corporation, All rights reserved. What Are Constraints? Constraints enforce rules at the table level. Constraints prevent.
Oracle 11g: SQL Chapter 4 Constraints.
Copyright  Oracle Corporation, All rights reserved. 11 Including Constraints.
Copyright  Oracle Corporation, All rights reserved. Introduction.
Chapter 4 Constraints Oracle 10g: SQL. Oracle 10g: SQL 2 Objectives Explain the purpose of constraints in a table Distinguish among PRIMARY KEY, FOREIGN.
SQL: Part 1 Original materials supplied by the Oracle Academic Initiative (OAI). Edited for classroom use by Professor Laku Chidambaram. Not for commercial.
11 Including Constraints Objectives At the end of this lesson, you will be able to: Describe constraints Create and maintain constraints At the.
OWLED 2008 DC Use of OWL and SWRL for Semantic Relational Database Translation Matthew Fisher, Mike Dean, Greg Joiner {mdean, April 1.
Workforce Scheduling Release 5.0 for Windows Implementation Overview OWS Development Team.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Planning & Budgeting Cloud Service (PBCS) Overview Business Analytics Product Group.
9-1 © Prentice Hall, 2007 Topic 9: Physical Database Design Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Altering Tables and Constraints Database Systems Objectives Add and modify columns. Add, enable, disable, or remove constraints. Drop a table. Remove.
1 Theory, Practice & Methodology of Relational Database Design and Programming Copyright © Ellis Cohen Relational State Assertions These slides.
Creating and Managing Tables 14. ObjectivesObjectives After completing this lesson, you should be able to do the following: After completing this lesson,
CSCI N311: Oracle Database Programming 5-1 Chapter 15: Changing Data: insert, update, delete Insert Rollback Commit Update Delete Insert Statement –Allows.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 1.
SQL Statements SELECT INSERTUPDATEDELETECREATEALTERDROPRENAMETRUNCATECOMMITROLLBACKSAVEPOINTGRANTREVOKE Data Retrieval Language (DRL) Data Retrieval Language.
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. How Can RDF and OWL Coexist with Property Graph Zhe Wu Architect Oracle Spatial and.
12 Copyright © 2004, Oracle. All rights reserved. Application Migration: Overview.
Closing the Query Processing Loop in Oracle 11g Allison Lee, Mohamed Zait.
Including Constraints
Building Trustworthy Semantic Webs
Manipulating Data Schedule: Timing Topic 40 minutes Lecture
Interacting with the Oracle Server
Writing Correlated Subqueries
ORACLE SQL Developer & SQLPLUS Statements
OpenWorld 2018 How to Combine Data from Source Sites
QAD Reporting Framework
OpenWorld How to Prepare Data from Business Intelligence Cloud Service
1.
Presentation transcript:

A SQL-based Approach for Mapping Relational Data to RDF Souripriya Das and Seema Sundara Database Semantic Technologies Group, Oracle

THE FOLLOWING IS INTENDED TO OUTLINE OUR GENERAL PRODUCT DIRECTION. IT IS INTENDED FOR INFORMATION PURPOSES ONLY, AND MAY NOT BE INCORPORATED INTO ANY CONTRACT. IT IS NOT A COMMITMENT TO DELIVER ANY MATERIAL, CODE, OR FUNCTIONALITY, AND SHOULD NOT BE RELIED UPON IN MAKING PURCHASING DECISION. THE DEVELOPMENT, RELEASE, AND TIMING OF ANY FEATURES OR FUNCTIONALITY DESCRIBED FOR ORACLE'S PRODUCTS REMAINS AT THE SOLE DISCRETION OF ORACLE. 2

Architecture Diagram for RDB2RDF processing Relational Database Mapping Language Processor Mapping Specification RDF schema for query writing SPARQL to SQL translator Mapping RDF concepts to DB objects SQL query RDB2RDF Mapper Query Writer SPARQL query SQL Language Processor SQL statements Source Database Client Side

Overview Basis for defining an RDFS/OWL class and its properties based on relational data stored in a source database: – A SQL query specifying arbitrary transformation of source relational data – Related foreign and unique (or primary) key constraint definitions. Client side capabilities may vary – Strong-DB: An RDBMS with support for Views and Constraints on Views. (Example: Oracle database server) – No-DB: Only connects to database using JDBC or ODBC. Proposed mapping language (Leverage SQL on source database and if available, SQL on client side) – Strong-DB No new language. Employ some conventions with SQL (e.g., when naming Views, View cols, and constraints). – No-DB Simple language to specify mapping between RDF classes, properties and SQL queries, query projections, constraints.

DB View RDF Class and Properties InstURI class John Jane Brad Glen Kurt R&D Sales c_ref_deptno empnoenamejobdeptno c_prm_empno part full intrn full etype rdf:type job- based classes status- based classes

Example: DEPT view defines Class and Properties SELECT CREATE VIEW AS FROM dept, dname, loc, deptno InstURI ALTER VIEW add constraint unique ( ) disable novalidate; Unique Key

Example: EMP view defines Class and Properties SELECT CREATE VIEW AS FROM emp InstURI rdf:type, ename,, empno, deptno, job ALTER VIEW add constraint primary key ( ) disable novalidate; primary Key ALTER VIEW add constraint foreign key ( ) references ( ) disable novalidate; foreign Key

Example: EMP view with multiple rdf:type columns ALTER VIEW add constraint primary key ( ) disable novalidate; primary Key ALTER VIEW add constraint foreign key ( ) references ( ) disable novalidate; foreign Key SELECT CREATE VIEW AS FROM emp InstURI, ename,, empno, deptno, job,, etype

Subproperties of rdf:type rdf:type rdfs:subPropertyOf

Oracle Confidential SPARQL Query: Involving generic rdf:type SELECT ?x rdf:type ?x ?ename. ?x ?ename WHERE { } SELECT e e.instURI x, e. ename FROM WHERE e. = or e. =

Prefix-based DB identifiers (stay within length-limits) RDF_PREFIX_MAP$ ViewPrefixExpansion xyz:empxyz: Prefix for class name xyz:empemp: Prefix for cols/cons xyz:deptxyz: Prefix for class name xyz:deptdept: Prefix for cols/cons ADD Unique constraint (View, Prefix) ADD Unique constraint (View, Expansion)

No DB: info ViewNameSQLdefString xyz:dept xyz:emp SELECT FROM dept, dname, loc, deptno InstURI dept:Name dept:Location dept:deptno SELECT FROM emp InstURI emp:Name rdf:type emp:deptNum emp:empno emp:job, ename,, empno, deptno, job

No DB: View Constraint info ConsNameConsTypeViewNameRefConsName dept:c_unq_deptnoUniquexyz:dept emp:c_prm_empnoPrimaryxyz:emp emp:c_ref_deptnoReferencexyz:empdept:c_unq_deptno ConsNameViewNameColNameColPosInKey dept:c_unq_deptnoxyz:deptdept:deptno1 emp:c_prm_empnoxyz:empemp:empno1 emp:c_ref_deptnoxyz:empemp:deptNum1

No DB: info ViewNameColPosProperty xyz:dept1 InstURI xyz:dept2dept:deptno xyz:dept3dept:Name xyz:dept4dept:Location xyz:emp1 InstURI xyz:emp2emp:empno xyz:emp3emp:Name xyz:emp4rdf:type xyz:emp5emp:job xyz:emp6emp:deptNum xyz:emp0emp:c_ref_deptno

No DB: A simple syntax for Classes Class (ViewName, SQLdefString) Class (xyz:dept, ) Class (xyz:emp, )

No DB: A simple syntax for Properties 1 Property (PropertyName, ViewName, ColPos) Property (dept:InstURI, "xyz:dept, 1) Property (dept:deptno, "xyz:dept, 2) Property (dept:Name, xyz:dept, 3) Property (dept:location, xyz:dept, 4) Property (emp:InstURI, xyz:emp, 1) Property ("emp:empno, xyz:emp, 2) Property (emp:Name, xyz:emp, 3) Property (emp:rdf:type, xyz:emp, 4) Property (emp:job, xyz:emp, 5) Property (emp:deptNum, xyz:emp, 6) Property (emp:c_ref_deptno, xyz:emp, 0) 1 Inverse function specification for properties not shown, but can be added easily. Range information can be derived from type info obtained from SQL engine at source database.

No DB: A simple syntax for Constraints Constraint (ConsName, ConsType, ViewName, RefConsName) Constraint (dept:c_unq_deptno, Unique, xyz:dept, NULL) Constraint (emp:c_prm_empno, Primary, xyz:emp, NULL) Constraint (emp:c_ref_deptno, Reference, xyz:emp, dept:c_unq_deptno) ConstraintColumn (ConsName, ViewName, ColName, ColPosInKey) ConstraintColumn (dept:c_unq_deptno, xyz:dept, dept:deptno, 1) ConstraintColumn (emp:c_prm_empno, xyz:emp, emp:empno, 1) ConstraintColumn (emp:c_ref_deptno, xyz:emp, emp:deptNum, 1)

Summary SELECT FROM WHERE Group By Having … SELECT FROM WHERE Group By Having … class properties Inst URI class properties Inst URI Proposed mapping language (Leverage SQL on source database and if available, SQL on client side) – Strong-DB No new language. Employ some conventions with SQL (e.g., when naming Views, View cols (projections), and constraints). – No-DB Simple language to specify mapping between RDF classes, properties and SQL queries, query projections, constraints. SQL query Projections constraints View

Oracle Confidential