RDF Query language The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer” Dean Allemang, Jim Hendler, “Semantic Web.

Slides:



Advertisements
Similar presentations
Languages on the Semantic Web Frank van Harmelen Vrije Universiteit Amsterdam Ian Horrocks University of Manchester.
Advertisements

1 ICS-FORTH EU-NSF Semantic Web Workshop 3-5 Oct Christophides Vassilis Database Technology for the Semantic Web Vassilis Christophides Dimitris Plexousakis.
Querying on the Web: XQuery, RDQL, SparQL Semantic Web - Spring 2006 Computer Engineering Department Sharif University of Technology.
Alexandra Cristea & Matthew Yau 1.
RDF Schemata (with apologies to the W3C, the plural is not ‘schemas’) CSCI 7818 – Web Technologies 14 November 2001 Van Lepthien.
Dr. Bhavani Thuraisingham February 18, 2011 Building Trustworthy Semantic Webs RDF and RDF Security.
RDF Tutorial.
RDFS: Resource Description Framework Schema
Chapter 3 Querying RDF stores with SPARQL. TL;DR We will want to query large RDF datasets, e.g. LOD SPARQL is the SQL of RDF SPARQL is a language to query.
SPARQL for Querying PML Data Jitin Arora. Overview SPARQL: Query Language for RDF Graphs W3C Recommendation since 15 January 2008 Outline: Basic Concepts.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
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
The vision... A computer-readable web. The technology... XML, RDF, OWL,...
Dr. Jim Bowring Computer Science Department College of Charleston CSIS 690 (633) May Evening 2009 Semantic Web Principles and Practice Class 3: 18 May.
Resource Description Framework (RDF) Lecture # 6 Faculty of Computer Science, IBA.
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.
Logics for Data and Knowledge Representation SPARQL Protocol and RDF Query Language (SPARQL) Feroz Farazi.
ONTOLOGY SUPPORT For the Semantic Web. THE BIG PICTURE  Diagram, page 9  html5  xml can be used as a syntactic model for RDF and DAML/OIL  RDF, RDF.
Managing & Integrating Enterprise Data with Semantic Technologies Susie Stephens Principal Product Manager, Oracle
1 Ontology Query and Reasoning Payam Barnaghi Institute for Communication Systems (ICS) Faculty of Engineering and Physical Sciences University of Surrey.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
SPARQL All slides are adapted from the W3C Recommendation SPARQL Query Language for RDF Web link:
Logics for Data and Knowledge Representation Resource Description Framework (RDF) Feroz Farazi.
Practical RDF Chapter 1. RDF: An Introduction
Introduction to SPARQL. Acknowledgements This presentation is based on the W3C Candidate Recommendation “SPARQL Query Language for RDF” from
SPARQL Semantic Web - Spring 2008 Computer Engineering Department Sharif University of Technology.
Logics for Data and Knowledge Representation
The Semantic Web Web Science Systems Development Spring 2015.
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.
© 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.
Metadata. Generally speaking, metadata are data and information that describe and model data and information For example, a database schema is the metadata.
Of 41 lecture 4: rdf – basics and language. of 41 RDF basic ideas the fundamental concepts of RDF  resources  properties  statements ece 720, winter.
Developing “Geo” Ontology Layers for Web Query Faculty of Design & Technology Conference David George, Department of Computing.
RQL: RDF Query language Jianguo Lu University of Windsor The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer”
Semantic Web Exam 1 Review.
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.
Sesame: A Generic Architecture for Storing and Querying RDF and RDF Schema Jeen Broekstra, Arjohn Kampman, and Frank van Harmelen 정홍석
Trustworthy Semantic Webs Dr. Bhavani Thuraisingham The University of Texas at Dallas Lecture #4 Vision for Semantic Web.
Semantic Web for the Working Ontologist Dean Allemang Jim Hendler SNU IDB laboratory.
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.
05/01/2016 SPARQL SPARQL Protocol and RDF Query Language S. Garlatti.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
Chapter 3 Querying RDF stores with SPARQL
Alexandra Cristea 1.  pronounced "sparkle“  recursive acronym for: ◦ SPARQL Protocol and RDF Query Language  a semantic query language  a query language.
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.
Semantic Web for the Working Ontologist Dean Allemang Jim Hendler SNU IDB laboratory Last modified,
Dr. Alexandra I. Cristea CS 414: Semantic Web.
Semantic Web for the Working Ontologist Dean Allemang Jim Hendler SNU IDB laboratory.
Semantic Web for the Working Ontologist Dean Allemang Jim Hendler SNU IDB laboratory.
Semantic Web for the Working Ontologist Dean Allemang Jim Hendler SNU IDB laboratory.
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.
NEDA ALIPANAH, MARIA ADELA GRANDO DBMI 11/19/2012.
1 RDF Storage and Retrieval Systems Jan Pettersen Nytun, UiA.
Knowledge Representation Part VI
Chapter 2 RDF Syntax 1.
SPARQL.
Knowledge Representation Part VI
SPARQL SPARQL Protocol and RDF Query Language
Logics for Data and Knowledge Representation
Lecture #6: RDF and RDF Security Dr. Bhavani Thuraisingham
Presentation transcript:

