RQL: RDF Query language Jianguo Lu University of Windsor The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer”

Slides:



Advertisements
Similar presentations
1 ICS-FORTH EU-NSF Semantic Web Workshop 3-5 Oct Christophides Vassilis Database Technology for the Semantic Web Vassilis Christophides Dimitris Plexousakis.
Advertisements

CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
RDF Schemata (with apologies to the W3C, the plural is not ‘schemas’) CSCI 7818 – Web Technologies 14 November 2001 Van Lepthien.
The Semantic Web – WEEK 4: RDF
Dr. Bhavani Thuraisingham February 18, 2011 Building Trustworthy Semantic Webs RDF and RDF Security.
E © 2002 Dario Aganovic Resource Description Framework Schema (RDFS) Dario Aganovic Industrial PhD-student NPI Production Kista, Ericsson AB and Production.
CS570 Artificial Intelligence Semantic Web & Ontology 2
Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Kim
RDF Tutorial.
RDFS: Resource Description Framework Schema
Of 27 lecture 7: owl - introduction. of 27 ece 627, winter ‘132 OWL a glimpse OWL – Web Ontology Language describes classes, properties and relations.
RDF Briefing Frank van Harmelen Vrije Universiteit Amsterdam.
Dr. Alexandra I. Cristea RDF.
The Semantic Web – WEEK 5: RDF Schema + Ontologies The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse]
1 CSIT600f: Introduction to Semantic Web RDF Dickson K.W. Chiu PhD, SMIEEE Text: Antoniou & van Harmelen: A Semantic Web PrimerA Semantic Web Primer (Chapter.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
More RDF CS 431 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller Dieter Fensel.
The RDF meta model: a closer look Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations.
1 Introduction to Semantic Web with XML RDF Dickson K.W. Chiu PhD, SMIEEE Text: Antoniou & van Harmelen: A Semantic Web PrimerA Semantic Web Primer (Chapter.
From SHIQ and RDF to OWL: The Making of a Web Ontology Language
Department of Computer Science, University of Maryland, College Park 1 Sharath Srinivas - CMSC 818Z, Spring 2007 Semantic Web and Knowledge Representation.
The vision... A computer-readable web. The technology... XML, RDF, OWL,...
OIL: An Ontology Infrastructure for the Semantic Web D. Fensel, F. van Harmelen, I. Horrocks, D. L. McGuinness, P. F. Patel-Schneider Presenter: Cristina.
A Really Brief Crash Course in Semantic Web Technologies Rocky Dunlap Spencer Rugaber Georgia Tech.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
Chapter 3A Semantic Web Primer 1 Chapter 3 Querying the Semantic Web Grigoris Antoniou Paul Groth Frank van Harmelen Rinke Hoekstra.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
OWL: Web Ontology Language
 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. Towards Translating between XML and WSML based on mappings between.
Practical RDF Chapter 1. RDF: An Introduction
RDF Query language The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer” Dean Allemang, Jim Hendler, “Semantic Web.
INF 384 C, Spring 2009 Ontologies Knowledge representation to support computer reasoning.
1 Representing Data with XML September 27, 2005 Shawn Henry with slides from Neal Arthorne.
Logics for Data and Knowledge Representation
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.
ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ, ΑΠΘ ΜΕΤΑΠΤΥΧΙΑΚΟ ΠΡΟΓΡΑΜΜΑ ΣΠΟΥΔΩΝ Κατεύθυνση Πληροφοριακών Συστημάτων - 1ο Εξάμηνο Σημασιολογικός Ιστός lpis.csd.auth.gr/mtpx/sw/index.htm.
RDF and OWL Developing Semantic Web Services by H. Peter Alesso and Craig F. Smith CMPT 455/826 - Week 6, Day Sept-Dec 2009 – w6d21.
MPEG-7 Interoperability Use Case. Motivation MPEG-7: set of standardized tools for describing multimedia content at different abstraction levels Implemented.
© Copyright 2008 STI INNSBRUCK RDF and RDF Schema Semantic Web Lecture Lecture III – xx 2009 Dieter Fensel Slides.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
OWL Representing Information Using the Web Ontology Language 1.
Metadata. Generally speaking, metadata are data and information that describe and model data and information For example, a database schema is the metadata.
Semantic Web Exam 1 Review.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
Of 35 lecture 5: rdf schema. of 35 RDF and RDF Schema basic ideas ece 627, winter ‘132 RDF is about graphs – it creates a graph structure to represent.
Trustworthy Semantic Webs Dr. Bhavani Thuraisingham The University of Texas at Dallas Lecture #4 Vision for Semantic Web.
The RDF meta model Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations of XML compared.
Description of Information Resources: RDF/RDFS (an Introduction)
OWL & Protege Introduction Dongfang Xu Ph.D student, School of Information, University of Arizona Sept 10, 2015.
Dr. Bhavani Thuraisingham September 24, 2008 Building Trustworthy Semantic Webs Lecture #9: RDF and RDF Security.
PRACTICAL KNOWLEDGE REPRESENTATION FOR THE WEB Frank van Harmelen Dieter Fensel AIFB Kim Kangil Structural Complexity Laboratory.
Doc.: IEEE /0169r0 Submission Joe Kwak (InterDigital) Slide 1 November 2010 Slide 1 Overview of Resource Description Framework (RFD/XML) Date:
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
Representing Data with XML February 26, 2004 Neal Arthorne.
Practical RDF Chapter 12. Ontologies: RDF Business Models Shelley Powers, O’Reilly SNU IDB Lab. Taikyoung Kim.
Of 38 lecture 6: rdf – axiomatic semantics and query.
RDF & SPARQL Introduction Dongfang Xu Ph.D student, School of Information, University of Arizona Sept 10, 2015.
Chapter 3 RDF. Introduction Problem: What does an XML document mean? – XML is about data structures – Their meaning (semantics) is not apparent to a machine.
Silterra, April 2004 RDF, RSS and all that THREADING THE RDF MAZE.
Describing Web Resources in RDF Semantic Web. Knowledge Technologies Manolis Koubarakis 2 The Semantic Web “Layer Cake”
Chapter 8A Semantic Web Primer 1 Chapter 8 Conclusion and Outlook Grigoris Antoniou Frank van Harmelen.
The Semantic Web SDBI 2010 Most of the slides are book slides of Semantic Web Primer, by Grigoris Antoniou and Frank van Harmelen.
The Semantic Web By: Maulik Parikh.
Building Trustworthy Semantic Webs
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Ontology.
ece 720 intelligent web: ontology and beyond
ece 720 intelligent web: ontology and beyond
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Lecture #6: RDF and RDF Security Dr. Bhavani Thuraisingham
Presentation transcript:

RQL: RDF Query language Jianguo Lu University of Windsor The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer”

RDFS 2 Lecture outline Ontology Syntax of RDF and RDFS –Basic Ideas of RDF –Three representations of RDF –Basic Concepts of RDF Schema –Τhe Language of RDF Schema Axiomatic Semantics for RDF and RDFS Applications of RDF and RDFS –Querying of RDF/RDFS Documents using RQL The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer”

RDFS 3 Why RDF Query—different XML representation XML at a lower level of abstraction than RDF There are various ways of syntactically representing an RDF statement in XML Thus we would require several XQuery queries, e.g. –//uni:lecturer/uni:title if uni:title element if uni:title attribute –Both XML representations equivalent!

RDFS 4 Why RDF Query—understanding semantics Grigoris Antoniou David Billington A query for the names of all lecturers should return both Grigoris Antoniou and David Billington

RDFS 5 RQL Basic Queries The query Class retrieves all classes The query Property retrieves all properties To retrieve the instances of a class (e.g. course) we write course If we do not wish to retrieve inherited instances, then we have to write ^course The resources and values of triples with a specific property (e.g. involves) are retrieved using the query involves –The result includes all subproperties of involves If we do not want these additional results, then we have to write ^involves

RDFS 6 Using select-from-where As in SQL –select specifies the number and order of retrieved data –from is used to navigate through the data model –where imposes constraints on possible solutions Retrieve all phone numbers of staff members: select X,Y from {X}phone{Y} Here X and Y are variables, and {X}phone{Y} represents a resource-property-value triple

RDFS 7 Using implicit join Retrieve all lecturers and their phone numbers: select X,Y from lecturer{X}.phone{Y} Implicit join: We restrict the second query only to those triples, the resource of which is in the variable X – Here we restrict the domain of phone to lecturers –A dot. denotes the implicit join

RDFS 8 Explicit join Retrieve the name of all courses taught by the lecturer with ID select N from course{X}.isTaughtBy{Y}, {C}name{N} where Y="949352" and X=C

RDFS 9 Query schema Schema variables have a name with prefix $ (for classes) (for properties) Retrieve all resources and values of triples with property phone, or any of its subproperties, and their classes select X,$X,Y,$Y from {X:$X}phone{Y:$Y} The domain and range of a property can be retrieved as follows: select

RDFS 10 Summary of RDF RDF provides a foundation for representing and processing metadata RDF has a graph-based data model RDF has an XML-based syntax to support syntactic interoperability. –XML and RDF complement each other because RDF supports semantic interoperability RDF has a decentralized philosophy and allows incremental building of knowledge, and its sharing and reuse.

RDFS 11 Summary of RDFS RDF Schema provides a mechanism for describing specific domains RDF Schema is a primitive ontology language –It offers certain modelling primitives with fixed meaning Key concepts of RDF Schema are class, subclass relations, property, subproperty relations, and domain and range restrictions There exist query languages for RDF and RDFS

RDFS 12 RDF Schema vs XML Schema XML Schemas is all about syntax. –An XML Schema tool is intended to validate that an XML instance conforms to the syntax specified by the XML Schema. RDF Schema is all about semantics. –An RDF Schema tool is intended to provide additional facts to supplement the facts in RDF/XML instances.

RDFS 13 RDF Schema vs OO In OO, properties (attributes) are defined within classes. In RDFS, classes and properties are defined separately.