Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins – 2013-2014.

Slides:



Advertisements
Similar presentations
The Semantic Web – WEEK 4: RDF
Advertisements

Introduction to RDF Based on tutorial at
1 RDF Tutorial. C. Abela RDF Tutorial2 What is RDF? RDF stands for Resource Description Framework It is used for describing resources on the web Makes.
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.
Chapter 3 RDF Syntax 1. Topics Basic concepts of RDF resources, properties, values, statements, triples URIs and URIrefs RDF graphs Literals and Qnames.
Dr. Alexandra I. Cristea RDF.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
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.
Resource Description Framework ( RDF ) Xinxia An.
Master Informatique 1 Semantic Technologies Part 3RDF/XML: Encoding RDF into XML Werner Nutt.
LDK R Logics for Data and Knowledge Representation Resource Description Framework (RDF) Fausto Giunchiglia and Biswanath Dutta Fall’2011.
Resource Description Framework (RDF) Lecture # 6 Faculty of Computer Science, IBA.
Visual Models for Knowledge Engineering Madalina Croitoru
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Logics for Data and Knowledge Representation Resource Description Framework (RDF) Feroz Farazi.
The Semantic Web Service Shuying Wang Outline Semantic Web vision Core technologies XML, RDF, Ontology, Agent… Web services DAML-S.
Chapter 3 RDF Syntax. RDF Overview RDF Syntax -- the XML encoding RDF Syntax – variations including N3 RDF Schema (RDFS) Semantics of RDF and RDFS – Axiomatic.
OWL Representing Information Using the Web Ontology Language.
Logics for Data and Knowledge Representation
© Copyright 2008 STI INNSBRUCK RDF and RDF Schema Semantic Web Lecture Lecture III – xx 2009 Dieter Fensel Slides.
The RDF/XML Serialization RDF statements can be written in RDF/XML very much like descriptions in non-RDF XML XML is increasingly used in all kinds of.
OWL Representing Information Using the Web Ontology Language 1.
The Resource Description Framework And its application to thegateway.org For the IIAP Jon Jablonski, Research Assistant The Information.
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 2: RDF Model & Syntax Aidan Hogan
Of 41 lecture 4: rdf – basics and language. of 41 RDF basic ideas the fundamental concepts of RDF  resources  properties  statements ece 720, winter.
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.
Part I. Resource and AAA In the Semantic Web, anything is a ‘resource’ if anything can be said about it by anyone for any purpose The AAA slogan applies.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
RDF Containers In N3, we could say that Ed (with id 21) and Bill (with id 34) created a certain document
Semantic Web Exam 1 Review.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
Introduction The Resource Description Framework (RDF) is recommended by the World Wide Web Consortium (W3C) to model meta-data about the resources of the.
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,
Dr. Alexandra I. Cristea RDF.
THE BIBFRAME EDITOR AND THE LC PILOT Module 3 – Unit 1 The Semantic Web and Linked Data : a Recap of the Key Concepts Library of Congress BIBFRAME Pilot.
RDF/RDFS Tutorial. Introduction The Resource Description Framework (RDF) is recommended by the World Wide Web Consortium (W3C) to model meta-data about.
Practical RDF Ch.4 Specialized RDF Relationships: Reification, Containers, and Collections Kim, Jong-Nam SNU OOPSLA Lab. August 12, 2004.
Doc.: IEEE /0169r0 Submission Joe Kwak (InterDigital) Slide 1 November 2010 Slide 1 Overview of Resource Description Framework (RFD/XML) Date:
RDF Syntax and examples ดร. มารุต บูรณรัช : หัวข้อพิเศษด้านเทคโนโลยีสารสนเทศขั้นสูง - เทคโนโลยีเว็บเชิงความหมาย.
RDF & SPARQL Introduction Dongfang Xu Ph.D student, School of Information, University of Arizona Sept 10, 2015.
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.
Chapter 3 RDF Syntax. RDF Overview RDF Syntax -- the XML encoding RDF Syntax – variations including N3 RDF Schema (RDFS) Semantics of RDF and RDFS – Axiomatic.
Practical RDF Chapter 4. Specialized RDF Relationships: Reification, Containers, and Collections Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Lim.
Silterra, April 2004 RDF, RSS and all that THREADING THE RDF MAZE.
Knowledge Technologies Manolis Koubarakis 1 Some Other Useful Features of RDF.
Practical RDF Chapter 3. The Basic Elements Within the RDF/XML Syntax Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Kim.
Other RDF Capabilities. Exercise: Write the following information into a set of statements (triples) and then draw them into and RDF graph The article.
Semantic Web in Depth RDFa, GRDDL and POWDER Dr Nicholas Gibbins
Linked Data & Semantic Web Technology The Semantic Web Part 5. Resource Description Framework (2) Dr. Myungjin Lee.
8.3.7 Compound Property Values Property values can be ▫Literals ▫Resource ▫Container ▫Collection, or… ▫Compound Value Compound Value ▫Has multiple value.
Linked Data & Semantic Web Technology The Semantic Web Part 4. Resource Description Framework (1) Dr. Myungjin Lee.
Service-Oriented Computing: Semantics, Processes, Agents
Tutorial on Semantic Web
Charlie Abela Department of Intelligent Computer Systems
Charlie Abela Department of Intelligent Computer Systems
Introduction to Persistent Identifiers
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
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Department of Artificial Intelligence
CC La Web de Datos Primavera 2016 Lecture 2: RDF Model & Syntax
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Resource Description Framework (RDF)
Presentation transcript:

Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –

