Interacting with Linked Data Part I: General Introduction

Similar documents
Usage of Linked Data Introduction and Application Scenarios. Presented by: Barry Norton

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

Building Blocks of Linked Data

Day 2. RISIS Linked Data Course

Representing musicology knowledge on the Web using Linked Data

SPARQL. Fausto Giunchiglia and Mattia Fumagallli. University of Trento

Semantic Web and Python Concepts to Application development

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

SPARQL. A Query-language for the Web of Data

BUILDING THE SEMANTIC WEB

RESOURCES DESCRIPTION FRAMEWORK: RDF

Accessing information about Linked Data vocabularies with vocab.cc

ITARC Stockholm Olle Olsson World Wide Web Consortium (W3C) Swedish Institute of Computer Science (SICS)

ITARC Stockholm Olle Olsson World Wide Web Consortium (W3C) Swedish Institute of Computer Science (SICS)

Linking Distributed Data across the Web

Semantic Web Fundamentals

Querying Semantic Web Data

SPAR-QL. Mario Arrigoni Neri

Linked Data: What Now? Maine Library Association 2017

Semantic Web Fundamentals

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

Reminder: RDF triples

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

Semantic Days 2011 Tutorial Semantic Web Technologies

Porting Social Media Contributions with SIOC

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

SPARQL. Dr Nicholas Gibbins

MI-PDB, MIE-PDB: Advanced Database Systems

Multi-agent Semantic Web Systems: RDF Models

Produce and Consume Linked Data with Drupal!

DC-Text - a simple text-based format for DC metadata

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

Semantic Web Information Management

Semantic Web Architecture

INFO216: Advanced Modelling

3. Queries Applied Artificial Intelligence Prof. Dr. Bernhard Humm Faculty of Computer Science Hochschule Darmstadt University of Applied Sciences

Querying RDF & RDFS. Several query languages exist to retrieve

Serving Ireland s Geospatial as Linked Data on the Web

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

Today s Plan. INF3580/4580 Semantic Technologies Spring Reminder: RDF triples. Outline. Lecture 4: The SPARQL Query Language.

SPARQL Protocol And RDF Query Language

Semantic Web Systems Querying Jacques Fleuriot School of Informatics

Mapping between Digital Identity Ontologies through SISM

Organizing Existing Metadata Terms and Structural Constraints to Support Metadata Schema Creation

Contents. G52IWS: The Semantic Web. The Semantic Web. Semantic web elements. Semantic Web technologies. Semantic Web Services

SEMANTIC WEB AN INTRODUCTION. Luigi De

FedX: Optimization Techniques for Federated Query Processing on Linked Data. ISWC 2011 October 26 th. Presented by: Ziv Dayan

Linked data and its role in the semantic web. Dave Reynolds, Epimorphics

Linked Data and RDF. COMP60421 Sean Bechhofer

COMP6217 Social Networking Technologies Web evolution and the Social Semantic Web. Dr Thanassis Tiropanis

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

Knowledge Representation in Social Context. CS227 Spring 2011

Introducing Linked Data

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

Global standard formats for opening NLK data. Adding to the Global Information Ecosystem

Proposal for Implementing Linked Open Data on Libraries Catalogue

Semantic Integration with Apache Jena and Apache Stanbol

Semantiska webben DFS/Gbg

SPARQL เอกสารหล ก ใน มคอ.3

Semantic Web Company. PoolParty - Server. PoolParty - Technical White Paper.

Library of Congress BIBFRAME Pilot. NOTSL Fall Meeting October 30, 2015

Introduction to RDF & SPARQL

Linked Data Evolving the Web into a Global Data Space

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

Formalising the Semantic Web. (These slides have been written by Axel Polleres, WU Vienna)

Outline. Introduction Semantic Web

MarkLogic Server. Semantics Developer s Guide. MarkLogic 9 May, Copyright 2018 MarkLogic Corporation. All rights reserved.

SPARQL QUERY LANGUAGE WEB:

Jena.

Linked Open Data. University of Rome "Tor Vergata" ART: Artificial Intelligence Tor Vergata. "The Semantic Web done right" Tim Berners-Lee

INF3580/4580 Semantic Technologies Spring 2015

The Semantic Web Revisited. Nigel Shadbolt Tim Berners-Lee Wendy Hall

Inception of RDF: Context

Today s Plan. INF3580 Semantic Technologies Spring RDF on the Web. Outline. Lecture 13: Publishing RDF Data on the Web.

Linked Data & Semantic Web Technology.

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

Why You Should Care About Linked Data and Open Data Linked Open Data (LOD) in Libraries

Finding Similarity and Comparability from Merged Hetero Data of the Semantic Web by Using Graph Pattern Matching

