1 SPARQL A. Emrah Sanön. 2 RDF RDF is quite committed to Semantic Web. Data model Serialization by means of XML Formal semantics Still something is missing!

Slides:



Advertisements
Similar presentations
SPARQL Query Language for RDF
Advertisements

Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
General introduction to Web services and an implementation example
The Semantic Web – WEEK 4: RDF
1 Understanding Web Services Presented By: Woodas Lai.
ESDSWG2011 – Semantic Web session Semantic Web Sub-group Session ESDSWG 2011 Meeting – Semantic Web sub-group session Wednesday, November 2, 2011 Norfolk,
RDF Tutorial.
Semantic Web Introduction
© Copyright IBM Corporation 2014 Getting started with Rational Engineering Lifecycle Manager queries Andy Lapping – Technical sales and solutions Joanne.
 Copyright 2004 Digital Enterprise Research Institute. All rights reserved. SPARQL Query Language for RDF presented by Cristina Feier.
SPARQL RDF Query.
SPARQL Nikhil Rajguru. W3C Standards SPARQL Query Language for RDF SPARQL 1.1 Update SPARQL 1.1 Protocol SPARQL 1.1 Graph Store HTTP Protocol SPARQL.
Michael Povolotsky CMSC491s/691s. What is Virtuoso? Virtuoso, known as Virtuoso Universal Server, is a multi-protocol RDBMS Includes an object-relational.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
Future Software Architectures Combining the Web 2.0 with the Semantic Web to realize future Web Communities Maarten Visser
Presentation 7 part 2: SOAP & WSDL. Ingeniørhøjskolen i Århus Slide 2 Outline Building blocks in Web Services SOA SOAP WSDL (UDDI)
Understand Web Services
CSCI 572 Project Presentation Mohsen Taheriyan Semantic Search on FOAF profiles.
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
Grid Computing, B. Wilkinson, 20043a.1 WEB SERVICES Introduction.
Web Services By Ethan Justin Yuli. Web Services in Action Information through Integration (Google Example)Google Example What do Web.
CSE 636 Data Integration Web Services.
ReQuest (Validating Semantic Searches) Norman Piedade de Noronha 16 th July, 2004.
RSS RSS is a method that uses XML to distribute web content on one web site, to many other web sites. RSS allows fast browsing for news and updates.
TP2653 Adv Web Programming SOAP and WSDL. SOAP Simple Object Access Protocol – Lightweight XML-based messaging protocol – A protocol for accessing a Web.
Semantic Web Bootcamp Dominic DiFranzo PhD Student/Research Assistant Rensselaer Polytechnic Institute Tetherless World Constellation.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Publishing data on the Web (with.
Semantic Web Series 1 Mohammad M. R. Cowdhury UniK, Kjeller.
Enterprise Application Integration – Web Collaboration and Standardisation Enterprise Application Integration – Web Collaboration and Standardisation.
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:
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
Introduction to SPARQL. Acknowledgements This presentation is based on the W3C Candidate Recommendation “SPARQL Query Language for RDF” from
GDT V5 Web Services. GDT V5 Web Services Doug Evans and Detlef Lexut GDT 2008 International User Conference August 10 – 13  Lake Las Vegas, Nevada GDT.
SPARQL Semantic Web - Spring 2008 Computer Engineering Department Sharif University of Technology.
1 SAMT’08 Semantic-driven multimedia retrieval with the MPEG Query Format Ruben Tous and Jaime Delgado Distributed Multimedia Applications Group (DMAG)
The Semantic Web Web Science Systems Development Spring 2015.
Web Services Description Language (WSDL) Jason Glenn CDA 5937 Process Coordination in Service and Computational Grids September 30, 2002.
XML for Interoperability Robin Burke ECT 360. Outline Schemas Survey: last week The Semantic Web Web services SOAP RDF.
Web Services based e-Commerce System Sandy Liu Jodrey School of Computer Science Acadia University July, 2002.
SPARQL W3C Simple Protocol And RDF Query Language
Ontology Query. What is an Ontology Ontologies resemble faceted taxonomies but use richer semantic relationships among terms and attributes, as well as.
SPARQL AN RDF Query Language. SPARQL SPARQL is a recursive acronym for SPARQL Protocol And Rdf Query Language SPARQL is the SQL for RDF Example: PREFIX.
SPARQL All slides are adapted from the W3C Recommendation SPARQL Query Language for RDF Web link:
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 2: RDF Model & Syntax Aidan Hogan
XML Web Services Architecture Siddharth Ruchandani CS 6362 – SW Architecture & Design Summer /11/05.
RDF and XML 인공지능 연구실 한기덕. 2 개요  1. Basic of RDF  2. Example of RDF  3. How XML Namespaces Work  4. The Abbreviated RDF Syntax  5. RDF Resource Collections.
Semantic Web Programming in Python an Introduction Biju B Jaganath G.
Web Services (SOAP) part 1 Eriq Muhammad Adams J |
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.
User Profiling using Semantic Web Group members: Ashwin Somaiah Asha Stephen Charlie Sudharshan Reddy.
WSDL – Web Service Definition Language  WSDL is used to describe, locate and define Web services.  A web service is described by: message format simple.
Ontology based e-Real Estate Agency Information System By Moein Mehrolhasani Bijan Zamanian cmpe 588.
05/01/2016 SPARQL SPARQL Protocol and RDF Query Language S. Garlatti.
Web Services Martin Nečaský, Ph.D. Faculty of Mathematics and Physics Charles University in Prague, Czech Republic Summer 2014.
Raluca Paiu1 Semantic Web Search By Raluca PAIU
Introduction to Web Services Presented by Sarath Chandra Dorbala.
Web Services Blake Schernekau March 27 th, Learning Objectives Understand Web Services Understand Web Services Figure out SOAP and what it is used.
Chapter 04 Semantic Web Application Architecture 23 November 2015 A Team 오혜성, 조형헌, 권윤, 신동준, 이인용.
SOAP, Web Service, WSDL Week 14 Web site:
Semantic Web in Depth SPARQL Protocol and RDF Query Language Dr Nicholas Gibbins –
Setting the stage: linked data concepts Moving-Away-From-MARC-a-thon.
Introduction to RDF Sandro Hawke, Semantic Web Tutorial ISWC 2010.
SPARQLing SERVICES Leigh Dodds Engineering Manager, Ingenta XTech, May 2006.
SPARQL.
Introduction to SPARQL
SPARQL SPARQL Protocol and RDF Query Language
Logics for Data and Knowledge Representation
Introduction to World Wide Web
Resource Description Framework (RDF)
Presentation transcript:

1 SPARQL A. Emrah Sanön

2 RDF RDF is quite committed to Semantic Web. Data model Serialization by means of XML Formal semantics Still something is missing! A standard query language. A way for the queries and their respective results to be transported between applications / services.

3 …result SPARQL

4 What is SPARQL Simple Protocol and RDF Query Language Sparkle /'spär-k&l/ A Protocol A standard RDF Query Language (QL)

5 SPARQL as a Protocol GET /sparql/?query=EncodedQuery &default-graph-uri= &named-graph-uri= &named-graph-uri= HTTP/1.1Host: my.example User-agent: sparql-client/0.1

6 SPARQL as a Protocol A way of communication between parties that run SPARQL queries. Defining a way of invoking the service. Bindings of a transport protocol for that goal.

7 SPARQL Protocol (1) WSDL description file: Description of the protocol. Not for human understanding. HTTP binding: Specify how to encode SPARQL queries in URLs with GET and POST methods. SOAP binding: Specify the SOAP message format (XML message exchange format for queries)

8 WSDL Description file WSDL description file: (HTTP binding part) <binding name="queryHttp" interface="tns:SparqlQuery“ … > <operation ref="tns:query" whttp:method="GET" whttp:inputSerialization=“…" />

9 SPARQL Protocol (2) Interface SparqlQuery Only one operation: query For transferring string query Data types: via XML schema Bindings: HTTP / SOAP binding for invokable operations. A service must support SparqlQuery interface support the bindings as described in the WSDL.

10 SPARQL Protocol Examples Examples after we cover SPARQL Query Language for RDF.

11 SPARQL Query Language A standard query language in the form of expressive query against the RDF data model… Data access language Graph patterns Powerful than XML queries in some aspects

12 SPARQL Query Language (1) SQL: Internals of DB (tables, fields, data, meaning) Impossible to query databases on the W ILD W ILD W EB. So, what does SPARQL propose? URIs. Querying databases globally. Combining data globally. Value of data grows exponentially with the ways you combine it.

13 The Wild Wild Web SQLSPARQL XML

14 SPARQL Query Language (2) Data structure definitions are being developed worldwide in a distributed manner. Common ontologies (Dublin Core, Foaf, DOAP, etc.) A database publishes the ontologies it exports to An application queries it using those ontologies.

15 Power of SPARQL Illustrated Ask fotograf.com if it has a picture which matches some constraints such as title, date, size, and some other tag… Then ask google for URLs in relation to the tag we specified. And turn the results of these two uncoordinated data as an RSS feed on your site. All this in just two-three SPARQL queries.

16 Power of SPARQL (2) Ask music cds of price less than 10 You can run this query against hepsiburada.com, amazon, e-bay, gittigidiyor.com or any other seller on earth who has a website and a database. No seller needs to change their databases. Seller needs: Conversion layer between ontologies and database. Client needs: connectivity framework (like JDBC) for java.

17 Power of SPARQL (2) Imp. PREFIX dc: PREFIX ns: SELECT ?title ?price WHERE { ?x ns:price ?price. FILTER (?price < 10). ?x dc:title ?title. }

18 SPARQL Syntax -brief-1 URIs in prefix: prefix:name for full URI Literals “Literal“ or Blank Node _:name or [ ] for a Blank Node used just once

19 SPARQL Syntax -brief-2 Triples and. :x :y :z. :t :q :s. Common predicate and subject: :x :y :z, :t.which is the same as :x :y :z. :x :y :t. Common subject: RDF Collections :x :y ( :z :t :q :s ) which is short for many triples (as lists in LISP)

20 A walkthrough example illustrating the power of SPARQL XML/SQL SPARQL

21 Walkthrough example (1xml) Henry Story Tim Bray Jonathan Story

22 Walkthrough example (1sparql) [ a :Person; :name "Henry Story"; :mbox ; :knows [ a :Person; :name "Tim Bray"; :mbox ]; ].

23 Graph representation

24 Walkthrough example (2) Jonathan Story France Tim Bray Canada

25 [ a :Person; :name "Tim Bray"; :mbox :address [ a :Address; :country ] ]. [ a :Person; :name "Jonathan Story"; :mbox :address [ a :Address; :country ] ]. Walkthrough example (2sparql)

26 Graph representation

27 Walkthrough example (2) These graphs can be merged into the following graph especially if the mbox relation is stated as being inverse functional

28 Graph representation(merged)

29 Walkthrough example (2) "Who does Henry know who lives in Canada, and what is their address?" Can only be answered by aggregating data from both documents. Can not be done using the XML query languages, which can only work on the surface of the document.

30 Walkthrough example (2sparql) SELECT ?name ?mail WHERE { [a :Person; :name "Henry Story"; :knows [ :name ?name; :mbox ?mail; :address [ a :Address; :country ] ] ]. }

31 Walkthrough example (3sparql) Names and websites of contributors to PlanetRDF PREFIX foaf: SELECT ?name ?website FROM WHERE { ?person foaf:weblog ?website ; foaf:name ?name. ?website a foaf:Document }

32 Protocol Example (1) PREFIX foaf: PREFIX dc: SELECT ?who ?g ?mbox FROM FROM NAMED WHERE { ?g dc:publisher ?who. GRAPH ?g { ?x foaf:mbox ?mbox } }

33 Protocol Example (1) HTTP/ OK Date: Wed, 27 Dec :48:25 GMT Server: Apache/ (Unix) PHP/4.3.4 DAV/1.0.3 Connection: closeContent-Type: application/sparql-results+xml; charset=utf-8 … …

34 References sparql/intro/all.html sparql/intro/all.html sparql-querying-semantic-web-tutorial.html sparql-querying-semantic-web-tutorial.html SPARQL/all.html SPARQL/all.html

35 References(2) ibm.com/developerworks/xml/library/j- sparql/ ibm.com/developerworks/xml/library/j- sparql/ sparql/intro/ex1.rq sparql/intro/ex1.rq

36 Thank you… For your attendance and patience

37 Any Questions?