What is the Resource Description Framework? A standard data model for the Semantic Web A knowledge representation language A family of data formats and notations

A standard data model Recall that the Semantic Web uses subject-predicate-object triples as its standard representation: This data model is independent of the syntax used to express (serialise) those triples. RDF Semantics Pat Hayes edited by subjectpredicateobject

XML + Namespaces URIUnicode SignatureEncryption Rules Proof Trust RDF RDF Schema OWL SPARQL (queries) User Interface and Applications A knowledge representation language RDF is used as the foundation for the other knowledge representation and ontology languages on the Semantic Web

A family of data formats RDF/XML is the normative (standard) syntax –Supported by almost all tools RDF/N3 (Notation3) is also widely used –Non-XML syntax –Variable tool support –Primarily designed to be easy to write on whiteboards Other XML and non-XML syntaxes exist: –Turtle, NTriples, TriX etc

RDF Requirements

RDF requirements A means for identifying objects and vocabulary terms (URIs) A means for distinguishing between terms from different vocabularies (XML namespaces and qualified names) A means for serialising triples (XML)

URIs and URIrefs Standard identifiers for the Semantic Web Uniform Resource Identifiers are defined by RFC2396 – –urn:isbn: URI references (URIrefs) are URIs with optional fragment identifiers – –

XML namespaces and qualified names RDF uses XML namespaces to refer to elements of domain vocabularies Namespaces used to abbreviate URIrefs to qualified names (QNames) QNames cannot be used in attribute values in RDF/XML –Use the URIref instead xmlns:rdf=“ ns#” namespace URI prefix namespace abbreviation rdf:type becomes

RDF/XML

RDF/XML is an XML-based format for expressing a collection of RDF triples (an RDF graph) Can be parsed by an XML parser to give an XML data model (Document Object Model, XML Infoset) Can be parsed by an RDF parser to give an RDF data model (an RDF graph)

The anatomy of an RDF/XML file XML declaration <rdf:RDF RDF document element <rdf:RDF xmlns:rdf=“ RDF namespace declaration <rdf:RDF xmlns:rdf=“ xmlns:dc=“ Other namespace declarations <rdf:RDF xmlns:rdf=“ xmlns:dc=“ <rdf:RDF xmlns:rdf=“ xmlns:dc=“ Triple subject <rdf:RDF xmlns:rdf=“ xmlns:dc=“ Triple predicate <rdf:RDF xmlns:rdf=“ xmlns:dc=“ Scientific American Triple object Scientific American

The anatomy of an RDF/XML file Resource-valued predicates use the rdf:resource attribute <rdf:RDF xmlns:rdf=“ xmlns:dc=“

The anatomy of an RDF/XML file We can have multiple rdf:Description elements within an rdf:RDF element <rdf:RDF xmlns:rdf=“ xmlns:dc=“ Example Inc. Homepage Example Inc. Homepage

The anatomy of an RDF/XML file We can have multiple predicates within an rdf:Description element <rdf:RDF xmlns:rdf=“ xmlns:dc=“ Example Inc. Homepage Example Inc. Homepage

Class membership An object’s membership of a class is indicated using the rdf:type property rdf:type

Abbreviated forms – class membership Replace rdf:Description with QName of class <rdf:RDF xmlns:rdf=“ xmlns:ex=“ rdf:type

Abbreviated forms – literal predicates Replace predicate element with attribute of same name on containing element <rdf:RDF xmlns:rdf=“ xmlns:dc=“ <rdf:Description rdf:about=“ dc:title=“Example Inc. Homepage”>

RDF/XML striped syntax Consider the following graph: John Smith

RDF/XML striped syntax Graph could be serialised using two rdf:Description elements <rdf:RDF xmlns:rdf=“ xmlns:dc=“ xmlns:ex=“ John Smith

RDF/XML striped syntax Alternatively, the second statement could be inserted within the predicate element of the first <rdf:RDF xmlns:rdf=“ xmlns:dc=“ xmlns:ex=“ John Smith