Multi-agent Semantic Web Systems: Data & Metadata

Linked Data. Department of Software Enginnering Faculty of Information Technology Czech Technical University in Prague Ivo Lašek, 2011

O.Curé [1 ] Mashup, Microformats, RDFa and GRDDL

The Semantic Web DEFINITIONS & APPLICATIONS

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

Prof. Dr. Christian Bizer

Linked Data and RDF. COMP60421 Sean Bechhofer

DBpedia-An Advancement Towards Content Extraction From Wikipedia

Nested Queries in SPARQL

2. Knowledge Representation Applied Artificial Intelligence

Semantic Web Programming

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

Querying the Semantic Web

Semantic Web. MPRI : Web Data Management. Antoine Amarilli Friday, January 11th 1/29

BASI DI DATI II 2 modulo Parte VIII: SPARQL

Implementing and extending SPARQL queries over DLVHEX

Linked Data Overview and Usage in Social Networks

Semantic Adaptation Approach for Adaptive Web-Based Systems

Web NDL Authorities SPARQL API Specication

Orchestrating Music Queries via the Semantic Web

Introduction to a Web of Linked Data

Data management and integration

Transcription:

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- Part V: Hands-on

MOTIVATION SCENARIO 3

Music! Provision of a music-based portal. Bring together a number of disparate components of dataoriented content: 1. Musical content (streaming data & downloads) 2. Music and artist metadata 3. Review content 4. Visual content (pictures of artists & albums) 4

Data acquisition LD Dataset Access Application Music! Analysis & Mining Module RDFa Visualization Module SPARQL Endpoint Vocabulary Mapping Interlinking Cleansing Integrated Dataset Publishing Physical Wrapper LD Wrapper R2RML Transf. LD Wrapper Streaming providers Musical Content Downloads Metadata RDF/ XML Other content 5

Demo Information Workbench: http://musicbrainz.fluidops.net User name: admin Password: iwb Page with sample queries: http://musicbrainz.fluidops.net/resource/samplequeries OWLIM SPARQL Endpoint: http://euclid.sti2.org:9080/sparql User: exercise2 Password: exercise2 6

LINKED DATA FOUNDATIONS 7

Internet The growth of the Internet Source: http://www.evolutionoftheweb.com 8

The Web Billions of diverse documents online, but it is not easily possible to automatically: Retrieve relevant documents. Extract information. Combine information in a meaningful way. Idea: Also publish machine processable data on the web. Formulate questions in terms understandable for a machine. Do this in a standardized way so machines can interoperate. The Web becomes a Web of Data This provides a common framework to share knowledge on the Web across application boundaries. 9

The Web: Evolution Web of Documents Web of Data Hyperlinks Typed Links "Documents" "Things" 10

Web Technology Basics Uniform Resource Identifier (URI) Compact sequence of characters that identifies an abstract or physical resource. Examples: ldap://[2001:db8::7]/c=gb?objectclass?one mailto:john.doe@example.com news:comp.infosystems.www.servers.unix tel:+1-816-555-1212 telnet://192.0.2.16:80/ urn:oasis:names:specification:docbook:dtd:xml:4.1.2 http://dbpedia.org/resource/karlsruhe 11

Describing Data Vocabularies Collections of defined relationships and classes of resources. Classes group together similar resources. Terms from well-known vocabularies should be reused wherever possible. New terms should be define only if you can not find required terms in existing vocabularies. 12

Describing Data Vocabularies A set of well-known vocabularies has evolved in the Semantic Web community. Some of them are: Vocabulary Description Classes and Relationships Friend-of-a-Friend (FOAF) Dublin Core (DC) Semantically-Interlinked Online Communities (SIOC) Music Ontology (MO) Simple Knowledge Organization System (SKOS) Vocabulary for describing people. Defines general metadata attributes. Vocabulary for representing online communities. Provides terms for describing artists, albums and tracks. Vocabulary for representing taxonomies and loosely structured knowledge. foaf:person, foaf:agent, foaf:name, foaf:knows, foaf:member dc:fileformat, dc:mediatype, dc:creator, dc:description sioc:community, sioc:forum, sioc:post, sioc:follows, sioc:topic mo:musicartist, mo:musicgroup, mo:signal, mo:member, mo:record skos:concept, skos:inscheme, skos:definition, skos:example 13

Semantics on the Web Semantic Web Stack Berners-Lee (2006) 14

Semantics on the Web RDF Resource Description Framework RDF is the basis layer of the Semantic Web stack layer cake. Basic building block: RDF triple. Subject a resource, which may be identified with a URI. Predicate a URI-identified reused specification of the relationship. Object a resource or literal to which the subject is related. 15

