RESOURCES DESCRIPTION FRAMEWORK: RDF

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

CS Knowledge Representation and Reasoning (for the Semantic Web)

SPAR-QL. Mario Arrigoni Neri

Semantic Days 2011 Tutorial Semantic Web Technologies

SPARQL. Dr Nicholas Gibbins

Building Blocks of Linked Data

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

Semantic Web and Python Concepts to Application development

Semantic Web In Depth: Resource Description Framework. Dr Nicholas Gibbins 32/4037

SPARQL. Fausto Giunchiglia and Mattia Fumagallli. University of Trento

Interacting with Linked Data Part I: General Introduction

Implementing and extending SPARQL queries over DLVHEX

Linking Data with RDF

Semantics. Matthew J. Graham CACR. Methods of Computational Science Caltech, 2011 May 10. matthew graham

Web 2.0 Lecture 8: Resource Description Framework

BASI DI DATI II 2 modulo Parte VIII: SPARQL

Querying Semantic Web Data

Reminder: RDF triples

RDF. Mario Arrigoni Neri

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

Linked Data: What Now? Maine Library Association 2017

RDF. Charlie Abela Department of Artificial Intelligence

Querying RDF & RDFS. Several query languages exist to retrieve

Semantic Web Fundamentals

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

Introduction to RDF & SPARQL

Web Science & Technologies University of Koblenz Landau, Germany RDF. Steffen Staab. Semantic Web

RDF AND SPARQL. Part I: Basics of RDF. Dresden, August Sebastian Rudolph ICCL Summer School

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

BUILDING THE SEMANTIC WEB

Semantic Web Fundamentals

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

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

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

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

Contents. RDF Resource Description Framework. A Graph Model for KR

What's New in RDF 1.1

INF3580/4580 Semantic Technologies Spring 2015

RDF. Dr. Mustafa Jarrar. Knowledge Engineering (SCOM7348) University of Birzeit

Outline RDF. RDF Schema (RDFS) RDF Storing. Semantic Web and Metadata What is RDF and what is not? Why use RDF? RDF Elements

Knowledge Representation for the Semantic Web

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

Part II. Representation of Meta-Information

MI-PDB, MIE-PDB: Advanced Database Systems

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

Knowledge Representation RDF Turtle Namespace

Linked Data & Semantic Web Technology.

OSM Lecture (14:45-16:15) Takahira Yamaguchi. OSM Exercise (16:30-18:00) Susumu Tamagawa

Semantic Extensions to Defuddle: Inserting GRDDL into XML

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

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

Is Linked Data the future of data integration in the enterprise?

RDF /RDF-S Providing Framework Support to OWL Ontologies

University of Dublin Trinity College. Resource Description Framework (RDF) Melike Şah Direkoğlu

Multi-agent Semantic Web Systems: RDF Models

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

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

Jena.

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

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

KNOWLEDGE GRAPHS. Lecture 3: Modelling in RDF/Introduction to SPARQL. TU Dresden, 30th Oct Markus Krötzsch Knowledge-Based Systems

RDFS. Suresh Manandhar* & Dimitar Kazakov

Semantic Web Technologies: RDF + RDFS

Semantic Web Technologies

Temporality in Semantic Web

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

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

Short notes about OWL 1

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

D-RDF: Dynamic Resource Description Framework

RDF Graph Data Model

Semantic Technologies and CDISC Standards. Frederik Malfait, Information Architect, IMOS Consulting Scott Bahlavooni, Independent

Querying and Updating with SPARQL 1.1. Learning SPARQL. Bob DuCharme

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

Query. Ewan Klein. MASWS 12 February Multi-agent Semantic Web Systems: Query. Ewan Klein. Outline. Introduction RSS.

SEMANTIC WEB AN INTRODUCTION. Luigi De

Multi-agent and Semantic Web Systems: RDF Data Structures

The Semantic Web. What is the Semantic Web?

Semantic Web Publishing. Dr Nicholas Gibbins 32/4037

Opus: University of Bath Online Publication Store

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

Day 2. RISIS Linked Data Course

INF3580/4580 MANDATORY EXERCISE no. 2

XML and Semantic Web Technologies. III. Semantic Web / 1. Ressource Description Framework (RDF)

