CC La Web de Datos Primavera Lecture 3: RDF Schema and 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

N3 590SW Stanley Kok. What is N3? Notation triple? “Human-writable” vs RDF/XML – machine-processable expresses the same things as RDF/XML RDF express.
Dr. Alexandra I. Cristea RDF.
The Semantic Web – WEEK 5: RDF Schema + Ontologies The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse]
Knowledge Technologies Manolis Koubarakis 1 An Introduction to RDF Schema.
1 Extracting RDF Data from Unstructured Sources Based on an RDF Target Schema Tim Chartrand Research Supported By NSF.
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,
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.
1 CENTRIA, Dept. Informática da Faculdade de Ciências e Tecnologia, Universidade Nova de Lisboa, Caparica, Portugal. 2 Institute of Computer Science,
INF 384 C, Spring 2009 Ontologies Knowledge representation to support computer reasoning.
Logics for Data and Knowledge Representation
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.
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
Chapter 3 RDF Schema. Introduction RDF has a very simple data model RDF Schema (RDFS) enriches the data model, adding vocabulary and associated semantics.
RDF and triplestores CMSC 461 Michael Wilson. Reasoning  Relational databases allow us to reason about data that is organized in a specific way  Data.
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.
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 5: Web Ontology Language (II) Aidan Hogan
4.8 Writing Equations from Patterns A very useful problem-solving strategy is look for a pattern. When you make a conclusion based on a pattern of examples,
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.
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,
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.
LOGICAL REASONING FOR CAT 2009.
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.
Description of Information Resources: RDF/RDFS (an Introduction)
Of 38 lecture 6: rdf – axiomatic semantics and query.
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 10: Conclusion Aidan Hogan
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 4: Web Ontology Language (I) Aidan Hogan
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.
An Optimization Technique for RDFS Inference using the Application Order of RDFS Entailment Rules Kisung Kim, Taewhi Lee
Author: Akiyoshi Matonoy, Toshiyuki Amagasay, Masatoshi Yoshikawaz, Shunsuke Uemuray.
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 –
Lecture 2: Proofs and Recursion. Lecture 2-1: Proof Techniques Proof methods : –Inductive reasoning Lecture 2-2 –Deductive reasoning Using counterexample.
Service-Oriented Computing: Semantics, Processes, Agents
Charlie Abela Department of Intelligent Computer Systems
CC La Web de Datos Primavera 2017 Lecture 7: SPARQL [i]
An Introduction to RDF Schema
The Semantic Web Part 6. RDF Vocabularies: RDF Schema
Properties of Operations for Real Numbers
Chapter 3 RDF Schema.
Service-Oriented Computing: Semantics, Processes, Agents
Resource Description Framework Building the Semantic Web
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
Ontology From Wikipedia, the free encyclopedia
Bus Routes.
ece 720 intelligent web: ontology and beyond
CC La Web de Datos Primavera 2016 Lecture 7: SPARQL (1.0)
Introduction to RDF and RDFS Editor: MR3
ece 720 intelligent web: ontology and beyond
Aidan Hogan CC La Web de Datos Primavera 2017 Lecture 4: Web Ontology Language (OWL) [I] Aidan Hogan
CC La Web de Datos Primavera 2016 Lecture 2: RDF Model & Syntax
RDF 1.1 Concepts and Abstract Syntax
ece 720 intelligent web: ontology and beyond
CC La Web de Datos Primavera Lecture 5: Web Ontology Language (II)
Chapter 3 RDF and RDFS Semantics
CC La Web de Datos Primavera 2018 Lecture 8: SPARQL [1.1]
Filtering Properties of Entities By Class
Semantic Web Basics (cont.)
Pearson Unit 1 Topic 2: Reasoning and Proof 2-4: Deductive Reasoning Pearson Texas Geometry ©2016 Holt Geometry Texas ©2007.
Semantic-Web, Triple-Strores, and SPARQL
Presentation transcript:

Aidan Hogan aidhog@gmail.com CC7220-1 La Web de Datos Primavera 2017 Lecture 3: RDF Schema and Semantics Aidan Hogan aidhog@gmail.com

Last time …

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

RDF: Resource Description Framework

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

RDF Classes Used to conceptually group resources ex:Movie, ex:Actor, ex:Series, etc. Uses predicate rdf:type to type a resource

TODAY’S TOPIC …

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

How to structure “rules”? How should we structure rules on the Semantic Web?

Semantic Web Answer: Schema/Ontologies Don’t use rules: Use RDF! Define relationships between classes and properties What sorts of relationships might be useful to define between the following classes and properties?

Class hierarchy Class c is a sub-class of Class d If (x,rdf:type,c) then (x,rdf:type,d), Example: if ex:CapitalCity sub-class of ex:City and if (ex:Dublin,rdf:type,ex:CapitalCity) then (ex:Dublin,rdf:type,ex:City) Which classes would be sub-classes of each other?

Property hierarchy Property p is a sub-property of q If (x,p,y) then (x,q,y) Example: if ex:hasCapitalCity sub-property of ex:hasCity and if (ex:Ireland,ex:hasCapitalCity,ex:Dublin) then (ex:Ireland,ex:hasCity,ex:Dublin) Which properties would be sub-properties of each other?