Semantics on the Web RDF Resource Description Framework (Example) <http://musicbrainz.org/artist/b10bbbfccf9e-42e0-be17-e2c3e1d2600d#_> <http://www.w3.org/2002/07/owl#sameas> <http://dbpedia.org/resource/the_beatles>. <http://musicbrainz.org/artist/b10bbbfccf9e-42e0-be17-e2c3e1d2600d#_> <http://xmlns.com/foaf/0.1/name> "The Beatles". Literals are given in quotes in N-Triples. URIs are given in angle brackets in N-Triples. In N-Triples every statement is terminated with a full stop. 16

Semantics on the Web RDF Graphs Every set of RDF assertions can then be drawn and manipulated as a (labelled directed) graph: Resources the subjects and objects are nodes of the graph. Predicates each predicate use becomes a label for an arc, connecting the subject to the object. Subject Predicate Object 17

Semantics on the Web RDF Graphs (Example) <http://musicbrainz.org/artist/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d#_> <http://www.w3.org/2002/07/owl#sameas> <http://xmlns.com/foaf/0.1/name> <http://dbpedia.org/resource/the_beatles> "The Beatles" 18

Semantics on the Web RDF Turtle Turtle is a syntax for RDF more readable. Since many URIs share same basis we use prefixes: @prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>. @prefix owl:<http://www.w3.org/2002/07/owl#>. @prefix mo:<http://purl.org/ontology/mo/>. @prefix dbpedia:<http://dbpedia.org/resouce/>. And (sometimes) a unique base: @base <http://musicbrainz.org/>. 21

Semantics on the Web RDF Turtle Also has a simple shorthand for class membership: @base <http://musicbrainz.org/>. @prefix mo:<http://purl.org/ontology/mo/>. <artist/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d#_> a mo:musicgroup. Is equivalent to: <http://musicbrainz.org/artist/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d#_> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/ontology/mo/musicgroup>. 22

Semantics on the Web RDF Turtle When multiple statements apply to same subject they can be abbreviated as follows: <artist/b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d#_> rdfs:label "The Beatles"; owl:sameas dbpedia:the_beatles, <http://www.bbc.co.uk/music/artists/ Same subject Same subject & predicate b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d#artist>. 23

Semantics on the Web RDF Turtle Turtle also provides a simple syntax for datatypes and language tags for literals, respectively: <recording/5098d0a8-d3c3-424e-9367-1f2610724410#_> a mo:signal; rdfs:label "All You Need Is Love" ; mo:duration "PT3M48S"^^xsd:duration. dbpedia:the_beatles dbpedia-owl:abstract "The Beatles were an English rock band formed ( ) "@en, "The Beatles waren eine britische Rockband in den ( ) "@de. 24

LINKED DATA 26

Linked Data Cloud 2007 27

Linked Data Cloud 2008 28

Linked Data Cloud 2009 29

Linked Data Cloud 2010 30

Linked Data Cloud 2012 31

State of the LOD Cloud 1 Total Datasets: 295 Total Triples: 31,634,213,770 Distribution of triples by domain 1 Version 0.3, 09/19/2011 http://www4.wiwiss.fu-berlin.de/lodcloud/state 32

INTRODUCTION TO SPARQL 33

SPARQL * Protocol and RDF Query Language Declarative query language Semantic Web Stack Berners-Lee (2006) 34

SPARQL SPARQL Query Declarative query language for RDF data http://www.w3.org/tr/rdf-sparql-query/ SPARQL Update Declarative manipulation language for RDF data http://www.w3.org/tr/sparql11-update/ SPARQL Protocol Standard for communication between SPARQL services and clients http://www.w3.org/tr/sparql11-protocol/ 35

SPARQL Query 1.1 SPARQL 1.0 only allows accessing the data (query) SPARQL 1.1 introduces: Query extensions Aggregates, Subqueries, Negation, Expressions in the SELECT clause, Property paths, assignment, short form for CONSTRUCT, expanded set of functions and operators Updates Data management: Insert, Delete, Delete/Insert Graph management: Create, Load, Clear, Drop, Copy, Move, Add Federation extension Service, values, service variables (informative) CH 5 36

SPARQL Basics RDF triple: Basic building block, of the form subject, predicate, object. Example: dbpedia:the_beatles foaf:name "The Beatles". RDF triple pattern: Contains one or more variables. Examples: dbpedia:the_beatles foaf:made?album.?album mo:track?track.?album?p?o. RDF quad pattern: Contains graph name: URI or variable. Examples: GRAPH <:g> {:s :p :o.} GRAPH?g {dbpedia:the_beatles foaf:name?o.} 37