Today s Plan. INF3580 Semantic Technology Spring Outline. My lectures. Lecture 2: RDF, The Resource Description Framework.

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

ISWC 2017 Tutorial: Semantic Data Management in Practice

Building a federated science web one link at a time

Modify the following XML document so that it is also a valid RDF document:

The Resource Description Framework and its Schema

Introduction to metadata cleansing using SPARQL update queries. April 2014 PwC EU Services

Introducing Linked Data

Semantic Web Tools. Federico Chesani 18 Febbraio 2010

Publishing OWL ontologies with Presto

Semantic Web. RDF and RDF Schema. Morteza Amini. Sharif University of Technology Spring 90-91

Ontological Modeling: Part 2

SADI Semantic Web Services

Unit 2 RDF Formal Semantics in Detail

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

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

Transcription:

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) 2

3 URIs Entities uniquely identified, worldwide The same entity can have multiple identifiers, but the same identifier shall always mean the same entity Nantes Nantes Nantes City

4 URIs A Uniform Resource Identifier (URI) is a string of characters used to identify a resource on the Internet A URI can take the form of a URL http://dbpedia/resource/nantes http://imitators.org/elephant/l3 http://insee.org/nantes

5 RDF: Resource Description Framework W3C Recommendation since 1998 RDF is a data model Originally used for metadata for web resources, then generalized Basic unit is triple.

6 RDF triple (1) An RDF Triple has a subject, a predicate and an object. http://dbpedia/resource/nantes http://lodpaddle.org/locatedin http://region.org/paysdelaloire identifies Nantes identifies the relationship between two resources identifies Pays de la Loire

7 RDF triple (2) Subject : URI or blank node (unnamed individual) Predicate (property, relationship): URI locatedin, birthplace, written by, age, title, etc. Objects : URI, blank node or Literals http://dbpedia/resource/nantes http://lodpaddle.org/locatedin Pays de la Loire identifies identifies Nantes locatedin

8 RDF triple (3) An RDF triple asserts a property of a resource In English: Nantes is located in Pays de la Loire In Logic: locatedin(nantes,pays de la Loire) http://dbpedia/resource/nantes http://lodpaddle.org/locatedin http://region.org/paysdelaloire identifies identifies identifies Nantes locatedin Pays de la Loire

9 RDF Graph An RDF graph is a set of RDF triples RDF Graph is labeled directed graph: Subject and object of a triple correspond to nodes Predicate corresponds to directed edge from subject to object with a label given by the predicate. http://dbpedia/resource/nantes http://lodpaddle.org/locatedin http://region.org/paysdelaloire locatedin

10 Nantes locatedin Pays de La Loire

11 283025 population Nantes inseecode 44109 Johanna Rolland locatedin 47.218100 Pays de La Loire locatedin France

12 283025 population Nantes inseecode 44109 Johanna Rolland Pays de La Loire 47.218100 France Jules Verne birthplace wrote Voyage au centre de la terre is birthplace Of Nantes

13

14 http://stats.lod2.eu/

15 http://stats.lod2.eu/

16

17

http://blog.sindice.com/2009/07/22/sigma-live-views-on-the-web-of-data/ 18

19 RDF can be serialized in different ways Turtle RDF/XML N-Quads N-Triples JSON-LD RDFa (RDF in HTML)

20 Namespace Prefixes A namespace prefix is an abbreviation for the prefix of a URI. @prefix city : http://dbpedia.org/resource/ @prefix location: http://lodpaddle.org/ @prefix region: http://region.org/ http://dbpedia.org/resource/nantes http://lodpaddle.org/locatedin http://region.org/paysdelaloire city:nantes location:locatedin region:paysdelaloire

21 Default Prefix The default namespace prefix is just a colon. @prefix :< http://dbpedia.org/resource/>. @prefix location: <http://lodpaddle.org/rdf/pred#>. @prefix region: <http://region.org/>. http://lodpaddle.org/rdf/pred#locatedin http://dbpedia/resource/nantes http://region.org/paysdelaloire :Nantes location:locatedin region:paysdelaloire

