ONTOLOGY ENGINEERING Lab #9 - November 3, 2014. Linking Relational Databases to Ontologies 2  Relational databases are still a common means of storing.

Slides:



Advertisements
Similar presentations
Dr. Leo Obrst MITRE Information Semantics Information Discovery & Understanding Command & Control Center February 6, 2014February 6, 2014February 6, 2014.
Advertisements

© 2012 Entrinsik, Inc. Informer Administration Exploring the system menu and functions PRESENTER: Jason Vorenkamp| Informer Software Engineer| March 2012.
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
Java Script Session1 INTRODUCTION.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Query Manager. QM is a collection of tools you can use to obtain information from the AS/400 database Used to –select, arrange, and analyze information.
ORACLE Lecture 1: Oracle 11g Introduction & Installation.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
EValid Getting Started. Agenda Introduction to eValid First experience of using eValid Recording and Site Analysis in eValid.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Introduction to eValid Presentation Outline What is eValid? About eValid, Inc. eValid Features System Architecture eValid Functional Design Script Log.
Pan-European infrastructure for Ocean & Marine Data management An EU Integrated research Infrastructure Initiative (I3) MIKADO : Java tool for XML Creation.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
TIBCO Designer TIBCO BusinessWorks is a scalable, extensible, and easy to use integration platform that allows you to develop, deploy, and run integration.
Linux Operations and Administration
Getting Started with Dreamweaver
SJSU CS157B Dr. Lee1  2004 Jenny Mitchell Two Useful Tools You Can’t Live Without by Jenny Mitchell SJSU CS157B Section PHP and MySQL.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
RDF FOR DEVELOPERS Paul Groth Thanks to Eyal Oren, Stefan Schlobach for slides.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
CSCI 6962: Server-side Design and Programming
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Rajashree Deka Tetherless World Constellation Rensselaer Polytechnic Institute.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
1 Sunitha Ramanujam 1, Anubha Gupta 1, Latifur Khan 1, Steven Seida 2, Bhavani Thuraisingham 1 1 The University of Texas at Dallas 2 Raytheon Company *Funded.
1 Overview SUNY Business Intelligence Initiative (SBII) Library Dashboards Circulation Analysis Collection Analysis.
INTERNET APPLICATION DEVELOPMENT For More visit:
Back to content Final Presentation Mr. Phay Sok Thea, class “2B”, group 3, Networking Topic: Mail Client “Outlook Express” *At the end of the presentation.
ASP.NET Programming with C# and SQL Server First Edition
SQL HW1 Turn in as a hardcopy at the start of next class period. You may work this assignment in groups.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
SITools Enhanced Use of Laboratory Services and Data Romain Conseil
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
The In’s and Out’s of the IIS 6.0 Migration Tool The In’s and Out’s of the IIS 6.0 Migration Tool Chris Adams Web Platform Supportability Lead Microsoft.
Master Informatique 1 Semantic Technologies Part 11Direct Mapping Werner Nutt.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Semantic Web State of SemWeb Promotes flexibility, software reuse. SOA Styled architecture that exposes business processes and rules regarding IT.
Using OUI to install Oracle9i Release 2 on an OpenVMS System.
Searching Business Data with MOSS 2007 Enterprise Search Presenter: Corey Roth Enterprise Consultant Stonebridge Blog:
Module 4 : Installation Jong S. Bok
Steven Seida D2RQ Blog Integration Lab. Data to RDF Integration Approaches* 1 of 2 *Summarized from Ch 9 of Semantiic Web Programming, 2009, by Hebeler.
A Brief Documentation.  Provides basic information about connection, server, and client.
JDBC Tutorial CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
Using the remote access option on the lab computers Fall 2005.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Search Overview Search Features: WSS and Office Search Architecture Content Sources and.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Introduction to the Semantic Web and Linked Data Module 1 - Unit 2 The Semantic Web and Linked Data Concepts 1-1 Library of Congress BIBFRAME Pilot Training.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 25.1 Test-Driving the ATM Application 25.2.
Ontology engineering Lab #8 – October 20, 2014.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
RDF and Relational Databases
What is MySQL? MySQL is a relational database management system (RDBMS) based on SQL (Structured Query Language). First released in January, Many.
© 2012 LogiGear Corporation. All Rights Reserved FitNesseFitNesse Authors: Nghia Pham 1.
Install CB 1.8 on Ubuntu. Steps Followed Install Ubuntu (Ubuntu LTS) on Virtual machine – (VMware Workstation) (
Sales Demo. Demo Overview RDF and Triples D2RQ Overview and Setup Ontology and Mappings Sales Demo Model Inferencing.
CACI Proprietary Information | Date 1 PD² v4.2 Increment 2 SR13 and FPDS Engine v3.5 Database Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
2nd year Computer Science & Engineer
RDF and RDB 2 D2RQ.
Connect:Direct for UNIX v4.2.x Silent Installation
RDF and RDB 2 D2RQ.
بسم الله الرحمن الرحيم.
Searching Business Data with MOSS 2007 Enterprise Search
Chapter 8 Working with Databases and MySQL
Configuring Internet-related services
MSIS 655 Advanced Business Applications Programming
RDF and RDB 2 D2RQ.
Semantic-Web, Triple-Strores, and SPARQL
Presentation transcript:

ONTOLOGY ENGINEERING Lab #9 - November 3, 2014

Linking Relational Databases to Ontologies 2  Relational databases are still a common means of storing information  An enterprise may have many databases that contain information describing different (but possibly overlapping) portions of their domain  How to achieve a unified view of this information when it is not always possible or desirable to collect it into a single store?

Database to Ontology Mapping Languages 3  Such languages provide the ability to  View existing relational data in the RDF data model,  Express in the information in a structure and target vocabulary of the mapping author's choice.  Examples  R2RML -  D2RQ -  R2O -  EDOAL -

D2RQ Mapping Language 4  The homepage can be found at: and the language specification is available at:  A D2RQ mapping is an RDF document written in Turtle syntax and expressed using terms in the D2RQ namespace:   Basic structure of a mapping:  Database columns are mapped to ontology classes using instances of d2rq:ClassMap  Relations between columns are mapped to ontology properties using instances of d2rq:PropertyBridge

D2RQ Mapping File As Class Instances 5 map:database rdf:type d2rq:Database ; jdbc:autoReconnect "true" ; jdbc:zeroDateTimeBehavior "convertToNull" ; d2rq:jdbcDSN "jdbc:mysql://localhost/vast2010" ; d2rq:jdbcDriver "com.mysql.jdbc.Driver" ; d2rq:username "root" ; d2rq:password “abc321". map:Person rdf:type d2rq:ClassMap ; rdfs:label "Person"^^xsd:string ; d2rq:class agent:Person ; d2rq:classDefinitionComment "Hospital Records Person"^^xsd:string ; d2rq:dataStorage map:database ; d2rq:uriPattern

D2RQ Mapping File as Class Instances 6 map:PersonAge rdf:type d2rq:ClassMap ; rdfs:label "Person age"^^xsd:string ; d2rq:class quality:ChronologicalAge ; d2rq:classDefinitionLabel "Hospital Records Person Age"^^xsd:string ; d2rq:dataStorage map:database ; d2rq:uriPattern map:person_Age rdf:type d2rq:PropertyBridge ; rdfs:label "person Age"^^xsd:string ; d2rq:belongsToClassMap map:Person ; d2rq:property ero:has_quality ; d2rq:propertyDefinitionLabel "Person Age"^^xsd:string ; d2rq:refersToClassMap map:PersonAge.

D2RQ Mapping File as Class Instances 7 map:person_Age_Value rdf:type d2rq:PropertyBridge ; rdfs:label "person Age Value"^^xsd:string ; d2rq:belongsToClassMap map:PersonAge ; dr2q:column “hospitalrecords.age”^^xsd:integer; d2rq:property info:has_integer_value; d2rq:propertyDefinitionLabel "Person Age"^^xsd:string.

Mappings Enable SPARQL Queries of Relational Data 8 SELECT ?person ?agevalue WHERE { ?person rdf:type agent:Person. ?age rdf:type quality:ChronologicalAge. ?person ero:has_quality ?age ?age info:has_integer_value ?agevalue }

Installing and Running D2R SPARQL Server 9  Download and unzip the d2rq zip file (latest version as of 11/03/14)  Create a mapping file in.ttl format and place it into the d2r- server working directory  Open a command prompt and navigate to the working directory of the d2r-server.  Ex: cd “C:\Program Files\d2r-server-v8\d2rq-0.8.1“  Run the d2r-server using this command: d2r-server file_name.ttl (where file_name.ttl is the name of a mapping file you’ve created)  If any, examine the error messages, they're trying to tell you something, most often that there's some syntax errors in your file

Installing and Running D2R SPARQL Server 10  If there are no errors, open your browser and enter: in the address bar  If a SPARQL query window doesn't open you've done something wrong, for example make certain that the database is up and running  Use Ctrl-c to stop the d2r server and get back to the command prompt.

Other D2RQ Tools 11  The generate-mapping tool creates a mapping file that maps each table to a new RDFS class that is based on the table's name, and maps each column to a property based on the column's name. This mapping file can be used as-is or can be customized.  At the command prompt enter: generate-mapping –o customer_record.ttl –u root –p abc123 jdbc:mysql://localhost/customer_record where -o is the name of the output mapping file -u is the database user name -p is user’s password jdbc:… is the connection string including the name of the mysql database (i.e. customer_record)

Other D2RQ Tools 12  The dump-rdf tool outputs the contents of the whole database into a single RDF file. If a mapping file is specified, then the tool will use it to translate the database contents to RDF. If no mapping file is specified, then the tool will use the default mapping of generate-mapping for the translation.  At the command prompt enter: dump-rdf –o dump_customer_record.n3 mapping_file.ttl where - o is the name of the output file “mapping_file.ttl” is the name of the mapping file to be used in generating the output.

Other D2RQ Tools 13  The d2r-query tool allows executing SPARQL queries against a relational database from the command line. If a mapping file is specified, then the tool will query the virtual RDF graph defined by the mapping. If no mapping file is specified, then the tool will use the default mapping of generate- mapping for the translation.