RDF/XML striped syntax The syntax is striped because property and class elements are nested alternately <rdf:RDF xmlns:rdf=“ xmlns:dc=“ xmlns:ex=“ John Smith <rdf:RDF xmlns:rdf=“ xmlns:dc=“ xmlns:ex=“ John Smith

Common RDF/XML idioms XML entities are defined for the XML namespace URI prefixes Used to abbreviate long URIrefs in attribute values (because QNames can’t be used there) <!DOCTYPE rdf:RDF [ ]> <rdf:RDF xmlns:rdf=“&rdf;” xmlns:dc=“&dc;” xmlns:ex=“&ex;”>

Common RDF idioms Assertions about the null URIref are about the RDF file itself <rdf:RDF xmlns:rdf=“ xmlns:dc=“

Blank nodes (bNodes) Sometimes we have resources which we do not wish to identify with a URI These are blank nodes or anonymous resources John Smith

Blank nodes (bNodes) The striped syntax simplifies the RDF/XML serialisation – remove the rdf:about attribute <rdf:RDF xmlns:rdf=“ xmlns:dc=“ xmlns:ex=“ John Smith

Blank nodes (bNodes) The striped syntax is not sufficient to represent all graphs containing blank nodes unambiguously dc:creator ex:name John Smith dc:creator

Blank nodes (bNodes) <rdf:RDF xmlns:rdf=“ xmlns:dc=“ xmlns:ex=“ John Smith John Smith

Blank nodes and node IDs Ambiguities resulting from blank nodes are resolved by using node IDs Node IDs are identifiers which are local to a given serialisation of an RDF graph –Node IDs may not be referred to from outside the scope of the defining graph Node IDs are not guaranteed to remain unchanged when an RDF file is parsed and serialised –The identifier strings may change –but –The graph structure will remain unchanged

Blank nodes and node IDs <rdf:RDF xmlns:rdf=“ xmlns:dc=“ xmlns:ex=“ John Smith

rdf:about versus rdf:ID So far, we have used the rdf:about attribute to specify the subjects of triples –rdf:about takes a URIref as a value rdf:ID can be used to declare a new URIref within a document –Within the file declares a new URIref –Analogous to the name and id attributes in HTML –Relative to xml:base attribute

Datatypes Literal values presented so far are plain and do not have a type –Many applications need to be able to distinguish between different typed literals RDF uses XML Schema datatypes <dc:date rdf:datatype=“

Multilingual support In addition to typed literals, RDF also provides support for language annotations on literals RDF uses XML’s multilingual support Languages identified by ISO369 two letter codes <rdf:RDF xmlns:rdf=“ xmlns:dc=“ Foreword Avant-propos

Containers RDF provides means for describing groups of objects Membership in the group is denoted by the ordinal properties rdf:_1, rdf:_2, etc rdf:type ex:members rdf:_1 rdf:_2 rdf:_3

Containers Three types of container are available in RDF –rdf:Bag – an unordered group, possibly with duplicates –rdf:Seq – an ordered group –rdf:Alt – a group of alternatives (translations, media types, etc)

Containers Special syntax for expressing collections –rdf:li is a convenience element which is replaced with ordinal elements by RDF parsers <rdf:RDF xmlns:rdf=“ xmlns:ex=“

Collections Collections are a different way of expressing ordered groups in RDF –Containers are mutable – a third party could add new members to a container –Collections are immutable – cannot be altered without rendering the collection ill-formed Similar to cons/car/cdr lists in Lisp

Collections rdf:type ex:members t rdf:first rdf:rest rdf:nil rdf:rest rdf:first

Collections As before, special syntax for expressing collections –rdf:parseType indicates special parse rules for an element <rdf:RDF xmlns:rdf=“ xmlns:ex=“

The RDF/N3 family

The anatomy of an NTriples file “Scientific American”. Scientific American

The anatomy of an Turtle/N3 file ; “Example Inc. Homepage”. “;” allows grouping of triples with common subject Example Inc. Homepage

Common RDF/N3 used to introduce QName abbreviations to N3 and Turtle ex:. dc:creator ; rdf:type ex:Website.

bNodes in N3 and Turtle dc:creator [ ex:name “John Smith” ]. Or with nodeIDs: dc:creator _:foo23. _:foo23 ex:name “John Smith”.

Further Reading

RDF Status Original version published in 1999 Working group (RDF Core) formed in April 2001 Revised version published in early 2004 New RDF working group chartered in 2011 (runs until 2013) –New standard syntaxes (Turtle, JSON) –Multiple graphs and graph stores

RDF references RDF homepage at W3C – RDF Core Working Group homepage – RDF Working Group homepage – RDF/N3 Primer – XML Schema Part 2: Datatypes –