22 RDF Turtle: http://www.w3.org/tr/2014/rec-turtle-20140225/ population 283025 Nantes @prefix : <http://lodpaddle.org/>. @prefix admin: <http://admin.org/>. :Nantes :population 283025. Johanna Rolland :Nantes admin:hasmoyer :JohannaRolland. Pays de La Loire :Nantes :locatedin <http://region.org/paysdelaloire>.

23 RDF Turtle: http://www.w3.org/tr/2014/rec-turtle-20140225/ population 283025 Nantes @prefix : <http://lodpaddle.org/>. @prefix admin: <http://admin.org/>. :Nantes :population 283025 ;; admin:hasmoyer Johanna Rolland :JohannaRolland;; Pays de La Loire :locatedin <http://region.org/paysdelaloire>.

24 RDF XML Syntax RDF can also be stored in XML format Namespaces become XML namespaces <?xml version="1.0"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:prop= http://lodpaddle.org/ > <rdf:description rdf:about= http://lodpadlle.org/nantes > <prop:location rdf:resource= http://region.org/paysdelaloire /> </rdf:description> </rdf:rdf> Properties of X are listed inside an rdf:description about=x

25 RDF N-Triple: List of triples, easy to download and to parse. 283025 population Nant es <http://lodpaddle.org/nantes> <http://admin.org/population> 283025. <http://lodpaddle.org/nantes> <http://admin.org/hasmoyer> <http://admin.org/johannarolland. Johann a Rolland

26 RDF Semantics A triple <s,p,o> is interpreted as a First Order Logic fact p(s,o). 283025 population Nantes locatedin(nantes,pays de la Loire) hasmayor(nantes, Johanna Rolland) population(nantes, 283025 ) Johanna Rolland hasmayor locatedin Pays de La Loire

27 RDF Semantics First order logic(fol): A triple <s p o> without blank node is interpreted as P(s,o) : grounded atomic formula Blank nodes in subject or object are interpreted as existential variables Example: @prefix foaf :<http://xmlns.com/foaf/0.1/>. @prefix dc: <http://purl.org/dc/elements/1.1/>. :Pierre foaf:knows _:p. _:p foaf:name John Smith. _:p dc:wrote _:b. _:b dc:title Introduction to Java.

28 Use XML types @prefix p: <http://lodpaddle.or/>. @prefix rdf: <http://w3c.org/1999/02/22-rdf-syntax-ns#>. @prefix xsd: <http://www.w3c.org/2001/xmlschema# >. p:nantes p:poplulation 283025 ^^xsd:integer ;; p:hasmoyer p:johannarolland ;; rdf:type p:city. P:Rennes p:population 208022 ^^xsd:integer;; p:hasmayor p:natalieappéré.

29 Type a resource The predicate rdf:type relates resources to their classes @prefix p: <http://lodpaddle.or/>. @prefix rdf: <http://w3c.org/1999/02/22-rdf-syntax-ns#>. @prefix xsd: <http://www.w3c.org/2001/xmlschema# >. p:nantes p:poplulation 283025 ^^xsd:integer ;; p:hasmoyer p:johannarolland ;; rdf:type p:city.

30 Identifier the language of a value @prefix book: <http://example.org/> book:42 book:title Life Questions@en. book:42 book:title Questions sur la vie@fr.

Source: http://www.w3.org/tr/turtle/#bnodes 31

32 Named Graph in TriG Named Graph: give a context of a set of triples Identifier a set of triples by an URI Trig: extension of Turtle @prefix foaf : <http://xmlns.com/foaf/0.1/>. GRAPH <http://example.org/bob> { _:b foaf:name Bob. } GRAPH http://example.org/alice { _:a foaf:name Alice. }

33 Named Graph in N-Quads N-quads similar to N-Triples N-quads statements are a sequence of RDF terms representing the subject, predicate, object and graph label of an RDF Triple and the graph it is part of in a dataset @prefix foaf : <http://xmlns.com/foaf/0.1/>. _:b foaf:name Bob <http://example.org/bob >. _:a foaf:name Alice <http://example.org/alice>.

34 RDF Advantages RDF is domain-independent RDF is bottom-up RDF has a graph-based data model RDF has a decentralized philosophy and allows incremental building of knowledge, and its sharing and reuse Linked data is a giant, global data graph defined in RDF