Chapter 3 RDF Schema. Introduction RDF has a very simple data model RDF Schema (RDFS) enriches the data model, adding vocabulary and associated semantics.

Slides:



Advertisements
Similar presentations
Of 27 lecture 7: owl - introduction. of 27 ece 627, winter ‘132 OWL a glimpse OWL – Web Ontology Language describes classes, properties and relations.
Advertisements

Chapter 8: Web Ontology Language (OWL) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005.
1 Semantic Web Technologies: The foundation for future enterprise systems Okech Odhiambo Knowledge Systems Research Group Strathmore University.
Xiang Zhang Feb 25 th, 2011 RDF, RDFS, OWL and the Semantic Web.
Dr. Jim Bowring Computer Science Department College of Charleston CSIS 690 (633) May Evening 2009 Semantic Web Principles and Practice Class 5: 27 May.
1 An Introduction To The Semantic Web. 2 Information Access on the Web Find an mp3 of a song that was on the Billboard Top Ten that features a cowbell.
Chapter 8: Web Ontology Language (OWL) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005.
Dr. Alexandra I. Cristea RDF.
The Semantic Web – WEEK 5: RDF Schema + Ontologies The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse]
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
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,
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
An overview of Semantic Web Languages and Technologies.
LDK R Logics for Data and Knowledge Representation Resource Description Framework (RDF) Fausto Giunchiglia and Biswanath Dutta Fall’2011.
Nancy Ide Vassar College USA Resource Definition Framework A Tutorial EUROLAN 2003 July 28 - August 8 Bucharest - Romania.
RDF Semantics by Patrick Hayes W3C Recommendation Presented by Jie Bao RPI Sept 4, 2008 Part 1 of RDF/OWL Semantics Tutorial.
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.
Chapter 6 Understanding Each Other CSE 431 – Intelligent Agents.
Okech Odhiambo Faculty of Information Technology Strathmore University
OWL and SDD Dave Thau University of Kansas
Logics for Data and Knowledge Representation
RDF – Resource Description Framework M. Missikoff – F. Taglino LEKS, IASI-CNR Una piattaforma inferenziale per il Web Semantico: Jena2 Roma, 2006 Web Semantico.
Chapter 6 Understanding Each Other CSE 431 – Intelligent Agents.
Building an Ontology of Semantic Web Techniques Utilizing RDF Schema and OWL 2.0 in Protégé 4.0 Presented by: Naveed Javed Nimat Umar Syed.
© Copyright 2008 STI INNSBRUCK RDF and RDF Schema Semantic Web Lecture Lecture III – xx 2009 Dieter Fensel Slides.
1 Object-Orientation in Ontology Date: April 30, 2007 Byunggul Koh Taeksu Kim.
OWL 2 in use. OWL 2 OWL 2 is a knowledge representation language, designed to formulate, exchange and reason with knowledge about a domain of interest.
Chapter 9. 9 RDFS (RDF Schema) RDFS Part of the Ontological Primitive layer Adds features to RDF Provides standard vocabulary for describing concepts.
OWL Representing Information Using the Web Ontology Language 1.
Part I: Set Constructs. RDF Schema (RDFS) RDF does not provide mechanisms to define domain classes and properties RDFS is a vocabulary that provides many.
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.
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.
Part II. Property domain and range restriction RDFS allows us to put restriction on the properties by specifying their domain and range, providing the.
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.
OIL and DAML+OIL: Ontology Languages for the Semantic Web Sungshin Lim TOWARDS THE SEMANTIC WEB: Ontology-driven Knowledge.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
Ch 7: RDF schema 현근수, 김영욱, 백상윤, 이용현 Team C. Introduction Semantic web modeling In RDF: simply creates graph structure to represent data In RDFS: about.
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 Chapter 12. Ontologies: RDF Business Models Shelley Powers, O’Reilly SNU IDB Lab. Taikyoung Kim.
Of 38 lecture 6: rdf – axiomatic semantics and query.
Motivation Dynamically identify and understand information sources Provide interoperability between agents in a semantic manner Enable distributed extensible.
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.
Describing Web Resources in RDF Semantic Web. Knowledge Technologies Manolis Koubarakis 2 The Semantic Web “Layer Cake”
Linked Data & Semantic Web Technology The Semantic Web Part 7. RDF Semantics Dr. Myungjin Lee.
Semantic Web in Depth RDF Schema Dr Nicholas Gibbins –
OWL (Ontology Web Language and Applications) Maw-Sheng Horng Department of Mathematics and Information Education National Taipei University of Education.
Service-Oriented Computing: Semantics, Processes, Agents
Charlie Abela Department of Intelligent Computer Systems
An Introduction to RDF Schema
The Semantic Web Part 6. RDF Vocabularies: RDF Schema
Chapter 3 RDF Schema.
Service-Oriented Computing: Semantics, Processes, Agents
Service-Oriented Computing: Semantics, Processes, Agents
ece 720 intelligent web: ontology and beyond
Introduction to RDF and RDFS Editor: MR3
ece 720 intelligent web: ontology and beyond
Chapter 3 RDF and RDFS Semantics
Semantic Web Basics (cont.)
Semantic-Web, Triple-Strores, and SPARQL
Presentation transcript:

