Nested Queries in SPARQL
|
|
- August Phillips
- 5 years ago
- Views:
Transcription
1 Nested Queries in SPARQL Renzo Angles Claudio Gutierrez Presented by: Nuno Lopes Copyright All rights reserved.
2 Motivation for nested queries Query nesting enables: composition / reuse of queries rewriting / distributed execution optimization 1 / 21
3 Motivation for nested queries Query nesting enables: composition / reuse of queries rewriting / distributed execution optimization Approaches for nesting SQL: allows nesting in FROM and WHERE clauses XQuery: (arbitrary) nesting of expressions 1 / 21
4 Motivation for nested queries Query nesting enables: composition / reuse of queries rewriting / distributed execution optimization Approaches for nesting SQL: allows nesting in FROM and WHERE clauses XQuery: (arbitrary) nesting of expressions 1 / 21
5 Datasets foaf: < xmlns.com/foaf/0.1/ >. < nunolopes.org/foaf.rdf#me> a foaf:person; foaf:name "Nuno Lopes"; foaf:mbox <mailto:nuno. lopes@deri.org >; foaf:nick "nl"," nunolopes"," nlopes"; foaf:age 30; foaf:knows < < a foaf:person; foaf:name "Axel Polleres"; foaf:nick "droxel","xel","xl"; foaf:mbox <mailto:axel. polleres@deri.org >; foaf: givenname "Axel"; foaf: familyname "Polleres". 2 / 21
6 Datasets bibtex: < zeitkunst.org/bibtex /0.1/ bibtex.owl#>. < example.org/bibtex#xsparql > a bibtex:article ; bibtex: hasjournal "DERI Journal" ; bibtex:hastitle "XSPARQL" ; bibtex: hasauthor < nunolopes.org/foaf.rdf#me> ; bibtex: hasauthor < www. polleres.net/foaf.rdf#me>. 2 / 21
7 SPARQL in a nutshell 3 / 21
8 Query example Names of people age or names having (or not) an SELECT DISTINCT?Name FROM <foaf.ttl > WHERE { { {?X foaf:name?name.?x foaf:age?age FILTER (? Age >= 18 &&?Age <= 30) UNION { {?X foaf:name?name OPTIONAL {?X foaf:mbox? 4 / 21
9 Query example Names of people age or names having (or not) an SELECT DISTINCT?Name FROM <foaf.ttl > WHERE { { {?X foaf:name?name.?x foaf:age?age FILTER (? Age >= 18 &&?Age <= 30) UNION { {?X foaf:name?name OPTIONAL {?X foaf:mbox? 4 / 21
10 Query example Names of people age or names having (or not) an SELECT DISTINCT?Name FROM <foaf.ttl > WHERE { { {?X foaf:name?name.?x foaf:age?age FILTER (? Age >= 18 &&?Age <= 30) UNION { {?X foaf:name?name OPTIONAL {?X foaf:mbox? 4 / 21
11 Query example Names of people age or names having (or not) an SELECT DISTINCT?Name FROM <foaf.ttl > WHERE { { {?X foaf:name?name.?x foaf:age?age FILTER (? Age >= 18 &&?Age <= 30) UNION { {?X foaf:name?name OPTIONAL {?X foaf:mbox? 4 / 21
12 Query example Names of people age or names having (or not) an SELECT DISTINCT?Name FROM <foaf.ttl > WHERE { { {?X foaf:name?name.?x foaf:age?age FILTER (? Age >= 18 &&?Age <= 30) UNION { {?X foaf:name?name OPTIONAL {?X foaf:mbox? 4 / 21
13 Preliminaries: compatible substitutions {?X foaf:name?name.?x foaf:age?age 5 / 21
14 Preliminaries: compatible substitutions {?X foaf:name?name.?x foaf:age?age X < < Name Nuno Lopes Axel Polleres 5 / 21
15 Preliminaries: compatible substitutions {?X foaf:name?name.?x foaf:age?age X < < Name Nuno Lopes Axel Polleres X Age < / 21
16 Preliminaries: compatible substitutions {?X foaf:name?name.?x foaf:age?age X Name < Nuno Lopes < Axel Polleres X Age < / 21
17 Preliminaries: compatible substitutions {?X foaf:name?name.?x foaf:age?age X < < Name Nuno Lopes Axel Polleres X Age < 30 = X Name Age < Nuno Lopes 30 5 / 21
18 SPARQL 1.1 features Noteworthy new features in SPARQL 1.1 Aggregates Subqueries Federation Extensions Negation Expressions in the SELECT clause Property Paths Assignment 6 / 21
19 SPARQL 1.1 features Noteworthy new features in SPARQL 1.1 Aggregates Subqueries Federation Extensions Negation Expressions in the SELECT clause Property Paths Assignment 6 / 21
20 SPARQL 1.1 features Noteworthy new features in SPARQL 1.1 Aggregates Subqueries Federation Extensions Negation Expressions in the SELECT clause Property Paths Assignment 6 / 21
21 SPARQL 1.1: Nested Queries PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?y?minNick WHERE { < nunolopes.org/foaf.rdf#me> foaf:knows?y. { SELECT?y (MIN(? nick) AS?minNick) WHERE {?y foaf:nick?nick. GROUP BY?y 7 / 21
22 SPARQL 1.1: Nested Queries PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?y?minNick WHERE { < nunolopes.org/foaf.rdf#me> foaf:knows?y. { SELECT?y (MIN(? nick) AS?minNick) WHERE {?y foaf:nick?nick. GROUP BY?y 7 / 21
23 SPARQL 1.1: Nested Queries PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?y?minNick WHERE { < nunolopes.org/foaf.rdf#me> foaf:knows?y. { SELECT?y (MIN(? nick) AS?minNick) WHERE {?y foaf:nick?nick. GROUP BY?y y <nunolopes.org/foaf.rdf#me> <polleres.net/foaf.rdf#me> minnick nl droxel 7 / 21
24 SPARQL 1.1: Nested Queries PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?y?minNick WHERE { < nunolopes.org/foaf.rdf#me> foaf:knows?y. { SELECT?y (MIN(? nick) AS?minNick) WHERE {?y foaf:nick?nick. GROUP BY?y y <nunolopes.org/foaf.rdf#me> <polleres.net/foaf.rdf#me> minnick nl droxel 7 / 21
25 SPARQL 1.1: Nested Queries PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?y?minNick WHERE { < nunolopes.org/foaf.rdf#me> foaf:knows?y. { SELECT?y (MIN(? nick) AS?minNick) WHERE {?y foaf:nick?nick. GROUP BY?y y <nunolopes.org/foaf.rdf#me> <polleres.net/foaf.rdf#me> minnick nl droxel y <polleres.net/foaf.rdf#me> 7 / 21
26 SPARQL 1.1: Nested Queries PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?y?minNick WHERE { < nunolopes.org/foaf.rdf#me> foaf:knows?y. { SELECT?y (MIN(? nick) AS?minNick) WHERE {?y foaf:nick?nick. GROUP BY?y y <nunolopes.org/foaf.rdf#me> <polleres.net/foaf.rdf#me> minnick nl droxel y <polleres.net/foaf.rdf#me> y <polleres.net/foaf.rdf#me> minnick droxel 7 / 21
27 SPARQL 1.1: Nested Queries PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?y?minNick WHERE { < nunolopes.org/foaf.rdf#me> foaf:knows?y. { SELECT?y (MIN(? nick) AS?minNick) WHERE {?y foaf:nick?nick. GROUP BY?y FROM and FROM NAMED are not allowed in subqueries! 7 / 21
28 SPARQL 1.1: Federation extensions PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?name?bDay WHERE { SERVICE < example.org/foaf > {?uri foaf:name?name. SERVICE < example.org/birthdays > {?uri foaf:birthday?bday. 8 / 21
29 SPARQL 1.1: Federation extensions PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?name?bDay WHERE { SERVICE < example.org/foaf > {?uri foaf:name?name. SERVICE < example.org/birthdays > {?uri foaf:birthday?bday. 8 / 21
30 SPARQL 1.1: Federation extensions PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?name?bDay WHERE { SERVICE < example.org/foaf > {?uri foaf:name?name. SERVICE < example.org/birthdays > {?uri foaf:birthday?bday. Execution method is undefined 8 / 21
31 SPARQL 1.1: Bindings SELECT?name?bDay WHERE { SERVICE < example.org/foaf > {?uri foaf:name?name. SERVICE < example.org/birthdays > {?uri foaf:birthday?bday. BINDINGS?uri { (< nunolopes.org/foaf.rdf#me >) (< >) 9 / 21
32 SPARQL 1.1: Bindings SELECT?name?bDay WHERE { SERVICE < example.org/foaf > {?uri foaf:name?name. SERVICE < example.org/birthdays > {?uri foaf:birthday?bday. BINDINGS?uri { (< nunolopes.org/foaf.rdf#me >) (< >) allows to specify filters for a query without changing the graph pattern (good for reuse of queries) does not allow to specify values that are taken from another SPARQL query 9 / 21
33 SPARQL 1.1: Negation Negation PREFIX rdf: < - rdf -syntax -ns#> PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?nick WHERE {?person foaf:nick?nick. FILTER NOT EXISTS {?uri foaf:nick "nl" 10 / 21
34 SPARQL 1.1: Negation Negation PREFIX rdf: < - rdf -syntax -ns#> PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?nick WHERE {?person foaf:nick?nick. FILTER NOT EXISTS {?uri foaf:nick "nl" unbound filters remove all solutions! 10 / 21
35 SPARQL 1.1: Negation Negation PREFIX rdf: < - rdf -syntax -ns#> PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?nick WHERE {?person foaf:nick?nick. FILTER NOT EXISTS {?uri foaf:nick "nl" EXISTS filter also available 10 / 21
36 SPARQL 1.1: Negation Negation PREFIX rdf: < - rdf -syntax -ns#> PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?nick WHERE {?person foaf:nick?nick. FILTER NOT EXISTS {?uri foaf:nick "nl" Removing solutions PREFIX : < example/> PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT DISTINCT?name WHERE {?person foaf:name?name. MINUS {?person foaf: givenname "Axel". 10 / 21
37 SPARQL 1.1: Negation Negation PREFIX rdf: < - rdf -syntax -ns#> PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?nick WHERE {?person foaf:nick?nick. FILTER NOT EXISTS {?uri foaf:nick "nl" Removing solutions PREFIX : < example/> PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT DISTINCT?name WHERE {?person foaf:name?name. MINUS {?person foaf: givenname "Axel". Removes compatible solutions: requires shared variables! 10 / 21
38 SPARQL 1.1: Expressions in SELECT Creating new values PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?person (CONCAT(?given, " ",?family) AS?fullName) FROM <foaf.ttl > WHERE {?person foaf: givenname?given; foaf: familyname?family 11 / 21
39 Nested Queries in SPARQL: Extensions Types of nesting SPARQL From : Subqueries in dataset clauses SPARQL SubS : Subqueries as graph patterns. SPARQL Filter : Subqueries in filter constraints. 12 / 21
40 SPARQL from Query in the FROM clause SELECT?M1?M2 FROM <foaf.ttl > FROM ( CONSTRUCT {?A1 co-author?a2 FROM <bib.ttl > WHERE {?Pub author?a1.?pub author?a2. FILTER (!(?A1 =?A2)) ) WHERE {?P1 co-author?p2.?p1 mail?m1.?p2 mail?m2 13 / 21
41 SPARQL from Query in the FROM clause SELECT?M1?M2 FROM <foaf.ttl > FROM ( CONSTRUCT {?A1 co-author?a2 FROM <bib.ttl > WHERE {?Pub author?a1.?pub author?a2. FILTER (!(?A1 =?A2)) ) WHERE {?P1 co-author?p2.?p1 mail?m1.?p2 mail?m2 Natural extension: CONSTRUCT returns an RDF graph Side effect: adds construction of values 13 / 21
42 SPARQL SubS Nested query in the graph pattern SELECT?Mail FROM <foaf.ttl > WHERE { {?X mail?mail. {( SELECT DISTINCT?X FROM <bib.ttl > WHERE {?Pub author?x) 14 / 21
43 SPARQL SubS Nested query in the graph pattern SELECT?Mail FROM <foaf.ttl > WHERE { {?X mail?mail. {( SELECT DISTINCT?X FROM <bib.ttl > WHERE {?Pub author?x) projection of variables in graph patterns datasets in nested queries 14 / 21
44 SPARQL filter Nested queries in FILTER expressions SELECT?Name FROM <bib.ttl > WHERE {?Aut name?name.?pub author?aut.?pub conf?conf FILTER (? Conf IN ( SELECT?ConfX FROM <bib.ttl > WHERE {?ConfX series "ISWC" )) 15 / 21
45 SPARQL filter Nested queries in FILTER expressions SELECT?Name FROM <bib.ttl > WHERE {?Aut name?name.?pub author?aut.?pub conf?conf FILTER (? Conf IN ( SELECT?ConfX FROM <bib.ttl > WHERE {?ConfX series "ISWC" )) Duplicate elimination (without DISTINCT) Similar to subqueries in SQL: introduces IN, SOME, ALL and EXITS operators 15 / 21
46 Shameless self-promotion: Nesting in XSPARQL XSPARQL follows a different semantics for nesting Based on XQuery nesting Variables are correlated Top-down evaluation 16 / 21
47 XSPARQL Nested Queries: XSPARQL From Nesting in FROM clauses prefix : < zeitkunst.org/bibtex /0.1/ bibtex.owl#> prefix foaf: < xmlns.com/foaf/0.1/ > let $ds := construct { $A1 :co-author $A2 from <bib.ttl > where { $Pub : hasauthor $A1. $Pub : hasauthor $A2. filter (!($A1 = $A2)) for $M1 $M2 from <foaf.ttl > from $ds where { $P1 :co-author $P2. $P1 foaf:mbox $M1. $P2 foaf:mbox $M2 return ($M1, $M2) 17 / 21
48 XSPARQL Nested Queries: XSPARQL From Nesting in FROM clauses prefix : < zeitkunst.org/bibtex /0.1/ bibtex.owl#> prefix foaf: < xmlns.com/foaf/0.1/ > let $ds := construct { $A1 :co-author $A2 from <bib.ttl > where { $Pub : hasauthor $A1. $Pub : hasauthor $A2. filter (!($A1 = $A2)) for $M1 $M2 from <foaf.ttl > from $ds where { $P1 :co-author $P2. $P1 foaf:mbox $M1. $P2 foaf:mbox $M2 return ($M1, $M2) 17 / 21
49 XSPARQL Nested Queries: XSPARQL SubS Nesting in WHERE clauses for distinct $X from <bib.ttl > where { $Pub author $X return for $Mail from <foaf.ttl > where { $X mail $Mail. return $Mail 18 / 21
50 XSPARQL: endpoint/service queries SPARQL 1.1 SERVICE PREFIX dbpedia2: < dbpedia.org/property/> PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?N?MyB FROM < polleres.net/foaf.rdf > WHERE { [ foaf:birthday?myb ]. SERVICE < dbpedia.org/sparql > { SELECT?N WHERE { [ dbpedia2:born?b; foaf:name?n ]. FILTER ( Regex(Str(?B),str(? MyB)) ) 19 / 21
51 XSPARQL: endpoint/service queries SPARQL 1.1 SERVICE PREFIX dbpedia2: < dbpedia.org/property/> PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?N?MyB FROM < polleres.net/foaf.rdf > WHERE { [ foaf:birthday?myb ]. SERVICE < dbpedia.org/sparql > { SELECT?N WHERE { [ dbpedia2:born?b; foaf:name?n ]. FILTER ( Regex(Str(?B),str(? MyB)) ) 19 / 21
52 XSPARQL: endpoint/service queries SPARQL 1.1 SERVICE PREFIX dbpedia2: < dbpedia.org/property/> PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?N?MyB FROM < polleres.net/foaf.rdf > WHERE { [ foaf:birthday?myb ]. SERVICE < dbpedia.org/sparql > { SELECT?N WHERE { [ dbpedia2:born?b; foaf:name?n ]. FILTER ( Regex(Str(?B),str(? MyB)) ) 19 / 21
53 XSPARQL: endpoint/service queries SPARQL 1.1 SERVICE PREFIX dbpedia2: < dbpedia.org/property/> PREFIX foaf: < xmlns.com/foaf/0.1/ > SELECT?N?MyB FROM < polleres.net/foaf.rdf > WHERE { [ foaf:birthday?myb ]. SERVICE < dbpedia.org/sparql > { SELECT?N WHERE { [ dbpedia2:born?b; foaf:name?n ]. FILTER ( Regex(Str(?B),str(? MyB)) ) Result limits from SPARQL endpoints prevent this query from working! 19 / 21
54 XSPARQL: endpoint/service queries XSPARQL endpoint prefix dbprop: < dbpedia.org/ property/> prefix foaf: < xmlns.com/foaf/0.1/ > prefix : < xsparql.deri.org/bday#> let $MyB := for * from < polleres.net/foaf.rdf > where { [ foaf:birthday $B ]. return $B for * from < dbpedia.org/> endpoint < dbpedia.org/sparql > where { [ dbprop:born $B; foaf:name $N ]. filter ( regex(str($b),str($myb)) ) construct { :axel : samebirthdayas $N 20 / 21
55 XSPARQL: endpoint/service queries XSPARQL endpoint prefix dbprop: < dbpedia.org/ property/> prefix foaf: < xmlns.com/foaf/0.1/ > prefix : < xsparql.deri.org/bday#> let $MyB := for * from < polleres.net/foaf.rdf > where { [ foaf:birthday $B ]. return $B for * from < dbpedia.org/> endpoint < dbpedia.org/sparql > where { [ dbprop:born $B; foaf:name $N ]. filter ( regex(str($b),str($myb)) ) construct { :axel : samebirthdayas $N 20 / 21
56 Conclusions Query nesting is a much needed feature SPARQL 1.1 s nesting is still quite limited (e.g. no injection of values) Other approches for nesting can be considered SPARQL Filter is doable in XSPARQL but ugly! Possible (syntactic) extensions of nesting for XSPARQL 21 / 21
SPARQL. Fausto Giunchiglia and Mattia Fumagallli. University of Trento
SPARQL Fausto Giunchiglia and Mattia Fumagallli University of Trento Roadmap Introduction Basic query forms SELECT CONSTRUCT ASK DESCRIBE Other clauses and modifiers SPARQL Federated Query Exercises 2
More informationImplementing and extending SPARQL queries over DLVHEX
Implementing and extending SPARQL queries over DLVHEX Gennaro Frazzingaro Bachelor Thesis Presentation - October 5, 2007 From a work performed in Madrid, Spain Galway, Ireland Rende, Italy How to solve
More informationFirst things first. Page 1
First things first Assignment of slots for final presentations Q&A I expect you to resend me corrected assignments, taking my feedback into account e.g. for Assignment 1: make sure that your FOAF file
More informationSPARQL QUERY LANGUAGE WEB:
SPARQL QUERY LANGUAGE JELENA JOVANOVIC EMAIL: JELJOV@GMAIL.COM WEB: HTTP://JELENAJOVANOVIC.NET SPARQL query language W3C standard for querying RDF graphs Can be used to query not only native RDF data,
More informationQuerying RDF & RDFS. Several query languages exist to retrieve
Knowledge management: Querying with SPARQL 1 Querying RDF & RDFS Several query languages exist to retrieve resulting triples from RDF RDQL SERQL SPARQL These languages use triple patterns as input and
More informationDay 2. RISIS Linked Data Course
Day 2 RISIS Linked Data Course Overview of the Course: Friday 9:00-9:15 Coffee 9:15-9:45 Introduction & Reflection 10:30-11:30 SPARQL Query Language 11:30-11:45 Coffee 11:45-12:30 SPARQL Hands-on 12:30-13:30
More informationChapter 3 Querying RDF stores with SPARQL
Chapter 3 Querying RDF stores with SPARQL Why an RDF Query Language? l Why not use an XML query language? l XML at a lower level of abstraction than RDF l There are various ways of syntactically representing
More informationSPARQL. Dr Nicholas Gibbins
SPARQL Dr Nicholas Gibbins nmg@ecs.soton.ac.uk Semantic Web Applications Technologies considered so far allow us to create representation schemes (RDFS, OWL) and to represent data (RDF) We can put data
More informationSemantic Web Systems Querying Jacques Fleuriot School of Informatics
Semantic Web Systems Querying Jacques Fleuriot School of Informatics 5 th February 2015 In the previous lecture l Serialising RDF in XML RDF Triples with literal Object edstaff:9888 foaf:name Ewan Klein.
More informationFilter: Evaluable Expression. List Syntax. Tests. Filter: Evaluable Expression. Tests : functions. Tests 06/09/2013. (1?x v )
SPARQL 2 W3C RDF Data Access SPARQL W3C Simple Protocol And RDF Query Language olivier.corby@inria.fr Use Case and Requirements : http://www.w3.org/tr/rdf-dawg-uc Query language : http://www.w3.org/tr/rdf-sparql-query
More informationOn the Semantics of Heterogeneous Querying of Relational, XML and RDF Data with XSPARQL
On the Semantics of Heterogeneous Querying of Relational, XML and RDF Data with XSPARQL Nuno Lopes, Stefan Bischof, Stefan Decker, Axel Polleres Stefan.Decker@deri.org http://www.stefandecker.org/! Copyright
More informationA Deductive System for Annotated RDFS
A Deductive System for Annotated RDFS DERI Institute Meeting Umberto Straccia Nuno Lopes Gergely Lukácsy Antoine Zimmermann Axel Polleres Presented by: Nuno Lopes May 28, 2010 Annotated RDFS Example Annotated
More informationBASI DI DATI II 2 modulo Parte VIII: SPARQL
BASI DI DATI II 2 modulo Parte VIII: SPARQL Prof. Riccardo Torlone Università Roma Tre Outline Querying RDF SPARQL Query Languages: SQL A language for querying collections of tuples: SELECT SALARY, HIRE_DATE
More informationSPAR-QL. Mario Arrigoni Neri
SPAR-QL Mario Arrigoni Neri 1 Introduction 2 SPARQL = SPARQL Protocol and RDF Query Language SPARQL - query language to manipulate information in RDF graphs. It provides support to: extract information
More informationSemantic Web Information Management
Semantic Web Information Management Norberto Fernández ndez Telematics Engineering Department berto@ it.uc3m.es.es 1 Motivation n Module 1: An ontology models a domain of knowledge n Module 2: using the
More informationSemantic Web Technologies: Assignment 1. Axel Polleres Siemens AG Österreich
Semantic Web Technologies: Assignment 1 Siemens AG Österreich 1 The assignment: 2 FOAF: 1. Create your own FOAF file. You can use a generator tool such as FOAF- a- Ma>c to generate a skeleton. 2. Make
More informationKBS Knowledge-Based Systems Group
XSPARQL Traveling between the and RDF Worlds and Avoiding the XSLT Pilgrimage Waseem Akhtar 1 Jacek Kopecký 3 Thomas Krennwallner 1,2 Axel Polleres 1 1 Digital Enterprise Research Institute, National University
More informationQuery. Ewan Klein. MASWS 12 February Multi-agent Semantic Web Systems: Query. Ewan Klein. Outline. Introduction RSS.
ing with ing with MASWS 12 February 2008 1 ing with ing with 2 3 ing with 4 ing with 5 ing RDF Data ing is crucial to being able to use RDF data. ing with ing with ing RDF Data ing with ing is crucial
More informationToday s Plan. INF3580/4580 Semantic Technologies Spring Reminder: RDF triples. Outline. Lecture 4: The SPARQL Query Language.
Today s Plan INF3580/4580 Semantic Technologies Spring 2015 Lecture 4: The SPARQL Query Language Kjetil Kjernsmo 9th February 2015 4 Department of Informatics University of Oslo INF3580/4580 :: Spring
More informationIntroduction to a Web of Linked Data
Introduction to a Web of Linked Data Week 3: SPARQL Query Language Accessing Data Sources on the Web Olivier Corby Week 3: SPARQL Query Language Query RDF triple stores published on the Web 1 Week 3: SPARQL
More informationMI-PDB, MIE-PDB: Advanced Database Systems
MI-PDB, MIE-PDB: Advanced Database Systems http://www.ksi.mff.cuni.cz/~svoboda/courses/2015-2-mie-pdb/ Lecture 11: RDF, SPARQL 3. 5. 2016 Lecturer: Martin Svoboda svoboda@ksi.mff.cuni.cz Author: Martin
More informationSEMANTIC WEB 07 SPARQL TUTORIAL BY EXAMPLE: DBPEDIA IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD
SEMANTIC WEB 07 SPARQL TUTORIAL BY EXAMPLE: DBPEDIA IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD WWW.IMRANIHSAN.COM VIRTUOSO SERVER DOWNLOAD Open Link Virtuoso Server http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/main/vosdownload
More informationRDF AND SPARQL. Part IV: Syntax of SPARQL. Dresden, August Sebastian Rudolph ICCL Summer School
RDF AND SPARQL Part IV: Syntax of SPARQL Sebastian Rudolph ICCL Summer School Dresden, August 2013 Agenda 1 Introduction and Motivation 2 Simple SPARQL Queries 3 Complex Graph Pattern 4 Filters 5 Solution
More informationInteracting with Linked Data Part I: General Introduction
Interacting with Linked Data Part I: General Introduction Agenda Part 0: Welcome Part I: General Introduction to Semantic Technologies Part II: Advanced Concepts Part III: OWLIM Part IV: Information Workbench-
More informationToday s Plan. INF3580 Semantic Technologies Spring Outline. Oblig 4. Lecture 13: More SPARQL. Kjetil Kjernsmo.
Today s Plan INF3580 Semantic Technologies Spring 2011 Lecture 13: More SPARQL Kjetil Kjernsmo 26th April 2011 1 2 4 Department of Informatics University of Oslo INF3580 :: Spring 2011 Lecture 13 :: 26th
More informationProvided by the author(s) and NUI Galway in accordance with publisher policies. Please cite the published version when available. Title XSPARQL-Viz: A Mashup-Based Visual Query Editor for XSPARQL Author(s)
More informationAperçu de SPARQL. Exemples tirés
Aperçu de SPARQL Exemples tirés https://www.w3.org/tr/2013/rec-sparql11-query-20130321/ 1 1 Requête simple Un premier exemple dont les parties seront détaillées par la suite. Données @prefix foaf: .
More informationUnit 1 a Bird s Eye View on RDF(S), OWL & SPARQL
Unit 1 a Bird s Eye View on RDF(S), OWL & SPARQL Axel Polleres Siemens AG Österreich VU 184.729 Semantic Web Technologies A. Polleres VU 184.729 1/48 Unit Outline 1. Motivation Aggregating Web Data 2.
More informationSemantic Web. Querying on the Web: XQuery, RDQL, SparQL. Morteza Amini. Sharif University of Technology Fall 94-95
ه عا ی Semantic Web Querying on the Web: XQuery, RDQL, SparQL Morteza Amini Sharif University of Technology Fall 94-95 Outline XQuery Querying on XML Data RDQL Querying on RDF Data SparQL Another RDF query
More informationMulti-agent and Semantic Web Systems: Querying
Multi-agent and Semantic Web Systems: Querying Fiona McNeill School of Informatics 11th February 2013 Fiona McNeill Multi-agent Semantic Web Systems: Querying 11th February 2013 0/30 Contents This lecture
More informationINF3580/4580 Semantic Technologies Spring 2015
INF3580/4580 Semantic Technologies Spring 2015 Lecture 13: More SPARQL Kjetil Kjernsmo 27th April 2015 Department of Informatics University of Oslo Today s Plan 1 Reminder: SPARQL 2 RDF Datasets 3 Functions
More informationRDF and XML: Towards a Unified Query Layer
RDF and XML: Towards a Unified Query Layer Nuno Lopes, Stefan Bischof, Orri Erling, Axel Polleres, Alexandre Passant, Diego Berrueta, Antonio Campos, Jérôme Euzenat, Kingsley Idehen, Stefan Decker, Stéphane
More informationPGQL: a Property Graph Query Language
PGQL: a Property Graph Query Language Oskar van Rest Sungpack Hong Jinha Kim Xuming Meng Hassan Chafi Oracle Labs June 24, 2016 Safe Harbor Statement The following is intended to outline our general product
More informationReminder: RDF triples
Reminder: RDF triples The RDF data model is similar to classical conceptual modelling approaches such as entity relationship or class diagrams it is based on the idea of making statements about resources
More informationTowards Equivalences for Federated SPARQL Queries
Towards Equivalences for Federated SPARQL Queries Carlos Buil-Aranda 1? and Axel Polleres 2?? 1 Department of Computer Science, Pontificia Universidad Católica, Chile cbuil@ing.puc.cl 2 Vienna University
More informationJena.
Jena http://openjena.org/ The Beginning... From: McBride, Brian Date: Mon, 28 Aug 2000 13:40:03 +0100 To: "RDF Interest (E-mail)" A few weeks ago I posted
More informationOLAP over Federated RDF Sources
OLAP over Federated RDF Sources DILSHOD IBRAGIMOV, KATJA HOSE, TORBEN BACH PEDERSEN, ESTEBAN ZIMÁNYI. Outline o Intro and Objectives o Brief Intro to Technologies o Our Approach and Progress o Future Work
More informationCOMPUTER AND INFORMATION SCIENCE JENA DB. Group Abhishek Kumar Harshvardhan Singh Abhisek Mohanty Suhas Tumkur Chandrashekhara
JENA DB Group - 10 Abhishek Kumar Harshvardhan Singh Abhisek Mohanty Suhas Tumkur Chandrashekhara OUTLINE Introduction Data Model Query Language Implementation Features Applications Introduction Open Source
More informationA Rule System for Querying Persistent RDFS Data
A Rule System for Querying Persistent RDFS Data Giovambattista Ianni 1, Thomas Krennwallner 2, Alessandra Martello 1, and Axel Polleres 3 1 Dipartimento di Matematica, Università della Calabria, I-87036
More informationFormalising the Semantic Web. (These slides have been written by Axel Polleres, WU Vienna)
Formalising the Semantic Web (These slides have been written by Axel Polleres, WU Vienna) The Semantics of RDF graphs Consider the following RDF data (written in Turtle): @prefix rdfs: .
More informationSPARQL By Example: The Cheat Sheet
SPARQL By Example: The Cheat Sheet Accompanies slides at: http://www.cambridgesemantics.com/semantic-university/sparql-by-example Comments & questions to: Lee Feigenbaum VP
More informationSemantic Web. Lecture 12: SW Programming Dr. Knarig Arabshian
Semantic Web Lecture 12: SW Programming Dr. Knarig Arabshian Knarig.arabshian@hofstra.edu Hello Semantic Web World Example Say hello to the Semantic Web Say hello to some friends of the Semantic Web Expand
More informationSTTL SPARQL Template Transformation Language for RDF Graphs
STTL SPARQL Template Transformation Language for RDF Graphs Olivier Corby INRIA Sophia Antipolis olivier.corby@inria.fr STTL STTL : transformation language for RDF XSLT : transformation language for XML
More informationUsing SPARQL with RDFS and OWL Entailment
Using SPARQL with RDFS and OWL Entailment Birte Glimm The University of Oxford, Department of Computer Science, UK Abstract. This chapter accompanies the lecture on SPARQL with entailment regimes at the
More informationQuerying the Semantic Web
Querying the Semantic Web CSE 595 Semantic Web Instructor: Dr. Paul Fodor Stony Brook University http://www3.cs.stonybrook.edu/~pfodor/courses/cse595.html Lecture Outline SPARQL Infrastructure Basics:
More informationAn overview of RDB2RDF techniques and tools
An overview of RDB2RDF techniques and tools DERI Reading Group Presentation Nuno Lopes August 26, 2009 Main purpose of RDB2RDF WG... standardize a language for mapping Relational Database schemas into
More informationQuerying the Web of Data with
web: www.polleres.net twitter:@axelpolleres Querying the Web of Data with SPARQL and XSPARQL This tutorial presents partially joint work with: Nuno Lopes (formerly NUI Galway, now IBM), Stefan Bischof
More informationQuerying Data with Transact SQL
Course 20761A: Querying Data with Transact SQL Course details Course Outline Module 1: Introduction to Microsoft SQL Server 2016 This module introduces SQL Server, the versions of SQL Server, including
More informationQuerying Semantic Web Data
Querying Semantic Web Data Lalana Kagal Decentralized Information Group MIT CSAIL Eric Prud'hommeaux Sanitation Engineer World Wide Web Consortium SPARQL Program Graph patterns Motivations for RDF RDF
More informationSemantic Web and Python Concepts to Application development
PyCon 2009 IISc, Bangalore, India Semantic Web and Python Concepts to Application development Vinay Modi Voice Pitara Technologies Private Limited Outline Web Need better web for the future Knowledge Representation
More informationLinked Stream Data Processing Part I: Basic Concepts & Modeling
Linked Stream Data Processing Part I: Basic Concepts & Modeling Danh Le-Phuoc, Josiane X. Parreira, and Manfred Hauswirth DERI - National University of Ireland, Galway Reasoning Web Summer School 2012
More informationLars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on XML and Semantic Web
Course on XML and Semantic Web Technologies, summer term 2012 0/45 XML and Semantic Web Technologies XML and Semantic Web Technologies II. Semantic Web / 3. SPARQL Query Language for RDF Lars Schmidt-Thieme
More informationSPARQL เอกสารหล ก ใน มคอ.3
SPARQL SLIDES REFERENCE: SEMANTIC WEB PRIMER BOOK เอกสารหล ก ใน มคอ.3 Why an RDF Query Language? Different XML Representations XML at a lower level of abstraction than RDF There are various ways of syntactically
More informationinfoh509 xml & web technologies lecture 9: sparql Stijn Vansummeren February 14, 2017
infoh509 xml & web technologies lecture 9: sparql Stijn Vansummeren February 14, 2017 what have we gained? Current no structure Future structured by RDF (subject, predicate, object) b:genome b:field b:molecular-bio
More informationIvan Herman. F2F Meeting of the W3C Business Group on Oil, Gas, and Chemicals Houston, February 13, 2012
Ivan Herman F2F Meeting of the W3C Business Group on Oil, Gas, and Chemicals Houston, February 13, 2012 (2) (3) } An intelligent system manipulating and analyzing knowledge bases e.g., via big ontologies,
More informationCS Knowledge Representation and Reasoning (for the Semantic Web)
CS 7810 - Knowledge Representation and Reasoning (for the Semantic Web) 05 - SPARQL Adila Krisnadhi Data Semantics Lab Wright State University, Dayton, OH October 4, 2016 Krisnadhi (DaSeLab - Wright State)
More informationSPARQL Protocol And RDF Query Language
SPARQL Protocol And RDF Query Language WS 2011/12: XML Technologies John Julian Carstens Department of Computer Science Communication Systems Group Christian-Albrechts-Universität zu Kiel March 1, 2012
More informationRevisiting Blank Nodes in RDF to Avoid the Semantic Mismatch with SPARQL
Revisiting Blank Nodes in RDF to Avoid the Semantic Mismatch with SPARQL Marcelo Arenas 1, Mariano Consens 2, and Alejandro Mallea 1,3 1 Pontificia Universidad Católica de Chile 2 University of Toronto
More informationXML and Semantic Web Technologies. III. Semantic Web / 3. SPARQL Query Language for RDF
XML and Semantic Web Technologies XML and Semantic Web Technologies III. Semantic Web / 3. SPARQL Query Language for RDF Lars Schmidt-Thieme Information Systems and Machine Learning Lab (ISMLL) Institute
More informationProcessing ontology alignments with SPARQL
Provided by the author(s) and NUI Galway in accordance with publisher policies. Please cite the published version when available. Title Processing ontology alignments with SPARQL Author(s) Polleres, Axel
More information3. Queries Applied Artificial Intelligence Prof. Dr. Bernhard Humm Faculty of Computer Science Hochschule Darmstadt University of Applied Sciences
3. Queries Applied Artificial Intelligence Prof. Dr. Bernhard Humm Faculty of Computer Science Hochschule Darmstadt University of Applied Sciences 1 Retrospective Knowledge Representation (1/2) What is
More informationCourse Modules for MCSA: SQL Server 2016 Database Development Training & Certification Course:
Course Modules for MCSA: SQL Server 2016 Database Development Training & Certification Course: 20762C Developing SQL 2016 Databases Module 1: An Introduction to Database Development Introduction to the
More informationSemantics in RDF and SPARQL Some Considerations
Semantics in RDF and SPARQL Some Considerations Dept. Computer Science, Universidad de Chile Center for Semantic Web Research http://ciws.cl Dagstuhl, June 2017 Semantics RDF and SPARQL 1 / 7 Semantics
More informationSQL Part 3: Where Subqueries and other Syntactic Sugar Part 4: Unknown Values and NULLs
SQL Part 3: Where Subqueries and other Syntactic Sugar Part 4: Unknown Values and NULLs 1-1 List of Slides 1 2 More on "where" conditions 3 Esoteric Predicates: Example 4 WHERE Subqueries 5 Overview of
More informationOracle Database 11g: SQL and PL/SQL Fundamentals
Oracle University Contact Us: +33 (0) 1 57 60 20 81 Oracle Database 11g: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn In this course, students learn the fundamentals of SQL and PL/SQL
More informationSPARQL ME-E4300 Semantic Web,
SPARQL ME-E4300 Semantic Web, 27.1.2016 Jouni Tuominen Semantic Computing Research Group (SeCo), http://seco.cs.aalto.fi jouni.tuominen@aalto.fi SPARQL SPARQL Protocol and RDF Query Language sparkle 2
More informationRepresenting Linked Data as Virtual File Systems
Representing Linked Data as Virtual File Systems Bernhard Schandl University of Vienna Department of Distributed and Multimedia Systems http://events.linkeddata.org/ldow2009#ldow2009 Madrid, Spain, April
More informationUnit 2 RDF Formal Semantics in Detail
Unit 2 RDF Formal Semantics in Detail Axel Polleres Siemens AG Österreich VU 184.729 Semantic Web Technologies A. Polleres VU 184.729 1/41 Where are we? Last time we learnt: Basic ideas about RDF and how
More informationQuery RDF Data (SPARQL)
Query RDF Data (SPARQL) 1 Querying RDF graphs Jena example: StmtIterator iter=model.liststatements(subject,null,null); while(iter.hasnext()) { st = iter.next(); p = st.getproperty(); o = st.getobject();
More informationCombining RDF Vocabularies for Expert Finding
Combining RDF Vocabularies for Expert Finding presented by Axel Polleres DERI, National University of Ireland, Galway Joint work with the ExpertFinder Initiative, particularly co-authors: Boanerges Aleman-Meza,
More informationToday s Plan. INF3580 Semantic Technologies Spring RDF on the Web. Outline. Lecture 13: Publishing RDF Data on the Web.
Today s Plan INF3580 Semantic Technologies Spring 2010 Lecture 13: Publishing RDF Data on the Web Martin Giese 11th May 2010 1 Introduction 2 3 Linking RDF to HTML 4 Department of Informatics University
More informationQuerying Data with Transact-SQL
Querying Data with Transact-SQL Course: 20761 Course Details Audience(s): IT Professional(s) Technology: Microsoft SQL Server 2016 Duration: 24 HRs. ABOUT THIS COURSE This course is designed to introduce
More informationLinked Data: What Now? Maine Library Association 2017
Linked Data: What Now? Maine Library Association 2017 Linked Data What is Linked Data Linked Data refers to a set of best practices for publishing and connecting structured data on the Web. URIs - Uniform
More informationOptimising XML RDF Data Integration
Optimising XML RDF Data Integration A Formal Approach to Improve XSPARQL Efficiency Stefan Bischof Siemens AG Österreich, Siemensstraße 90, 1210 Vienna, Austria bischof.stefan@siemens.com Abstract. The
More informationFrom the Web to the Semantic Web: RDF and RDF Schema
From the Web to the Semantic Web: RDF and RDF Schema Languages for web Master s Degree Course in Computer Engineering - (A.Y. 2016/2017) The Semantic Web [Berners-Lee et al., Scientific American, 2001]
More informationFedX: Optimization Techniques for Federated Query Processing on Linked Data. ISWC 2011 October 26 th. Presented by: Ziv Dayan
FedX: Optimization Techniques for Federated Query Processing on Linked Data ISWC 2011 October 26 th Presented by: Ziv Dayan Andreas Schwarte 1, Peter Haase 1, Katja Hose 2, Ralf Schenkel 2, and Michael
More informationOracle Database 10g: Introduction to SQL
ORACLE UNIVERSITY CONTACT US: 00 9714 390 9000 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database
More informationProcessing Queries on Top of Linked Data and Sensor Data
Processing Queries on Top of Linked Data and Sensor Data Cry Distribution Marcel Karnstedt Copyright 2009. All rights reserved. Linked Data Use URIs as names for things (documents, people, organisations,
More informationOracle Database: SQL and PL/SQL Fundamentals NEW
Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the fundamentals of SQL and PL/SQL along with the
More informationBasic form of SQL Queries
SQL - 1 Week 6 Basic form of SQL Queries SELECT FROM WHERE target-list relation-list qualification target-list A list of attributes of output relations in relation-list relation-list A list of relation
More informationLinked Data Semantic Web Technologies 1 (2010/2011)
Linked Data Semantic Web Technologies 1 (2010/2011) Sebastian Rudolph Andreas Harth Institute AIFB www.kit.edu Data on the Web Increasingly, web sites provide direct access to data Using Semantic Web standards,
More informationA Generic Mapping-based Query Translation from SPARQL to Various Target Database Query Languages
A Generic Mapping-based Query Translation from SPARQL to Various Target Database Query Languages F. Michel, C. Faron-Zucker, J. Montagnat I3S laboratory, CNRS, Univ. Nice Sophia 1 Towards a Web of Data
More informationFoundations of SPARQL Query Optimization
Foundations of SPARQL Query Optimization Michael Schmidt, Michael Meier, Georg Lausen Albert-Ludwigs-Universität Freiburg Database and Information Systems Group 13 th International Conference on Database
More informationMANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9)
Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 6 Professional Program: Data Administration and Management MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) AGENDA
More informationOracle Database: SQL and PL/SQL Fundamentals Ed 2
Oracle University Contact Us: Local: 1800 103 4775 Intl: +91 80 67863102 Oracle Database: SQL and PL/SQL Fundamentals Ed 2 Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals
More informationQuerying Data with Transact-SQL
Course 20761A: Querying Data with Transact-SQL Page 1 of 5 Querying Data with Transact-SQL Course 20761A: 2 days; Instructor-Led Introduction The main purpose of this 2 day instructor led course is to
More informationSupporting Decentralized SPARQL Queries in an Ad-Hoc Semantic Web Data Sharing System
International Journal of Networking and Computing www.ijnc.org ISSN 2185-2839 (print) ISSN 2185-2847 (online) Volume 4, Number 1, pages 88 110, January 2014 Supporting Decentralized SPARQL Queries in an
More information1 Writing Basic SQL SELECT Statements 2 Restricting and Sorting Data
1 Writing Basic SQL SELECT Statements Objectives 1-2 Capabilities of SQL SELECT Statements 1-3 Basic SELECT Statement 1-4 Selecting All Columns 1-5 Selecting Specific Columns 1-6 Writing SQL Statements
More informationBuilding Blocks of Linked Data
Building Blocks of Linked Data Technological foundations Identifiers: URIs Data Model: RDF Terminology and Semantics: RDFS, OWL 23,019,148 People s Republic of China 20,693,000 population located in capital
More informationOntology Links in the Distributed Ontology Language (DOL)
Ontology Links in the Distributed Ontology Language (DOL) Oliver Kutz 1, Christoph Lange 1, Till Mossakowski 1,2 1 SFB/TR 8 Spatial cognition, University of Bremen, Germany 2 DFKI GmbH, Bremen, Germany
More informationThe D2RQ mapping language. Richard Cyganiak Presentation to W3C RDB2RDF XG, 23 May 2008
The D2RQ mapping language Richard Cyganiak Presentation to W3C RDB2RDF XG, 23 May 2008 D2RQ DB-to-RDF mapper written in Java In: any JDBC database Out: SPARQL, Linked Data, or Jena API GPL, popular, easy
More informationQuerying Data with Transact SQL Microsoft Official Curriculum (MOC 20761)
Querying Data with Transact SQL Microsoft Official Curriculum (MOC 20761) Course Length: 3 days Course Delivery: Traditional Classroom Online Live MOC on Demand Course Overview The main purpose of this
More informationStream Reasoning For Linked Data
5/30/11 Stream Reasoning For Linked Data and Emanuele Della Valle The Web map 2008 Tim Berners-Lee 2 http://www.w3.org/2007/09/map/main.jpg 1 The Web map 2008 Tim Berners-Lee ü ü ü ü ü ü n n n n more and
More informationInception of RDF: Context
Inception of RDF: Context Fukuoka City Homepage Gnavi page (Fukuoka) Municipal Documents (Fukuoka city) List of nursery in Fukuoka The www is a mine of information This is however mostly unstructured information
More informationLinked Data. Department of Software Enginnering Faculty of Information Technology Czech Technical University in Prague Ivo Lašek, 2011
Linked Data Department of Software Enginnering Faculty of Information Technology Czech Technical University in Prague Ivo Lašek, 2011 Semantic Web, MI-SWE, 11/2011, Lecture 9 Evropský sociální fond Praha
More informationWeaving a Web of Actions Beschreibung und Ausführung datenorientierter Prozesse und Dienste im Web. Prof. Dr. Axel Polleres
Weaving a Web of Actions Beschreibung und Ausführung datenorientierter Prozesse und Dienste im Web Prof. Dr. Axel Polleres web: http://polleres.net twitter: @AxelPolleres Outline A short history of the
More informationINF3580 SPRING 2014 EXERCISES WEEK 4
INF3580 SPRING 2014 EXERCISES WEEK 4 Martin G. Skjæveland 10 mars 2014 4 SPARQL Read Semantic Web Programming: chapter 6. Foundations of Semantic Web Technologies: chapter 7. 4.1 Query engine In this exercise
More informationScalable Reduction of Large Datasets to Interesting Subsets
Scalable Reduction of Large Datasets to Interesting Subsets Gregory Todd Williams, Jesse Weaver, Medha Atre, and James A. Hendler Tetherless World Constellation, Rensselaer Polytechnic Institute, Troy,
More informationSPARQL Implementations
SPARQL Implementations SPARQL Implementations ARQ Complete, general purpose query system SPARQL Parser and serializer SPARQL Algebra SPARQL Execution Results handling SDB Specialised ARQ extension SPARQL
More informationProduce and Consume Linked Data with Drupal!
Produce and Consume Linked Data with Drupal! Stéphane Corlosquet, Renaud Delbru, Tim Clark, Axel Polleres and Stefan Decker ISWC 2009 scorlosquet@gmail.com DERI NUI Galway, MGH October 27th, 2009 Copyright
More information