CC La Web de Datos Primavera 2016 Lecture 2: RDF Model & Syntax

Slides:



Advertisements
Similar presentations
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
Advertisements

An introduction to RDF and library linked data Gordon Dunsire Presented at the Dewey Decimal Classification Executive Briefing 15 Sep 2011, London.
Steffen Staab 1WeST Web Science & Technologies University of Koblenz ▪ Landau, Germany Structured Data on the Web Introduction to.
The Semantic Web – WEEK 4: RDF
The Vision and Basic Technologies of the Semantic Web.
RDF Tutorial.
Semantic Web Introduction
© Copyright IBM Corporation 2014 Getting started with Rational Engineering Lifecycle Manager queries Andy Lapping – Technical sales and solutions Joanne.
RDF formats for Linked Data by Mabi Harandi. RDF is not a format, it is a model for data So: It will provide supports for different formats like :  Turtle.
Chapter 3 RDF Syntax 1. Topics Basic concepts of RDF resources, properties, values, statements, triples URIs and URIrefs RDF graphs Literals and Qnames.
RDF: Building Block for the Semantic Web Jim Ellenberger UCCS CS5260 Spring 2011.
1 Resource Description Framework (RDF) Presented by Igor Tatarinov.
Module 2b: Modeling Information Objects and Relationships IMT530: Organization of Information Resources Winter, 2007 Michael Crandall.
Semantic Web Series 1 Mohammad M. R. Cowdhury UniK, Kjeller.
RDF: Concepts and Abstract Syntax W3C Recommendation 10 February Michael Felderer Digital Enterprise.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Practical RDF Chapter 1. RDF: An Introduction
INF 384 C, Spring 2009 Ontologies Knowledge representation to support computer reasoning.
Logics for Data and Knowledge Representation
The Semantic Web Web Science Systems Development Spring 2015.
ISBD for the Semantic Web: namespaces, elements, vocabularies, application profile Gordon Dunsire Presented at Centar zu Stalno Stručno Usavršavanje (CSSU),
Integrating Live Plant Images with Other Types of Biodiversity Records Steve Baskauf Vanderbilt Dept. of Biological Sciences
Master Informatique 1 Semantic Technologies Part 11Direct Mapping Werner Nutt.
SPARQL All slides are adapted from the W3C Recommendation SPARQL Query Language for RDF Web link:
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 2: RDF Model & Syntax Aidan Hogan
Information Interchange on the Semantic Web an interactive talk by Piotr Kaminski, University of Victoria
RDF and XML 인공지능 연구실 한기덕. 2 개요  1. Basic of RDF  2. Example of RDF  3. How XML Namespaces Work  4. The Abbreviated RDF Syntax  5. RDF Resource Collections.
Turtle – RDF Graph. Turtle – Basic Syntax Triples are terminated with a full stop URLs are encoded in angle brackets ( ) Literals are enclosed by double.
Semantic Web Exam 1 Review.
1 SPARQL A. Emrah Sanön. 2 RDF RDF is quite committed to Semantic Web. Data model Serialization by means of XML Formal semantics Still something is missing!
Introduction to the Semantic Web and Linked Data Module 1 - Unit 2 The Semantic Web and Linked Data Concepts 1-1 Library of Congress BIBFRAME Pilot Training.
Understanding RDF. 2/30 What is RDF? Resource Description Framework is an XML-based language to describe resources. A common understanding of a resource.
Doc.: IEEE /0169r0 Submission Joe Kwak (InterDigital) Slide 1 November 2010 Slide 1 Overview of Resource Description Framework (RFD/XML) Date:
Representing Data with XML February 26, 2004 Neal Arthorne.
RDF Syntax and examples ดร. มารุต บูรณรัช : หัวข้อพิเศษด้านเทคโนโลยีสารสนเทศขั้นสูง - เทคโนโลยีเว็บเชิงความหมาย.
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 8: SPARQL (1.1) Aidan Hogan
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 10: Conclusion Aidan Hogan
Chapter 3 RDF. Introduction Problem: What does an XML document mean? – XML is about data structures – Their meaning (semantics) is not apparent to a machine.
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 7: SPARQL (1.0) Aidan Hogan
Knowledge Technologies Manolis Koubarakis 1 Some Other Useful Features of RDF.
Other RDF Capabilities. Exercise: Write the following information into a set of statements (triples) and then draw them into and RDF graph The article.
Linked Data & Semantic Web Technology The Semantic Web Part 5. Resource Description Framework (2) Dr. Myungjin Lee.
Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –
8.3.7 Compound Property Values Property values can be ▫Literals ▫Resource ▫Container ▫Collection, or… ▫Compound Value Compound Value ▫Has multiple value.
Setting the stage: linked data concepts Moving-Away-From-MARC-a-thon.
Linked Data & Semantic Web Technology The Semantic Web Part 4. Resource Description Framework (1) Dr. Myungjin Lee.
Introduction to RDF Sandro Hawke, Semantic Web Tutorial ISWC 2010.
What's New in RDF 1.1 Cambridge Semantic Web Gathering 9 April 2013
Tutorial on Semantic Web
Charlie Abela Department of Intelligent Computer Systems
Chapter 2 RDF Syntax 1.
CC La Web de Datos Primavera 2017 Lecture 7: SPARQL [i]
CC La Web de Datos Primavera 2016 Lecture 8: SPARQL (1.1)
CC La Web de Datos Primavera 2017 Lecture 8: SPARQL [ii]
CC La Web de Datos Primavera Lecture 3: RDF Schema and Semantics
Resource Description Framework
Introduction to the Semantic Web (tutorial) 2009 Semantic Technology Conference San Jose, California, USA June 15, 2009 Ivan Herman, W3C
Yaşar Tonta & Orçun Madran [yasartonta, Hacettepe University
Tutorial on Semantic Web
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Logics for Data and Knowledge Representation
CC La Web de Datos Primavera 2016 Lecture 7: SPARQL (1.0)
RDF 1.1 Concepts and Abstract Syntax
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
RDA cataloguing and linked data
Information Networks: State of the Art
CC La Web de Datos Primavera 2018 Lecture 8: SPARQL [1.1]
Graph Data on the Web: extend the pivot, don’t reinvent the wheel
Resource Description Framework (RDF)
Semantic-Web, Triple-Strores, and SPARQL
Presentation transcript:

CC6202-1 La Web de Datos Primavera 2016 Lecture 2: RDF Model & Syntax Aidan Hogan aidhog@gmail.com

LAST TIME …

The “Semantic Web”

What if we could “structure” everything …

(1) Data, (2) Query, (3) Rules/Ontologies

STRUCTURING DATA WITH RDF: RESOURCE DESCRIPTION FRAMEWORK

(1) Data, (2) Query, (3) Rules/Ontologies

RDF: Resource Description Framework

Modelling the world with triples

Concatenate to “integrate” new data

RDF often drawn as a (directed, labelled) graph

Set of triples thus called an “RDF Graph”

But why triples / graphs? What is the benefit of triples / graphs?

NAMING THINGS IN RDF: IRIs

One symbol, one meaning …

Need unambiguous symbols/identifiers Since we’re on the Web … use Web identifiers URL: Uniform Resource Location The location of a resource on the Web http://ex.org/Dubl%C3%ADn.html URI: Uniform Resource Identifier (RDF 1.0) Need not be a location, can also be a name http://ex.org/Dubl%C3%ADn IRI: Internationalised Resource Identifier (RDF 1.1) A URI that allows Unicode characters http://ex.org/Dublín

We will use IRIs with prefixes http://ex.org/Dublín ↔ ex:Dublín “ex:” denotes a prefix for http://ex.org/ “Dublín” is the local name

Frequently used prefixes

From strings …

… to IRIs …

NAMING THINGS IN RDF: LITERALS

Should we assign IRIs to numbers, etc.? What about numbers? Should we assign IRIs to numbers, etc.?

RDF allows “literals” in object position Literals are for datatype values, like strings, numbers, booleans, dates, times Only allowed in object position

Datatype literals “lexical-value”^^ex:datatype “200”^^xsd:int “2014-12-13”^^xsd:date “true”^^xsd:boolean “this is a string”^^xsd:string If the datatype is omitted, it’s a string “this is a string” “200” is a string, not a number!

Many datatypes borrowed from XML Schema

Boolean datatype

Numeric datatypes

Temporal datatypes

Text/string datatypes

Text/string datatypes

Language-Tagged Strings Specify that a string is in a given language “string”@lang-tag No datatype!

(NOT) NAMING THINGS IN RDF: BLANK NODES

Having to name everything is hard work

For this reason, RDF gives blank nodes Syntax: _:blankNode Represents existence of something Often used to avoid giving an IRI (e.g., shortcuts) Can only appear in subject or object position (More later)

RDF TERMS: SUMMARY

A Summary of RDF Terms IRIs (Internationalised Resource Identifiers) Used to name generic things Literals Used to refer to datatype values Strings may have a language tag Blank Nodes Used to avoid naming things A little mysterious right now

MODELLING DATA IN RDF

Let’s model something in RDF … Model the following in RDF: “Sharknado is the first movie of the Sharknado series. It first aired on July 11, 2013. The movie stars Tara Reid and Ian Ziering. The movie was followed by ‘Sharknado 2: The Second One’.”

RDF Properties RDF Terms used as predicate rdf:type, ex:firstMovie, ex:stars, …

RDF Classes Used to conceptually group resources The predicate rdf:type is used to relate resources to their classes

Modelling in RDF not always so simple Model the following in RDF: “Sharknado stars Tara Reid in the role of ‘April Wexler’.

Modelling in RDF not always so simple Model the following in RDF: “The first movie in the Sharknado series is ‘Sharknado’. The second movie is ‘Sharknado 2: The Second One’. The third movie is ‘Sharknado 3: Oh Hell No!’.

RDF Collections: Model Ordered Lists Standard way to model linked lists in RDF Use rdf:rest to link to rest of list Use rdf:first to link to current member Use rdf:nil to end the list

RDF Collections: Generic Modelling Not just for Sharknado series

ANOTHER MODELLING EXAMPLE: FROM TABLES TO RDF

Course data as an RDF graph? professors.csv How might we model these relational data as an RDF graph? tas.csv students.csv marks.csv courses.csv

Course data as an RDF graph? professors.csv How might we model these relational data as an RDF graph? tas.csv students.csv marks.csv courses.csv … for example

Graphs vs. Relational Tables Graphs more flexible Just add more nodes and edges (possibly with new labels!) May be more concise Graphs less “structured” No longer have a clear schema May be more verbose Yes. Can we model any relational table(s) as an (RDF) graph? Can we model any (RDF) graph as a relational table?

RDF SYNTAXES: WRITING RDF DOWN

N-Triples Line delimited format No shortcuts

RDF/XML Legacy format Just horrible

RDFa Embed RDF into HTML Not so intuitive

JSON-LD Embed RDF into JSON Not completely aligned with RDF

Turtle Readable format

Turtle: Collections Shortcut

BLANK NODES ADD COMPLEXITY

Blank nodes names aren’t important … (Isomorphic)

Blank nodes are local identifiers How should we combine these two RDF graphs?

Need to perform an RDF merge How should we combine these two RDF graphs?

Are two RDF graphs the “same”? (Isomorphic)

Are two RDF graphs the “same”?

Are two RDF graphs the “same”?

RECAP

RDF: Resource Description Framework

RDF = Resource Description Framework Structure data on the Web! RDF based on triples: subject, predicate, object A set of triples is called an RDF graph Three types of RDF terms: IRIs (any position) Literals (object only; can have datatype or language) Blank nodes (subject or object)

RDF = Resource Description Framework Modelling in RDF: Describing resources Classes and properties form core of model Try to break up higher-arity relations Collections: standard way to model order/lists Syntaxes: N-Triples: simple, line-delimited format RDF/XML: legacy format, horrible RDFa: embed RDF into HTML pages JSON-LD: embed RDF into JSON Turtle: designed to be human friendly

RDF = Resource Description Framework Two operations on RDF graphs: Merging: keep blank nodes in source graphs apart Are they the “same” modulo blank node labels: isomorphism check!

Questions?