Www.sti-innsbruck.at © Copyright 2008 STI INNSBRUCK www.sti-innsbruck.at RDF and RDF Schema Semantic Web Lecture Lecture III – xx 2009 Dieter Fensel Slides.

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

RDF Schemata (with apologies to the W3C, the plural is not ‘schemas’) CSCI 7818 – Web Technologies 14 November 2001 Van Lepthien.
RDF Tutorial.
Dr. Alexandra I. Cristea RDF.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
State of the Art in Semantic Web standards and technologies Andreas Duscher.
Knowledge Technologies Manolis Koubarakis 1 An Introduction to RDF Schema.
More RDF CS 431 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller Dieter Fensel.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
Resource Description Framework Building the Semantic Web CS 431 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller Dieter Fensel.
1 Introduction to Semantic Web with XML RDF Dickson K.W. Chiu PhD, SMIEEE Text: Antoniou & van Harmelen: A Semantic Web PrimerA Semantic Web Primer (Chapter.
From SHIQ and RDF to OWL: The Making of a Web Ontology Language
RDF, RDFS making the Web a better place Ir. Richard Vdovjak, MTD.
Cornell CS 502 Resource Description Framework Building the Semantic Web CS 502 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller.
JOSH FLECK Semantic Web. What is Semantic Web? Movement led by W3C that promotes common formats for data on the web Describes things in a way that computer.
LDK R Logics for Data and Knowledge Representation Resource Description Framework (RDF) Fausto Giunchiglia and Biswanath Dutta Fall’2011.
Resource Description Framework (RDF)
RDF Semantics by Patrick Hayes W3C Recommendation Presented by Jie Bao RPI Sept 4, 2008 Part 1 of RDF/OWL Semantics Tutorial.
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.
Chapter 3 RDF Schema.
Logics for Data and Knowledge Representation Resource Description Framework (RDF) Feroz Farazi.
1 Slides based on Lecture Notes by Dieter Fensel and Federico Facca COMPSCI 732: Semantic Web Technologies Resource Description Framework (RDF)
© Copyright 2008 STI INNSBRUCK OWL: The Web Ontology Language Semantic Web Lecture Lecture VII – xx 2009 Dieter.
Logics for Data and Knowledge Representation
1 Object-Orientation in Ontology Date: April 30, 2007 Byunggul Koh Taeksu Kim.
Chapter 9. 9 RDFS (RDF Schema) RDFS Part of the Ontological Primitive layer Adds features to RDF Provides standard vocabulary for describing concepts.
Chapter 3 RDF Schema. Introduction RDF has a very simple data model RDF Schema (RDFS) enriches the data model, adding vocabulary and associated semantics.
Of 41 lecture 4: rdf – basics and language. of 41 RDF basic ideas the fundamental concepts of RDF  resources  properties  statements ece 720, winter.
INF5120 ”Modellbasert Systemutvikling” ”Modelbased System development” Lecture 11 (part 2): MDI I, Part II: Semantic Web.
Chapter 3 RDF and RDFS Semantics. Introduction RDF has a very simple data model But it is quite liberal in what you can say Semantics can be given using.
RQL: RDF Query language Jianguo Lu University of Windsor The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer”
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
RDF & RDF Schema Machine Understandable Metadata for the Web Semantic Web - Spring 2006 Computer Engineering Department Sharif University of Technology.
1 Artificial Intelligence Applications Institute Centre for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications.
Of 35 lecture 5: rdf schema. of 35 RDF and RDF Schema basic ideas ece 627, winter ‘132 RDF is about graphs – it creates a graph structure to represent.
RDF Schema (RDFS) RDF user communities need to define the vocabularies (terms) to indicate that they  are describing specific kinds or classes of resources.
Introduction The Resource Description Framework (RDF) is recommended by the World Wide Web Consortium (W3C) to model meta-data about the resources of the.
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,
Important Concepts from the W3C RDF Vocabulary/Schema Sungtae Kim SNU OOPSLA Lab. August 19, 2004.
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:
Of 38 lecture 6: rdf – axiomatic semantics and query.
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.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall RDF & RDF Schema Machine Understandable Metadata for the.
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 –
Linked Data & Semantic Web Technology The Semantic Web Part 7. RDF Semantics Dr. Myungjin Lee.
Semantic Web in Depth RDF Schema Dr Nicholas Gibbins –
Service-Oriented Computing: Semantics, Processes, Agents
Charlie Abela Department of Intelligent Computer Systems
An Introduction to RDF Schema
Resource Description Framework (RDF)
Service-Oriented Computing: Semantics, Processes, Agents
Resource Description Framework Building the Semantic Web
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
Some Other Useful Features of RDF
RDF 1.1 Concepts and Abstract Syntax
ece 720 intelligent web: ontology and beyond
Chapter 3 RDF and RDFS Semantics
Resource Description Framework (RDF)
Semantic Web Basics (cont.)
Semantic-Web, Triple-Strores, and SPARQL
Presentation transcript:

© Copyright 2008 STI INNSBRUCK RDF and RDF Schema Semantic Web Lecture Lecture III – xx 2009 Dieter Fensel Slides by: Federico M. Facca

Where are we? #DateTitle 1Introduction 2Semantic Web Architecture 3RDF and RDF Schema 4Web of hypertext (RDFa, Microformats) and Web of data 5Semantic Annotation 6Repositories and SPARQL 7The Web Ontology Language 8Rule Interchange Format 9Web-scale reasoning 10Social Semantic Web 11Ontologies and the Semantic Web 12Semantic Web Services 13Tools 14Applications 15Exam 2

Overview Introduction and Motivation Technical Solution –RDF –RDF Schema –RDF(S) Semantics Illustration by a large example Extensions 3

Semantic Web Stack 4 Adapted from

INTRODUCTION AND MOTIVATION 5

Motivating Example 1 Dieter Fensel is teaching the Semantic Web course. 6 Examples adapted from Grigoris Antoniou and Frank van Harmelen: A Semantic Web Primer, MIT Press 2004

Motivating Example 1 Dieter Fensel is teaching the Semantic Web course. Dieter Fensel 7 Examples adapted from Grigoris Antoniou and Frank van Harmelen: A Semantic Web Primer, MIT Press 2004

Motivating Example 1 Dieter Fensel is teaching the Semantic Web course. Dieter Fensel Semantic Web 8 Examples adapted from Grigoris Antoniou and Frank van Harmelen: A Semantic Web Primer, MIT Press 2004

Motivating Example 1 Dieter Fensel is teaching the Semantic Web course. Dieter Fensel Semantic Web Dieter Fensel Semantic Web 9 Examples adapted from Grigoris Antoniou and Frank van Harmelen: A Semantic Web Primer, MIT Press 2004

Motivating Example 2 A lecturer is a subclass of an academic staff member. 10 Examples adapted from Grigoris Antoniou and Frank van Harmelen: A Semantic Web Primer, MIT Press 2004

Motivating Example 2 A lecturer is a subclass of an academic staff member. Dieter Fensel Federico M. Facca Retrieve all the members of the academic staff. 11 Examples adapted from Grigoris Antoniou and Frank van Harmelen: A Semantic Web Primer, MIT Press 2004

What are RDF and RDF Schema? RDF –Resource Description Framework –Data model Syntax (XML) –Domain independent Vocabulary is defined by RDF Schema RDF Schema –RDF Vocabulary Description Language –Captures the semantic model of a domain 12

TECHNICAL SOLUTION RDF and RDF Schema 13

THE RESOURCE DESCRIPTION FRAMEWORK The power of triple representation joint with XML serialization 14 Most of the examples in the upcoming slides are taken from:

Principles of RDF 1 Resource (identified by URIs) –A URI identifies a resource, but does not necessarily point to it –Correspond to nodes in a graph –E.g.: Properties (identified by URIs) –Correspond to labels of edges in a graph –Binary relation between two resources –E.g.: Literals –Concrete data values –E.g.: "John Smith", "1", " " 15

Principles of RDF 2 Triple data model: –Subject: Resource or blank node –Predicate: Property –Object: Resource, literal or blank node Example: Labeled, directed graphs –Nodes: resources, literals –Labels: properties –Edges: statements 16

Resources A resource may be: –Web page (e.g. ) –A person (e.g. ) –A book (e.g. urn:isbn: ) –Anything denoted with a URI! A URI is an identifier and not a location on the Web RDF allows making statements about resources: – has the format text/html – has first name Dieter – urn:isbn: has author Tolkien 17

Literals Plain literals –E.g. ”any text” –Optional language tag, e.g. ”Hello, how are Typed literals –E.g. "hello"^^xsd:string, "1"^^xsd:integer –Recommended datatypes: XML Schema datatypes Only as object of a triple, e.g.: 18 ,, ”John Smith”ˆˆxsd:string 

Datatypes One pre-defined datatype: rdf:XMLLiteral –Used for embedding XML in RDF Recommended datatypes are XML Schema datatypes, e.g.: – xsd:string – xsd:integer – xsd:float – xsd:anyURI – xsd:boolean 19

Blank Nodes Blank nodes are nodes without a URI –Unnamed resources –More complex constructs Representation of blank nodes is syntax-dependent –Blank node identifier For example: ,, _:johnsname   _:johnsname,, ”John”ˆˆxsd:string   _:johnsname,, ”Smith”ˆˆxsd:string  20

Reification Reification: statements about statements Mary claims that John’s name is “John Smith”. , rdf:type, rdf:Statement  , rdf:subject,  , rdf:predicate,  , rdf:object, ”John Smith”  21

Reification Reification: statements about statements Mary claims that John’s name is “John Smith”. , rdf:type, rdf:Statement  , rdf:subject,  , rdf:predicate,  , rdf:object, ”John Smith”   ,, ”John Smith”  22

Reification Reification: statements about statements Mary claims that John’s name is “John Smith”. , rdf:type, rdf:Statement  , rdf:subject,  , rdf:predicate,  , rdf:object, ”John Smith”  ,,  23

RDF Vocabulary RDF defines a number of resources and properties We have already seen: rdf:XMLLiteral, rdf:type,... RDF vocabulary is defined in the namespace: Classes: – rdf:Property, rdf:Statement, rdf:XMLLiteral – rdf:Seq, rdf:Bag, rdf:Alt, rdf:List Properties: – rdf:type, rdf:subject, rdf:predicate, rdf:object, – rdf:first, rdf:rest, rdf:_n – rdf:value Resources: – rdf:nil 24

RDF Vocabulary Typing using rdf:type : “A belongs to class B” All properties belong to class rdf:Property : “P is a property” “rdf:type is a property” 25

RDF Containers “The lecture is attended by John, Mary and Chris” Bag “[RDF-Concepts] is edited by Graham and Jeremy (in that order)” Seq “The source code for the application may be found at ftp1.example.org, ftp2.example.org, ftp3.example.org” Alt Grouping property values: 26

RDF Containers: Bag “The lecture is attended by John, Mary and Chris” 27

RDF Containers: Seq “[RDF-Concepts] is edited by Graham and Jeremy (in that order)” 28

RDF Containers: Alt “The source code for the application may be found at ftp1.example.org, ftp2.example.org, ftp3.example.org ” 29

RDF Containers 2 Three types of containers: – rdf:Bag - unordered set of items – rdf:Seq - ordered set of items – rdf:Alt - set of alternatives Every container has a triple declaring the rdf:type Items in the container are denoted with – rdf:_1, rdf:_2,...,rdf:_n Limitations: –Semantics of the container is up to the application –What about closed sets? How do we know whether Graham and Jeremy are the only editors of [RDF-Concepts]? 30

RDF Containers 2 Three types of containers: – rdf:Bag - unordered set of items – rdf:Seq - ordered set of items – rdf:Alt - set of alternatives Every container has a triple declaring the rdf:type Items in the container are denoted with – rdf:_1, rdf:_2,...,rdf:_n Limitations: –Semantics of the container is up to the application –What about closed sets? How do we know whether Graham and Jeremy are the only editors of [RDF-Concepts]? 31

RDF Collections “[RDF-Concepts] is edited by Graham and Jeremy (in that order) and nobody else” 32

RDF/XML 1 Serializing RDF for the Web –XML as standardized interchange format: Namespaces (e.g. rdf:type, xsd:integer, ex:john) Encoding (e.g. UTF8, iso ) XML Schema (e.g. datatypes) Reuse of existing XML tools: –Syntax checking (i.e. schema validation) –Transformation (via XSLT) Different RDF representation Layout (XHTML) Different XML-based formats Parsing and in-memory representation/manipulation (DOM/SAX)... 33

RDF/XML 2 34

RDF/XML 3 35

THE RDF SCHEMA (RDFS) How to represent the semantics of data models 36

RDF Vocabulary Description Language 1 Types in RDF: What is a “ #Student ”? A language for defining RDF types: –Define classes: “ #Student is a class” –Relationships between classes: “ #Student is a sub-class of #Person ” –Properties of classes: “ #Person has a property hasName ” RDF Schema is such a language 37

RDF Vocabulary Description Language 2 Classes: Class hierarchies: Properties: Property hierarchies: Associating properties with classes (a): –“The property #hasName only applies to #Person ” Associating properties with classes (b): –“The type of the property #hasName is #xsd:string ” 38

RDF Vocabulary Revisited Classes: – rdf:Property, rdf:Statement, rdf:XMLLiteral – rdf:Seq, rdf:Bag, rdf:Alt, rdf:List Properties: – rdf:type, rdf:subject, rdf:predicate, rdf:object, – rdf:first, rdf:rest, rdf:_n – rdf:value Resources: – rdf:nil 39

RDFS Vocabulary RDFS Classes – rdfs:Resource – rdfs:Class – rdfs:Literal – rdfs:Datatype – rdfs:Container – rdfs:ContainerMembershipProperty RDFS Properties – rdfs:domain – rdfs:range – rdfs:subPropertyOf – rdfs:subClassOf – rdfs:member – rdfs:seeAlso – rdfs:isDefinedBy – rdfs:comment – rdfs:label 40 RDFS Extends the RDF Vocabulary RDFS vocabulary is defined in the namespace:

RDFS Principles Resource –All resources are implicitly instances of rdfs:Resource Class –Describe sets of resources –Classes are resources themselves - e.g. Webpages, people, document types Class hierarchy can be defined through rdfs:subClassOf Every class is a member of rdfs:Class Property –subset of RDFS Resources that are properties Domain: class associated with property: rdfs:domain Range: type of the property values: rdfs:range Property hierarchy defined through: rdfs:subPropertyOf 41

RDFS Example 42 ex:Faculty- Staff

RDFS Vocabulary Example 43

RDFS Metadata Properties Metadata is “data about data” Any meta-data can be attached to a resource, using: – rdfs:comment Human-readable description of the resource, e.g. – , rdfs:comment, ”A person is any human being”  – rdfs:label Human-readable version of the resource name, e.g. – , rdfs:label, ”Human being”  – rdfs:seeAlso Indicate additional information about the resource, e.g. – , rdfs:seeAlso,  – rdfs:isDefinedBy A special kind of rdfs:seeAlso, e.g. – ,rdfs:isDefinedBy,  44

RDF Literals Revisited Plain literals –E.g. ”any string” –Optional language tag, e.g. ”Hello, how are Typed literals –E.g. "hello"^^xsd:string, "1"^^xsd:integer –Recommended datatypes: XML Schema datatypes Only as object of a triple 45

Literals in RDFS Each literal is an rdfs:Literal Say, we have: Does this mean: –No! Literals may not occur as subject Add: – 46

Semantics RDF(S) vocabulary has built-in “meaning” RDF(S) Semantics –Makes meaning explicit –Defines what follows from an RDF graph Semantic notions –Subgraph –Instance –Entailment 47

Subgraph E is a subgraph of S if and only if E predicates are a subset of S predicates – ,, _:johnsname  – , ”John”ˆˆxsd:string  – , ”Smith”ˆˆxsd:string  Subgraphs: – ,, :johnsname  –  _:johnsname,, ”John”ˆˆxsd:string  –  _:johnsname,, ”Smith”ˆˆxsd:string  – ,, _:johnsname  48

Instance S’ is an instance of S if and only if some blank nodes in S are replaced with blank nodes, literals or URIs – ,, _:johnsname  –  _:johnsname,, ”John”ˆˆxsd:string  –  _:johnsname,, ”Smith”ˆˆxsd:string  Instances: – ,,  – ,, ”John”ˆˆxsd:string  – ,, ”Smith”ˆˆxsd:string  – ,, _:X  –  _:X,, ”John”ˆˆxsd:string  –  _:X,, ”Smith”ˆˆxsd:string  – ,, _:johnsname  –  _:johnsname,, ”John”ˆˆxsd:string  –  _:johnsname,, ”Smith”ˆˆxsd:string  Every graph is an instance of itself! 49

Entailment S entails E if E logically follows from S –Written: S |= E A graph entails all it subgraphs –If S’ is a subgraph of S: S |= S’ All instances of a graph S entail S –If S’’ is an instance of S: S”|= S 50

RDFS Entailment 51

RDFS Entailment 52

RDFS Entailment 53

Entailment Rules Semantics defined through entailment rules Rule: –If S contains then add Executing all entailment rules yields realization of S S entails E if E is a subgraph of the realization of S Axiomatic triple are always added 54

RDF Axiomatic Triples... 55

RDFS Axiomatic Triples 1 56

RDFS Axiomatic Triples 2 57

RDFS Axiomatic Triples 3 58

RDFS Axiomatic Triples

RDF Entailment if E contains then add if E contains (l is a valid XML literal) then add where _:X identifies to blank node allocated to l 60

RDFS Entailment 1 everything in the subject is a resource –if E contains then add every non-literal in the object is a resource –if E contains (C is not a literal) then add every class is subclass of rdfs:Resource –if E contains then add inheritance: –if E contains, then add rdfs:subClassOf is transitive –if E contains, then add 61

RDFS Entailment 2 rdfs:subClassOf is reflexive –if E contains then add rdfs:subPropertyOf is transitive –if E contains, then add rdfs:subPropertyOf is reflexive –if E contains then add domain of properties –if E contains, then add range of properties –if E contains, then add 62

RDFS Entailment 3 every literal is a member of rdfs:Literal –if E contains (l is a plain literal) then add every datatype is subclass of rdfs:Literal –if E contains then add 63

More on literals Recall: if E contains (l is a valid XML literal) then add every literal is a member of rdfs:Literal: if E contains (l is a plain literal) then add --- allocating blank nodes to literals: if E contains ( l is a literal) then add _:n is allocated to l “dereferencing” blank nodes: if E contains ( _:n is allocated to a literal l ) then add 64

ILLUSTRATION BY A LARGER EXAMPLE An example of usage of RDF and RDF(S) 65

Friend of a Friend (FOAF) Friend of a Friend is a project that aims at providing simple ways to describe people and relations among them FOAF adopts RDF and RDFS Full specification available on: 66

FOAF Schema 67 [

FOAF RDF Example Dieter Fensel Univ.-Prof. Dr. Dieter Fensel 773a221a09f1887a24853c9de06c3480e714278a 68

EXTENSIONS 69

Rules and RDF(S) RDF(S) by itself is not providing any instrument to define personalized entailment rules –The entailment process is driven by RDF(S) Semantics –This is not enough in many practical contexts RDF can be extend to add rule support –RULE-ML based extensions –Horn Logic based extensions –OWL Horst (include a fragment of DL as well) –OWLIM (include a fragment of DL as well) –SWRL (full support to OWL, but not decidable) 70

WRAP-UP That’s almost all for day… 71

Things to keep in mind (or summary) RDF –Advantages: Reuse existing standards/tools Provides some structure for free (e.g. for containers) Standard format –Disadvantages: Verbose Reconstructing RDF graph non-trivial 72

Things to keep in mind (or summary) RDF Schema –Advantages A primitive ontology language Offers certain modeling primitives with fixed meaning Key concepts of RDF Schema –subclass relations, property, subproperty relations, domain and range restrictions There exist query languages for RDF and RDFS Allows metamodeling –Disadvantages A quite primitive as a modeling language for the Web Many desirable modeling primitives are missing –An ontology layer on top of RDF/RDFS is needed 73

Bibliography Mandatory reading –Semantic Web Primer Chapter 3 (only Sections 3.1 to 3.6) Further reading –RDF Primer –RDF Vocabulary Description Language 1.0: RDF Schema Wikipedia – – – – – 74

Next Lecture 75 #DateTitle 1Introduction 2Semantic Web Architecture 3RDF and RDF Schema 4Web of hypertext (RDFa, Microformats) and Web of data 5Semantic Annotation 6Repositories and SPARQL 7The Web Ontology Language 8Rule Interchange Format 9Web-scale reasoning 10Social Semantic Web 11Ontologies and the Semantic Web 12Semantic Web Services 13Tools 14Applications 15Exam

Questions? 76