QUERYING LINKED DATA WITH SPARQL 38

SPARQL Query Main idea: Pattern matching Queries describe sub-graphs of the queried graph Graph patterns are RDF graphs specified in Turtle syntax, which contain variables (prefixed by? ) dbpedia: The_Beatles foaf:made?album Sub-graphs that match the graph patterns yield a result 39

SPARQL Query Data: dc:title <http:// musicbrainz.org /record/...> foaf:made dbpedia: The_Beatles foaf:made <http:// musicbrainz.org /record/...> dc:title foaf:made <http:// musicbrainz.org /record/...> dc:title "Help!" "Abbey Road" "Let It Be" Graph pattern: dbpedia: The_Beatles foaf:made?album Results:?album <http://musicbrainz.org...> <http://musicbrainz.org...> <http://musicbrainz.org...> 40

SPARQL Query Data: dc:title <http:// musicbrainz.org /record/...> foaf:made dbpedia: The_Beatles foaf:made <http:// musicbrainz.org /record/...> dc:title foaf:made <http:// musicbrainz.org /record/...> dc:title "Help!" "Abbey Road" "Let It Be" Graph pattern:?album Results:?album?title dbpedia: The_Beatles?title dc:title <http://...> <http://...> <http://...> "Help!" "Abbey Road" "Let It Be" 41

SPARQL Query Data: foaf:made dbpedia: The_Beatles foaf:made <http:// musicbrainz.org /record/...> mo:track <http:// musicbrainz.org /track/...> dc:title dc:title "Help!" mo:record mo:track "Help!" Graph pattern:?album Results:?album dbpedia: The_Beatles a <http://musicbrainz.org...> mo:record 42

SPARQL Query: Components PREFIX dbpedia: <http://dbpedia.org/resource/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX mo: <http://purl.org/ontology/mo/> SELECT?album FROM <http://musicbrainz.org/20130302> WHERE { dbpedia:the_beatles foaf:made?album.?album a mo:record ; dc:title?title } ORDER BY?title Prologue: Prefix definitions Subtly different from Turtle syntax - the final period is not used 43

SPARQL Query: Components PREFIX dbpedia: <http://dbpedia.org/resource/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX mo: <http://purl.org/ontology/mo/> SELECT?album FROM <http://musicbrainz.org/20130302> WHERE { dbpedia:the_beatles foaf:made?album.?album a mo:record ; dc:title?title } ORDER BY?title Query form: ASK, SELECT, DESCRIBE or CONSTRUCT SELECT retrieves variables and their bindings as a table 44

SPARQL Query: Components PREFIX dbpedia: <http://dbpedia.org/resource/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX mo: <http://purl.org/ontology/mo/> SELECT?album FROM <http://musicbrainz.org/20130302> WHERE { dbpedia:the_beatles foaf:made?album.?album a mo:record ; dc:title?title } ORDER BY?title Data set specification: This clause is optional FROM or FROM NAMED Indicates the sources for the data against which to find matches 45

SPARQL Query: Components PREFIX dbpedia: <http://dbpedia.org/resource/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX mo: <http://purl.org/ontology/mo/> SELECT?album FROM <http://musicbrainz.org/20130302> WHERE { dbpedia:the_beatles foaf:made?album.?album a mo:record ; dc:title?title } ORDER BY?title Query pattern: Defines patterns to match against the data Generalises Turtle with variables and keywords N.B. final period optional 46

SPARQL Query: Components PREFIX dbpedia: <http://dbpedia.org/resource/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX mo: <http://purl.org/ontology/mo/> SELECT?album FROM <http://musicbrainz.org/20130302> WHERE { dbpedia:the_beatles foaf:made?album.?album a mo:record ; dc:title?title } ORDER BY?title Solution modifier: Modify the result set ORDER BY, LIMIT or OFFSET re-organise rows; GROUP BY combines them 47

Query Forms SPARQL supports different query forms: ASK tests whether or not a query pattern has a solution. Returns yes/no SELECT returns variables and their bindings directly CONSTRUCT returns a single RDF graph specified by a graph template DESCRIBE returns a single RDF graph containing RDF data about resource 48

Summary You have seen so far RDF Turtle syntax Linked Data Introduction to SPARQL

Euclid ebook http://www.euclid-project.eu Course Other channels: @euclid_project euclidproject euclidproject EUCLID - Providing Linked Data 50

THANK YOU! Contact us fluid Operations AG Altrottstr. 31 69190 Walldorf Germany Tel: +49 (0) 6227 3846-527 Fax: +49 (0) 6227 3849-565 E-Mail: sales@fluidops.com www.fluidops.com