SEMANTIC WEB 07 SPARQL TUTORIAL BY EXAMPLE: DBPEDIA IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD

Size: px
Start display at page:

Download "SEMANTIC WEB 07 SPARQL TUTORIAL BY EXAMPLE: DBPEDIA IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD"

Transcription

1 SEMANTIC WEB 07 SPARQL TUTORIAL BY EXAMPLE: DBPEDIA IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD

2 VIRTUOSO SERVER DOWNLOAD Open Link Virtuoso Server Make sure that you have downloaded the right server according to your system operating system and specification (32 bit, 64 bit). 2

3 VIRTUOSO STARTUP Virtuoso is a portable server; therefore, it does not require any installation. Just extract the zip file into some directory D:\virtuoso Zip extraction will create a folder with the name virtuoso-opensource In virtuoso-opensource, go to database directory & copy virtuoso.ini file into bin directory. Go to D:\virtuoso\virtuoso-opensource\bin using command line Run the following command Virtuoso-t -f A virtuoso server will be started. It will be available at or You can directly run various SPARQL using this public interface. 3

4 LOADING DATA INTO VIRTUOSO SPARQL ENDPOINT RDF UPLOAD USING VIRTUOSO CONDUCTOR This method is useful for uploading small RDF files (e.g. 100 or 200 MB files). In this method only one file can be uploaded at one time. Steps. 1. Go to the link and click on conductor on the left side. 2. Type dbaas both login account and password. 3. Click on the Linked Data tab and then Quad Store Upload 4. Select your RDF file (only one at a time), give a proper graph name and click upload 5. If there is no syntax error, the RDF file will be added to the virtuoso server 6. Query using the public interface given at 4