Chapter 3 RDF Schema

Introduction RDF has a very simple data model RDF Schema (RDFS) enriches the data model, adding vocabulary and associated semantics for – Classes and subclasses – Properties and sub-properties – Typing of properties Support for describing simple ontologies Adds an object-oriented flavor But with a logic-oriented approach and using “open world” semantics

RDF Schema (RDFS) RDFS adds taxonomies for classes & properties – subClass and subProperty and some metadata. – domain and range constraints on properties Several widely used KB tools can import and export in RDFS Stanford Protégé KB editor Java, open sourced extensible, lots of plug-ins provides reasoning & server capabilities

RDFS Vocabulary Terms for classes – rdfs:Class rdfs:Class – rdfs:subClassOf rdfs:subClassOf Terms for properties – rdfs:domain rdfs:domain – rdfs:range rdfs:range – rdfs:subPropertyOf rdfs:subPropertyOf Special classes – rdfs:Resource rdfs:Resource – rdfs:Literal rdfs:Literal – rdfs:Datatype rdfs:Datatype Terms for collections – rdfs:member rdfs:member – rdfs:Container rdfs:Container – rdfs:ContainerMem- bershipProperty rdfs:ContainerMem- bershipProperty Special properties – rdfs:comment rdfs:comment – rdfs:seeAlso rdfs:seeAlso – rdfs:isDefinedBy rdfs:isDefinedBy – rdfs:label rdfs:label RDFS introduces the following terms, giving each a meaning w.r.t. the rdf data model

RDF and RDF Schema John Smith <rdfs:subclassOf rdf:resource= “ u:Chair John Smith rdf:type g:name g:Person g:name rdfs:Classrdfs:Property rdf:type rdfs:subclassOf rdfs:domain

RDFS supports simple inferences An RDF ontology plus some RDF statements may imply additional RDF statements. This is not true of XML. Note that this is part of the data model and not of the accessing or processing :. parent rdfs:domain person; rdfs:range person. mother rdfs:subProperty parent; rdfs:domain woman; rdfs:range person. eve mother cain. parent a property. person a class. woman subClass person. mother a property. eve a person; a woman; parent cain. cain a person. New and Improved! 100% Better than XML!! New and Improved! 100% Better than XML!!

N3 :. <> rdfs:comment “This is an N3 example”. :Person a rdfs:Class. :Woman a rdfs:Class; rdfs:subClassOf :Person. :eve a :Woman; :age “100”. :sister a rdf:Property; rdfs:domain :Person; rdfs:range :Woman. :eve :sister [a :Woman; :age 98]. :eve :believe {:eve :age “100”}. [is :spouse of [is :sister of :eve]] :age 99. :eve.:sister.:spouse :age 99. This defines the “empty prefix” as refering to “this document” Here’s how you declare a namespace. <> Is an alias for the URI of this document. “person is a class”. The “a” syntax is sugar for rdf:type property. “Woman is a class and a subclass of person”. Note the ; syntax. “eve is a woman whose age is 100.” “sister is a property from person to woman” “eve has a sister who is a 98 year old woman”. The brackets introduce an anonymous resource. “eve believes that her age is 100”. The braces introduce a reified triple. “the spouse of the sister of eve is 99”.

Ex: University Lecturers – Prefix <rdf:RDF xmlns:rdf=" xmlns:rdfs= >

Ex: University Lecturers -- Classes The class of staff members The class of academic staff members The class of lecturers. All lecturers are academic staff members. The class of courses

Ex: University Lecturers -- Properties Assigns lecturers to courses. Assigns courses to lecturers.

Ex: University Lecturers -- Instances <uni:lecturer rdf:ID="949318" uni:name="David Billington" uni:title="Associate Professor"> <uni:lecturer rdf:ID="949352" uni:name="Grigoris Antoniou" uni:title="Professor"> <uni:course rdf:ID="CIT1111" uni:courseName="Discrete Mathematics"> <uni:course rdf:ID="CIT1112" uni:courseName="Concrete Mathematics">