Domain of properties Property p has domain class c If (x,p,y) then (x,rdf:type,c) Example: if foaf:familyName has domain foaf:Person and if (ex:Aidan,foaf:familyName,"Hogan") then (ex:Aidan,rdf:type,foaf:Person) Which properties would have which classes as domain?

Range of properties Property p has range class c If (x,p,y) then (y,rdf:type,c) Example: if ex:hasCity has range ex:City and if (ex:Ireland,ex:hasCity,ex:Dublin) then (ex:Dublin,rdf:type,ex:City) Which properties would have which classes as range?

Trade-off: More Specific, Less Reusable More specific, more conclusions! Less specific, more reusable! Example: ex:hasCapitalCity has domain ex:Country PRO: Know that anything that has a capital city is a country CON: Cannot use this property for capital cities of states/counties/regions, etc.

Trade-off: More Specific, Less Reusable Another example: ex:Mayor sub-class of foaf:Person Bosco the dog Mayor of Sunol, California 1981–1994 R.I.P.

Beware of “hidden” definitions! Any potential problems here? (ex:Dublin,foaf:img,ex:Dublin_night.jpg) Choose names of properties/classes carefully!

RDFS: RDF Schema

RDFS: Describe “schema” in RDF @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . Sub-class: ex:CapitalCity rdfs:subClassOf ex:City . Sub-property: ex:hasCapitalCity rdfs:subPropertyOf ex:hasCity . Domain: foaf:familyName rdfs:domain foaf:Person . Range: ex:hasCapitalCity rdfs:range ex:CapitalCity . foaf:familyName rdfs:range xsd:string .

Note: Why called “domain” and “range”? f : X → Y X : domain of the function Y : co-domain of the function {f(x) | x ∈ X }: image or range of the function Any guesses why RDFS calls these "domain" and "range"?

So let’s build an RDF Schema … Let’s model an RDF Schema for movies, including different types of movies (horror, comedy, action), some different types of people involved (actor, producer, director), and how they are related. (an example)

But what, e.g., is the domain of … ?

But what, e.g., is the domain of … ? rdfs:Resource the class of everything! Yes, even itself! (rdfs:Resource,rdf:type,rdfs:Resource) (Giving domain/range/sub-class as rdfs:Resource says nothing new!)

Some meta-classes … rdf:Property: class of all properties (ex:hasCity,rdf:type,rdf:Property) rdfs:Class: class of all classes (ex:City,rdf:type,rdfs:Class)

Note: Class or instance? Would you define ex:Oak (“roble”@es) as a class or an instance? Classes can also "act" as instances: no strong distinction

Reasoning with RDFS

What general kinds of logical reasoning can we consider? What is “Reasoning”? What general kinds of logical reasoning can we consider?

Deductive Reasoning: Make logical conclusion from rules/premises What is “Reasoning”? All movie directors are human. Anthony C. Ferrante is a movie director. ∴ Anthony C. Ferrante must be human. Deductive Reasoning: Make logical conclusion from rules/premises

Inductive Reasoning: Learn approximate rule(s) from premises What is “Reasoning”? The first three Sharknado movies were great. ∴ Sharknado 4 will probably be great too. Inductive Reasoning: Learn approximate rule(s) from premises

Abductive Reasoning: Guess a premise/explanation What is “Reasoning”? Fred saw a movie with sharks in tornados. Sharknado movies have sharks in tornados. ∴ Fred may have seen a Sharknado movie. Abductive Reasoning: Guess a premise/explanation

... the only form of reasoning that is "certain" RDFS reasoning is deductive ... ... the only form of reasoning that is "certain"

What conclusions can we deduce? Given the above schema, what can we deduce from ...

Some of the conclusions … Not shown (for the sake of my/our sanity): Everything is of type rdfs:Resource All classes are sub-class of rdfs:Resource RDF/RDFS properties are of type rdf:Property

Sharktopus just one movie …

RDFS definitions apply to any movie ... Given the above schema, what can we deduce from ...

RDFS definitions apply to any movie ... Not shown (for the sake of my/our sanity): Everything is of type rdfs:Resource All classes are sub-class of rdfs:Resource RDF/RDFS properties are of type rdf:Property

Apply RDFS reasoning using “rules” (Don’t worry about rdfD1, rdfs1, rdfs12, rdfs13)

Axiomatic triples: Always true in RDFS

Reasoning in RDFS over RDF graph G Add axiomatic triples to G Apply rules exhaustively, adding conclusions to G, until nothing new found Will this always finish? Or can it run forever?

RECAP

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

Don’t write rules: write triples RDFS: RDF Schema Allows for defining classes and properties Written down in triples Can be used for reasoning with rules

RDFS: RDF Schema RDFS has four main features: sub-class: an instance of a class c is an instance of its sub-class d sub-property: if two things are related by p, they are also related by its sub-property q domain: the subject of a relation with property p is the type of its domain c range: the object of a relation with property p is the type of its range c A few other useful classes: rdf:Property: the class of all properties rdfs:Class: the class of all classes rdfs:Resource: the class of everything!

RDFS: A Web Standard http://www.w3.org/TR/rdf-schema/

Questions?