RDF Query language The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer” Dean Allemang, Jim Hendler, “Semantic Web for the working ontologist”

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 The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer”

3 Why RDF Query language—different XML representation There are XML query languages, such as XQuery 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 is an element if uni:title is an attribute –Both XML representations equivalent!

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

5 RDF query languages All have a SQL like syntax SPARQL –became W3C recommendation in RQL …

6 Using select-from-where As in SQL –SELECT: specifies the projection operation, i.e., the number and order of retrieved data –FROM: specifies the data source from which to query; it is optional. –WHERE: imposes constraints on possible solutions Retrieve all phone numbers of staff members: SELECT ?X ?Y WHERE {?X phone ?Y. } Here X and Y are variables, and ?X phone ?Y represents a resource-property-value triple

7 Retrieve all lecturers and their phone numbers: SELECT ?X ?Y WHERE {?X rdf:type lecturer. ?X phone ?Y. } SELECT ?X ?Y WHERE {?X rdf:type lecturer; phone ?Y. }

8 Triple representation lit:Shakespeare lit:wrote lit:AsYouLikeIt; lit:wrote lit:Twel fthNight; lit:wrote lit:KingLear; lit:wrote lit:LovesLaboursLost ; lit:wrote lit:Hamlet; lit:wrote lit:TheTempest; lit:wrote lit:WintersTale; lit:wrote lit:HenryV; lit:wrote lit:MeasureForMeasure; lit:wrote lit:Othello; bio: livedIn geo: Stratford. bio: AnneHathaway bio: married lit:Shakespeare. geo: Stratford geo:isIn geo:England. geo: Scotland geo:partOf geo:UK. geo: England geo:partOf geo:UK. geo: Wales geo:partOf geo:UK. geo: NorthernIreland geo: partOf geo:UK. geo: ChannelIslands geo: part Of geo: UK. geo: IsleOfMan geo: partOf geo: UK.

9 Triple pattern Triple pattern is the basic building block of SPARQL Similar to triple Can have variables in place of resources Same variable indicates the same resource –?w lit:wrote lit:KingLear. –lit:Shakespeare ?r lit:KingLear. –lit:Shakespeare lit:wrote ?p. –Who wrote KingLear? –What relationship did Shakespeare have to KingLear? –What did Shakespeare write?

10 Graph pattern List of triple pattern enclosed in braces {?person bio: livedIn ?place. ?place geo: isIn geo:England. ?person lit:wrote lit:KingLear. } Result ?person=Shakespeare ?place=Stratford

11 Graph pattern {?person bio:married ?s. ?person lit:wrote lit:KingLear. } Result No result Solution bio:married owl:inverseOf bio:married. Another solution { {{?spouse1 bio:married ?spouse2} UNION { ?spouse2 bio:married ?spouse1} } { ?spouse1 lit:wrote lit:KingLear} }