RDFS vs. OO Models In OO models, an object class defines the properties that apply to it – Adding a new property means to modify the class In RDF, properties are defined globally and aren’t encapsulated as attributes in the class definition – One can define new properties without changing the class – Properties can have properties :mother rdfs:subPropertyOf :parent; rdf:type :FamilyRelation. – You can’t narrow the domain and range of properties in a subclass

bio:. bio:Animal a rdfs:Class. Bio:offspring a rdfs:Property; rdfs:domain bio:Animal; rdfs:range bio:Animal. bio:Human rdfs:subClassOf bio:Animal. bio:Dog rdfs:subClassOf bio:Animal. :fido a bio:Dog. :john a bio:Human; bio:offspring :fido. There is no way to say that the offspring of humans are humans and the offspring of dogs are dogs.

Example Bio:child rdfs:subPropertyOf bio:offspring; rdfs:domain bio:Human; rdfs:range bio:Human. Bio:puppy rdfs:subPropertyOf bio:offspring; rdfs:domain bio:Dog; rdfs:range bio:Dog. :john bio:child :mary. :fido bio:puppy :rover. What do we know after each of the last two triples are asserted? Suppose we also assert: :john bio:puppy :rover :john bio:child :fido

Not like types in OO systems Classes differ from types in OO systems in how they are used. – They are not constraints on well-formedness The lack of negation and the open world assumption make it impossible to detect contradictions – Can’t say that Dog and Human are disjoint classes – Not knowing that there are individuals who are both doesn’t mean it’s not true

No disjunctions or union types What does this mean? bio:Cat rdfs:subClassOf bio:Animal. bio:pet a rdfs:Property; rdfs:domain bio:Human; rdfs:range bio:Dog; rdfs:range bio:Cat.

No disjunctions or union types We have to define the Class explicitly. bio:Cat rdfs:subClassOf bio:Animal; rdfs:subClassOf bio:Pet. bio:Dog rdfs:subClassOf bio:Pet. bio:Pet rdfs:subClassOf bio:Animal. bio:pet a rdfs:Property; rdfs:domain bio:Pet; rdfs:range bio:Pet; There’s redundancy here. It may or may not be what we want to say Only dogs and cats can be pets?. Are all cats pets? What about feral cats?

Classes and individuals are not disjoint In OO systems a thing is either a class or object – Many KR systems are like this: you are either an instance or a class, not both. Not so in RDFS bio:Species rdf:type rdfs:Class. bio:Dog rdf:type rdfs:Species; rdfs:subClassOf bio:Animal. :fido rdf:type bio:Dog. Adds richness to the language but causes problems, too – In OWL lite and OWL DL you can’t do this. – OWL has it’s own notion of a Class, owl:Class

Inheritance is simple No defaults, overriding, shadowing What you say about a class is necessarily try of all sub-classes A class’ properties are not inherited by its members. – Can’t say “Dog’s are normally friendly” or even “All dogs are friendly” – The meaning of the Dog class is a set of individuals

Set Based Model Theory Example World Interpretation Daisy isA Cow Cow kindOf Animal Mary isA Person Person kindOf Animal Z123ABC isA Car  {.....} a b Model Mary drives Z123ABC

Is RDF(S) better than XML? Q: For a specific application, should I use XML or RDF? A: It depends… XML's model is – a tree, i.e., a strong hierarchy – applications may rely on hierarchy position – relatively simple syntax and structure – not easy to combine trees RDF's model is – a loose collections of relations – applications may do “database”-like search – not easy to recover hierarchy – easy to combine relations in one big collection – great for the integration of heterogeneous information

Problems with RDFS RDFS too weak to describe resources in sufficient detail, e.g.: – No localised range and domain constraints Can’t say that the range of hasChild is person when applied to persons and elephant when applied to elephants – No existence/cardinality constraints Can’t say that all instances of person have a mother that is also a person, or that persons have exactly 2 parents – No transitive, inverse or symmetrical properties Can’t say that isPartOf is a transitive property, that hasPart is the inverse of isPartOf or that touches is symmetrical We need RDF terms providing these and other features.

Conclusions RDF is a simple data model based on a graph – Independent on any serialization (e.g., XML or N3) RDF has a formal semantics providing a dependable basis for reasoning about the meaning of RDF expressions RDF has an extensible URI-based vocabulary RDF has an XML serialization and can use values represented as XML schema datatypes Anyone can make statements about any resource (open world assumption) RDFS builds on RDF’s foundation by adding vocabulary with well defined semantics (e.g., Class, subClassOf, etc.) OWL addresses some of RDFS’s limitations adding richness (and complexity).