Introduction to RDF Sandro Hawke, Semantic Web Tutorial ISWC 2010.

Slides:



Advertisements
Similar presentations
Steffen Staab 1WeST Web Science & Technologies University of Koblenz ▪ Landau, Germany Structured Data on the Web Introduction to.
Advertisements

The Semantic Web – WEEK 4: RDF
RDFa: Embedding RDF Knowledge in HTML Some content from a presentation by Ivan Herman of the W3c, Introduction to RDFa, given at the 2011 Semantic Technologies.
RDF Tutorial.
Semantic Web Introduction
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.
Quick RDF Introduction Scott Streit Terminology – RDF Triple (Also the triple form used in SPARQL) RDF Triple  (Resource, Property,
Chapter 3 RDF Syntax 1. Topics Basic concepts of RDF resources, properties, values, statements, triples URIs and URIrefs RDF graphs Literals and Qnames.
CSCI 572 Project Presentation Mohsen Taheriyan Semantic Search on FOAF profiles.
Dr. Alexandra I. Cristea RDF.
RDF: Data Description With HTML, the Web is for reading With XML, the Web is for processing Necessary to know  who wrote this?  who owns it?  who authorised.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
RDF: Building Block for the Semantic Web Jim Ellenberger UCCS CS5260 Spring 2011.
Master Informatique 1 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Werner Nutt.
Nancy Ide Vassar College USA Resource Definition Framework A Tutorial EUROLAN 2003 July 28 - August 8 Bucharest - Romania.
CSE 428 Semantic Web Topics Introduction Jeff Heflin Lehigh University.
Logics for Data and Knowledge Representation SPARQL Protocol and RDF Query Language (SPARQL) Feroz Farazi.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Publishing data on the Web (with.
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
Logics for Data and Knowledge Representation
The Semantic Web Web Science Systems Development Spring 2015.
Chapter 3 Querying RDF stores with SPARQL. Why an RDF Query Language? Why not use an XML query language? XML at a lower level of abstraction than RDF.
Master Informatique 1 Semantic Technologies Part 11Direct Mapping Werner Nutt.
SPARQL AN RDF Query Language. SPARQL SPARQL is a recursive acronym for SPARQL Protocol And Rdf Query Language SPARQL is the SQL for RDF Example: PREFIX.
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 2: RDF Model & Syntax Aidan Hogan
Practical RDF Chapter 2. RDF: Heart and Soul Shelley Powers, O’Reilly SNU IDB Lab. Taikyoung Kim.
Turtle – RDF Graph. Turtle – Basic Syntax Triples are terminated with a full stop URLs are encoded in angle brackets ( ) Literals are enclosed by double.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
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.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
Practical RDF Ch.2 Junwon Jung SNU OOPSLA Lab. Shelley Powers, O’Reilly August 5, 2004.
DC Architecture WG meeting Wednesday Seminar Room: 5205 (2nd Floor)
Semantic Web in Depth RDFa, GRDDL and POWDER Dr Nicholas Gibbins
Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –
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.
ISWC 2010, Shanghai, 8 th November, 2010 Ivan Herman ( 郝易文 ), W3C.
What's New in RDF 1.1 Cambridge Semantic Web Gathering 9 April 2013
Web-Technology Lecture 13.
Service-Oriented Computing: Semantics, Processes, Agents
Tutorial on Semantic Web
Charlie Abela Department of Intelligent Computer Systems
Chapter 2 RDF Syntax 1.
SPARQL.
Building the Semantic Web
Service-Oriented Computing: Semantics, Processes, Agents
Resource Description Framework
Introduction to the Semantic Web (tutorial) 2009 Semantic Technology Conference San Jose, California, USA June 15, 2009 Ivan Herman, W3C
Service-Oriented Computing: Semantics, Processes, Agents
Tutorial on Semantic Web
Middleware independent Information Service
Embedding Knowledge in HTML
Logics for Data and Knowledge Representation
CC La Web de Datos Primavera 2016 Lecture 2: RDF Model & Syntax
RDF 1.1 Concepts and Abstract Syntax
CSIRO ICT Centre Conference
Embedding Knowledge in HTML
RDFa: Embedding RDF Knowledge in HTML
JSON for Linked Data: a standard for serializing RDF using JSON
Resource Description Framework (RDF)
W3C Recommendation 17 December 2013 徐江
Linked Open Data in 10 Minutes Sandro Hawke, W3C
Low-bandwidth Semantic Web
Semantic-Web, Triple-Strores, and SPARQL
Presentation transcript:

Introduction to RDF Sandro Hawke, Semantic Web Tutorial ISWC 2010

Overview Background Model RDF Graphs and Triples Schema RDF Vocabularies Syntaxes Turtle, RDF/XML, RDFa Sparql

History Remember the Web in the 1990s? Search was hard Content labelling seemed important Maybe Web page metadata could help? Wanted to support all possible metadata Page author, creator, publisher, editor, … And what about them? ? Job? Phone? Metadata=Data, so RDF=General Data Format

Background: URL We all know basic Web Addresses URL = Web Address of an Information Resource (Web page, image, zip file, …)

Background: URIs and IRIs URI = Looks the same, but might identify something else (person, place, concept) Every URL is also a URI Not everyone agrees with this usage IRI = Like URI, but not just ASCII chars Every IRI can be turned into a URI (%-encoding) Many of us use the term URI when we mean IRI

Background: QNames Used in RDF as shorthand for long URIs If prefix “foo” is bound to Then foo:bar expands to Necessary to fit any example on a page! Simple string concatenation Not quite the same as XML namespaces Mostly the same as CURIEs

Simple, General Representation Pick some entity as your subject List its attributes and values … and its relations to other objects Example subject: the City of Boston Nickname: “Beantown” Population: 642,109 In what state? Massachusetts

Unambiguous Names How many things are named “Boston”? How about “Riverside”? So, we use URIs. Instead of “Boston”: QName: db:Boston And instead of “nickname” we use: QName: dbo:nickname

Subject Predicate Object (Property) (Value)

RDF “Literals” Data values Often shown inside a rectangle in graph pictures Plain Literals Just strings, “Hello, World” Language-Tagged Literals “Bonjour, XML Schema Types “3.14”^^xs:float

Nodes with URI Labels If the thing represented by the node has a URI, use it as a label for the node. We often just write qnames Put URIs in to distinguish them ns:created “ ”^^xsd:date. foaf:firstName “Sandro”.

Blank Nodes Nodes with no URI, also called “bnodes” For when you don't have a URI for something … and don't want to create one In N-Triples: ns1:sandro foaf:knows _:node1. _:node1 foaf:name “Dan Brickley”. _:node1 foaf:mbox.

Properties The “Predicate” or “Property” Attribute, Relation Always named with a URI Same URI can be used as Subject or Object This allows self-description, documentation

Classes and rdf:type Sometimes it's helpful to organize using types We can attach types using “type” arcs … and then use those in lots of ways, later

A Little RDF Schema X rdfs:subclassOf Y Everything of type X is also of type Y Dog rdfs:subclassOf Animal, Spot rdf:type Dog |= Spot rdf:type Animal X rdfs:domain Y Everything that has an X property is of type Y ownsPet rdfs:domain Human, Sam ownsPet Spot |= Sam rdf:type Human X rdfs:range Y Every value of an X property is of type Y OwnsPet rdfs:range Animal, Sam ownsPet Spot |= Spot rdf:type Animal

Vocabularies Often formalized with Schemas or Ontologies RDF, RDF Schema rdf:typerdf:type, rdfs:subClassOf, rdfs:commentrdfs:subClassOfrdfs:comment Friend of a Friend foaf:name Dublin Core dc:creatordc:creator, dcterms:temporaldcterms:temporal Good Relations gr:ProduceOrServiceModelgr:ProduceOrServiceModel,...

Turtle Very simple RDF Syntax N-Triple plus a few bits of syntax sugar De facto standard now Widely implement Should be W3C Recommendation soonish db:Bostondb:Boston dbo:nickname “Beantown”; dbo:population “610000”^^xs:integer; dbo:inState db:Massachusetts.db:Massachusetts db:Massachusetts...

RDF/XML W3C Standard since 1999, revised in 2004 Used to be the only standard Can look like “normal” XML, but works differently

RDF/XML Beantown

RDF/XML Beantown <population rdf:datatype=”xs:integer”>610104

RDF/XML Beantown <population rdf:datatype=”xs:integer”> The Bay State....

RDFa RDF triples in XHTML attributes W3C Recommendation 2008 RDFa 1.1 underway Build easily on existing HTML pipeline In some case, just means adding a few attributes

RDFa Example <div about=” ” xmlns:dbo=” Boston has the nickname Beantown

RDFa Example <div about=” ” xmlns:dbo=” Boston has the nickname Beantown and a population of <span property=”dbo:population datatype=”xs:integer”>

RDFa Example <div about=” ” xmlns:dbo=” Boston has the nickname Beantown and a population of <span property=”dbo:population datatype=”xs:integer”> It is located in <a rel=”dbo:inState” href=” ”> Massachusetts

RDFa Example <div about=” ” xmlns:dbo=” Boston has the nickname Beantown and a population of <span property=”dbo:population datatype=”xs:integer”> It is located in <a rel=”dbo:inState” href=” ”>Massachusetts Which has the nickname The Bay State....</div>

SPARQL Language for querying collection of RDF Graphs Somewhat like SQL W3C Recommendation in 2008 V1.1 will add update, be more expressive PREFIX foaf: SELECT ?name ?mbox WHERE { ?x foaf:name ?name. ?x foaf:mbox ?mbox }

Summary of Model RDF started as metadata It's a general data format, a simple KR A collection of RDF knowledge is A graph of subject/object nodes and property arcs Nodes may be labeled with URIs, or Blank Leaf nodes may be literals, optionally typed Vocabularies (Ontologies) Classes, Properties, Individuals Each with a well-known URI

Summary of Syntaxes An RDF Graph can be serialized many ways Turtle (N-Triples, N3) very simple, a de facto standard RDF/XML is the original standard. It's XML, but has some impedance mismatch with XML tools RDFa is good for RDF in HTML Other syntaxes exist, might be standardized Eg JSON RDF can also be accessed via APIs and SPARQL

More Information Me: Sandro on twitter Semantic Web / RDF This Talk