5 LOADING DATA INTO VIRTUOSO SPARQL ENDPOINT USING BULK LOAD 1. Go to bin folder and click on isql (D:\virtuoso\virtuoso-opensource\isql). 2. Run the following command to clear any previous load list of files SQL>delete from db.dba.load_list; 3. Enter the following command by providing the appropriate input values SQL>ld_dir( <sourcefilename-or-directory>,'<file name pattern>, graph iri ); 4. Please mind forward slash. In our case the parameters are given below. SQL>ld_dir ( D:/virtuoso/DBPediaData, *.nt, ); 5. Next enter the command SQL> select * from DB.DBA.load_list; 6. Finally, enter the command to start the bulk load and wait for completion. SQL>rdf_loader_run(); 7. After successful upload run the shut down command otherwise the file will be not completely uploaded SQL> shutdown; 5

6 SPARQL QUERYING DBPEDIA 6

7 DBPEDIA LOGO 7

8 QUERY #1 DBPEDIA S SPARQL UI SELECT * WHERE {?city rdf:type < This query returns all of the URIs that identify as cities that are of type Populated Place". 8

9 QUERY #2 POPULATION TOTAL SELECT * WHERE {?city rdf:type dbp:populatedplace.?city dbp:populationtotal?poptotal. This query returns the cities as well as their total populations. 9

10 QUERY #3 TOTAL AND METRO POPULATION SELECT * WHERE {?city rdf:type dbp:populatedplace; dbp:populationtotal?poptotal ; dbp:populationmetro?popmetro. This query returns the cities with their total populations and metro populations.. 10

11 QUERY #4 OPTIONAL CLAUSE SELECT * WHERE {?city rdf:type dbp:populatedplace; dbp:populationtotal?poptotal. OPTIONAL {?city dbp:populationmetro?popmetro. This query returns the cities, their total population and optionally the metro population, if it exists. 11

12 QUERY #5 ORDER BY CLAUSE SELECT * WHERE {?city rdf:type dbp:populatedplace; dbp:populationtotal?poptotal. OPTIONAL {?city dbp:populationmetro?popmetro. ORDER BY desc(?poptotal) This query returns the cities, their total population, and optionally their metro populations. The results are returned in the order of their total populations. 12

13 QUERY #6 LIMIT AND OFFSET CLAUSES SELECT * WHERE {?city rdf:type dbp:populatedplace; dbp:populationtotal?poptotal. OPTIONAL {?city dbp:populationmetro?popmetro. ORDER BY desc(?poptotal) LIMIT 10 OFFSET 5 This query returns the cities, their total population, and optionally their metro populations. The results are returned in the order of their total populations. At most 10 results will be returned, starting with the 5th result. 13

14 QUERY #7 FILTER SELECT * WHERE {?city rdf:type dbp:populatedplace; dbp:populationtotal?poptotal. OPTIONAL {?city dbp:populationmetro?popmetro. FILTER (?poptotal > 50000) ORDER BY desc(?poptotal) This is the same as Query 6, but returns places that have a total population of more than 50,000. Logical: &&,,! Mathematical: +, -, *, / Comparison: =,!=, <, >, <=, >= SPARQL tests: isuri, isblank, isliteral, bound SPARQL accessors: str, lang, datatype Other: sameterm, langmatches, regex 14

15 QUERY #8 RDFS PREDICATE - LABEL SELECT * WHERE {?city rdf:type dbp:populatedplace; dbp:populationtotal?poptotal; rdfs:label?name OPTIONAL {?city dbp:populationmetro?popmetro. FILTER (?poptotal > 50000) ORDER BY desc(?poptotal) This query is the same as query 7, but brings back the human readable name of each place with the results. 15

16 QUERY #9 LANGUAGE MATCHING SELECT * WHERE {?city rdf:type dbp:populatedplace; dbp:populationtotal?poptotal; rdfs:label?name OPTIONAL {?city dbp:populationmetro?popmetro. FILTER (?poptotal > && langmatches(lang(?name), "EN")) ORDER BY desc(?poptotal) Query 8, but requesting only English labels for the matching patterns. 16

17 QUERY #9A LANGUAGE MATCHING SELECT * WHERE {?city rdf:type dbp:populatedplace; dbp:populationtotal?poptotal; rdfs:label?name OPTIONAL {?city dbp:populationmetro?popmetro. FILTER (?poptotal > && lang(?name) = "en") ORDER BY desc(?poptotal) Query 9 can be rewritten equivalently without the langmatches operator and using "=" and "en" (lowercase) instead of "EN" (uppercase):. 17

18 QUERY #10 REGEX REGULAR EXPRESSION SELECT * WHERE {?city rdf:type dbp:populatedplace; dbp:populationtotal?poptotal; rdfs:label?name OPTIONAL {?city dbp:populationmetro?popmetro. FILTER (?poptotal > && langmatches(lang(?name), "EN") && regex(str(?name),"abad")) ORDER BY desc(?poptotal) It is the same as Query 9, but matching only cities with abad" in their names. 18

19 QUERY #11 NOT OPERATOR SELECT * WHERE {?city rdf:type dbp:populatedplace; dbp:populationtotal?poptotal ; rdfs:label?name OPTIONAL {?city dbp:populationmetro?popmetro. FILTER (?poptotal > && langmatches(lang(?name), "EN") ) FILTER(!bound(?popMetro)) ORDER BY desc(?poptotal) This query is the same as before, except that it returns only cities that do not have a metro population. 19

20 QUERY #11A NOT OPERATOR Find the person entries in Tim Berners-Lee's FOAF file that do not contain a URL for the person's FOAF file. PREFIX foaf: < SELECT?name?url FROM < WHERE {?person a foaf:person ; foaf:name?name. OPTIONAL {?person rdfs:seealso?url FILTER(!bound(?url)) Negation in SPARQL 1.0 was done using OPTIONAL, the bound filter, and the logical-not operator. OPTIONAL clause binds a variable in cases we want to exclude, and the filter removes those cases. Try it with ARQ. ( 20

21 QUERY #11B MINUS Find the person entries in Tim Berners-Lee's FOAF file that do not contain a URL for the person's FOAF file. PREFIX foaf: < SELECT?name?url FROM < WHERE {?person a foaf:person ; foaf:name?name. MINUS {?person rdfs:seealso?url SPARQL 1.1 includes a MINUS graph pattern clause: a binary operator that removes bindings that match the right-hand side. Try it with ARQ. ( 21

22 QUERY #11C NOT EXISTS Find the person entries in Tim Berners-Lee's FOAF file that do not contain a URL for the person's FOAF file. PREFIX foaf: < SELECT?name?url FROM < WHERE {?person a foaf:person ; foaf:name?name. FILTER(NOT EXISTS {?person rdfs:seealso?url ) SPARQL 1.1 includes a NOT EXISTS filter that uses the bindings from a solution to test whether or not a given graph pattern exists. In most cases, negation can be done with either MINUS or NOT EXISTS -- there are some differences in edge cases, though! Try it with ARQ. ( 22

23 QUERY #12 UNION SELECT * WHERE { {?city rdf:type dbp:populatedplace; dbp:populationtotal?poptotal; rdfs:label?name OPTIONAL {?city dbp:populationmetro?popmetro. FILTER (?poptotal > && langmatches(lang(?name), "EN") && regex(str(?name),"abad")) UNION {?city rdf:type dbp:populatedplace; dbp:populationtotal?poptotal; rdfs:label?name OPTIONAL {?city dbp:populationmetro?popmetro. FILTER (?poptotal > && langmatches(lang(?name), "EN") && regex(str(?name),"pur")) ORDER BY desc(?poptotal) This query returns cities that are of type "Cities in Texas" or of type "Cities in California".. 23

24 QUERY #13 NAMED GRAPHS AND THE GRAPH CLAUSE SELECT * WHERE { GRAPH?g {?city rdf:type < This query returns the cities that are of type "Cities in Texas" and the graph in which each city resource is contained. 24

25 QUERY #14 ASK ASK WHERE { < rdf:type dbp:populatedplace. ASK queries checks if there is at least one result for a given query pattern. The result is true or false. This query asks if Islamabad is a Populated Place. 25

26 QUERY #15 ASK ASK WHERE {?city rdf:type dbp:populatedplace ; dbp:populationtotal?poptotal ; dbp:populationmetro?popmetro. FILTER (?poptotal > &&?popmetro < ) This query asks if there exists a city in Texas that has a total population greater than 600,000 and a metro population less than 1,

27 QUERY #16 DESCRIBE DESCRIBE < DESCRIBE queries returns an RDF graph that describes a resource. The implementation of this return form is up to each query engine. This query returns an RDF graph that describes Austin. 27

28 QUERY #17 DESCRIBE DESCRIBE?city WHERE {?city rdf:type dbp:populatedplace ; dbp:populationtotal?poptotal ; dbp:populationmetro?popmetro. FILTER (?poptotal > &&?popmetro < ) This query returns an RDF graph that describes all the cities that have a total population greater than 600,000 and a metro population less than 1,

29 QUERY #18 DESCRIBE CONSTRUCT {?city rdf:type < ; < ; < ; < WHERE {?city rdf:type dbp:populatedplace ; dbp:populationtotal?poptotal ; rdfs:label?name ; dbp:populationmetro?popmetro. FILTER (?poptotal > && langmatches(lang(?name), "EN")) This query constructs a new RDF graph for cities in Texas that have a metro population greater than 500,

Chapter 3 Querying RDF stores with SPARQL

Chapter 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 information

MI-PDB, MIE-PDB: Advanced Database Systems

MI-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 information

Day 2. RISIS Linked Data Course

Day 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 information

SPARQL By Example: The Cheat Sheet

SPARQL 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 information

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES Semantics of SPARQL Sebastian Rudolph Dresden, June 14 Content Overview & XML 9 APR DS2 Hypertableau II 7 JUN DS5 Introduction into RDF 9 APR DS3 Tutorial 5 11

More information

Semantic Web Information Management

Semantic 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 information

Reminder: RDF triples

Reminder: 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 information

SPARQL QUERY LANGUAGE WEB:

SPARQL 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 information

RDF AND SPARQL. Part IV: Syntax of SPARQL. Dresden, August Sebastian Rudolph ICCL Summer School

RDF 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 information

Query RDF Data (SPARQL)

Query 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 information

infoh509 xml & web technologies lecture 9: sparql Stijn Vansummeren February 14, 2017

infoh509 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 information

Interacting with Linked Data Part I: General Introduction

Interacting 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 information

Implementing and extending SPARQL queries over DLVHEX

Implementing 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 information

RDF AND SPARQL. Part V: Semantics of SPARQL. Dresden, August Sebastian Rudolph ICCL Summer School

RDF AND SPARQL. Part V: Semantics of SPARQL. Dresden, August Sebastian Rudolph ICCL Summer School RDF AND SPARQL Part V: Semantics of SPARQL Sebastian Rudolph ICCL Summer School Dresden, August 2013 Agenda 1 Recap 2 SPARQL Semantics 3 Transformation of Queries into Algebra Objects 4 Evaluation of the

More information

Introduction to Semantic Web Databases. Version 1 Prepared By: Amgad Madkour Ph.D. Candidate Purdue University April 2018

Introduction to Semantic Web Databases. Version 1 Prepared By: Amgad Madkour Ph.D. Candidate Purdue University April 2018 Introduction to Semantic Web Databases Version 1 Prepared By: Amgad Madkour Ph.D. Candidate Purdue University April 2018 Semantic Web Motivation Represents the next generation of the the world wide web

More information

Semantic Web Technologies: Assignment 1. Axel Polleres Siemens AG Österreich

Semantic 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 information

COMPUTER AND INFORMATION SCIENCE JENA DB. Group Abhishek Kumar Harshvardhan Singh Abhisek Mohanty Suhas Tumkur Chandrashekhara

COMPUTER 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 information

SPARQL. Fausto Giunchiglia and Mattia Fumagallli. University of Trento

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 information

Querying Semantic Web Data

Querying 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 information

Introduction to a Web of Linked Data

Introduction 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 information

Web NDL Authorities SPARQL API Specication

Web NDL Authorities SPARQL API Specication Web NDL Authorities SPARQL API Specication National Diet Library of Japan March 31th, 2014 Contents 1 The Outline of the Web NDLA SPARQL API 2 1.1 SPARQL query API.................................... 2

More information

Semantic Web Systems Querying Jacques Fleuriot School of Informatics

Semantic 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 information

AN INTRODUCTION TO ONTOLOGY DEVELOPMENT

AN INTRODUCTION TO ONTOLOGY DEVELOPMENT AN INTRODUCTION TO ONTOLOGY DEVELOPMENT Stefano Bragaglia - May 14, 2010 2 A (REALLY) BRIEF HISTORY OF THE SEMANTIC WEB The World-Wide Web (W3) was developed to be a pool of human knowledge, which would

More information

INF3580 SPRING 2014 EXERCISES WEEK 4

INF3580 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 information

Semantic Web and Python Concepts to Application development

Semantic 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 information

From the Web to the Semantic Web: RDF and RDF Schema

From 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 information

Today s Plan. INF3580 Semantic Technologies Spring Outline. Oblig 4. Lecture 13: More SPARQL. Kjetil Kjernsmo.

Today 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 information

3. 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 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 information

SPARQL. Dr Nicholas Gibbins

SPARQL. 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 information

INFO216: Advanced Modelling

INFO216: Advanced Modelling INFO216: Advanced Modelling Theme, spring 2018: Modelling and Programming the Web of Data Andreas L. Opdahl Session 3: SPARQL Themes: introducing SPARQL Update SPARQL 1.1 Update

More information

Querying the Semantic Web

Querying 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 information

Querying RDF & RDFS. Several query languages exist to retrieve

Querying 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 information

Nested Queries in SPARQL

Nested Queries in SPARQL Nested Queries in SPARQL Renzo Angles Claudio Gutierrez Presented by: Nuno Lopes Stefan.Decker@deri.org http://www.stefandecker.org/! Copyright 2010. All rights reserved. Motivation for nested queries

More information

Semantic Web Fundamentals

Semantic Web Fundamentals Semantic Web Fundamentals Web Technologies (706.704) 3SSt VU WS 2017/18 Vedran Sabol with acknowledgements to P. Höfler, V. Pammer, W. Kienreich ISDS, TU Graz December 11 th 2017 Overview What is Semantic

More information

Aperçu de SPARQL. Exemples tirés

Aperç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 information

Semantic Web Systems Sample Solution for Assignment 2 part 1. SPARQL Queries

Semantic Web Systems Sample Solution for Assignment 2 part 1. SPARQL Queries Semantic Web Systems 2015 2016 Sample Solution for Assignment 2 part 1 SPARQL Queries (1) I have installed Virtuoso Open Link following these instructions: http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/main/vosusagewindows

More information

SPARQL Protocol And RDF Query Language

SPARQL 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 information

Representing Linked Data as Virtual File Systems

Representing 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 information

On 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 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 information

Lars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on XML and Semantic Web

Lars 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 information

Semantic Web Fundamentals

Semantic Web Fundamentals Semantic Web Fundamentals Web Technologies (706.704) 3SSt VU WS 2018/19 with acknowledgements to P. Höfler, V. Pammer, W. Kienreich ISDS, TU Graz January 7 th 2019 Overview What is Semantic Web? Technology

More information

Filter: Evaluable Expression. List Syntax. Tests. Filter: Evaluable Expression. Tests : functions. Tests 06/09/2013. (1?x v )

Filter: 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 information

Today 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 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 information

INF3580/4580 Semantic Technologies Spring 2015

INF3580/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 information

SPARQL UniProt.RDF. Everyone has had some introduction slash knowledge of RDF.

SPARQL UniProt.RDF. Everyone has had some introduction slash knowledge of RDF. SPARQL UniProt.RDF Everyone has had some introduction slash knowledge of RDF. Jerven Bolleman Developer Swiss-Prot Group Swiss Institute of Bioinformatics Tutorial plan You should have used Topbraid composer

More information

Mapping Relational Data to RDF with Virtuoso's RDF Views

Mapping Relational Data to RDF with Virtuoso's RDF Views Mapping Relational Data to RDF with Virtuoso's RDF Views Among its many talents, OpenLink Virtuoso Universal Server includes SPARQL support and an RDF data store tightly integrated with its relational

More information

Building Blocks of Linked Data

Building 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 information

XML and Semantic Web Technologies. III. Semantic Web / 3. SPARQL Query Language for RDF

XML 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 information

Faculty of Science and Technology MASTER S THESIS

Faculty of Science and Technology MASTER S THESIS Faculty of Science and Technology MASTER S THESIS Study program/ Specialization: Master in Computer Science Spring semester, 2011 Open / Restricted access Writer: Yi Han Faculty supervisor: Professor.

More information

Jena.

Jena. 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 information

path-based language Versa (see XPath for RDF forward/backward traversal, filtering, but no support for restructuring/constructing

path-based language Versa (see   XPath for RDF forward/backward traversal, filtering, but no support for restructuring/constructing 1.1 Querying Semantic Web SPARQL History of RDF Query Languages relational-based SPARQL, RQL, TRIPLE, Xcerpt, SeRQL reactive-rule language Algea (see http://www.w3.org/2001/annotea) actions (ask, assert,

More information

OLAP over Federated RDF Sources

OLAP 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 information

Unit 1 a Bird s Eye View on RDF(S), OWL & SPARQL

Unit 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 information

Inception of RDF: Context

Inception 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 information

Semantic Web. Lecture 12: SW Programming Dr. Knarig Arabshian

Semantic 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 information

BASI DI DATI II 2 modulo Parte VIII: SPARQL

BASI 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 information

SPAR-QL. Mario Arrigoni Neri

SPAR-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 information

CS Knowledge Representation and Reasoning (for the Semantic Web)

CS 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 information

RESOURCES DESCRIPTION FRAMEWORK: RDF

RESOURCES DESCRIPTION FRAMEWORK: RDF 1 RESOURCES DESCRIPTION FRAMEWORK: RDF Hala Skaf-Molli Associate Professor Nantes University Hala.Skaf@univ-nantes.fr http://pagesperso.lina.univ-nantes.fr/~skaf-h Linked Data Stack (Semantic Web Cake)

More information

Linking Distributed Data across the Web

Linking Distributed Data across the Web Linking Distributed Data across the Web Dr Tom Heath Researcher, Platform Division Talis Information Ltd tom.heath@talis.com http://tomheath.com/ Overview Background From a Web of Documents to a Web of

More information

Multi-agent and Semantic Web Systems: Querying

Multi-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 information

Semantic 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 ه عا ی 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 information

INF3580/4580 MANDATORY EXERCISE no. 2

INF3580/4580 MANDATORY EXERCISE no. 2 INF3580/4580 MANDATORY EXERCISE no. 2 Published date: 30.01.2018 Due date: 07.02.2018 23:59. Delivery file: 1: Simpsons.java. Delivery attempts: 1. Read the whole of this document thoroughly before solving

More information

Today s Plan. 1 Repetition: RDF. 2 Jena: Basic Datastructures. 3 Jena: Inspecting Models. 4 Jena: I/O. 5 Example. 6 Jena: ModelFactory and ModelMaker

Today s Plan. 1 Repetition: RDF. 2 Jena: Basic Datastructures. 3 Jena: Inspecting Models. 4 Jena: I/O. 5 Example. 6 Jena: ModelFactory and ModelMaker Today s Plan INF3580/4580 Semantic Technologies Spring 2015 Lecture 3: Jena A Java Library for RDF Martin Giese 2nd February 2015 2 Department of Informatics University of Oslo INF3580/4580 :: Spring 2015

More information

STTL SPARQL Template Transformation Language for RDF Graphs

STTL 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 information

Multi-agent Semantic Web Systems: RDF Models

Multi-agent Semantic Web Systems: RDF Models ... Multi-agent Semantic Web Systems: RDF Models Ewan Klein School of Informatics January 30, 2012 Ewan Klein (School of Informatics) Multi-agent Semantic Web Systems: RDF Models January 30, 2012 1 / 33

More information

Profiles Research Networking Software API Guide

Profiles Research Networking Software API Guide Profiles Research Networking Software API Guide Documentation Version: March 13, 2013 Software Version: ProfilesRNS_1.0.3 Table of Contents Overview... 2 PersonID, URI, and Aliases... 3 1) Profiles RNS

More information

Semantic Web and Natural Language Processing

Semantic Web and Natural Language Processing Semantic Web and Natural Language Processing Wiltrud Kessler Institut für Maschinelle Sprachverarbeitung Universität Stuttgart Semantic Web Winter 2014/2015 This work is licensed under a Creative Commons

More information

SPARQLMotion TM. Tutorial. Version 1.1. April 5, SPARQLMotion, Copyright TopQuadrant, Inc. 1 of 31

SPARQLMotion TM. Tutorial. Version 1.1. April 5, SPARQLMotion, Copyright TopQuadrant, Inc. 1 of 31 SPARQLMotion TM Tutorial Version 1.1 April 5, 2009 1 of 31 Revision History Date Version Revision August 27, 2008 1.0 April 1, 2009 1.1 Corrected various errata Exercise 2 added section on Preference for

More information

Today s Plan. 1 Repetition: RDF. 2 Jena: Basic Datastructures. 3 Jena: Inspecting Models. 4 Jena: I/O. 5 Example. 6 Jena: ModelFactory and ModelMaker

Today s Plan. 1 Repetition: RDF. 2 Jena: Basic Datastructures. 3 Jena: Inspecting Models. 4 Jena: I/O. 5 Example. 6 Jena: ModelFactory and ModelMaker Today s Plan INF3580/4580 Semantic Technologies Spring 2017 Lecture 3: Jena A Java Library for RDF Martin Giese 30th January 2017 2 Department of Informatics University of Oslo INF3580/4580 :: Spring 2017

More information

DBPedia (dbpedia.org)

DBPedia (dbpedia.org) Matt Harbers Databases and the Web April 22 nd, 2011 DBPedia (dbpedia.org) What is it? DBpedia is a community whose goal is to provide a web based open source data set of RDF triples based on Wikipedia

More information

SPARQL: An RDF Query Language

SPARQL: An RDF Query Language SPARQL: An RDF Query Language Wiltrud Kessler Institut für Maschinelle Sprachverarbeitung Universität Stuttgart Semantic Web Winter 2015/16 This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike

More information

AN INTRODUCTION TO ONTOLOGY DEVELOPMENT. Stefano Bragaglia

AN INTRODUCTION TO ONTOLOGY DEVELOPMENT. Stefano Bragaglia AN INTRODUCTION TO ONTOLOGY DEVELOPMENT Stefano Bragaglia 2 A (REALLY) BRIEF HISTORY OF THE SEMANTIC WEB The World-Wide Web (W3) was developed to be a pool of human knowledge, which would allow collaborators

More information

Connecting SMW to RDF Databases: Why, What, and How?

Connecting SMW to RDF Databases: Why, What, and How? University of Oxford Department of Computer Science Connecting SMW to RDF Databases: Why, What, and How? Markus Krötzsch University of Oxford SMWCon 2011 Fall, Berlin * * Talk given during the 2011 papal

More information

The P2 Registry

The P2 Registry The P2 Registry -------------------------------------- Where the Semantic Web and Web 2.0 meet Digital Preservation David Tarrant, Steve Hitchcock & Les Carr davetaz / sh94r / lac @ecs.soton.ac.uk School

More information

a paradigm for the Introduction to Semantic Web Semantic Web Angelica Lo Duca IIT-CNR Linked Open Data:

a paradigm for the Introduction to Semantic Web Semantic Web Angelica Lo Duca IIT-CNR Linked Open Data: Introduction to Semantic Web Angelica Lo Duca IIT-CNR angelica.loduca@iit.cnr.it Linked Open Data: a paradigm for the Semantic Web Course Outline Introduction to SW Give a structure to data (RDF Data Model)

More information

Querying multiple Linked Data sources on the Web. Ruben Verborgh

Querying multiple Linked Data sources on the Web. Ruben Verborgh Querying multiple Linked Data sources on the Web Ruben Verborgh If you have a Linked Open Data set, you probably wonder: How can people query my Linked Data on the Web? A public SPARQL endpoint gives live

More information

USER MANUAL Version 1.4

USER MANUAL Version 1.4 USER MANUAL Version 1.4 DIQA Projektmanagement GmbH Pfinztalstraße 90 76227 Karlsruhe http://www.diqa-pm.com Document Information Document GRASP v1.3 manual v19.docx Type User Guide created 2013-01-15

More information

Using Linked Data Concepts to Blend and Analyze Geospatial and Statistical Data Creating a Semantic Data Platform

Using Linked Data Concepts to Blend and Analyze Geospatial and Statistical Data Creating a Semantic Data Platform Using Linked Data Concepts to Blend and Analyze Geospatial and Statistical Data Creating a Semantic Data Platform Hans Viehmann Product Manager EMEA ORACLE Corporation October 17, 2018 @SpatialHannes Safe

More information

Authentication via Active Directory and LDAP

Authentication via Active Directory and LDAP Authentication via Active Directory and LDAP Overview The LDAP and Active Directory authenticators available in Datameer provide remote authentication services for Datameer users. Administrators can configure

More information

Semantic Integration with Apache Jena and Apache Stanbol

Semantic Integration with Apache Jena and Apache Stanbol Semantic Integration with Apache Jena and Apache Stanbol All Things Open Raleigh, NC Oct. 22, 2014 Overview Theory (~10 mins) Application Examples (~10 mins) Technical Details (~25 mins) What do we mean

More information

Unit 2 RDF Formal Semantics in Detail

Unit 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 information

SPARQL ME-E4300 Semantic Web,

SPARQL 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 information

SEMANTIC WEB 03 RDF DATA MODEL RESOURCE DESCRIPTION FRAMEWORK IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD

SEMANTIC WEB 03 RDF DATA MODEL RESOURCE DESCRIPTION FRAMEWORK IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD SEMANTIC WEB 03 RDF DATA MODEL RESOURCE DESCRIPTION FRAMEWORK IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD WWW.IMRANIHSAN.COM MOTIVATION How do you encode the piece of knowledge: or

More information

KNOWLEDGE GRAPHS. Lecture 11: Cypher / Knowledge Graph Quality. TU Dresden, 8th Jan Markus Krötzsch Knowledge-Based Systems

KNOWLEDGE GRAPHS. Lecture 11: Cypher / Knowledge Graph Quality. TU Dresden, 8th Jan Markus Krötzsch Knowledge-Based Systems KNOWLEDGE GRAPHS Lecture 11: Cypher / Knowledge Graph Quality Markus Krötzsch Knowledge-Based Systems TU Dresden, 8th Jan 2019 Review: The Cypher Query Language Example: Find pairs of siblings: MATCH (parent)-[:has_child]->(child1),

More information

Formalising 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) 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 information

Wonghong Jang LG Sangnam Digital Library Manager

Wonghong Jang LG Sangnam Digital Library Manager Sam Oh Professor, Sungkyunkwan University LIS Affiliate Professor, University of Washington ISO/IEC JTC1/SC34 Chair ISO TC46/SC9 Chair DCMI Oversight Committee samoh@skku.edu Wonghong Jang LG Sangnam Digital

More information

R2RML: RDB to RDF Mapping Language

R2RML: RDB to RDF Mapping Language 1 : RDB to RDF Mapping Language Werner Nutt 2 Acknowledgment These slides are based on a slide set by Mariano Rodriguez 3 Reading Material/Sources specification by W3C http://www.w3.org/tr/r2rml/ specification

More information

Triple Stores in a Nutshell

Triple Stores in a Nutshell Triple Stores in a Nutshell Franjo Bratić Alfred Wertner 1 Overview What are essential characteristics of a Triple Store? short introduction examples and background information The Agony of choice - what

More information

Rajashree Deka Tetherless World Constellation Rensselaer Polytechnic Institute

Rajashree Deka Tetherless World Constellation Rensselaer Polytechnic Institute Rajashree Deka Tetherless World Constellation Rensselaer Polytechnic Institute Ø The majority of data underpinning the Web are stored in Relational Databases (RDB). Ø Advantages: Secure and scalable architecture.

More information

Semantics for Biodiversity Primer Session Steve Baskauf and Mark Schildhauer

Semantics for Biodiversity Primer Session Steve Baskauf and Mark Schildhauer Semantics for Biodiversity Primer Session Steve Baskauf and Mark Schildhauer W3C Resource Description Framework http://www.w3.org/rdf/ W3C Semantic Web Activity http://www.w3.org/2001/sw/ logos used according

More information

Using RDF to Model the Structure and Process of Systems

Using RDF to Model the Structure and Process of Systems Using RDF to Model the Structure and Process of Systems Marko A. Rodriguez Jennifer H. Watkins Johan Bollen Los Alamos National Laboratory {marko,jhw,jbollen}@lanl.gov Carlos Gershenson New England Complex

More information

Linked Data Tutorial

Linked Data Tutorial Linked Data Tutorial By: Noureddin Sadawi http://people.brunel.ac.uk/~csstnns 05 Feb 2014 1 Overview In this short tutorial we are going to see how we can create and manipulate semantic data using ontologies

More information

Teiid Designer User Guide 7.5.0

Teiid Designer User Guide 7.5.0 Teiid Designer User Guide 1 7.5.0 1. Introduction... 1 1.1. What is Teiid Designer?... 1 1.2. Why Use Teiid Designer?... 2 1.3. Metadata Overview... 2 1.3.1. What is Metadata... 2 1.3.2. Editing Metadata

More information

Semantic Web Systems Linked Open Data Jacques Fleuriot School of Informatics

Semantic Web Systems Linked Open Data Jacques Fleuriot School of Informatics Semantic Web Systems Linked Open Data Jacques Fleuriot School of Informatics 9 th February 2015 In the previous lecture l Querying with XML Basic idea: search along paths in an XML tree e.g. path expression:

More information

An overview of RDB2RDF techniques and tools

An 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 information

Re-using Cool URIs: Entity Reconciliation Against LOD Hubs

Re-using Cool URIs: Entity Reconciliation Against LOD Hubs Re-using Cool URIs: Entity Reconciliation Against LOD Hubs Fadi Maali, Richard Cyganiak, Vassilios Peristeras LDOW 2011 Copyright 2009. All rights reserved. The Web of Data The Web of Data The Web of Data

More information

State of Bio2RDF. Marc-Alexandre Nolin François Belleau Peter Ansell Other Bio2RDF collaborators

State of Bio2RDF. Marc-Alexandre Nolin François Belleau Peter Ansell Other Bio2RDF collaborators State of Bio2RDF Marc-Alexandre Nolin François Belleau Peter Ansell Other Bio2RDF collaborators The Problem November 24, 2008 State of Bio2RDF 2 The Problem How provide RDF document when you can not write

More information

COMP9321 Web Application Engineering

COMP9321 Web Application Engineering COMP9321 Web Application Engineering Semester 2, 2017 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 5 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2465 1 Semantic

More information

An Introduction to Linked Open Data

An Introduction to Linked Open Data An Introduction to Linked Open Data Felix.Ostrowski@googlemail.com (@literarymachine) Pascal Christoph@hbz-nrw.de (@dr0ide) Adrian Pohl@hbz-nrw.de (@acka47) #swib12 Pre-Conference Workshop Monday, November

More information