Practical RDF Ch.10 Querying RDF: RDF as Data Taewhi Lee SNU OOPSLA Lab. Shelley Powers, O’Reilly August 27, 2004.

Slides:



Advertisements
Similar presentations
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
Advertisements

Querying the RDF: Small Case Study in the Bicycle Sale Domain Ondřej Šváb, Vojtěch Svátek, Martin Kavalec, Martin Labský VŠE, University of Economics,
ESDSWG2011 – Semantic Web session Semantic Web Sub-group Session ESDSWG 2011 Meeting – Semantic Web sub-group session Wednesday, November 2, 2011 Norfolk,
RDF Tutorial.
 Copyright 2004 Digital Enterprise Research Institute. All rights reserved. SPARQL Query Language for RDF presented by Cristina Feier.
/ department of mathematics and computer science TU/e eindhoven university of technology ISAApril 17, What is Wrong with RQL? Flavius Frasincar
RDF Databases By: Chris Halaschek. Outline Motivation / Requirements Storage Issues Sesame General Introduction Architecture Scalability RQL Introduction.
Michael Povolotsky CMSC491s/691s. What is Virtuoso? Virtuoso, known as Virtuoso Universal Server, is a multi-protocol RDBMS Includes an object-relational.
Triple Stores
A division of Publishing Technology Facet Building Web Pages With SPARQL SWIG-UK Event, HP Labs November 23 rd 2007 Leigh Dodds Chief Technology Officer,
RDF(S) Tools Adrian Pop, Programming Environments Laboratory Linköping University.
Dr. Alexandra I. Cristea RDF.
1 RDF Aggregate Queries and Views Edward Hung, Yu Deng, V.S. Subrahmanian University of Maryland, College Park ICDE 2005, April 7, Tokyo, Japan.
/ department of mathematics and computer science TU/e eindhoven university of technology ISAApril 17, RDF Query Languages Flavius Frasincar
More RDF CS 431 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller Dieter Fensel.
VLDB 2005 An Efficient SQL-based RDF Querying Scheme Eugene Inseok Chong Souripriya Das George Eadon Jagannathan Srinivasan New England Development Center.
Triple Stores.
CIMI / FHIR and Shape Expressions. Local DB … …
CS 586 – Distributed Multimedia Information Management Prof. Dennis McLeod.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Publishing data on the Web (with.
1 Ontology Query and Reasoning Payam Barnaghi Institute for Communication Systems (ICS) Faculty of Engineering and Physical Sciences University of Surrey.
RDF Triple Stores Nipun Bhatia Department of Computer Science. Stanford University.
Rajashree Deka Tetherless World Constellation Rensselaer Polytechnic Institute.
Practical RDF Chapter 1. RDF: An Introduction
-By Mohamed Ershad Junaid UTD ID :
XML-QL A Query Language for XML Charuta Nakhe
Co-funded by the European Union Semantic CMS Community Semantic Data Access Copyright IKS Consortium 1 SRDC Ltd. August, 2011.
Towards linked sensor data Analysis of project task, tools and Hackystat architecture Author: Myriam Leggieri GSoC 2009 project for Hackystat.
1 SWAD Europe Storage and Retrieval Workshop Dave Beckett.
SPARQL Semantic Web - Spring 2008 Computer Engineering Department Sharif University of Technology.
Chapter 3 Querying RDF stores with SPARQL. Why an RDF Query Language? Why not use an XML query language? XML at a lower level of abstraction than RDF.
Database Support for Semantic Web Masoud Taghinezhad Omran Sharif University of Technology Computer Engineering Department Fall.
XQL, OQL and SQL Xia Tang Sixin Qian Shijun Shen Feb 18, 2000.
Ontology Query. What is an Ontology Ontologies resemble faceted taxonomies but use richer semantic relationships among terms and attributes, as well as.
SPARQL All slides are adapted from the W3C Recommendation SPARQL Query Language for RDF Web link:
 Open source RDF framework in Java.  Supports RDF Schema inferencing and querying.  Supports SPARQL 1.1 query, update, federated query.
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.
Using RDF in Agent-Mediated Knowledge Architectures K. Hui, S. Chalmers, P.M.D. Gray & A.D. Preece University of Aberdeen U.K
Efficient RDF Storage and Retrieval in Jena2 Written by: Kevin Wilkinson, Craig Sayers, Harumi Kuno, Dave Reynolds Presented by: Umer Fareed 파리드.
Semantically Processing The Semantic Web Presented by: Kunal Patel Dr. Gopal Gupta UNIVERSITY OF TEXAS AT DALLAS.
RDF languages and storages part 1 - expressivness Maciej Janik Conrad Ibanez CSCI 8350, Fall 2004.
Sesame: A Generic Architecture for Storing and Querying RDF and RDF Schema Jeen Broekstra, Arjohn Kampman, and Frank van Harmelen 정홍석
Web Information Systems Modeling Luxembourg, June VisAVis: An Approach to an Intermediate Layer between Ontologies and Relational Database Contents.
Practical RDF Chapter 10. Querying RDF: RDF as Data Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Lim.
User Profiling using Semantic Web Group members: Ashwin Somaiah Asha Stephen Charlie Sudharshan Reddy.
Important Concepts from the W3C RDF Vocabulary/Schema Sungtae Kim SNU OOPSLA Lab. August 19, 2004.
Ontology based e-Real Estate Agency Information System By Moein Mehrolhasani Bijan Zamanian cmpe 588.
JAVA BEANS JSP - Standard Tag Library (JSTL) JAVA Enterprise Edition.
Triple Stores. What is a triple store? A specialized database for RDF triples Can ingest RDF in a variety of formats Supports a query language – SPARQL.
RDF Syntax and examples ดร. มารุต บูรณรัช : หัวข้อพิเศษด้านเทคโนโลยีสารสนเทศขั้นสูง - เทคโนโลยีเว็บเชิงความหมาย.
Sesame: An Architecture for Storing and Querying RDF Data and Schema Inf. Yasser Ganji Saffar When they were out of sight Ali Baba.
RDF & SPARQL Introduction Dongfang Xu Ph.D student, School of Information, University of Arizona Sept 10, 2015.
An Effective SPARQL Support over Relational Database Jing Lu, Feng Cao, Li Ma, Yong Yu, Yue Pan SWDB-ODBIS 2007 SNU IDB Lab. Hyewon Lim July 30 th, 2009.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 6 CGI/Perl and databases.
Experience with XML Schema Ashok Malhotra Schema Usage  Mapping XML Schema and XML documents controlled by the Schema to object classes and instances.
Silterra, April 2004 RDF, RSS and all that THREADING THE RDF MAZE.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
RDF storages and indexes Maciej Janik September 1, 2005 Enterprise Integration – Semantic Web.
An Optimization Technique for RDFS Inference using the Application Order of RDFS Entailment Rules Kisung Kim, Taewhi Lee
RDF languages and storages part 2 - indexing semi-structure data Maciej Janik Conrad Ibanez CSCI 8350, Fall 2004.
Sesame A generic architecture for storing and querying RDF and RDFs Written by Jeen Broekstra, Arjohn Kampman Summarized by Gihyun Gong.
Chapter 04 Semantic Web Application Architecture 23 November 2015 A Team 오혜성, 조형헌, 권윤, 신동준, 이인용.
Semantic Web in Depth SPARQL Protocol and RDF Query Language Dr Nicholas Gibbins –
Charlie Abela Department of Intelligent Computer Systems
SPARQL.
Triple Stores.
JDBC.
Triple Stores.
Triple Stores.
Triple Stores.
Presentation transcript:

Practical RDF Ch.10 Querying RDF: RDF as Data Taewhi Lee SNU OOPSLA Lab. Shelley Powers, O’Reilly August 27, 2004

2 Contents  RDF and the Relational Data Model  The RDF Query Language Issue  Roots: rdfDB QL  Inkling and SquishQL  RDQL  Jena’s RDQL  Sesame

3 RDF and the Relational Data Model  Storing RDF in a relational DB  Need to persistently store and manipulate (large amounts of) RDF data  To use the relational database technology  Basically store the model as triples  A table for storing statements  Secondary tables storing literals, resources, and namespaces  Options  Multiple models support  Use of a hash to generate the identifiers for the resources

4 The RDF Query Language Issue

5 Roots: RDFDB QL  R. V. Guha’s RDFDB  One of the earliest persistent data stores for RDF  Written in C, primarily tested within a Linux environment  Uses a specialized language derived form SQL  RDF triple in the format of arc-source-target, not source-arc-target  Query example - insert into test1 (type DanB Person), (name DanB 'Dan Brickley') - select ?x from test1 where (worksFor ?x W3C) (name ?x ?y) ?x = DanC ?y = 'Dan Connolly' ?x = DanB ?y = 'Dan Brickley'

6 Inkling and SquishQL(1/3)  Inkling DB  Written in Java, originally on Linux and Solaris and most recently hosted and tested on Mac OS X, using Java JDBC classes  PostgreSQL required to use this DB for persistent storage  Data structure loaded into the PostgreSQL  One table containing pointers(hashed value) to the actual values in a second table  SquishQL  Based on Guha’s RDFDB QL

7 Inkling and SquishQL(2/3)  SquishQL – basic structure SELECT variables FROM source WHERE (triple clause) USING namespace mapping  Query example SELECT ?subject FROM WHERE (dc::subject ?x ?subject) USING dc FOR

8 Inkling and SquishQL(3/3)  SquishQL – query constraints  less than( )  equality(=), string equality(~)  Query example SELECT ?resource FROM WHERE (rdf::type ?resource (dc::date ?resource ?date) AND ?date ~ “ :T00:00:00-05:00” USING pstcn FOR rdf FOR dc FOR

9 RDQL  Based on the earlier work of Guha’s RDFDB QL and SquishQL, with some relatively minor differences  more comparison semantics support  OR operator(|||), bitwise operators(& and |), negation(!)  Implementations  Jena (java)  Sesame (java)  PHPxmlclasses (PHP)  RDFStore (Perl)

10 Jena’s RDQL(1/2)  Specialized classes for use with RDQL  Query – to build or parse the query  QueryEngine – for processing  QueryExecution  QueryResults  ResultBinding  Bounds the data to program variables, to access individual items in the results

11 Jena’s RDQL(2/2)  The Query-O-Matic – a two-page application  First HTML page containing a form  Second JSP page processing the form contents

12 Sesame  “…an Open Source RDF Schema-Based Repository and Querying Facility.”  Can be used on PostgreSQL, MySQL and Oracle 9i.  RDQL, RQL, SeRQL support

13 Sesame’s RDQL SELECT ?date WHERE (?resource,, ), (?resource,, ?value), (?resource,, ?date) AND (?value eq “Add”) USING pstcn FOR, rdf FOR, dc FOR

14 RQL  RQL  Querying at the semantic level  Adopts the syntax of OQL  A functional language  Queries  Access to the RDF Schema specific contents of an RDF triple store  The structure of the subclass hierarchy  Match patterns along entire paths in RDF/RDF Schema graphs select Y from FamousWriter{X}.hasWritten{Y}

15 Sesame’s RQL SELECT * FROM {X}. {Y}

16 SeRQL(1/4)  SeRQL  “Sesame RDF Query Language”  combines the best features of other (query) languages (RQL, RDQL, N-Triples, N3) and adds some of its own  most important features:  Graph transformation  Schema awareness – RDF Schema support  Datatyping – XML Schema data type support  Optional path matching  Expressive path expression syntax  SeRQL-S, SeRQL-C

17 SeRQL(2/4)  SeRQL-S  Select queries SELECT O, S FROM {S} {O}  SeRQL-C  Construct queries CONSTRUCT {Artist} { }; {Painting} FROM {Artist} { }; {Painting} { }

18 SeRQL(3/4) CONSTRUCT * FROM {Dsub} { } USING NAMESPACE cult adm:. cult:Sculptor rdfs:SubClassOf cult:Artist. cult:Painter rdfs:SubClassOf cult:Artist.

19 SeRQL(4/4) CONSTRUCT * FROM {Artist} { }; [ ] USING NAMESPACE cult =. ….